3
4
I have LVM2 setup containing 2 Physical Volumes sda5 and sda6. Both Physical volumes are included in a single Volume Group VG, which inturn contains only one LV. The LV uses all the memory of the Physical Volumes, which means I cannot create another LV in the same VG.
So, in short my entire lvm setup contains 2pv, 1vg, 1lv. The lv contains the linux os.
Now, I want to remove a pv from the volume group safely so i can use it for anything other than lvm. But pvdisplay shows all physical extents on both physical volumes are allocated and there are no free Physical Extents in any of them. But the actual data on the Logical Volume is only 10percent of the size of the LV.
If i use pvmove command, it shows the error "No Free Physical Extents available".
So, How can I safely Remove the physical disk from the volume group without loosing data?
Can you shrink the size of the LV (and the filesystem on it) to open enough space to remove your PV? If you can open enough space in the VG, you can move all the data onto one PV with pvmove. – Brian.D.Myers – 2014-10-21T18:30:54.400