- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: PVG-Strict and mirroring
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
03-09-2006 07:01 PM
03-09-2006 07:01 PM
PVG-Strict and mirroring
We have several volume groups spread on two disks array. The server has 4 FC cards, 2 on each array, so each disk has an alternate path on both array. vg01 has 3 disks; 3 on array A and on 6 array B. Each logical volume is created like this :
lvcreate -s g -t 90 -r n -l PE_Number /dev/vg01
/etc/lvmpvg is defined as following :
VG /dev/vg01
PVG arrayA
/dev/dsk/c23t0d3
/dev/dsk/c22t0d3 (alternate)
/dev/dsk/c23t2d3
/dev/dsk/c22t2d3 (alternate)
/dev/dsk/c23t3d0
/dev/dsk/c22t3d0 (alternate)
PVG arrayB
/dev/dsk/c26t0d3
/dev/dsk/c27t0d3 (alternate)
/dev/dsk/c26t2d3
/dev/dsk/c27t2d3 (alternate)
/dev/dsk/c26t3d0
/dev/dsk/c27t3d0 (alternate)
We are in a two nodes Veritas Cluster.
When we make a vgexport on node Alpha :
vgexport -svp -m vg01.map vg01
and make a vgimport on node Beta :
vgimport -sv -m vg01.map
After of course having copied the map and supplied additionnals disks in /etc/lvmpvg on node Beta, we have bad definition of vg01.
We expect to have primary on an array and mirror on the other but we have as primary some on array A and some on array B and so on for mirror disks.
If someone as an explanation ?
Rgeards
Patrice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 07:08 PM
03-09-2006 07:08 PM
Re: PVG-Strict and mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 07:30 PM
03-09-2006 07:30 PM
Re: PVG-Strict and mirroring
can you attach the following output in this thread..We need the outputs on both the servers to explain effectively...
vgdisplay -v
ioscan -fnC disk
cat /etc/lvmpvg
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:43 PM
03-09-2006 08:43 PM
Re: PVG-Strict and mirroring
During import you should make sure to import first the primary links and only then add the alternate links. THis works best without using the -s option but using the -f
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:48 PM
03-09-2006 08:48 PM
Re: PVG-Strict and mirroring
However, you still need to make sure that the disk device files of the VG on both nodes are the same. If they are not you would need to modify the device files in the infile before vgimport on the other node.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:57 PM
03-09-2006 08:57 PM
Re: PVG-Strict and mirroring
You should use a tool to identify the real LUN and its special file on the 2 servers. I use "xpinfo" with XP Storage.
Remember you can always play with vgreduce / vgextend on the VG on the alternate node to change primary / alternate pathing.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:59 PM
03-09-2006 08:59 PM
Re: PVG-Strict and mirroring
If I'm can remember right , there is no "-f
----------------------------------------
Anyway, Patrice, we can help you rectify the situation if you can give the command outputs we asked for.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 11:37 PM
03-09-2006 11:37 PM
Re: PVG-Strict and mirroring
-f infile Import the set of pv_paths held in the infile to the volume group. This option is used as an alternative to specifying the pv_paths on the command line. Each pv_path must appear on a new
line in the infile. This option may not be used together with the -s option.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 11:39 PM
03-09-2006 11:39 PM
Re: PVG-Strict and mirroring
Here they are.
and /etc/lvmpvg :
VG /dev/vg01
PVG pv1
/dev/dsk/c23t0d3
/dev/dsk/c22t0d3
/dev/dsk/c23t2d3
/dev/dsk/c22t2d3
/dev/dsk/c23t3d0
/dev/dsk/c22t3d0
PVG pv2
/dev/dsk/c26t0d3
/dev/dsk/c27t0d3
/dev/dsk/c26t2d3
/dev/dsk/c27t2d3
/dev/dsk/c26t3d0
/dev/dsk/c27t3d0
Thanks
Patrice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 11:42 PM
03-09-2006 11:42 PM
Re: PVG-Strict and mirroring
This is the man page I'm referring for vgimport.
http://docs.hp.com/en/B2355-90129/vgimport.1M.html
This does not show any "-f" option. Just curious, am'I refering an outdated manpage. If you don't mind can you share the link which shows "-f" option.
Thanks,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 11:48 PM
03-09-2006 11:48 PM
Re: PVG-Strict and mirroring
Current 11i manpages for 'vgimport' and 'vgexport' describe the '-f' option:
http://docs.hp.com/en/B2355-60127/vgimport.1M.html
http://docs.hp.com/en/B2355-60127/vgexport.1M.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 12:15 AM
03-10-2006 12:15 AM
Re: PVG-Strict and mirroring
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 03:33 AM
03-10-2006 03:33 AM
Re: PVG-Strict and mirroring
What I want is to export from one server to the other server without breaking my head.
If I understand what you're saying, when you import with "-s" option no matter of what's in lvmpvg and "PVG-strict" allocation policy on logical volumes ? Strange.
For me when import starts it was like this :
Due to the VGID in the map two possible disks to start, one on each array.
Doesn't matter which one you take first but I thought that after the first disk was choosen with lvmpvg and PVG-strict policy all the other would have been on the same array and the mirror should have been the others disks.
According to me the -f option is quite boring for going from one server to another if you have different controler id.
Any advise ?
Thanks
Patrice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 03:52 AM
03-10-2006 03:52 AM
Re: PVG-Strict and mirroring
1) Import
2) Check that each LUN on the array has the same special file on server A and B, if not, consider the "translation".
2) If needed vgreduce each VG of the primary path you want as alternate vgextending at the next step.
PVG files it's only a logical reference for the LVM commands.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 04:03 AM
03-10-2006 04:03 AM
Re: PVG-Strict and mirroring
Follow the instructions of vanadio. He is spot on with his replies. Do not bother about the PVG groups. That we can sort out later. You can even create /etc/lvmpvg file later. As vanadio pointed out it is just a Logical group, used to differentiate disks b/w controllers.
First lets sort out the Primary and alternate link after vgimport and then fix PVG part.
If you are not sure of command sequence let us know, we will assist you with that.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 05:56 AM
03-10-2006 05:56 AM
Re: PVG-Strict and mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 08:22 AM
03-10-2006 08:22 AM
Re: PVG-Strict and mirroring
It's not a simple problem of primary/alternate path definition of a disk.
I've already scripts that load balance that across controlers on one disk array.
Thanks for all gents.
Patrice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 11:29 PM
03-10-2006 11:29 PM
Re: PVG-Strict and mirroring
I bet you have only different device names.
I don't know how, with your array, but you surely can check the real _LUN_on_Array_ distribution of your imported VG.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 06:26 PM
04-04-2006 06:26 PM
Re: PVG-Strict and mirroring
I've a possible solution to my problem but I would like to know if this scan order is in the H/W path order or in the controler one?
Regards
Kenavo
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 09:42 PM
04-04-2006 09:42 PM
Re: PVG-Strict and mirroring
You could try the following:
vgimport -m mapfile -s vg01
#Import the vg with unexpected paths.
vgexport -m mapfile -f /tmp/disks vg01
vi /tmp/disks
re-arrange disks to be in expected order
primaries followed by mirrors.
vgimport -m mapfile -f /tmp/disks vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 04:40 AM
04-05-2006 04:40 AM
Re: PVG-Strict and mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 08:19 PM
04-05-2006 08:19 PM
Re: PVG-Strict and mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 09:21 PM
04-05-2006 09:21 PM
Re: PVG-Strict and mirroring
Or exporting without "-s" and then reimporting, in this case he has to unmount all lvs and deactivate the vg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 10:19 PM
04-05-2006 10:19 PM
Re: PVG-Strict and mirroring
(I ommited to say this step as I assummed this mapfile was already available).
On first correct host to get mapfile:
vgexport -svp -m mapfile vg01
(Preview export - create mapfile with VGID in)
On second (incorrect) host:
After creating /dev/vg01 and group file.
vgimport -m mapfile -s vg01
#Import the vg with unexpected paths using VGID.
(We really mean to export them here - no preview and no VGID in mapfile - create list of disks instead)
vgexport -m mapfile -f /tmp/disks vg01
vi /tmp/disks
re-arrange disks to be in expected order
primaries followed by mirrors.
After re-creating /dev/vg01 and group file.
vgimport -m mapfile -f /tmp/disks vg01
To import the VG with or without -s does not require the first system to deactivate the VGS or lose them. (To activate the VG on the second node is a different matter).