Operating System - HP-UX
1753913 Members
8794 Online
108810 Solutions
New Discussion юеВ

Re: Using LVM with AutoPath

 
Mario Cruz_1
Occasional Contributor

Re: Using LVM with AutoPath

Everyone, Thanks for your help!
I took note of every one of your advices and this is what I did (I hope this will be useful for someone else too.)

# check the WWN disk
root@server:/>autopath display

==================================================================
HPswsp Version : A.3.0F.04F.01F
==================================================================
Auto Discover : ON
==================================================================
Array Type : EVA-AA
Array WWN : 5001-1234-5678-9ABC
Read Optimize : ON
Path Verification Period : 00:10
==================================================================
Lun WWN : 1234-5678-9ABC-DEF1-0000-0000-0000-0000
Virtual Device File : /hpap/dsk/hpap0
Load Balancing Policy : Round Robin
Lun Timeout : Infinite Retry (-1)
==================================================================
Device Path Status
==================================================================
/dev/dsk/c2t0d1 Active
/dev/dsk/c4t0d1 Active
/dev/dsk/c6t0d1 Active
/dev/dsk/c8t0d1 Active

==================================================================

==================================================================

# Setting the Load Balancing Policy
root@server:/>autopath set -l 1234-5678-9ABC-DEF1-0000-0000-0000-0000 -b RR

# Physical Disk
root@server:/>pvcreate /dev/rdsk/c2t0d1

# vg
root@server:/>mkdir /dev/vggtdat1
root@server:/>mknod /dev/vggtdat1/group c 64 0x080000
root@server:/>vgcreate /dev/vggtdat1 /dev/dsk/c2t0d1

# for test purpose
root@server:/>lvcreate -L 1024 -n lvTest vggtdat1

# verifying that the logical volume uses all paths
root@server:/>dd if=/dev/urandom of=/dev/vggtdat1/lvTest
I/O error
0+4194306 records in
2097152+1 records out

# in other session . . .
root@server:/>iostat 1 35

c1t0d0 16 2.0 1.0
c1t0d1 0 0.0 1.0
c2t0d1 5220 652.5 1.0
c4t0d1 5212 651.5 1.0
c6t0d1 5212 651.5 1.0
c8t0d1 5220 652.5 1.0

c1t0d0 48 5.9 1.0
c1t0d1 4 1.0 1.0
c2t0d1 5212 651.5 1.0
c4t0d1 5212 651.5 1.0
c6t0d1 5212 651.5 1.0
c8t0d1 5212 651.5 1.0

c1t0d0 16 2.0 1.0
c1t0d1 0 0.0 1.0
c2t0d1 4871 608.8 1.0
c4t0d1 4871 608.8 1.0
c6t0d1 4871 608.8 1.0
c8t0d1 4871 608.8 1.0

c1t0d0 16 2.0 1.0
c1t0d1 0 0.0 1.0
c2t0d1 5344 668.0 1.0
c4t0d1 5352 669.0 1.0
c6t0d1 5352 669.0 1.0
c8t0d1 5344 668.0 1.0

c1t0d0 0 0.0 1.0
c1t0d1 0 0.0 1.0
c2t0d1 5117 639.6 1.0
c4t0d1 5117 639.6 1.0
c6t0d1 5117 639.6 1.0
c8t0d1 5117 639.6 1.0
Michael Steele_2
Honored Contributor

Re: Using LVM with AutoPath

Looks nice
Support Fatherhood - Stop Family Law
Mario Cruz_1
Occasional Contributor

Re: Using LVM with AutoPath

--