cancel
Showing results for 
Search instead for 
Did you mean: 

unable to remove LV

jeevarajkn
Frequent Advisor

unable to remove LV

Dear Guru's

model-RX6600
OS-11.23

Iam try to remove two lv’s ie; /vg00/lvol11 and /vg00/lvol12 but getting error says that this lv’s already mounted and cannot be removed but this lv’s not showing in bdf ouput,/etc/fstab/,/etc/mnttab also.

Error:-

UAEMFQDDCBDBD01:/tmp>lvremove /dev/vg00/lvol12

The logical volume "/dev/vg00/lvol12" is not empty;

do you really want to delete the logical volume (y/n) : y

lvremove: Couldn't delete logical volume "/dev/vg00/lvol12":

The specified logical volume is open, or

a sparing operation is in progress.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf





UAEMFQDDCBDBD01:/tmp>mount -F vxfs /dev/vg00/lvol12 /jee

vxfs mount: /dev/vg00/lvol12 is already mounted, /jee is busy, allowable number of mount points exceeded
.



Plesae help me solve this issue.

11 REPLIES
Torsten.
Acclaimed Contributor

Re: unable to remove LV

umount the file system first.

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!   
Nido
Trusted Contributor

Re: unable to remove LV

Hi,

Do you know the mount-point of /dev/vg00/lvol12?

Try remove and recreate the mount-point (directory). Let me know the result.

Thanks,
" Let Villagers Be Happy!! "
R.K. #
Honored Contributor

Re: unable to remove LV

Hi Jeev,

Try doing this:
# mv /etc/mnttab /etc/mnttab_bak <== move mnttab
# mount -a <== recreate mnttab

If you know the mount points of these lvols; try :
# fuser -c <== to see the use of these mount points
If you find any process in this, you can try killing them.

Regds,
R.K.
Don't fix what ain't broke
avizen9
Esteemed Contributor

Re: unable to remove LV

Hello,
if its not showing in bdf output and in /etc/fstab then it may use somewhere in background.

is it possible to reboot this system once? if yes proceed for it.

another way you can kill by finding fuser

yulianto piyut
Valued Contributor

Re: unable to remove LV

hi,

1. is it still mounted ? check first!
2. if not mounted, is it share disk?
3. if not, try to fuser -cu or use lsof to define what process still use this lv
Sajjad Sahir
Honored Contributor

Re: unable to remove LV

Dear Friend

Remove a logical volume without requiring user confirmation:
lvremove -f /dev/vg00/lvol2 but should careful this command destroys all data in the specified logical volumes.

thanks and regards

Sajjad Sahir
jeevarajkn
Frequent Advisor

Re: unable to remove LV

Dear Guru,s

All the points which you are mentioned has been done and its failed.

Now there some surprise!!! theis LV has the same physical extend of another LV in the same vg00 more over the device file inside /dev/vg00 is same.Please find the attachment for your refernce.
Sajjad Sahir
Honored Contributor

Re: unable to remove LV


Dear friend

did u used

lvremove -f?

and please give u vgdisplay -v vg00 output

thanks and regards

Sajjad
Michal Kapalka (mikap)
Honored Contributor

Re: unable to remove LV

hi,

lvol12 and backup using the same PE = LVOLs are identical,

"if you are know what you are doing",

umount backup / backup1 / lvol11 / lvol12,

them lvremove of them and recreate a new LV-s.

and create a new FS and mount it as some mountpoints.

mikap

Michal Kapalka (mikap)
Honored Contributor

Re: unable to remove LV

hi,


backup = lvol11 = 0x00000b

backup1 = lvol12 = 0x00000c = /jee ??? or some other mountpoints maybe some backup ...


mikap

Taifur
Respected Contributor

Re: unable to remove LV

Hi,

Follow the below steps,

#umount /mount point
check /etc/fstab, use # ahead of dev/vg00/lvol12
#lvremove -f /dev/vg00/lvol2

Check below link ,
http://docs.hp.com/en/B2355-90691/lvremove.1M.html

Rgds//
Taifur