Instalace potřebných balíčků.
apt install lvm2
root@cubieboard2:~# pvcreate /dev/sda root@cubieboard2:~# vgcreate disk4t /dev/sda Volume group "disk4t" successfully created root@cubieboard2:~# vgs VG #PV #LV #SN Attr VSize VFree disk4t 1 1 0 wz--n- 3,64t 2,64t root@cubieboard2:~# pvs PV VG Fmt Attr PSize PFree /dev/sda disk4t lvm2 a-- 3,64t 3,64t
root@cubieboard2:~# lvcreate -L 900G -n movies disk4t Logical volume "movies" created root@cubieboard2:~# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert movies disk4t -wi-ao---- 900,00g
root@cubieboard2:~# cryptsetup -c aes-xts-plain -s 512 -y luksFormat /dev/mapper/disk4t-movies root@cubieboard2:~# cryptsetup luksOpen /dev/mapper/disk4t-movies movies root@cubieboard2:~# mkfs.ext4 /dev/mapper/movies root@cubieboard2:~# mount /dev/mapper/movies /mnt/movies
root@cubieboard2:~# lvextend -L +1G /dev/disk4t/movies root@cubieboard2:~# cryptsetup --verbose resize movies root@cubieboard2:~# resize2fs /dev/mapper/movies