Operating System - HP-UX
1835232 Members
2396 Online
110078 Solutions
New Discussion

how to Deactivate a shared Volume

 
SOLVED
Go to solution
Gene L. Huft
Occasional Advisor

how to Deactivate a shared Volume

This is basically where I'm stuck at from last post....I cannot seem to 'unshare' a shared volume group. I've tried:
# vgchange -c n /dev/vg_ops

vgchange: The volume group "/dev/vg_ops" is active on this system.
Cannot perform requested change.

OK, I'LL DEACTIVATE IT:

# vgchange -a n /dev/vg_ops
vgchange: Failed to notify clvm daemon about volume group deactivation - Device busy
Couldn't deactivate volume group "/dev/vg_ops":
Device busy

HMMMM....how/why is it active? Nothing is mounted & the Oracle is not up (the only thing that WAS using vg_ops)

Where do I go from here?


4 REPLIES 4
Uday_S_Ankolekar
Honored Contributor

Re: how to Deactivate a shared Volume

vgchange -a y /dev/vgnn then do vgchange -c n /dev/vgnn

Also try with fuser to see what process is holding it..

-USA..
Good Luck..
Gene L. Huft
Occasional Advisor

Re: how to Deactivate a shared Volume

# vgchange -a y /dev/vg_ops
vgchange: Activation mode requested for the volume group "/dev/vg_ops" conflicts with configured mode.

# vgdisplay -v vg_ops
vg
--- Volume groups ---
VG Name /dev/vg_ops
VG Write Access read/write
VG Status available, shared, server
.....
K.C. Chan
Trusted Contributor
Solution

Re: how to Deactivate a shared Volume

This usually means some proc is using the one of the lvol in the volume group. You can find out which proc is using it via fuser. After finding out which proc, then you can decide whether to terminate it or not. Assuming you termintated the proc, you can proceed with your vgchange.
Reputation of a thousand years can be determined by the conduct of an hour
Gene L. Huft
Occasional Advisor

Re: how to Deactivate a shared Volume

Bingo....I actually figured it out before I read Chan's reply - but he's exactly right...there was one rogue Oracle process I overlooked that was still running....once I killed it I was able to deactivate, etc.

Thanks!