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

Re: [lvm-devel] LVM2/lib/metadata lv_manip.c



hello,  i write a little patch that add a force (or recursive ?) option to vgremove
i think  the semantic is better if you call vgremove -f <vg>  than
call lvremove <vg> and then vgremove <vg>

Example:

root cobalto:/usr/local/src/LVM2/tools# lvm lvs
  LV        VG     Attr   LSize   Origin Snap%  Move Log Copy%
  lvprueba1 prueba -wi-a- 128.00M                             
  lvprueba2 prueba -wi-a- 128.00M                             
  lvprueba3 prueba -wi-a- 128.00M                             
  lvprueba4 prueba -wi-a- 128.00M                             
root cobalto:/usr/local/src/LVM2/tools# lvm vgremove -f prueba
vgremove: invalid option -- f
  Error during parsing of command line.
root cobalto:/usr/local/src/LVM2/tools# ./lvm vgremove -f prueba
  Logical volume "lvprueba1" successfully removed
  Logical volume "lvprueba2" successfully removed
  Logical volume "lvprueba3" successfully removed
  Logical volume "lvprueba4" successfully removed
  Volume group "prueba" successfully removed
root cobalto:/usr/local/src/LVM2/tools#





--
No vivas solo por que respiras, vive para cumplir tus sue~os
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]