- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- recover the VGID
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
Forums
Discussions
Discussions
Forums
Discussions
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
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
08-07-2006 05:11 AM
08-07-2006 05:11 AM
Multiple steps here so let me list them
We are swapping from XP to EMC disks. On system A I was able to activate a VG, vgexport it out with the -s option to retain the VGID, copy the map file over to system B nad vgimport. All was good for this initial VG.
On the next VG, I exported the VG out but forgot the -s option to get the VGID. Now I cannot vgimport the VG back into the original system. I am getting the foillowing error:
How to fix?
vgimport -m vgpkg1_new -p -v vgpkg1_new
Beginning the import process on Volume Group "vgpkg1_new".
vgimport: Unable to read the physical volume.root
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 05:19 AM
08-07-2006 05:19 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999129
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 05:19 AM
08-07-2006 05:19 AM
Re: recover the VGID
Suggestion:
Export it with the -m -p on the second node and then transfer the map file to the troublesome node and vgimport it.
Or have you already tried this?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 05:20 AM
08-07-2006 05:20 AM
Re: recover the VGID
Without the -s option, don't you have to give the physical path of the volumes? i.e.:
vgimport -v /dev/vg01 /dev/dsk/c0t1d0
/dev/dsk/c0t3d0
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 05:21 AM
08-07-2006 05:21 AM
Re: recover the VGID
echo 0x2010?2X|adb /dev/dsk/cXtYdZ|expand|tr -d " "|sed "s/2010:/VGID /"
Once you have that, you should be able to add the:
VGID whatever
to the beginning of your map file just as if you'd used the -s option.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 05:31 AM
08-07-2006 05:31 AM
Re: recover the VGID
I cannot vgexport from the other machine to get a map file from there. That VG is not in the lvmtab
I am vgscanning now to see if that will help by putting in the VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 05:42 AM
08-07-2006 05:42 AM
Re: recover the VGID
Or just loop through all of you disks. grab the unique VGIDS add them to the appropriate mapfiles with your favorite editor and vgimport with the map file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 06:07 AM
08-07-2006 06:07 AM
Re: recover the VGID
1. Obtain list of PVs in this VG
vgcfgrestore -l -n vgpkg1_new
2. Use one of the PVs (say /dev/dsk/c3t6d0) listed above, obtain its VGID
echo '0x2010?2X'|adb /dev/dsk/c3t6d0|tr -d ' '|awk -F: '{print "VGID "tolower($2)}'
3. Insert the output of line 2 to the top of the mapfile and re-import vgpkg1_new.
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 06:11 AM
08-07-2006 06:11 AM
Re: recover the VGID
have you checked doc id: 3100632244
in the Tech base?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 06:30 AM
08-07-2006 06:30 AM
Re: recover the VGID
It is very painful to identify and recover them.
Try out this way:
1. If you remember LUN serial number or identifier then find out what are new device names on EMC array.
2. Once you identify them then put them all in one file (one device name per line)
3. Run following script.
for i in `cat devices.txt`
do
vgimport -m vgname.map -s -v $i
done
This script will check them and may complain that it doesn't have a valid CPU identifier but which is ok.
Hope this one help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 06:44 AM
08-07-2006 06:44 AM
Re: recover the VGID
A mapfile is only for associated non-standard logical volume names with logical volume numbers, so its absence is not a "big deal". It is truly optional.
You can create a mapfile from scratch like:
1 lvol1
2 mylvol2
3 mylvol3
...
At at later time you can change the logical volume (name) associations if you wish by renaming the '/dev/vgNN/*' files associated with each logical volume and editing '/etc/fstab' appropriately.
As for the missing VGID for your 'vgimport' you can always use:
# vgscan -pv
...to *preview* what would be the creation of your '/etc/lvmtab' but *not* really update it. Doing this will examine the VGID of every disk on the system, and collect in the output the physical volumes comprising each volume group. From that output, you can build a *file* that specifies the physical members of your volume group. Then do:
# vgimport -m mapfile -f infile vg_name
...where the mapfile has been created (or omitted) as noted above; and the 'infile' is the list of physical devices deduced from the 'vgscan'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 01:28 AM
08-08-2006 01:28 AM
Re: recover the VGID
I thank all who responded! Each post was a valuble suggestion is assisting me to get back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 01:28 AM
08-08-2006 01:28 AM