LVM with c1


#1

Here how to implement the lvm on the c1 (ubuntu 16.04):

apt-get install lvm2 parted udev -y
sed -i ‘s/use_lvmetad = 1/use_lvmetad = 0/’ /etc/lvm/lvm.conf
vgcreate mvg /dev/nbd1
vgextend mvg /dev/nbd2
lvcreate -n data -L 279.39g mvg
mkfs.ext4 /dev/mvg/data
mkdir /mnt/data
mount /dev/mvg/data /mnt/data
chmod 777 /mnt/data -R
echo ‘/dev/mvg/data /mnt/data auto defaults,nofail,errors=remount-ro 0 2’ >> /etc/fstab

Warning: in their documentation, scw, write to use: nobootwait, this function is deprecated and will block the boot of your server, use nofail