v***@openmailbox.org
2016-12-11 03:12:36 UTC
Nevermind. Figured it out. resizing to max available did the trick. I
was lucky!
sudo lvresize -l +100%FREE /dev/ubuntu-vg/root
was lucky!
sudo lvresize -l +100%FREE /dev/ubuntu-vg/root
Hello,
I was following this guide
https://help.ubuntu.com/community/ResizeEncryptedPartitions#Detailed_resizing_.2BAH4_Reducing_an_encrypted_partition
on how to reduce the size of an lvm partition. Its kind of confusing,
so going from a ext4 420G partition to 390G partition, I did the steps
sudo e2fsck -f /dev/mapper/ubuntu--vg-root
# worked
sudo lvreduce -L -30G /dev/ubuntu--vg/root
# data warning
sudo resize2fs -p /dev/mapper/ubuntu--vg-root 390g
i tried to undo this by
sudo resize2fs -p /dev/mapper/ubuntu--vg-root 420g # doesnt do
anything, not enough blocks
sudo lvresize -l +30G /dev/ubuntu-vg/root #clearly didnt do anything
or work either
Is there any procedures to get back to where i started at 420g OR to
fix it for 390g?
Thanks!
veleiro
I was following this guide
https://help.ubuntu.com/community/ResizeEncryptedPartitions#Detailed_resizing_.2BAH4_Reducing_an_encrypted_partition
on how to reduce the size of an lvm partition. Its kind of confusing,
so going from a ext4 420G partition to 390G partition, I did the steps
sudo e2fsck -f /dev/mapper/ubuntu--vg-root
# worked
sudo lvreduce -L -30G /dev/ubuntu--vg/root
# data warning
sudo resize2fs -p /dev/mapper/ubuntu--vg-root 390g
i tried to undo this by
sudo resize2fs -p /dev/mapper/ubuntu--vg-root 420g # doesnt do
anything, not enough blocks
sudo lvresize -l +30G /dev/ubuntu-vg/root #clearly didnt do anything
or work either
Is there any procedures to get back to where i started at 420g OR to
fix it for 390g?
Thanks!
veleiro