Re: How to Resize Partition on LVM
I would like to thank everyone to helping.
Looks like it is working. Here is the action:
With Live GParted, reduce sda5 to minimum ~ 60GB.
Create new partition, sda6 ~420GB.
Booted back to Debian.
pvcreate /dev/sda6
vgcreate xenvg /dev/sda6
lvcreate -l +100%FREE xenvg -n xenlv
mkfs.ext4 -m 0 /dev/xenvg/xenlv
Updated /etc/fstab last line:
/dev/mapper/xenvg-xenlv /xenfs ext4 defaults 0
# mount -a
# ls -a /xenfs
. .. lost+found
# df -h
Filesystem Size Used Avail Use% Mounted on
<snip>
/dev/sda1 236M 49M 176M 22% /boot
/dev/mapper/mycomp--vg-tmp 360M 2.1M 335M 1% /tmp
/dev/mapper/mycomp--vg-var 2.7G 366M 2.2G 15% /var
/dev/mapper/mycomp--vg-home 4.8G 143M 4.4G 4% /home
<snip>
/dev/mapper/xenvg-xenlv 413G 71M 412G 1% /xenfs
Reply to: