- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirror disk and then vgimport only one
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
10-29-2008 03:31 PM
10-29-2008 03:31 PM
I need copy and present those LUNs to server2.
My plan was:
- Mirror Database LUNs to another LUNs (secondary LUNs)
- Export VGs
- Break mirror
- Present the secondary LUNs to Server2
- Create directories of VGs
- Make mknod
- Import LUNs on Server2
But I get the following error:
#vgimport -v -s -m /tmp/vg/vg11.mapfile /dev/vg11
Beginning the imprt process on Volume Group "/dev/vg11".
Could't access the list of physical volumes for volume group "/dev/vg11"
Any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 04:22 PM
10-29-2008 04:22 PM
SolutionI am guessing you used LVM to mirror the LUNs. If so then you should be using the first form of the vgimport command of the man pages not the second one (sharable). You leave out the -s option and specify the disk device file to the command. The mapfile contains a list of the logical volumes only there is no physical disk information in it. (When you exported the VGs you should not use the -s option either)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 04:31 PM
10-29-2008 04:31 PM
Re: Mirror disk and then vgimport only one
#vgimport -v -m /tmp/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0
I get import... but now I get the following error at vgchange:
# vgchange -a y vg11
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t0d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg11":
Quorum not present, or some physical volume(s) are missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 05:16 PM
10-29-2008 05:16 PM
Re: Mirror disk and then vgimport only one
You can try:
# vgsync vg11
# vgchange -a y vg11
# vgdisplay -v vg11
It should works.
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 05:51 PM
10-29-2008 05:51 PM
Re: Mirror disk and then vgimport only one
what's kind of storage do you have ?
EVA or MSA? if EVA ,you can copy the data in storage level.
And i am confused with these two steps
- Export VGs
- Break mirror
when you export vg,how do you break mirror?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 02:31 AM
10-30-2008 02:31 AM
Re: Mirror disk and then vgimport only one
> Quorum not present, or some physical volume(s) are missing.
Import the volume group without quroum checking.
#vgimport -v -q n -m /tmp/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 03:24 AM
10-30-2008 03:24 AM
Re: Mirror disk and then vgimport only one
You could not activate the VG Since the LVM info on the new LUNS contains the no of PV's is double and 50% of LUN's are not available when you activate the VG on new server.
Try the below steps.
Active the VG with quorum overide.
#vgchange -q n -a y vg11
Then use vgreduce -f command to remove the missing pv's
Force reduction of missing PVs from volume group: vg11
# vgreduce -f /dev/vg11
The following messages will appear after missing PVs has been removed successfully:
PV with key 0 successfully deleted from vg /dev/vg11
Repair done, please do the following steps.....:
1. Save /etc/lvmtab to another file.
2. Remove /etc/lvmtab.
3. Use vgscan -v to recreate /etc/lvmtab.
4. NOW use vgcfgbackup to save the LVM setup.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 06:19 AM
10-30-2008 06:19 AM
Re: Mirror disk and then vgimport only one
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/0/3/0.5.0 sdisk CLAIMED DEVICE HP 73.4GST373405LC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373405LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 5 0/0/10/0/0.8.0.255.0.0.0 sdisk CLAIMED DEVICE HITACHI DF600F
/dev/dsk/c8t0d0 /dev/rdsk/c8t0d0
disk 6 0/0/10/0/0.8.0.255.0.0.1 sdisk CLAIMED DEVICE HITACHI DF600F
/dev/dsk/c8t0d1 /dev/rdsk/c8t0d1
disk 7 0/0/10/0/0.8.0.255.0.0.2 sdisk CLAIMED DEVICE HITACHI DF600F
/dev/dsk/c8t0d2 /dev/rdsk/c8t0d2
disk 8 0/0/10/0/0.8.0.255.0.0.3 sdisk CLAIMED DEVICE HITACHI DF600F
/dev/dsk/c8t0d3 /dev/rdsk/c8t0d3
disk 9 0/0/10/0/0.8.0.255.0.0.4 sdisk CLAIMED DEVICE HITACHI DF600F
/dev/dsk/c8t0d4 /dev/rdsk/c8t0d4
disk 10 0/0/10/0/0.8.0.255.0.0.5 sdisk CLAIMED DEVICE HITACHI DF600F
/dev/dsk/c8t0d5 /dev/rdsk/c8t0d5
disk 2 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373307LC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 3 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c5t2d0 /dev/rdsk/c5t2d0
disk 4 1/0/1/0/0/1/1.6.0 sdisk CLAIMED DEVICE HP 73.4GST373307LC
/dev/dsk/c7t6d0 /dev/rdsk/c7t6d0
#
# vgsync vg11
vgsync: Couldn't query logical volume "/dev/vg11/BK_Migracion_01":
Volume group not activated.
vgsync: Couldn't query the list of logical volumes.
vgsync: Couldn't access the list of logical volumes for volume group "vg11".
vgsync: Couldn't resynchronize volume group "vg11".
#
# vgimport -v -q n -m /tmp/maint/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0
Usage: vgimport
[-p]
[-v]
[-s]
[-m MapFile]
VolumeGroupName PhysicalVolumePath...
or: vgimport [-p] [-v] [-m MapFile] -f InFile VolumeGroupName
"q": Illegal option.
# vgchange -q n -a y vg11
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t0d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg11":
Quorum not present, or some physical volume(s) are missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 07:22 AM
10-30-2008 07:22 AM
Re: Mirror disk and then vgimport only one
vgchange command fails because you have not imported the VG yet. I will start from the beginning assuming that /etc/lvmtab does not contain the vg11 informations(confirm once)
1.First step is create the VG directory.
#mkdir /dev/vg11
2. create the group file
#mknod /dev/vg11/group c 64 0x0n0000
3.Now import the VG by specifing all of its PV's in the command line. Note you need to specify all the disks which is presented to the new server.
#vgimport -v -m
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 07:31 AM
10-30-2008 07:31 AM
Re: Mirror disk and then vgimport only one
Try this,
1. vgimport -v -m /tmp/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0
2. vgchange -a y -q n /dev/vg11
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 08:10 AM
10-30-2008 08:10 AM
Re: Mirror disk and then vgimport only one
How many disks are there in the original vg (/dev/vg11) ??
How did you create the map file? Used -s option or not?
At what stage u export the VG? Before OR after break the VG??
Where you are trying to import the VG?? Server 1 OR server 2?? If its on server 2, did you confirm the device file using the LUN ID??
And one more thought...... Why do you want make the task this much complicate????
Avoid mirroring and create a fresh vg
1. Present LUNs from XP to server 1
2. Create VG, LV, File system.
3. Copy data from Source to destination.
4. Export using -s option (# vgexport -p -v -s -m /tmp/vg11.map /dev/vg11).
5. Create VG in server 2.
6. mknod
7. Copy the map file from server1 to server2.
8. import VG (vgimport -v -s -m /tmp/vg11.map /dev/vg11
OR...... you can copy entire data using rcp, scp, nfs.....
Rgds
Sreekanth