Operating System - HP-UX
1752328 Members
5342 Online
108786 Solutions
New Discussion

cannot delete logical volume with dead lun

 
paltel
Occasional Visitor

cannot delete logical volume with dead lun

Hello ,

 

I have the following problem:

 

I have volume group with two logical volumes , I dont need them anymore . but the luns was disconnected before removing them .

 

all lvm commands failed to delete them while luns are dead .

 

how can I delete LVs and VG while lun paths are dead , what is the current effect on the server boot ?

 

the server runs B.11.23 U ia64

 

Thanks for help

3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: cannot delete logical volume with dead lun

If you want to delete the entire VG, then:

 

1) Make sure the VG is not active -- # vgchange -a n vgname

2) Export the VG -- # vgexport vgname

 

The 'vgexport' will completely wipe out the VG without having to get rid of the LVs first.

 

 

paltel
Occasional Visitor

Re: cannot delete logical volume with dead lun

Thank you very much .

 

will this cause any startup errors ?

Robert_Jewell
Honored Contributor

Re: cannot delete logical volume with dead lun

Nope.  The vgexport command removes all reference to those VG's from the system.  You should check your /etc/fstab file though for any mount points listed that relate to the old volumes.

 

-Bob

----------------
Was this helpful? Like this post by giving me a thumbs up below!