Hot answers tagged

2

I have created a script that may be helpful for creating swap on ephemeral devices. It uses lvm to create the swap volume and also creates a volume that might be useful as /tmp. You could use cloud-init to trigger it. bootcmd: - [ cloud-init-per, once, mk-eph, /usr/local/sbin/mk-eph.sh] # Filesystem setup fs_setup: - label: 'tmp' filesystem: 'xfs' ...


2

You need these tools: Install "lsscsi". It's very good to find out what drives you actually have. Install "disktype". If you point it on a drive you'll be able to see what is actually there. Use "cat /proc/mdstat" to see what's up with your software raid devices (/dev/md*) Looks like you have: /dev/md0 raid1 from 4 16Gb first partitions of every drive ...


1

You should have done a copy-paste instead of a screenshot :) Here's what it looks like: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T O disk |-sda1 8:1 0 1004.5K O part |-sda2 8:2 0 19.5G O part / |-sda3 8:3 0 1.8T O part /home \-sda4 8:4 0 15.6G O part [SWAP] sdb 8:16 0 1.8T O disk You'...


1

After partition resize, you should reboot the system to be 100% sure that kernel recognizes the new size. After that: you had to resize the LVM volume, issuing lvextend /dev/system/tmp -L 5G you had to resize the filesystem, issuing resize2fs /dev/system/tmp Please pay much attention to issuing the above command against the correct devices. For example, ...



Only top voted, non community-wiki answers of a minimum length are eligible