Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I erase the PE allocations on this VG so it is blank again? Currently there are only 18 free;

root@box1:~# vgdisplay 
  --- Volume group ---
  VG Name               tester
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  8
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               139.70 GiB
  PE Size               4.00 MiB
  Total PE              35762
  Alloc PE / Size       35744 / 139.62 GiB
  Free  PE / Size       18 / 72.00 MiB
  VG UUID               LJguxY-N8pM-wLE7-OOdB-ddI6-Q96M-gyNiFd
share|improve this question
    
Do you mean how can you wipe the VG? presumably you have 139.62GB's worth of LVs, if you delete those (!) then you'll have more free. If you mean something else perhaps you could clarify? –  Chopper3 Sep 5 '12 at 10:49
    
Sorry yeah you are correct in your assumption. SO I presume I just need to use lvremove ? –  jwbensley Sep 5 '12 at 11:07

1 Answer 1

up vote 2 down vote accepted

Yeah, just use lvremove (carefully :) ) and it'll empty that VG ready for new LVs as needed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.