- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Alternate Paths to a logical volume.
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
05-24-2002 12:13 PM
05-24-2002 12:13 PM
In SAM I verified that each lvol has differing primary and alternate paths.
This is a 12H Disk Array with 4 16gb. drives.
Is there a way to spread the I/O out over the pri and alt paths?
Any help would be greatly appreciated.
Thanks in advance,
Brad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 12:21 PM
05-24-2002 12:21 PM
SolutionLVM does *not* use alternate paths (pvlinks) for load-balancing. Alternate links are only for fail-over.
However, if you have two controllers servicing a pool (array) of disks, then the ideal configuration is to make the primary link for controller-1 service half the disks and the secondary linke for controller-1 service the other half. On controller-2, the primary link is assigned to the same set of disks serviced by the alternate link on controller-1. Similarly, on controller-2, the alternate link is assigned to the same set of disks serviced bye the primary link on controller-1.
This scheme provided access to *any* disk in the array (pool) should *either* controller fail, *and* spreads the load between controllers (paths).
Please note that with VxVM, dynamic load-balancing *does* occur.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 12:22 PM
05-24-2002 12:22 PM
Re: Alternate Paths to a logical volume.
GL,
C
To build an Autoraid optimized for performance.
Requirements: 2 Autoraid Controllers and 2 SCSI connections to the server
1) Bind a LUN ??? create 2 LUN???s of equal size (Basically your are creating two ???logical??? physical volumes)
sam => disks and file systems => disk devices => HP autoraid => actions => disk array maintainance => View more information
Take unallocated capacity as indicated in the right side of the window and divide by 2. Then go back one window in SAM and make 2 LUN???s of equal size.
Select the Autoraid Controller with the space bar the => actions => disk array maintainance => bind LUN
(pay attention to hardware path for newly created LUN???s)
2) Install special/device files
# insf ???e
3) determine the device files for the autoraids
# ioscan ???fnC disk | more
note the 2 device files for each disk. i.e.. /dev/dsk/c0t1d0 and /dev/dskc0t1d1 you should have two sets of these types of device files, refer to the hardware paths you noted before if you have trouble determining
4) perform the LVM work
# cd /dev
# mkdir vg0# (where # is the number of the volume group such as vg03)
# cd vg0#
# mknod group c 64 0x0#0000 ( # must be the same as the volume group number)
# pvcreate /dev/rdsk/c0t1d0 (do this for all 4 disks that are being added to the volume group)
# vgcreate /dev/vg0# /dev/dsk/c1t0d0 /dev/dsk/c2t1d0 /dev/dsk/c2t1d1
/dev/dsk/c1t0d1 (you must follow this format when adding disks into the volume group)
# vgdisplay ???v vg0# ( see if the volume group was created successfully, make sure controller cards alternate. It should look like the example below)
--- Physical volumes ---
PV Name /dev/dsk/c1t0d0
PV Name /dev/dsk/c0t1d0 Alternate Link
PV Status available
Total PE 4499
Free PE 1311
Autoswitch On
PV Name /dev/dsk/c0t1d1
PV Name /dev/dsk/c1t0d1 Alternate Link
PV Status available
Total PE 4499
Free PE 1311
Autoswitch On
if not correct
# vgreduce vg0# /dev/dsk/c#t#d#
# vgextend vg0# /dev/dsk/c#t#d#
then continue
if correct next step is to make the required mount points for a striped logical volume on autoRAID
# lvcreate ???l ???SIZE??? ???i 2 ???I 64 ???s y (???n lvol#) /dev/vg0# (repeat this for all logical volumes needed ??? The SIZE represents lvol size, the ???l is for extents, ???L for Mbytes default Physical Extent size is 4MB) ( the format above for stripping is lower case -i 2 upper case -i 64, Word distorts the true representation of the letters) don???t use the ???n option in most cases and pay attention to make sure that the you see what lvol it has assigned.
# newfs ???F vxfs /dev/vg0#/rlvol# (repeat this for all rvol???s needed)
# cd /etc
# vi fstab (Add new volume group with files as needed create needed directories)
ie.. /dev/vg0#/lvol# /opt/oracle vxfs delaylog 0 2
mount ???a (tests fstab entries while it mounts new lvol???s)
bdf (to show that they are mounted)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 12:24 PM
05-24-2002 12:24 PM
Re: Alternate Paths to a logical volume.
I believe that the alt. path is there only in case the primary path fails for any reason. Therefore, it is not for load balancing.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 12:30 PM
05-24-2002 12:30 PM
Re: Alternate Paths to a logical volume.
If you can adress the disk seprately than may be you can vgcreate using primary alternate and then alterante primary ie balance the load . ie the 2nd controller as the primary contrioller so that the wheneve the system want to use the 2nd PV it uses the 2nd controller as its primary . I dont hink this is possible in a autoraid unless you can adress each PV seprately with 2 distinct paths.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2002 04:46 AM
05-26-2002 04:46 AM
Re: Alternate Paths to a logical volume.
To switch some of your I/O to an alternate controller you can use pvchange.
Example data;
Vgdisplay ???v vg10
~~~~~~~
/dev/dsk/c1t2d3
/dev/dsk/c2t2d3 Alternate Link
# pvchange -s /dev/dsk/c2t2d3
# vgdisplay ???v vg10
~~~~~~
/dev/dsk/c2t2d3
/dev/dsk/c1t2d3 Alternate Link
Now c2t2d3 will show as primary link. This will only stay until you reboot.
You can check the order by doing;
# strings /etc/lvmtab|grep -e"c1t2d3" -e"c2t2d3"
/dev/dsk/c1t2d3
/dev/dsk/c2t2d3
The order they return in is the order they will configure next reboot.
In order to make the change permanent you need to do a vgreduce and a vgextend.
# vgreduce vg10 /dev/dsk/c1t2d3
# vgextend vg10 /dev/dsk/c1t2d3
Now doing a strings on lvmtab returns;
# strings /etc/lvmtab|grep -e"c1t2d3" -e"c2t2d3"
/dev/dsk/c2t2d3
/dev/dsk/c1t2d3
Next reboot c2t2d3 will stay primary and c1t2d3 will stay Alternate.