- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport with same name
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
тАО03-20-2003 12:25 PM
тАО03-20-2003 12:25 PM
I have a machine that has gone belly up. It had two disks in it vg01 and vg02. I need to get the data off these disks.
I have another machine, but it has the same volume groups on it (vg01 and vg02). I have not been able to export the disks, because the machine went belly up. How do I import the volume groups manually on to this second machine?
I am guessing something along the lines of creating a directory /dev/vgnew and creating the /dev/vgnew/group node but then what do I do?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 12:30 PM
тАО03-20-2003 12:30 PM
Re: vgimport with same name
Take a look at next question and answer made A. Clay Stephenson
http://bizforums.itrc.hp.com/cm/QuestionAnswer/0,,0xd1480fe6d0f7d61190050090279cd0f9,00.html
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 12:31 PM
тАО03-20-2003 12:31 PM
Re: vgimport with same name
From there you can just do:
# vgimport /dev/vgnew /dev/dsk/c?t?d?
Do this for both disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 12:33 PM
тАО03-20-2003 12:33 PM
SolutionUse the disks in the command line. For ex., if you know that c0t0d0 and c0t0d1 correspond to vg01, then you would do the following.
#mkdir /dev/vgnew
#mknod /dev/vgnew/group c 64 0x0?0000
#vgimport -v /dev/vgnew /dev/dsk/c0t0d0 /dev/dsk/c0t0d1
#vgchange -a y vgnew
This will create lvols in /dev/vgnew with default names like lvol1, lvol2 etc., By mounting each logical volume and looking at the contents, you should be able to find out the mounted directories.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 12:33 PM
тАО03-20-2003 12:33 PM
Re: vgimport with same name
# vgimport -v /dev/myvg1 /dev/dsk/c0t6d0 /dev/dsk/c2t6d0
Once imported, you can activate the group and then mount it.
# vgchange -a y /dev/myvg1
# mount /dev/myvg1 /mymountpoint1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 12:41 PM
тАО03-20-2003 12:41 PM
Re: vgimport with same name
Physically move the disks from the dead machine to the viable one. Then do:
# mkdir /dev/vgXY
# mknod /dev/vgXY/group c 64 0xXY0000
# vgimport m /tmp/vgXY.mapfile vgXY
# vgchange ???a y vgXY
For your mapfile, make it look like this:
1 lvol1
2 lvol2
3 lvol3
....
Once the vgimport is done, you should be able to mount filesystems and extract data.
Regards!
...JRF...
...where 'XY' is a unique number of your choice.
# vgimport ???s ???m /jrfcoldvault/vgXY.mapfile vgXY
# vgchange ???a y vgXY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 12:46 PM
тАО03-20-2003 12:46 PM
Re: vgimport with same name
Sorry, the previous post got fat-fingered):
# mkdir /dev/vgXY
# mknod /dev/vgXY/group c 64 0xXY0000
# vgimport -m /tmp/vgXY.mapfile vgXY /dev/dsk/cXtYdZ
# vgchange ???a y vgXY
For your mapfile, make it look like this:
1 lvol1
2 lvol2
3 lvol3
....
...the logical volume names don't matter. In the above, "XY" is any unique number of your choice. Once the vgimport is done, you should be able to mount filesystems and extract data.
Regards!
...JRF...