- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Volume group import
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
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
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
09-24-2014 02:40 AM
09-24-2014 02:40 AM
Volume group import
Hello,
We have an old hp-ux server which decided to fail and will not boot anymore, I had a check and it appears that the root drive is duff and there was no mirror. This particular server had an HP disk array connected to it so my remote hands person disconnected the array from the failed server and re-connected it to a working server. I have run an ioscan -funC disk and can see it so I'm wondering if there is a way to re-import the volume groups and logical volumes that are on there from the old server to the new server?
Regards
Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 03:00 AM
09-24-2014 03:00 AM
Re: Volume group import
If the disks are intact, you should be able to recover the data by following the below steps:
# vgimport vgxxx /dev/disk/diskxxx
# vgchange -a y vgxxx
# vgdisplay -v vgxxx
# mkdir /testROOT
# mount /dev/vgxxx/lvol3 /testROOT
You may have to run fsck before mounting the LVs.
Hope this works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 03:03 AM
09-24-2014 03:03 AM
Re: Volume group import
Thanks for the quick reply :-)
How can I find out which disks were being used in the original volume group on the failed server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 08:48 AM
09-24-2014 08:48 AM
Re: Volume group import
There is no real easy way to determine which disks were a part of which VG on the old server.
A very tedious way is to use the 'xd' command and read the headers of each disk to find the VG id number of the VG that the disk was in. Each disk that was in the same VG will have the same VG id number recorded on the header.
The command to run is:
# xd -An -j8200 -N16 -tx <disk device file>
For example:
# xd -An -j8200 -N16 -tx /dev/rdsk/c1t2d0
69ea86f7 503542b4 69ea86f7 503543e0
The VG id number is the 4th field in the output. So in this case the VG id is 503543e0. If I were to run this against numerous disks, and found another with the same VG id, then it is very likely that they are part of the same VG.
Once you know which disks are have the same VG id, you can then vgimport that set of disks into a VG on the current system.
If this is an older system (ie, running HP-UX 11.23 or earlier) then you will need to use the /dev/dsk and /dev/rdsk rather than the /dev/disk that the person above mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2014 07:22 AM
09-26-2014 07:22 AM
Re: Volume group import
# vgscan -p -v
this scans the disks in preview mode, no changes will be done.
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!
- Tags:
- vgscan