[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] How do I remove a physical volume



I am doing some development with liblvm and need the capability to remove a
physical volume (so I can then recreate it later as part of testing).  There
doesn't seem be a "pvremove" command or equivalent library call, so I have
resorted to the following brute
force method:

  1. Remove the physical volume from a the volume group
  2. Deactivate the volume
  3. Write arbitrary data to the partition to trash the private volume
record
 
Is it safe to do this?  Is there a better way?  Should there be a pvremove
command?
 
Thanks,

Andrew Patterson
Hewlett-Packard 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]