Logical Volume "data"

hoggle

Active Member
Jan 31, 2017
6
0
41
48
Hi

I am running out of space in my PVE root partition. There is Logical Volume called "data" which does not seem to be in use. Can I safely remove that LV and extend the root LV ?

root@lab:/# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- 14.66g 0
/dev/sdb1 vgdata1 lvm2 a-- 1.82t 1.74t
/dev/sdc1 vgdata2 lvm2 a-- 111.79g 79.79g

ACTIVE '/dev/pve/swap' [1.75 GiB] inherit
ACTIVE '/dev/pve/root' [5.23 GiB] inherit
ACTIVE '/dev/pve/data' [7.66 GiB] inherit



--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID 20z5U4-XNiQ-uOZL-PkVf-ay0I-tKdw-ZnU6t1
LV Write Access read/write
LV Creation host, time proxmox, 2017-01-24 16:44:49 +0100
LV Status available
# open 2
LV Size 1.75 GiB
Current LE 448
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:8

--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID l04ihZ-2JkZ-aTfL-OgaU-FPxv-2L4V-q5bYFK
LV Write Access read/write
LV Creation host, time proxmox, 2017-01-24 16:44:49 +0100
LV Status available
# open 1
LV Size 5.23 GiB
Current LE 1339
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:0

--- Logical volume ---
LV Name data
VG Name pve
LV UUID Lsven2-qlOy-2BwB-bY95-rJPS-RUac-ClDEbp
LV Write Access read/write
LV Creation host, time proxmox, 2017-01-24 16:44:50 +0100
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status available
# open 1
LV Size 7.66 GiB
Allocated pool data 0.00%
Allocated metadata 0.78%
Current LE 1962
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:11
 
Nevermind...

This worked:

lvremove /dev/pve/data
lvextend -l +100%FREE /dev/pve/root
resize2fs /dev/dm-0


Since I had nothing stored on it, I removed it and resized the root partition.
 
Please use code tags instead of fonts, they ruin the formatting.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!