- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgexport vgimport for Install of HP11 from 10.20
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
- 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
02-25-2002 01:17 PM
02-25-2002 01:17 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:26 PM
02-25-2002 01:26 PM
SolutionI know this doesn't answer your '-s' option question, just giving and alternative.
nancy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:34 PM
02-25-2002 01:34 PM
Re: vgexport vgimport for Install of HP11 from 10.20
The '-s' option will allow the discovery of disks with the same VGID during the 'vgimport' process and is perfectly appropriate for the likes of OS cold installations.
The '-s' option of the 'vgexport'/'vgimport'. prevents the removal of VG name from /etc/lvmtab and the removal of the associated device files from the exporting system. Since you are going to cold-install anyway, this is not a problem.
Another way to handle 'vgimport' device files (which often change during cold installation) is to do something like this:
# vgchange -a n /dev/vg02
# vgexport -m /tmp/vg02.mapfile -v -f /tmp/vg02.oldpaths /dev/vg02
...then...
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport -m /tmp/vg02.mapfile -v -f /tmp/vg02.newpaths /dev/vg02
# vgchange -a y /dev/vg02
You can capture the "oldpaths" when you export the affected volume groups, edit the device declarations to reflect the new devices, name the editted file "newpaths" and import the volume group.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:37 PM
02-25-2002 01:37 PM
Re: vgexport vgimport for Install of HP11 from 10.20
What the -s does is adding a line in the map file with the volume group id (VGID) . when you import using the -s option the system with read the header on each disk to be able to match them with the VGID define in the map file.
The only time I won recommend to do it with the -s option is if you are using an EMC with powerpath or with the BCV split, the same thing for the XP with business copy.
The other problem you may encounter is if you have a lot of luns (>500) it could take a lot of time for the import because the system will have to read all these luns.
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:38 PM
02-25-2002 01:38 PM
Re: vgexport vgimport for Install of HP11 from 10.20
I migrated an L class server last week doing
this:
Build new server.
Backup old server.
Export existing volume groups on old server
vgexport -m vg01.mapfile -s -p -v /dev/vg01
continue for each group. Copy mafiles to new
server.
Unplug disks from old server
Plug into new server, and switch on, creating
the new devices.
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -m vg01.mapfile -p -s -v /dev/vg01
if no errors
vgimport -m vg01.mapfile -s -v /dev/vg01
and so on for each group. For this scenario
I see no problem using the -s option.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:53 PM
02-25-2002 01:53 PM
Re: vgexport vgimport for Install of HP11 from 10.20
vgchange -a n vg01
vgexport -m /tmp/vg01.map -v -s vg01
..(etc, more pairs of commands here)..
FTP map files to another server.. Save them! You need them!
After install and bootup, ftp the files back.
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -m /tmp/vg01.map -v -s -p vg01
I even wrote a perl script to create all the commands when we did our upgrade because we had some systems with a bunch of VGs. It's attached if you're curious.