- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help with VGIMPORT problems
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
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
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-18-2006 03:04 AM
тАО08-18-2006 03:04 AM
I have the VG data on Clariion. Anticipating the rebuilt, I did strings on the /etc/lvmtab and saved the output, which I used for the mapfile. Now when I try to vgimport the volume group, I am getting the following message, what could be wrong?
#:cat /tmp/mapfile
/dev/vgbackup_indexes
/dev/dsk/c11t0d0
/dev/dsk/c11t0d1
/dev/dsk/c13t0d0
/dev/dsk/c13t0d1
#:vgimport -p -v -f /tmp/mapfile /dev/vgbackup_indexes
Beginning the import process on Volume Group "/dev/vgbackup_indexes".
vgimport: Physical volume "/dev/vgbackup_indexes" is not a block special file.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 03:09 AM
тАО08-18-2006 03:09 AM
SolutionThe error is self-explanatory. The '/dev/vgbackup_indexes' is the name of your volume group, *not* a physical volume path.
You did *not* create a mapfile. You are using the "infile" syntax of 'vgimport' where you specify your pv_paths in a file.
A mapfile is a file that relates the logical volume numbers to non-standard logical volume names.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 03:09 AM
тАО08-18-2006 03:09 AM
Re: Help with VGIMPORT problems
you may confuse the option of vgimport
If you export the vg map info with -s option
you can import with "vgimport -v -s -m mapfile vgs
But you didn't use -s option on vgexport
you need to input the device name like this
vgimport -v -m mapfile
Regards
nanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 03:10 AM
тАО08-18-2006 03:10 AM
Re: Help with VGIMPORT problems
mkdir /dev/vgbackup_indexes
mknod /dev/vgbackup_indexes/group c 64 0xNN0000
Make sure the minor number (NN) is unique.
then run your vgimport and vgchange -a y
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 03:10 AM
тАО08-18-2006 03:10 AM
Re: Help with VGIMPORT problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 04:15 AM
тАО08-18-2006 04:15 AM
Re: Help with VGIMPORT problems
James Ferguson,
Could you please post an example of a valid mapfile?
Pete Randall,
You are right. I forgot to say that I did create the device files with mknod. It still doesn't work, and I realized why. I am not seeing the right disks. The disks which were in the VG are not currently visible with ioscan, so I am working on that. Once I have them visible, what should my mapfile look like? Is what I have good, other than having the wrong disk names in it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 04:20 AM
тАО08-18-2006 04:20 AM
Re: Help with VGIMPORT problems
A mapfile would look like:
1 lvol1
2 lvol2
3 mylvol
Actually, anytime you make an Ignite make_tape_recovery, you will find mapfiles for your volume groups in the '/etc/lvmconf' directory. For example:
/etc/lvmconf/vg00.mapfile
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 04:26 AM
тАО08-18-2006 04:26 AM
Re: Help with VGIMPORT problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 04:37 AM
тАО08-18-2006 04:37 AM
Re: Help with VGIMPORT problems
There are 2 ways for vgimport to know which volumes to import.
The first) You supply the list of physical volumes on the command line, along with a mapfile name to vgimport knows how to map the LVs. It would be something like 'vgimport -m mapfile -v vg?? /dev/dsk/c?t?d? /dev/dsk/c?t?d? ...' where you list all disks that are part of the VG.
The second) When you do a vgexport to create the mapfile (which is how a mapfile SHOULD be created) you specify a '-s' option to vgexport. This will write a VGID string in the mapfile (for example 'vgexport -p -v -s -m mapfile vg00').
Then when you vgimport, you specify a '-s' and vgimport will look at ALL disks on the system and import those that have a matching VGID. This is nice because you don't have to explicitly name ALL devices on the vgimport line. A vgimport command with this option would look like: 'vgimport -v -s -m mapfile vg??'
Here is what a mapfile looks like that was created with:
# vgexport -p -v -s -m vg00.map vg00
# cat vg00.map
VGID 77ccbeb7418937e4
1 lvol1
2 lvol2
3 lvol3
4 lvol4
5 lvol5
6 lvol6
7 lvol7
8 lvol8
This is my preferred method of createing mapfiles for vg export and import.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2006 06:43 AM
тАО08-18-2006 06:43 AM