- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- force deactivate volume group
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 01:39 PM
тАО10-06-2009 01:39 PM
vgchange -a n /dev/vg01
vgchange:could not deactivate volume group "/dev/vg12"
Device Busy
Thanks
NOte - none of the process or volumes or running on this volume group
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 01:46 PM
тАО10-06-2009 01:46 PM
SolutionYou have to unmount the Logical Volumes of the VG , before trying to deactivate the VG.
check if any LV is still open.
There is nothing like force deactivation, the theory is that you have to unmount all LV, and no one should be using the lvs before trying deactivate the vg.
http://docs.hp.com/en/B3921-90010/vgchange.1M.html
Check:
# vgdisplay -v vg01 | grep 'LV Name'
# DO : fuser -u to each LV , and see if they are in use. Also check if ther is any mounted LV.
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 01:52 PM
тАО10-06-2009 01:52 PM
Re: force deactivate volume group
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 02:35 PM
тАО10-06-2009 02:35 PM
Re: force deactivate volume group
Try this one, (put in a file and execute) to find if any process still there on vg01:
################
for i in `vgdisplay -v vg01| grep 'LV Name' | awk '{print $3}'`
do
echo "checking processes for LV = $i"
fuser -u $i
fuser -u `echo $i | sed 's/lvol/rlvol'`
echo "--------------------------------"
done
################
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 03:20 PM
тАО10-06-2009 03:20 PM
Re: force deactivate volume group
- What is the output of # vgdisplay vg12
-Is it under ServiceGuard? If yes did you tried to halt the package gracefully. Else, do have complicated BCV program that use the vg (activate / deactivates automatically during bcv script runs) , what other application use this vg/fs/lvol/raw lvols.
Do you see anything in lsof output , any lv from that vg. # lsof > lsof.txt
- If you find any process associated with that vg , kill it , and try to deactivate the vg using:# vgchange -a n vg12
Finally remember if nothing works , finally you have to reboot the box to clear this , and it will be fine . Before reboot (you can keep some log for future analysis if you want like: #crashinfo -v -ofiles or a kernel trace , sometime HP recomends a system crashdump.
After reboot check again with actiavting and deactivating the vg.
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 11:52 PM
тАО10-06-2009 11:52 PM
Re: force deactivate volume group
just want to ask simple question ,did you get the same error when you try re-activate: ?
vgchange -a y /dev/vg01
if yes, you have 2 choice :
1-Raj suggestion (it is good and easy ,recommended)
2-Following: (not easy, no comment)
vgexport -m /vgxx.map -p -v vgxx
cat /vgxx.map
(to see volumes in it)
vgexport -m /vgxx.mapp vg01
cd dev
mkdir vgxx
cd vg01
mknod group c 64 0x010000
vgimport -m /vgxx.mapp vgxx
vgdisplay vgxx
vgdisplay -v /dev/vgxx
vgchange -a n vgxx
vgdisplay -v /dev/vgxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2009 12:34 AM
тАО10-07-2009 12:34 AM
Re: force deactivate volume group
new 11.31 version ( update 5 ) has a nice future. you can force vg deactivation.
Hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2009 10:57 AM
тАО10-07-2009 10:57 AM
Re: force deactivate volume group
without deactivating the vg, vgexport is not going to work.!
You mentioned: vgexport -m /vgxx.mapp vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 01:18 AM
тАО10-08-2009 01:18 AM
Re: force deactivate volume group
yes, first take it consideration that need to de-activate VG before go for vgexport,
thanks Raj D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2009 03:52 PM
тАО10-08-2009 03:52 PM
Re: force deactivate volume group
Navin ,
Pls review the thread , and asign points & close if done.
Cheers,
Raj.