102
Appendix B: The raid5 Command Line Interface
The following example binds A2 and B2 into a RAID-1 logical unit with a
LUN number of 2 and a four-hour maximum rebuild time, with read cache
enabled.
raid5 -d sc4d2l0 bind r1 2 a2 b2 -r 4 -c read
The following example binds disks A1, B1, C1, and D1 into a RAID-1_0
logical unit with a LUN number of 1, a four-hour maximum rebuild time,
and a 128-block stripe size per physical disk, with read cache enabled.
raid5 -d sc4d2l0 bind r1_0 1 a1 b1 c1 d1 -r 4 -s 128 -c read
The following example binds A3, B3, C3, D3, and E3 into a RAID-0 logical
unit with a LUN number of 3, and a 128-block stripe size per physical disk,
with read cache enabled.
raid5 -d sc4d2l0 bind r0 3 a3 b3 c3 d3 e3 -s 128 -c read
The following example binds disk E3 as a hot spare with a LUN number of 7.
raid5 -d sc4d2l0 bind hs 7 e3
There is no output for raid5 with the bind parameter. Errors are printed to
stderr.
Note:
For complete messages, it is recommended that you use the
-v
option.
chglun
To change parameters for a logical unit, use
raid5 -d
device
chglun [-l
lun
] [-c
cache-flags
] [-d
default-owner
]
[-r
rebuild-time
] [-i
idle-thresh
] [-t
idle-delay-time
] [-w
write-aside
]
Note:
Only root can use this parameter.