- 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
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
04-02-2004 03:52 PM
04-02-2004 03:52 PM
vgimport -m vgdata01.mapfile -v vgdata21 /dev/dsk/c9t0d1 /dev/dsk/c11t0d2
Beginning the import process on Volume Group "vgdata21".
Physical Volume "/dev/dsk/c9t0d1" is not part of a Volume Group
Physical Volume "/dev/dsk/c11t0d2" is not part of a Volume Group
I then pvcreate the disks above successfully :
# pvcreate -f /dev/rdsk/c9t0d1
Physical volume "/dev/rdsk/c9t0d1" has been successfully created.
# pvcreate -f /dev/rdsk/c11t0d2
Physical volume "/dev/rdsk/c11t0d2" has been successfully created.
But still get the above errors when vgimporting. pvdisplay fails as well :
# 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".
/etc/lvmtab is clean. Diskinfo shows the disk ok :
# diskinfo /dev/rdsk/c9t0d1
SCSI describe of /dev/rdsk/c9t0d1:
vendor: EMC
product id: SYMMETRIX
type: direct access
size: 35354880 Kbytes
bytes per sector: 512
# diskinfo /dev/rdsk/c11t0d2
SCSI describe of /dev/rdsk/c11t0d2:
vendor: EMC
product id: SYMMETRIX
type: direct access
size: 35354880 Kbytes
bytes per sector: 512
How would I vgimport the vg properly? Would appreciate any advice. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 04:24 PM
04-02-2004 04:24 PM
Re: Vgimport probs
e.g
mkdir /dev/myvg
mknod /dev/myvg/group c 64 0x020000
vgimport -v -m myvg.mapfile -p /dev/myvg (always run the preview option first)
Are you sure that these two LUN's are part of your volume group? What was your procedure on having system B see the disks from system A ?
There is never any need to run 'pvcreate' when importing. Why did you run 'pvcreate -f' ? 'pvcreate -f' bascially clobbers any LVM related information on your disk.
I am afraid if have picked the correct LUN's you have clobbered your disks ..... Time to get your backups out. You did create backups right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 04:34 PM
04-02-2004 04:34 PM
Re: Vgimport probs
The only thing I would add going forward is possibly using the -s option when you do the vgexport as it will add the PVID to the mapfile. That way when you are going to vgimport, you don't need to specify the disk paths.
I had a question somewhat similar to this a while ago and got some great responses that you may want to read through:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=191717
That thread proved very helpful.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 05:46 PM
04-02-2004 05:46 PM
Re: Vgimport probs
You say that you have done pvcreate-- Why?
You don't need to do pvcreate if you want to do vgimport.
Now in this situation you say that /etc/lvmtab is empty--So,do
#vgscan -v
This will create a new lvmtab file for you.
Don't Worry it may take some time also.
And this will tell you whether /dev/dsk/c9t0d1 and c11t0d2 are avialable for import or not.
If yes follow the
Michael's Instruction to import those Volume groups.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 09:10 PM
04-02-2004 09:10 PM
Re: Vgimport probs
Just create dir vgdata21 in /dev
# cd /dev
# mkdir vgdata21
# cd vgdata21
# mknod group c 64 0x0n0000
where n is a distinct no. for volume group
Then import the vg.
# vgimport -v vgdata21 /dev//dev/dsk/c9t0d1 /dev/dsk/c11t0d2
thats all
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 02:25 AM
04-03-2004 02:25 AM
Re: Vgimport probs
# vgimport -m /tmp/xx.map /dev/dsk/cxtxdx /dev/dsk/cxtxdx and so on.....
If its is a BCV copy of disks that you may sync it again and use -s option because this time same vgid information will be written on these disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 11:57 AM
04-03-2004 11:57 AM
Re: Vgimport probs
I have pvcreate'd the disks already. But this is the scenario.
system A and B do not share disks.
system A has EMC disks which need to be Timefinder sync'ed to system B 's BCV disks.
Hence the vg info of system A needs to be in duplicated into system B.
vgexport of system A was done :
# vgexport -p -v -m vgdata01.mapfile /dev/vgdata01
But when vgimport'ing into system B, I get the above msgs and can't vgimport.
Since the disks have been pvcreate'd, how would vgimport into system B then? It has different device disk files etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 12:31 PM
04-03-2004 12:31 PM
Re: Vgimport probs
# symmir -g mydevicegroup.rdf -full establish
# symmir -g mydevicegroup.rdf split
# vgexport -m mymapfile -v -p -s /dev/myvg
System B
copy the mapfile from system A
# ioscan -fn (to get the disks, if you have presented them correctly)
# mkdir /dev/myvg
# mknod /dev/myvg/group c 64 0x020000
# vgchgid /dev/rdsk/cXtYdZ (add each disk)
# vgimport -v -m myvg.mapfile -p /dev/myvg (always run the preview option first)
drop the preview if no errors.
# vgchange -a y /dev/myvg
# vgcfgfgbackup /dev/myvg
You may to have to run an 'fsck' prior to mounting the filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 12:51 PM
04-03-2004 12:51 PM
Re: Vgimport probs
The only other question I would have is, you mentioned "system A and system B do not share disks". We are going on the assumption here that the these disks are multi-ported from the Symmetrix to both hosts. If the disks are not ported to both hosts then you will not be able to import them on system B. Do you know that they were configured for both hosts by EMC? Or do you have a tool like Control Center to view the disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 01:28 PM
04-03-2004 01:28 PM
Re: Vgimport probs
Thanks for your suggestions. Have done everything you recommended up till vgimport :
# vgimport -v -m vgdata01.mapfile -p /dev/vgdata21
Beginning the import process on Volume Group "/dev/vgdata21".
vgimport: Unable to read the physical volume.
or
# vgimport -v -m vgdata01.mapfile -p /dev/vgdata21 /dev/dsk/c9t0d1 /dev/dsk/c11t0d2
Beginning the import process on Volume Group "/dev/vgdata21".
vgimport: The Physical Volumes specified on the command line
do not belong to the same Volume Group.
This is what I meant...have TF sync'ed the BCVs, vgchgid etc. In the future the BCVs in system B will be used to backup the data from system A via daily TF syncs.
I think it's because I pvcreate'd both the disks earlier. So how can I vgimport now? Thanks again.
- 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.