- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Volume Groups are configured with “alternate l...
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
11-15-2005 06:15 AM
11-15-2005 06:15 AM
I want to know that I am going to create volume groups and I need to make sure that all new Volume Groups are configured with “alternate links”
How will i configured this?
Thanks
Vipin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 06:23 AM
11-15-2005 06:23 AM
Solution"The block device path name of a physical
volume that will be assigned to the new volume group. You can specify physical volume links (pv-links) for a physical volume providing different paths that reference the same physical volume in the pv_path list. The order in which the paths are listed is important. The first path becomes the primary link to the physical volume, the second becomes an alternate link to the physical volume. The primary link is the default path used to access the physical volume. If the primary link becomes unavailable, LVM automatically switches to the alternate link to access the physical volume. Currently LVM supports a maximum of 8 paths to a physical volume (7 alternate and one primary)."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 06:36 AM
11-15-2005 06:36 AM
Re: Volume Groups are configured with “alternate links"
you can start from
vgdisplay -v /dev/vg*
to check if all VG's are configured correctly and as expected into 'physical volumes' section of output.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 06:37 AM
11-15-2005 06:37 AM
Re: Volume Groups are configured with “alternate links"
/dev/dsk/c4t2d0
/dev/dsk/c6t2d0
to create a new volume group, lets say vg02, containing only this disk device, you need to execute the following
pvcreate /dev/rdsk/c4t2d0
mkdir /dev/vg02
mknod /dev/vg02/group group c 64 0x020000
(above assumes you do not have minor number 02 used yet)
vgcreate -s 8 /dev/vg02 /dev/dsk/c4t2d0
vgextend /dev/vg02 /dev/dsk/c6t2d0
this will make /dev/dsk/c4t2d0 the primary path and the /dev/dsk/c6t2d0 alternate.
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 06:55 AM
11-15-2005 06:55 AM
Re: Volume Groups are configured with “alternate links"
I am going to create this file system using 2 HDDs:
pvcreate /dev/rdsk/c26t6d0
pvcreate /dev/rdsk/c29t6d0
mkdir /dev/vg72
mknod /dev/vg72/group c 64 ox720000
vgcreate /dev/vg72 /dev/dsk/c26t6d0
vgextend /dev/vg72 /dev/dsk/c29t6d0
then will all Volume Groups be configured with â alternate links"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 06:59 AM
11-15-2005 06:59 AM
Re: Volume Groups are configured with “alternate links"
You do the pvcreate on only one path as it writes LIF info on to the physical disk and you do not need to (or more correctly should not) write this info a second time
You do vgextend on both primary and alternate links to utilize them for data access.
Hope this makes it clearer
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:03 AM
11-15-2005 07:03 AM
Re: Volume Groups are configured with “alternate links"
vgcreate -s 2 /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c1t2d0
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:17 AM
11-15-2005 07:17 AM
Re: Volume Groups are configured with “alternate links"
#vgcreate -s 2 /dev/vg72 /dev/dsk/c26t6d0 /dev/dsk/c29t6d0
Will it create the alternate link?
these are my real details of LUNs & VG72 and i have to create new VG.
Please tell me the step by step command for alterlink configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:19 AM
11-15-2005 07:19 AM
Re: Volume Groups are configured with “alternate links"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:36 AM
11-15-2005 07:36 AM
Re: Volume Groups are configured with “alternate links"
I am not too much famliar with this.
I need to create some VG.
and when i give the command
# pvdisplay /dev/dsk/c26t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c26t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c26t6d0".
# pvdisplay /dev/dsk/c29t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c29t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c29t6d0".
So I am creating new VG using these two devices (c26t6d0 & c29t6d0).
Please suggest me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:47 AM
11-15-2005 07:47 AM
Re: Volume Groups are configured with “alternate links"
pvcreate /dev/rdsk/c26t6d0
pvcreate /dev/rdsk/c29t6d0
after this, your pvdisplay should work.
BUT PROCEED WITH CAUTION:
when you run pvcreate, everything on this volume will be erased.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:54 AM
11-15-2005 07:54 AM
Re: Volume Groups are configured with “alternate links"
# pvdisplay /dev/dsk/c26t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c26t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c26t6d0".
# pvdisplay /dev/dsk/c29t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c29t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c29t6d0".
1.does it mean- nothing is here on these devices?
2.may i use these two device for new VG?
3.If yes, what will be the step be step commands for "alternate link" configuration for creation of vg72 using these devices.
4. these devices size is 37.74Gb each (means 2*37.74Gb), is it possible to create the LV of 72 GB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 07:56 AM
11-15-2005 07:56 AM
Re: Volume Groups are configured with “alternate links"
pvcreate /dev/rdsk/c29t6d0
pvcreate /dev/rdsk/c26t6d0
mkdir /dev/vg72
mknod /dev/vg72/group group c 64 0x020000
vgcreate /dev/vg72 /dev/dsk/c26t6d0
vgextend /dev/vg72 /dev/dsk/c29t6d0
Before you can do pvdisplay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 08:31 AM
11-15-2005 08:31 AM
Re: Volume Groups are configured with “alternate links"
when i give the command:
# pvdisplay /dev/dsk/c26t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c26t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c26t6d0".
# pvdisplay /dev/dsk/c29t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c29t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c29t6d0".
1.does it mean- nothing is here on these devices?
2.may i use these two device for new VG?
3.If yes, what will be the step be step commands for "alternate link" configuration for creation of vg72 using these devices.
4. these devices size is 37.74Gb each (means 2*37.74Gb), is it possible to create the LV of 72 GB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:15 AM
11-15-2005 09:15 AM
Re: Volume Groups are configured with “alternate links"
please update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:27 AM
11-15-2005 09:27 AM
Re: Volume Groups are configured with “alternate links"
strings /etc/lvmtab | grep c?t?d?
if it comes back with nothing and you can't do a pvdisplay on this disk then its a strong probability there is nothing on these disks as they do not belong to any volume groups which is what the error message is stating:
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c29t6d0" belongs.
after you have confirmed there is nothing on these disks, you must start with the steps pvcreate, mkdir, mknod, vgcreate, vgextend,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:42 AM
11-15-2005 09:42 AM
Re: Volume Groups are configured with “alternate links"
strings /etc/lvmtab | grep c?t?d?
means , i can create the VG
1. what will be the step be step commands for "alternate link" configuration for creation of vg72 using these devices.
2. these devices size is 37.74Gb each (means 2*37.74Gb), is it possible to create the LV of 72 GB?
is these command are correct for creating VG-
vgcreate /dev/vg72 /dev/dsk/c26t6d0
vgextend /dev/vg72 /dev/dsk/c29t6d0
I need "alternate link" configuration.
If no, Please tell me the step by step command.
Thanks a lot to all of yours
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 10:30 AM
11-15-2005 10:30 AM
Re: Volume Groups are configured with “alternate links"
QUOTE
to be absolutely certain there is nothing on these two disks:
strings /etc/lvmtab | grep c?t?d?
if it comes back with nothing and you can't do a pvdisplay on this disk then its a strong probability there is nothing on these disks as they do not belong to any volume groups
UNQUOTE
Note that "absolutely certain" somehow got translated to "strong probability".
These pesky raw devices keep coming up. I hope you know what you are doing. I am not pointing this out to ridicule anyone but rather to point out that you are doing something that is inherently dangerous. Whenever I create a new LUN or add a new physical to a system I do 2 things to make sure I don't clobber data.
1) I document what I do.
2) I write a known, unique byte pattern to the 1st 10 blocks or so of the physical device -- and document that byte pattern.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 01:23 PM
11-15-2005 01:23 PM
Re: Volume Groups are configured with “alternate links"
My understanding was that an alternate link was having more than one path for the host to get to the same device for redundancy in case one path became unavailable for some reason.
eg. 2 different controllers on the same host going to 2 different controllers on the same disk box.
In our case, we have 2 different fibre channel controllers on a host, connecting to 2 different fibre channel switches, which in turn connect to 2 different controllers on the one fibre channel SAN. It's a bit more complex than that with multiple computer rooms and mirroring between them involved but you get the idea.
I don't think you will be able to connect 2 different devices on 2 different controllers and have the host consider them the same device.
When you issue the vgextend from the procedures that people have already mentioned and the host determines that they are the SAME DEVICE (albeit on a different path) then an alternate link is created.
Are you sure that you are not just after a mirror (or other redundant config) between the 2 devices on seperate controllers??
Regards
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 01:28 PM
11-16-2005 01:28 PM
Re: Volume Groups are configured with “alternate links"
Remember that on a SAN each device file is simply a path to a LUN. There are multiple paths to the same LUN.
For example:
c14t2d1
c20t2d1
c25t2d1
c26t2d1
may all point to the same LUN. The C14 and C20 entries may be in the lvmtab file but not the c25 and c16 entries. All this means is that LVM will only use two of the four paths. If you do a pvcreate -f on the c26 path it will destroy all the data on the disk and the vg using the c14 and c20 paths will lose its data.
You can use the device number to identify the LUN on the SAN array, then use that to find all the device files on all the servers that have access to the LUN.
It looks like you have a clariion, Try the command powermt display dev=all