Operating System - HP-UX
1752749 Members
5263 Online
108789 Solutions
New Discussion юеВ

Volume group not deactivating

 
jaivinder
Frequent Advisor

Volume group not deactivating

Hi,

I have a volume group. I have unmounted all LV's and i am trying
vgchange -a n /dev/vgname
but the following error is coming.
[root@ggnbkp21:/tmp/jai]#vgchange -a n APPSVG3
vgchange: Couldn't deactivate volume group "APPSVG3":
Device busy

I have manually deactivated all lv's and pv's but still it is giving me same error.

This volume group have raw lv's, but i have deactivated them.

Please help.

See attachment for info.



6 REPLIES 6
Torsten.
Acclaimed Contributor

Re: Volume group not deactivating

Looks like the disks are no longer there because all LUNs are unavailable. What do you want to do? Delete this VG?

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!   
Ivan Krastev
Honored Contributor

Re: Volume group not deactivating

Do you have any Oracle ASM instance here using this volumes. Try to shutdown the ASM instance and try again.

regards,
ivan
jaivinder
Frequent Advisor

Re: Volume group not deactivating

I have manually deactivated these pv's and lv's. We need to export this vg. But the vgchange is failing.

Please guide me how to check the oracle ASM instances.

Torsten.
Acclaimed Contributor

Re: Volume group not deactivating

" have manually deactivated these pv's ..."

How?
Maybe there are still I/Os pending, hence devices are busy.

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!   
Turgay Cavdar
Honored Contributor

Re: Volume group not deactivating

Can you look with fuser, any processes are holding your LVs or not?
fuser -u /dev/APPSVG3/rWP_TRANI_IDX14
Fabio Ettore
Honored Contributor

Re: Volume group not deactivating

Hi,

if I understand well you "need to export" this vg, so you need to remove it.
If so just run

vgremove APPSVG3

which works with active vg, then remove /dev/APPSVG3 directory. In this way you don't need to deactivate the vg.
This gets the same result of vgexport which instead works with non-active vg (and which also remove /dev/ directory).

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!