I have LVM on LUKS and after upgrade from 512GB to 1TB I resized my home partition by using this guide. I would like to resize my root volume as well. I’ve read different articles on this and I’ve doubts on how to achieve this in best way.
The disk layout is
Before resizing the borabora-home was smaller to fit 512GB disk. I have the old drive and able to dd its content again to the target disk as maybe from the scratch where the home volume was smaller it’s easier to start (I don’t know actually). As it’s not necessary to shrink home.
So what would be the way to extend borabora-root to 200GB e.g.?
As I think
I have to copy borabora-home somewhere (I have an external disk).
Delete it
Resize borabora-root
Create new lvm after it
Copy content of borabora-home to this newly created lvm
I’m reading about pvmove and looks like it actually moves as it updates metadata. So, what should I use to perform this. Or maybe the above list is wrong and there is another way you may suggest, please.
I can only shrink borabora-home at the end of volume (maybe I’m wrong). I can’t shrink it at the beginning (from left side). So I have to move it by 200GB farther to provide room for borabora-root.
no no no no
You chose to use LVM.
You had a reason to do so - presumably.
Presumably you knew how to shrink one (logical) partition in favour of another, where the space was needed …
for instance …
I did actually use a setup involving LVM in the past - but I never utilized it’s features.
Like:
resizing one (logical) partition - and re-allocating the space to another partition
without the need to actually having to move data around or resize (physical) partitions.
It’s in the name:
LVM (logical volume manager) - the “partitions” are not physical …