1833420 Members
2788 Online
110052 Solutions
New Discussion

Re: lvremove fail

 
SOLVED
Go to solution
PETIT Cédric
New Member

lvremove fail

Hi,

When I try to remove a logical volume with the command: lvremove -f /dev/vg01/lvol1, HP-UX 11.00 says "The specified logical volume is open, or a sparing operation is in progress"

The command: fuser -u /dev/vg01/lvol1 says "/dev/vg01/lvol1:"

The command: lsof /dev/vg01/lvol1 says nothing.

vgdisplay -v /dev/vg01 says that /dev/vg01/lvol1 is in volume group vg01.

TIA
12 REPLIES 12
MARTINACHE
Respected Contributor

Re: lvremove fail

Could you try :

lsof /dev/vg00/rlvol1 ?
Patrice MARTINACHE
Vincent Farrugia
Honored Contributor

Re: lvremove fail

Hello,

Did you unmount the lvol first?
Tape Drives RULE!!!
Holger Knoppik
Valued Contributor

Re: lvremove fail

Hmmmm ...
I encountered that error while having a filesystem mounted. Does it match ?
HTH
RGDS, Holger
Live long and prosper!
Bill McNAMARA_1
Honored Contributor

Re: lvremove fail

The "sparing operation in progress" error tells me you probably got LVM hot sparing configured in one of the physical disk in VG01.
What's the output of these ..

# vgdisplay -v vg01
# lvdisplay -v /dev/vg01/lvol1
# pvdislay -v

Later,
Bill
It works for me (tm)
PETIT Cédric
New Member

Re: lvremove fail

The filesystem does not mounted.

lsof /dev/vg01/rlvol1 says nothing.
PETIT Cédric
New Member

Re: lvremove fail

For Bill,

Rgds
Bill McNAMARA_1
Honored Contributor

Re: lvremove fail

I don't have MirrorDisk so can verify if this will work,
but,

pvchange -z n /dev/dsk/c0t5d0

then continue on.

man pvchange for more.

Later,
Bill
It works for me (tm)
Vincent Farrugia
Honored Contributor

Re: lvremove fail

Hello,

For what is this vg used? if you have only this vg, then lvol1 is usually used to mount /stand in it...
Tape Drives RULE!!!
PETIT Cédric
New Member

Re: lvremove fail

I don't have Mirror Disk.

Volume Group vg00 for my system.

And Volume Group vg01 for our applications.

Gilles
MARTINACHE
Respected Contributor

Re: lvremove fail

If you can stop your server, reboot in maintenance mode and try to remove lvol1 ...
Patrice MARTINACHE
Bill McNAMARA_1
Honored Contributor
Solution

Re: lvremove fail

okay, forget my comments,
I suggest booting into lvmmaintenance mode

ISL> hpux -lm

# vgchange -a y vg00
# mount -a
(forget vg01 errors)
# vgchange -a y vg01
# lvremove /dev/vg01/lvol1

That's gotta work!

Later,
Bill

It works for me (tm)
PETIT Cédric
New Member

Re: lvremove fail

OK

I will try in LVM maintenance as soon as possible.

Thanks to all

Rgds,

Gilles