- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Vgimport probs
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
тАО04-03-2004 01:43 PM
тАО04-03-2004 01:43 PM
Re: Vgimport probs
Yes, one Symmetrix box, with disks in different hosts that are not shared. System A using the STD (M1/M2) disks, and system B BCVs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2004 04:26 PM
тАО04-03-2004 04:26 PM
Re: Vgimport probs
# pvdisplay /dev/dsk/c9t0d1
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c9t0d1" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c9t0d1".
# pvdisplay /dev/dsk/c11t0d2
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c11t0d2" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c11t0d2".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2004 05:02 PM
тАО04-03-2004 05:02 PM
Re: Vgimport probs
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=102080
except in my case the disks are pvcreate'd and vgimport fails with the above msgs.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2004 06:09 PM
тАО04-03-2004 06:09 PM
Re: Vgimport probs
If that is successful, start the whole process over using the sequence of commands that Michael outlined. Be sure to use the -s option on the vgexport and vgimport as it will make the process easier as you won't need to worry about the paths.
I don't have access to man pages right now so I'm not sure of the syntax on the vgcfgrestore, but as with any command use it carefully. I'll try to check back in when I get up tomorrow, hopefully by then someone will have been able to add to this.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2004 07:59 PM
тАО04-03-2004 07:59 PM
Re: Vgimport probs
If a backup of your LVM configuration exists on HostA in /etc/lvmconf do a vgcfgrestore, this will get you back to the starting point and should retain your data providing you haven't written to the disk elsewhere (From HostA):
# vgcfgrestore -n /dev/vgdata21 /dev/dsk/c9t0d1 /dev/dsk/c11t0d2
# mkdir /dev/vgdata21
# mknod /dev/vgdata21/group c 64 0x150000 (hex for 21)
# vgimport /dev/vgdata21 /dev/dsk/c9t0d1 /dev/dsk/c11t0d2
# vgchange -a y /dev/vgdata21
Mount your filesystem, and you should be back in business on HostA.
Then start over and don't pvcreate anything this time (from HostA):
- Unmount your directory.
- Deactivate your volume group.
- vgexport your volume group using -s
# vgexport -v -s -m /tmp/vgdata21.map /dev/vgdata21
- Copy your map file to the 2nd system.
From HostB:
# mkdir /dev/vgdata21
# mknod /dev/vgdata21/group c 64 0x150000
# vgimport -v -s -m /tmp/vgdata21.map /dev/vgdata21
# vgchange -a y /dev/vgdata21
Please check my syntax before executing (5am). I'm going to see if I can sneak back into bed without getting yelled at now.
Good luck... Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2004 08:28 PM
тАО04-03-2004 08:28 PM
Re: Vgimport probs
I'll have to give you 10 points on effort alone. :)
Please let me try to explain it one more time. HostA has STD disks which hostB (with BCVs) does not see, and vice-versa.
STD-to-BCV mapping has been done. STD disks in HostA will eventually get TF sync'ed into BCVs in HostB on a daily basis as backup.
I have vgexported HostA's VG :
# vgexport -m vgdata01.mapfile -p -v /dev/vgdata01
The "-s" option was not used as the disks are not shared between hosts.
At this point, have done a full TF sync from STD_hostA to BCV_hostB (as Michael pointed out).
On hostB, have done the mknod etc ensuring the minor number is unique. I had also pvcreate'd both the disks which are supposed to be vgimport'ed into.
And I get the errors when vgimport'ing as above.
Assuming that on hostB these are new BCVs (disks), so a pvcreate shouldn't hurt? I'm stumped.
Help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2004 08:48 PM
тАО04-03-2004 08:48 PM
Re: Vgimport probs
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x??0000
# vgcreate vg01 /dev/dsk/... /dev/dsk/...
# lvcreate ...
# newfs ....
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 01:06 PM
тАО04-04-2004 01:06 PM
Re: Vgimport probs
vgexport/vgimport was done previously on separate hosts.
As Michael suggested :
1. Full establish for STD -> BCV
2. Split
3. vgexport from hostA
4. copy map files to hostB
5. mkdir vg, mknod
6. vgimport map files in hostB
And this is where it fails. If (6) succeeds then the vgimport'ed vg in hostB would have the filesystem/lv structure of hostA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 01:24 PM
тАО04-04-2004 01:24 PM
SolutionThis is how:
1. Full establish for STD -> BCV
2. Split
3. vgexport to create map file from hostA
4. copy map files to hostB
5. mkdir vg, mknod
6. vgchgid for each device in a string (man page shows how)
7. vgimport map files in hostB
fsck/mount as necessary. Without running the vgchgid you will not be able to run the vgimport successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 05:33 PM
тАО04-04-2004 05:33 PM
Re: Vgimport probs
Michael, found out that if we don't vgchgid we will get this warning in vgimport :
vgimport -p -v -m vgdata02.mapfile vgdata32 /dev/dsk/c9t2d0
Beginning the import process on Volume Group "vgdata32".
vgimport: Warning: Volume Group belongs to different CPU ID.
...
...
But it's ok. Thanks everyone, esp Michael and Jim.
- « Previous
-
- 1
- 2
- Next »