so some time ago I decided to make a clean set up of my Ubuntu (16.04 LTS) installtion using LVM. I have one Volume Group (ubuntu-vg), containing two Logical Volumes, root and swap. root consists of three partitions split on three physical Volumes. Now I would like to remove two of the drives (477 GB each), but unfortunately it seems like LVM isn't able to move the physical data stored on them anywhere else. df tells me though, that there is physical space left on them:
# df -h Filesystem Size Used Avail Use% Mounted on udev 9,8G 0 9,8G 0% /dev tmpfs 2,0G 26M 2,0G 2% /run /dev/mapper/ubuntu--vg-root 1,2T 102G 1003G 10% /
on the other hand pvs tells me, that there isn't any space left on any of the drives:
# pvs -o+pv_used PV VG Fmt Attr PSize PFree Used /dev/sda5 ubuntu-vg lvm2 a-- 238,00g 0 238,00g /dev/sdc1 ubuntu-vg lvm2 a-- 476,94g 0 476,94g /dev/sdd1 ubuntu-vg lvm2 a-- 476,94g 0 476,94g
Which is quite odd in my opinion. I had the Ubuntu installation do the setup for LVM and later on added /dev/sdc and /dev/sdd to the logical volume. But now I can't seem to remove them safely.
Even using the GUI Version of LVM (system-config-lvm) didn't help solve the problem, it only tells me that there aren't enough extents available to move the data somewhere else.
# pvmove /dev/sdc1 /dev/sdd1 No free extents on physical volume "/dev/sdd1". No specified PVs have space available.
Has anybody experienced this before? Thank you in advance.