Thursday, September 28, 2006

reducing an unused physical volume in ubuntu
make sure is not used


sudo pvdisplay /dev/hdd1
--- Physical volume ---
PV Name /dev/hdd1
VG Name Ubuntu
PV Size 74.53 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 19079
Free PE 19079
Allocated PE 0
PV UUID f7juxh-Bb1Z-aHU1-zeP2-Gz11-rM2G-jBePR4

vgreduce Ubuntu /dev/hdd
Removed "/dev/hdd1" from volume group "Ubuntu"

sudo pvdisplay /dev/hdd1
Password:
--- NEW Physical volume ---
PV Name /dev/hdd1
VG Name
PV Size 74.53 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID f7juxh-Bb1Z-aHU1-zeP2-Gz11-rM2G-jBePR4
sudo pvremove /dev/hdd1
Labels on physical volume "/dev/hdd1" successfully wiped

sudo pvdisplay /dev/hdd1
No physical volume label read from /dev/hdd1
Failed to read physical volume "/dev/hdd1"

inspired by the lvm howto (how to add an new hdd)
I need the /dev/hdd for an partition transfer (/dev/hda crash in progress )

No comments: