- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgexport problem
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
тАО08-29-2005 04:14 AM
тАО08-29-2005 04:14 AM
After exporting my vg with a map file I am not able to find the vgid in the map file. Because of this I am not able to import vg again.
I used. I used the following command.
#vgexport -v -m /tmp/vg08.map vg06
After that when I try to import it again the following happens.
vgimport -m /tmp/vg08.map /dev/vg06
vgimport: Unable to read the physical volume.dev/vg06
Anything went wrong????????
Regards,
Syam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:17 AM
тАО08-29-2005 04:17 AM
Re: vgexport problem
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:18 AM
тАО08-29-2005 04:18 AM
Re: vgexport problem
mknod /dev/vg06/group c 64 0x060000
did you do that??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:19 AM
тАО08-29-2005 04:19 AM
Re: vgexport problem
mkdir /dev/vg06
mknod /dev/vg06/group c 64 0x060000
- then -
vgimport
vgchange
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:23 AM
тАО08-29-2005 04:23 AM
Re: vgexport problem
thanks for your prompt replys.
I have done all the basic things for importing. like creating group file etc. Only thing i didnt do here was using the -s option.
but in the man page it says
-s Sharable option, Series 800 only. When the -s option is specified, then the -p, -v, and -moptions must also be specified. A mapfile is created that can be used to create volume group entries on other systems in the high availability cluster (with the vgimport command).
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:24 AM
тАО08-29-2005 04:24 AM
Re: vgexport problem
yes :)
You didn't export the disk map, didn't export the volume group with -s and that's why vgimport doesn't know where to look for the vg's PV's.
use vgscan -vp to possibly find the vg's disks, and then give all of them as parameters for vgimport, like
vgimport -v -m /tmp/vg08.map /dev/vg06 /dev/dsk/c3t4d5 /dev/dsk/c3t4t6 [...]
Rgds,
florian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:26 AM
тАО08-29-2005 04:26 AM
Re: vgexport problem
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:29 AM
тАО08-29-2005 04:29 AM
Solutionfull examples:
vgexport -v -s -m /tmp/vg08.map /dev/vg08
vgimport -v -s -m /tmp/vg08.map /dev/vg06
or:
vgexport -v -m /tmp/vg08.map -f /tmp/vg08.disks /dev/vg08
vgimport -v -m /tmp/vg08.map -f /tmp/vg08.disks /dev/vg06
The problem without specifing either of these is that HP-UX doesn't know which disks the VG is to be found on.
-s will include the VGID in /tmp/vg08.map and -f /tmp/vg08.map will write all the disk hardware paths that belong to the vg into /tmp/vg08.map. (*not* the PVIDs)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:36 AM
тАО08-29-2005 04:36 AM
Re: vgexport problem
alternatively there's vg data backups in /etc/lvmconf/.
or You can simply recover an older /etc/lvmconf to /tmp and then read it using strings /tmp/lvmtab and pick vg08's old disks from there.
last option would be to recover the VGID's from the disks using hex editor (I will have to look it up, but it's a easy process in the end)
--NOTES--
- do supply all disks for the vgimport, definitely don't miss any.
- after vgimport worked, only do a vgchange -a r first, then re-count if all disks are in the vg, if not, stop right where You are.
(no deep soup yet :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2005 04:39 AM
тАО08-29-2005 04:39 AM
Re: vgexport problem
I have always specified the physical disks on the import. Never questioned it. How else would the vgimport know what to do.
vgexport -m my.map /dev/vgxx
create new /dev/vgxx
mknod the control file
vgimport -m my.map /dev/vgxx /dev/dsk/cxtxd1 /dev/dsk/cxtxd2
Never a problem.
Tim