- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgimport -m filename
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
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
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-01-2010 03:52 AM
03-01-2010 03:52 AM
vgimport -m filename
format of the file that is to be used for
importing a diskgroup with the -m option .
Im getting this error when I run vgimport
vgimport -m /tmp/mapRtRYWR -f /tmp/pathEMbuhC /dev/changehv
Physical volume "/dev/dsk/c5t0d6" has an unsupported LV
M disk layout.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 04:01 AM
03-01-2010 04:01 AM
Re: vgimport -m filename
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 04:04 AM
03-01-2010 04:04 AM
Re: vgimport -m filename
Are you trying to import LVM2.0/2.1 VG to hp-ux 11.23/earlier 11.31?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 04:51 AM
03-01-2010 04:51 AM
Re: vgimport -m filename
Export the Volume Group /dev/vg01 into mapfile vg01.mapfile:
#vgexport -m vg01.mapfile /dev/vg01
Import the Volume Group /dev/vg01 from mapfile vg01.mapfile:
#vgimport -m vg01.mapfile /dev/vg01
Check in /etc/lvmconf/ for the mapfile if you not exported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 04:58 AM
03-01-2010 04:58 AM
Re: vgimport -m filename
The mapfile (designated with the '-m' argument) is simply a list of the logical volumes and their minor numbers. It will look like:
1 lvolX
2 lvolY
...
The '-f infile' points to a file of physical paths for the volume group. Make sure only one path per line occurs.
All this said, you haven't specified the *volume group* name. You should have something like:
# vgimport -m /tmp/mapRtRYWR /dev/vg01 -f /tmp/pathEMbuhC
...where '/dev/vg01' may be what you meant for '/dev/changehv'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:11 AM
03-01-2010 05:11 AM
Re: vgimport -m filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:17 AM
03-01-2010 05:17 AM
Re: vgimport -m filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:23 AM
03-01-2010 05:23 AM
Re: vgimport -m filename
> Im using a 2.1 VG. Does the command line order matter I have specified /dev/changehv as the name of my vg.
No, your command was correct and I was wrong. The manpages do show:
# vgimport [-m mapfile] [-p] [-v] [-f infile] vg_name
I think turgay may be correct. What's your operating system (OS) release and from where (what OS) does the physical disk come?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:28 AM
03-01-2010 05:28 AM
Re: vgimport -m filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:35 AM
03-01-2010 05:35 AM
Re: vgimport -m filename
mkdir /dev/vgNN
mknod /dev/vgNN/group c64 0xNN0000
then vgimport.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:40 AM
03-01-2010 05:40 AM
Re: vgimport -m filename
On 11.31 (March 2008 or later) it is no longer necessary to create the volume group's 'group' file. This will be done automatically if it isn't present.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 05:42 AM
03-01-2010 05:42 AM
Re: vgimport -m filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 06:12 AM
03-01-2010 06:12 AM
Re: vgimport -m filename
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 06:22 AM
03-01-2010 06:22 AM
Re: vgimport -m filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 06:30 AM
03-01-2010 06:30 AM
Re: vgimport -m filename
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 11:20 AM
03-01-2010 11:20 AM
Re: vgimport -m filename
with vg 2.0 formats the file needs to have a
header "MAPFILE02" without which the
vgimport will fail with the error that I described above. Unfortunately this header is not
backward compatible with 1.0 diskgroups. So for applications that were built to work with
1.0 VGs this will not work.
The bigger problem is that before importing a diskgroup how does one know about the version
of a diskgroup from just the PV. If there is a way to detect this then it would life easier.
Any thoughts guys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 01:48 AM
03-02-2010 01:48 AM
Re: vgimport -m filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 02:18 AM
03-02-2010 02:18 AM
Re: vgimport -m filename
of a diskgroup from just the PV.
you could check it before exporing the VG
Vgdisplay
in your case , i guess you dont have the vg for creating the map file by vgexport.
so try import the vg without a mapfile
vgimport -f
note: You wont get the LV names that you defined on the VG as it LVs will be created with default naming convention like lvol1 ...lvoln.You can change it to your own by renaming the lv file
#deativate VG
mv /dev/vgtest/lvol1 /dev/vgtest/mylv
mv /dev/vgtest/rlvol1 /dev/vgtest/rmylv
how ever the best way forward is suggested by Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 02:46 AM
03-02-2010 02:46 AM
Re: vgimport -m filename
that uses the old file format. This change will PROHIBIT users from upgrading our app.
One would have expected the new file format to be compatible with 1.0 VGs for backward compatibility's sake. Can I file a Bug for making the new file format compatible with 1.0 Diskgroups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 02:51 AM
03-02-2010 02:51 AM
Re: vgimport -m filename
Well, you can file an enhancement and explain why you need it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 06:32 AM
03-02-2010 06:32 AM
Re: vgimport -m filename
#vgimport -v -m
Otherwise if you had taken map file using vgexport -v -s -m
then you can run following command...
vgimport -v -s -m
hope it will help