- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport/vgexport with SAN disks
Operating System - HP-UX
1819915
Members
2509
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО11-19-2006 07:13 PM
тАО11-19-2006 07:13 PM
Please help me to move 1VG, consist of 2PVs /based on SAN storage/ between 2 systems
A and B. I know, that I need to vgexport/vgimport this VG between these systems. But I will see PVs on different hardware addresses on both systems. How
I could handle with this?
A and B. I know, that I need to vgexport/vgimport this VG between these systems. But I will see PVs on different hardware addresses on both systems. How
I could handle with this?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2006 08:02 PM
тАО11-19-2006 08:02 PM
Solution
Hi, if those two servers connect to storage box via the same fibaric switch. Them the only change for those device files is "c" number, "t" number and "d" number will remain the same.
1. Before you do the vgexport on A run vgdisplay -v vg## > vg##.out and transfer vg##.out to B. You may also run "strings /etc/lvmtab" and copy the information for the VG you want to transfer, past to a file on B.
2. run "vgexport -p -m vg##.map vg##" on A and transfer vg##.map to B
3. "umount" all file systems from that VG on A. If it is possible assign the LUNs to B before remove them from A. run "ioscan -fnCdisk" and "insf -e" on B. Compare the newly created device files with the ones in vg##.out and make sure you have all device files with the same "t" and "d" numbers on B
4. run "vgchange -a n /dev/vg##" and "vgexport /dev/vg##" on A.
5. run "mkdir /dev/vg##" and "mknod /dev/vg##/group c 64 0x##0000" on B
6. run "vgimport -m vg##.map /dev/vg## /dev/dsk/c#t#d# /dev/c#t#d# ..." where c#t#d# are device files generated on B with the same "t#d#" as on A but different "c#".
7. if you have problem to mount all file systems after "vgchange -a y" on B, you can run fsck for each lvol and try to mount them again.
Yang
1. Before you do the vgexport on A run vgdisplay -v vg## > vg##.out and transfer vg##.out to B. You may also run "strings /etc/lvmtab" and copy the information for the VG you want to transfer, past to a file on B.
2. run "vgexport -p -m vg##.map vg##" on A and transfer vg##.map to B
3. "umount" all file systems from that VG on A. If it is possible assign the LUNs to B before remove them from A. run "ioscan -fnCdisk" and "insf -e" on B. Compare the newly created device files with the ones in vg##.out and make sure you have all device files with the same "t" and "d" numbers on B
4. run "vgchange -a n /dev/vg##" and "vgexport /dev/vg##" on A.
5. run "mkdir /dev/vg##" and "mknod /dev/vg##/group c 64 0x##0000" on B
6. run "vgimport -m vg##.map /dev/vg## /dev/dsk/c#t#d# /dev/c#t#d# ..." where c#t#d# are device files generated on B with the same "t#d#" as on A but different "c#".
7. if you have problem to mount all file systems after "vgchange -a y" on B, you can run fsck for each lvol and try to mount them again.
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2006 08:27 PM
тАО11-19-2006 08:27 PM
Re: vgimport/vgexport with SAN disks
You can customize your device files with ioinit.
For more info see
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=983737
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=575469
For more info see
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=983737
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=575469
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2006 08:30 PM
тАО11-19-2006 08:30 PM
Re: vgimport/vgexport with SAN disks
Hi,
-s option of the vgimport/vgexport commands can do the trick.
1. Run
vgexport -v -s -p -m vgname.map vgname
on host A.
This will genarate a map file which contains the "Volume Group Identifier"
on the first line.
2. Umount/ un present the virtual disks from A
3. Present The Virtual disks to B
4. Copy the map file from A to B
5. Complete preliminary vg creation tasks
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x0?0000
6. Run
vgimport -v -s -m vgname.map vgname
Since the map file contains the "Volume Group Identifier" the vgimport command will search all disk devices and import the volume group on the disks which have the same identifier.
hth.
-s option of the vgimport/vgexport commands can do the trick.
1. Run
vgexport -v -s -p -m vgname.map vgname
on host A.
This will genarate a map file which contains the "Volume Group Identifier"
on the first line.
2. Umount/ un present the virtual disks from A
3. Present The Virtual disks to B
4. Copy the map file from A to B
5. Complete preliminary vg creation tasks
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x0?0000
6. Run
vgimport -v -s -m vgname.map vgname
Since the map file contains the "Volume Group Identifier" the vgimport command will search all disk devices and import the volume group on the disks which have the same identifier.
hth.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP