- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgexport, vgimport, remapping instance numbers
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
07-17-2003 05:52 AM
07-17-2003 05:52 AM
vgexport, vgimport, remapping instance numbers
umount vg01 lvols
vgchange -a n vg01
vgexport -v -m vg01.mapfile vg01
shutdown
move cables
startup
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x01000
vgimport -v -m vg01.mapfile /dev/vg01 /dev/dsk/c1t8d0...rest of block devices
vgchange -a y /dev/vg01
mount -a
Is this correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 05:55 AM
07-17-2003 05:55 AM
Re: vgexport, vgimport, remapping instance numbers
Looks good to me except;
1. your mknod command should have 4 zeroes after the 1; 0x010000
2. after you move the scsi cards the /dev/dsk entries may/will change so you will need to identify the new ones before you do the vgimport.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 06:01 AM
07-17-2003 06:01 AM
Re: vgexport, vgimport, remapping instance numbers
You can also use the -s option to eliminate the need to have to list each device on the import:
vgexport -s -v -m vg01.mapfile vg01
vgimport -s -v -m vg01.mapfile /dev/vg01
That should do it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 06:01 AM
07-17-2003 06:01 AM
Re: vgexport, vgimport, remapping instance numbers
in addition to Stefan's hint: insted of doing a
vgexport -v -m vg01.map vg01
use a
vgexport -s -m vg01.map vg01
This ways the VGID will be recorded in the mapfile, and the search for the disks of the vg will be done automatically by the S.O., and you won't have to mess up with the identification work.
For the import
simply substitute the
vgimport -v -m vg01.map vg01
with
vgimport -v -s -m vg01.map vg01
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 06:02 AM
07-17-2003 06:02 AM
Re: vgexport, vgimport, remapping instance numbers
The only other thing that may make things easier is to use
vgexport -m
& then blow it away with
vgexport vg01.
On import side
vgimport -m
The -s option means you do not need to list the disks. I, however, prefer the way you are doing it so that the right alternations of disks can be specified.
The only other thing
1 - minor number 0x010000
2 - belt & braces, vgcfgbackup vg01 at the end(to make sure the VG has its config stored)
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 06:03 AM
07-17-2003 06:03 AM
Re: vgexport, vgimport, remapping instance numbers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 06:24 AM
07-17-2003 06:24 AM
Re: vgexport, vgimport, remapping instance numbers
In lieu of using the '-s' option to collect your disks by VGID during the 'vgimpoirt', you can 'vgexport' using the '-f outfile' argument. This records the device paths in teh 'outfile'. You can then edit this, if/when you know the new paths, and 'vgimport' with the editted file as '-f infile' of 'vgimport.
The advantage to this method is that you can arrange your primary and alternate links immeditately on import. This negates the need to 'vgreduce'/'vgextend' to swap secondary and primary links to load balance I/O accross disk controllers. Remember that a primary pv_link for LVM is merely the first path to a particular device in 'etc/lvmtab'.
Regards!
...JRF...