I have a Rocky 9 install.
I have just moved it (clonezilla) from a 500gb SSD to a 1TB nvme
in addition, I have used the old 500gb SSD as the new /home location. This has worked ok.
So I now should have approx 500gb ‘free’ on my new nvme but I dont see it yet because the cloning from 500gb
but two problems:
- I still have the old /home partition in the LVG, which I want to delete
- and then increase the size of root & swap to take advantage of the freed up space.
I need a little more space for swap and the rest for /root
But navigating lvms is a bit confusing. gone are the good old gparted days
anyway, here is my drive: lsblk
nvme1n1 259:5 0 931.5G 0 disk
├─nvme1n1p1 259:6 0 600M 0 part /boot/efi
├─nvme1n1p2 259:7 0 2.6G 0 part /boot
└─nvme1n1p3 259:8 0 928.3G 0 part
├─rl00-root 253:0 0 70G 0 lvm /
├─rl00-swap 253:1 0 4G 0 lvm [SWAP]
└─rl00-home 253:2 0 390.2G 0 lvm
vgdisplay rl00
— Volume group —
VG Name rl00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 464.17 GiB
PE Size 4.00 MiB
Total PE 118828
Alloc PE / Size 118828 / 464.17 GiB
Free PE / Size 0 / 0
VG UUID 5KQurn-zq7d-Efpo-0i5w-OFf
vgs
VG #PV #LV #SN Attr VSize VFree
rl00 1 3 0 wz–n- 464.17g 0
lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home rl00 -wi-a----- 390.17g
root rl00 -wi-ao---- 70.00g
swap rl00 -wi-ao---- 4.00g
pvs
PV VG Fmt Attr PSize PFree
/dev/nvme1n1p3 rl00 lvm2 a-- 464.17g 0
so my questions are:
- how do I remove /home from the rl00 vg
- how do take this space and extend the rl00 to use both the extra 500gb from the nvme AND the 390gb from the deleted /home
- how do I then increase the size of swap by 10gb and the rest to root?