Operating System - HP-UX
1838700 Members
4655 Online
110128 Solutions
New Discussion

Re: unable to delete logical volume

 
BR945575
New Member

unable to delete logical volume

Hi,

I am working on HP-UX 11.11 platform.i am unable to delete a logical volume the error message diplayed:
lvremove: Couldn't delete logical volume "/dev/vgp_bhu_a1/lvol_var_env161gm":
The specified logical volume is open, or
a sparing operation is in progress.
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: unable to delete logical volume

It is still in use. Check "mount" and umount if needed.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
BrianDoyle
Trusted Contributor

Re: unable to delete logical volume

Hi,

Did you unmount the lvol first ?
tsf_1
Frequent Advisor

Re: unable to delete logical volume

Are you using Online JFS?
If not it is recommended to umount the filesystem and deactivate the VG.
# umount
# vgchange -a n VGtest

If still not successful, review this patch as it might be due to known issue CR:JAGae04912. Install when necessary.

PHKL_34805 s700_800 11.11 JFS3.3 patch; mmap
(take note there are dependencies for this patch). You may use http://www.itrc.hp.com to further check.
be willing to do, be happy to bear
BR945575
New Member

Re: unable to delete logical volume

The lvol is not mounted ,there is no entry in the /etc/fstab.so I even tried to mount it and got the following error:
vxfs mount: Cannot open /dev/vgp_bhu_a1/lvol_var_env161gm: No such device or address. I can see the lvol when i run the command vgdisplay.We dont use online JFS .

Thank You
Mridul Shrivastava
Honored Contributor

Re: unable to delete logical volume

see the error message:

Cannot open /dev/vgp_bhu_a1/lvol_var_env161gm: No such device or address.

please post the o/p of ll /dev/vgp_bhu_a1

Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: unable to delete logical volume

Have you tried "lvremove -f" on this logical volume. If this is also not helping that you could try booting system in single user mode and then try removing this logical volume with lvremove -f

Time has a wonderful way of weeding out the trivial
BR945575
New Member

Re: unable to delete logical volume

I have attached the vgdisplay o/p.I even tried with lvremove -f option but the message was same as with lvremove
Ninad_1
Honored Contributor

Re: unable to delete logical volume

Hi,

Is there any process hung for creation/extension etc for the logical volume?
ps -eaf | grep 'var_env161gm'

The size is 0 for the lvol, thus it seems that there was some activity carried out related to this lvol, unless the size was 0 already.
Check /var/adm/syslog/syslog.log if any operations related to lv were carried out on this lvol. Please share more information on a bit of history of this problem.

Regards,
Ninad