- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgexport Device busy
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
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
тАО01-04-2008 11:25 AM
тАО01-04-2008 11:25 AM
I am running N4000 server 11.0. I try to vgexport a vg but keep having "device busy" error.
vgexport -m /tmp/vg01.map -s -v /dev/vg01
Beginning the export process on Volume Group "/dev/vg01".
vgexport: Volume group "/dev/vg01" is still active.
vgexport: Couldn't export volume group "/dev/vg01".
my /dev/vg01 has
/dev/vg01/lvol1 as secondary swap
/dev/vg01/lvol2 mounted as /data1
/dev/vg01/lvol2 mounted as /data2
I unmounted /data1 and /data2 and run vgchange -a n /dev/vg01
vgchange: Couldn't deactivate volume group "/dev/vg01":
Device busy
I must vgexport this vg01 and vgimport it after the upgrade to 11i to avoid retore data from tape. I believe that I am having this problem because I have a swap configured within this vg.
Please help. Any input is greatly appreciated.
Tuan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 11:33 AM
тАО01-04-2008 11:33 AM
Re: vgexport Device busy
Thank you for your supper quick response.
So, you are saying that I shoud remove the swap entry in /etc/fstab, then deactivate the vg01, then vgexport?
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 11:39 AM
тАО01-04-2008 11:39 AM
Re: vgexport Device busy
> So, you are saying that I shoud remove the swap entry in /etc/fstab, then deactivate the vg01, then vgexport?
Not exactly. You need to remove the swap entry in '/etc/fstab', then REBOOT. Following the reboot the volume group will be activated as always, so then deactivate it with 'vgchange' and then, finally, 'vgexport' it.
You must reboot to "deactivate" the swap. Rather, you must reboot and NOT activate the swap.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 11:54 AM
тАО01-04-2008 11:54 AM
Re: vgexport Device busy
Thank you for the clarification. I will try this tomorrow. Say I have the map file exported, then I will cold install the OS, patch, etc... then vgimport this map file, then edit /etc/fstab, then reboot. The secondary swap and /data1 and /data2 should remain intact, right?
Thank you James
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 12:06 PM
тАО01-04-2008 12:06 PM
Re: vgexport Device busy
> Say I have the map file exported, then I will cold install the OS, patch, etc... then vgimport this map file, then edit /etc/fstab, then reboot. The secondary swap and /data1 and /data2 should remain intact, right?
Yes. Your mapfile will contain the VGID of the volume group because you specified the '-s' switch. Hence, when you 'vgimport' using the mapfile all physical devices with a matching VGID will be imported and recorded in your '/etc/lvmtab'. If you have multiple paths (alternate links) you will want to review the primary versus secondary link relationships and 'vgreduce'/'vgextend' some paths in order to best balance the paths for high-availablity. Other than that, your logical volumes and any data they contain will be intact.
When you copy your original '/etc/fstab' into your upgraded configuration, remember to uncomment your secondary swap device and reboot to activate that swap.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 12:13 PM
тАО01-04-2008 12:13 PM
Re: vgexport Device busy
Perfect.
Again, I really appreciate your help. I can't thank you enough.
Thank you very much.
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2008 06:32 AM
тАО01-05-2008 06:32 AM
Re: vgexport Device busy
I just realized that you are apparently cold-installing onto your existing hardware. If that is the case, you don't need to deactivate your non-vg00 volume groups as discussed. Simply do:
# vgexport -m /tmp/vg01.map -s -p -v /dev/vg01
The '-p' will generate the requisite mapfile without requiring you to deactivate the volume group, and the export will not be performed. That's fine if you are cold-installing. All you want is the mapfile with the VGID information within to use AFTER you overwrite your existing vg00 during the cold-install.
Regards!
...JRF...