Creating logical drives on HP servers at the CLI
Here's is how you create new logical drives on an HP server from the Linux command-line. The "Hpacucli" tool is installed as part of the HP PSP.
1) Show all controllers on the server:
$ hpacucli controller all show
Smart Array 6i in Slot 0
2) Show the status of the controller:
$ hpacucli controller all show status
Smart Array 6i in Slot 0
Controller Status: OK
Cache Status: OK
3) Show all physical drives:
$ hpacucli ctrl slot=0 pd all show
Smart Array 6i in Slot 0
array A
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)
unassigned
physicaldrive 2:2 (port 2:id 2 , Parallel SCSI, 300 GB, OK)
physicaldrive 2:3 (port 2:id 3 , Parallel SCSI, 300 GB, OK)
4) Create a new RAID1 logical drive on the unassigned physical drives.
$ hpacucli ctrl slot=0 create type=ld drives=2:2,2:3 raid=1+0
[Note: All usable drive space will be used by default.]
5) Show the status of all logical drives:
$ hpacucli ctrl slot=0 logicaldrive all show status
logicaldrive 1 (33.9 GB, 1+0): Ok
logicaldrive 2 (279 GB, 1+0): Ok
6) Show all defined arrays:
$ hpacucli ctrl slot=0 logicaldrive all show
Smart Array 6i in Slot 0
array A
logicaldrive 1 (33.9 GB, RAID 1+0, OK)
array B
logicaldrive 2 (279 GB, RAID 1+0, OK)
1) Show all controllers on the server:
$ hpacucli controller all show
Smart Array 6i in Slot 0
2) Show the status of the controller:
$ hpacucli controller all show status
Smart Array 6i in Slot 0
Controller Status: OK
Cache Status: OK
3) Show all physical drives:
$ hpacucli ctrl slot=0 pd all show
Smart Array 6i in Slot 0
array A
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)
unassigned
physicaldrive 2:2 (port 2:id 2 , Parallel SCSI, 300 GB, OK)
physicaldrive 2:3 (port 2:id 3 , Parallel SCSI, 300 GB, OK)
4) Create a new RAID1 logical drive on the unassigned physical drives.
$ hpacucli ctrl slot=0 create type=ld drives=2:2,2:3 raid=1+0
[Note: All usable drive space will be used by default.]
5) Show the status of all logical drives:
$ hpacucli ctrl slot=0 logicaldrive all show status
logicaldrive 1 (33.9 GB, 1+0): Ok
logicaldrive 2 (279 GB, 1+0): Ok
6) Show all defined arrays:
$ hpacucli ctrl slot=0 logicaldrive all show
Smart Array 6i in Slot 0
array A
logicaldrive 1 (33.9 GB, RAID 1+0, OK)
array B
logicaldrive 2 (279 GB, RAID 1+0, OK)
<< Home