how to remove PV from a VG?
Quoted 13 lines
Quoted 9 lines · Heinz Mauelshagen
Quoted 3 lines
Hey folks,
Hi Freddy.
Quoted 2 lines
the subject says it (almost) all, I need to remove three PVs that were added to my VG by mistake (namely
/dev/sdi,/dev/sdjand/dev/sdk), I guess you see where the error is. I can access data on previous PVs (yet), but don't know how to remove PVs, there is nothing linke 'pvremove'. I can assure you there is no data (perhaps except signature) on those disks.
Quoted 7 lines
Quoted 5 lines
vgreduce YourVG /dev/sd[i-k]
- or, if the 3 partitions hold the only empty PVs of YourVG -
vgreduce -a YourVG
yes, helped quite enough, just the /dev/sd[ghi] devices are still in list of valid PVs and when I run pvscan my partitions get destroyed (I suppose because of rewriting LVM marker to the device). How do I really, physically remove the devices from the PV list?
Set the partition type identifier to something different than 0xfe.
regards,
Heinz
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement CS-TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt [email protected] Germany +49 6151 886-425 FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines
Quoted 1 line
How do I really, physically remove the devices from the PV list?
Set the partition type identifier to something different than
0xfe.
What if the disks were to not have a `partition type', e.g. /dev/sdb or /dev/md33 ?
Quoted 5 lines · Piete Brooks
Quoted 2 lines
Quoted 1 line
How do I really, physically remove the devices from the PV list?
Set the partition type identifier to something different than
0xfe.What if the disks were to not have a `partition type', e.g.
/dev/sdbor/dev/md33?
dd if=/dev/zero of=/dev/sdb count=8 bs=1024 does the trick
thanks to all who responded (and subsequently helped).
regards,
Signature · 6 lines
freddy ----==-- _ Adrien "freddy" Farkas ---==---(_)__ __ ____ __ [email protected] --==---/ / _ \/ // /\ \/ / We all know Linux is great... It -=====/_/_//_/\___/ /_/\_\ does infinite loops in 5 seconds