Operating System - HP-UX
1833511 Members
2888 Online
110061 Solutions
New Discussion

Removing a logical volume

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

Removing a logical volume

Hi guys,

I've created a new volume group with two logical volume, no problem with that, the thing is that if I want to delete an lv how does I do that? with an lvreduce??!?!

Regards
Jonathan
7 REPLIES 7
Ken Hubnik_2
Honored Contributor
Solution

Re: Removing a logical volume

lvremove
Christian Gebhardt
Honored Contributor

Re: Removing a logical volume

Hi

Use SAM or lvremove

Chris
Ashwani Kashyap
Honored Contributor

Re: Removing a logical volume

#lvremove -f /dev/vgname/lvname
Paula J Frazer-Campbell
Honored Contributor

Re: Removing a logical volume

Hi

Also use SAM to remove it and then /usr/sam/bin/samlog_viewer to view the structure of the command.




Paula
If you can spell SysAdmin then you is one - anon
Jonathan Caplette_1
Super Advisor

Re: Removing a logical volume

Ok thanks!!

I've just not checked for that command...

James R. Ferguson
Acclaimed Contributor

Re: Removing a logical volume

Hi:

To delete a logical volume use 'lvremove'. 'lvreduce' is used to change a logical volume's size or number of mirror copies.

# lvremove /dev/vg01/lvol1

...would destroy the logical volume 'lvol1' in the volume group 'vg01'. You will be prompted for confirmation if a filesystem resides in the logical volume. It's data will be destroyed. You will need to unmount the filesystem on the logical volume before you 'lvremove' it if you have mounted one to it. Be sure to edit '/etc/fstab' accordingly.

Regards!

...JRF...
Victor_5
Trusted Contributor

Re: Removing a logical volume

If you just created it and did not put anything on it, just

lvremove /dev/vg_name/your_lv