Originally Posted by Sagitter
# lvm pvremove /dev/sdb1
Can't pvremove physical volume "/dev/sdb1" of volume group "test_vg" without -ff
# pvremove -ff /dev/sdb1
Really WIPE LABELS from physical volume "/dev/sdb1" of volume group "test_vg" [y/n]? y
WARNING: Wiping physical volume label from /dev/sdb1 of volume group "test_vg"
Labels on physical volume "/dev/sdb1" successfully wiped
Remove LVM. I don't want that.
I wish to take off only
the unused space.
Well, I didn't see the forced part with the y.
But sdb1 is just a partition of type 8e now.
You had to remove LV's and VG to get rid of the 1GB PE size anyway.
You can not define a partition inside a PV/VG freespace.
So make the 8e partition for LVM smaller if you really want another partition(s).
lvm pvcreate /dev/sdb1
lvm vgcreate --physicalextentsize 4M VolGroup1101 /dev/sdb1
then you can create LV's as needed.
lvm lvcreate --size nnnnM --name LogVol1101bkup VolGroup1101 /dev/sdb1