- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgexport / vgimport
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
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
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
тАО12-07-2005 08:34 PM
тАО12-07-2005 08:34 PM
System A:
vgexport -p -v -m vg02.map /dev/vg02
System B:
Create new lun
pvcreate /dev/dsk/c26t0d0
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgimport -v -m vg02.map /dev/vg02 /dev/dsk/c26t0d0
It fails w/the following:
Physical Volume "/dev/dsk/c26t0d0" is not part of a Volume Group
I am simply trying to recreate the lvs on a different server.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 08:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 08:44 PM
тАО12-07-2005 08:44 PM
Re: vgexport / vgimport
1. When sharing use
vgexport -p -s -v -m, which created a changeid for in the map file.
2. No need to create a PVcreate on the second system. As u have created for the LUN alreeady.
Hope this helps...007
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 09:20 PM
тАО12-07-2005 09:20 PM
Re: vgexport / vgimport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 01:12 AM
тАО12-09-2005 01:12 AM
Re: vgexport / vgimport
Good luck...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 03:48 AM
тАО12-09-2005 03:48 AM
Re: vgexport / vgimport
2. vgchange -a n /dev/vg02
3. vgexport -v -m vg02.map /dev/vg02
remove disk. insert in new system.
B. do a ioscan -fnC disk to make sure you
see the disk and the device address
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgimport -v -m vg02.map /dev/dsk/c26t0d0
vgchange -a y /dev/vg02
If this is a SAN. You need to make sure the "LUN" is seen by the new system. Your error message suggests to me that you did not have the correct device address. Or the PVCREATE might have wipe out your lv data.
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 04:06 AM
тАО12-09-2005 04:06 AM
Re: vgexport / vgimport
A:
Server A will maitain all luns
B:
On server B I am creating new luns so I have to pvcreate.
Basically on server A I have many vgs I want to recreate on server B. I didn't want to go through the laborious task of vgcreate and lvcreate 100s of logical volumes but it appears I don't have a choice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 04:09 AM
тАО12-09-2005 04:09 AM
Re: vgexport / vgimport
If you want both systems to have the same "look and feel" - then you will have to recreate the vg's/lv's/file systems from scratch...
vgexport/vgimport is for when you share disks between servers - like in a ServiceGuard environment - or say you want your backup server to mount the file systems locally...
That means both system need to "see" the exact same disks -not new ones.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 04:21 AM
тАО12-09-2005 04:21 AM
Re: vgexport / vgimport
You're right; you don't have a choice. However, this task is something that's easily scriptable.
1. On your source system, create a lvs table:
for vg in ${list -o vgs}
do
for lv in $(vgdisplay -v ${vg} | grep -i 'lv name' | awk '{print $NF}')
do
size=$(lvdisplay ${lv} | grep -i '^lv size' | awk '{print $NF}')
printf "%-30s %5s\n" ${lv} ${size}
done
done > lvs
2. scp that lvs table over to the target system.
3. Create your volume groups as normal and sized to match the soruce
4. Create the LVs
cat lvs | while read lv size
do
vg=${lv%/*}; vg=${vg##*/}
lvcreate -L ${size} -n ${lv##*/} ${vg}
[[ ${size} -gt 2048 ]] && args="-o largefiles" || args=""
newfs -F vxfs ${args} ${lv%/*}/r${lv##*/}
done
With a little bit of work, left as an exercise for the reader, you can have it create the vgs for you, automatically mount the filesystems appropriately, and update the /etc/fstab as appropriatee...
As you can tell, I've done this a time or two...
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 05:14 AM
тАО12-09-2005 05:14 AM