- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Alternate link...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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-11-2004 03:02 AM
03-11-2004 03:02 AM
Alternate link...
I had to extend a VG that use Service Guard with a new drive allocated on a SAN, I did the "pvcreate /dev/rdsk/cXtXdX" and I also did a "pvcreate /dev/rdsk/cX1tX1dX1" of the "alternate path", that was my mistake... So when I did my "vgextend vgname /dev/dsk/cXtXdX" it worked fine and showed me a disk added in my VG. But when I did my "vgextend vgname /dev/dsk/cX1tX1dX1" to do my "alternate link", because I've did a pvcreate of that device before, it added a new disk instead of an "Alternate link". So I reduce the VG of the last disk (the one that suppose to be the alternate link)...
My question is how can I give back to /dev/dsk/cX1tX1dX1 the state to be the alternate link to /dev/dsk/cXtXdX instead of a new disk???
Regards
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:06 AM
03-11-2004 03:06 AM
Re: Alternate link...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:10 AM
03-11-2004 03:10 AM
Re: Alternate link...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:14 AM
03-11-2004 03:14 AM
Re: Alternate link...
I've double checked and I'm sure that it's supposed to be the alternate path... But I'll check with the SAN team here to be pretty sure!! I'll let you know!!! any other idea will be welcome too ;)
ciao!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:40 AM
03-11-2004 03:40 AM
Re: Alternate link...
In the moment you do a pvcreate on disk (Your alternate disk) you had just short before initialized with a pvcreate you should have received a warning.
Because it was already initialized before. So you must use the "-f" option of the pvcreate command. I can't see this in your post. So I think the second disk was uninitialized disk and not the alternate path.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:45 AM
03-11-2004 03:45 AM
Re: Alternate link...
When you do a vgextend on the same physical using anither path , it should be added as an alternate link .
Most probably your second physical volume was not the same as the first one .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 04:21 AM
03-11-2004 04:21 AM
Re: Alternate link...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 04:27 AM
03-11-2004 04:27 AM
Re: Alternate link...
And when I did a pvcreate a the secondary path, I did it with the -f option.
Idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 04:28 AM
03-11-2004 04:28 AM
Re: Alternate link...
On EMC? do a syminq and verify the /dev/rdsk/cX1tX1dX1 is the same EMC Device as the other one....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 04:29 AM
03-11-2004 04:29 AM
Re: Alternate link...
It depends on when you ran 'pvcreate' on the alternate link. Before creating the VG or after?.
If it was done before creating the VG, then you are fine. It's not going to hurt. If it still added it as a different device, then you will need to check if it is infact the alternate path.
If it was done after creating the VG, then you deleted the LVM headers of the same disk. You will need to restore them back. Take out the alternate path with vgreduce. Then do
vgcfgrestore -n vgxx /dev/rdsk/cxtxdx
vgchange -a y vgxx
vgextend vgxx /dev/dsk/cx1tx1dx1
That should get you back. If you already have the data in the VG, then back it up before you proceed.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 04:29 AM
03-11-2004 04:29 AM
Re: Alternate link...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 05:40 AM
03-11-2004 05:40 AM
Re: Alternate link...
mkdir /dev/vg36
mknod /dev/vg36/group c 64 0x240000
vgcreate -s 8 -p 128 /dev/vg36 /dev/dsk/c5t3d4 /dev/dsk/c9t3d4 /dev/dsk/c4t3d4 /dev/dsk/c7t3d4 /dev/dsk/c5t3d5 /dev/dsk/c9t3d5 /dev/dsk/c4t3d5 /dev/dsk/c7t3d5
vgchange -a y vg36
# vgdisplay -v vg36
--- Volume groups ---
VG Name /dev/vg36
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 128
Cur PV 2
Act PV 2
Max PE per PV 4315
VGDA 4
PE Size (Mbytes) 8
Total PE 8628
Alloc PE 0
Free PE 8628
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
PV Name /dev/dsk/c5t3d4
PV Name /dev/dsk/c9t3d4 Alternate Link
PV Name /dev/dsk/c4t3d4 Alternate Link
PV Name /dev/dsk/c7t3d4 Alternate Link
PV Status available
Total PE 4314
Free PE 0
Autoswitch On
PV Name /dev/dsk/c5t3d5
PV Name /dev/dsk/c9t3d5 Alternate Link
PV Name /dev/dsk/c4t3d5 Alternate Link
PV Name /dev/dsk/c7t3d5 Alternate Link
PV Status available
Total PE 4314
Free PE 0
Autoswitch On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 06:02 AM
03-11-2004 06:02 AM
Re: Alternate link...
are your disks in an EMC enclosure ? do u have inq command in ur system ?
If you have inq, try running the command and if both the device files u r interested refer to the same EMC volume then you can be sure that they are just alternate paths to the same LUN.
As Sri rightly pointed out, if both the device files are pointing to the same LUN and u did pvcreate after adding the PV to the VG then u effectively wiped off the LVM header from the PV. You need to restore the LVM headers to the PV.
If the PVID of any of the PV that is already part of the VG matches with the PVID of the PV you are trying to add (using vgextend) then this PV will be added as an alternate link.
# vgcfgrestore -n vgname /dev/dsk/c#t#d#
# vgchange -a y /dev/vgname
now try a pvcreate on the alternate link
# pvcreate /dev/dsk/c#1t#1d#1
If it says the PV is already part of some VG then execute the follwing commands to extract the PVID from both the disks to confirm both are referring to the same LUN
# echo "0x2008?4D" | adb /dev/dsk/c#t#d#
# echo "0x2008?4D" | adb /dev/dsk/c#1t#1d#1
if the above output is similar for both the device files then try a vgextend.
# vgextend /dev/vgname /dev/dsk/c#1t#1d#1
Sundar.