Friday, June 14, 2013

for those us who are impatient and just want some quick hpacucli commands to allay fears of silent disk corruption

HPACUCLI command in Linux
1. =>ctrl all show config detail  ---> To view complete details of the Array
2. =>ctrl all show status  ---> To view the Controller,Battery and Cache Status
3. =>ctrl slot=0 create type=id drives=2:1,2:2,2;3 raid=1  --->if you added the 3 disk by hard swapped, this is the command to use for creation Array.
4. =>ctrl all show config  ---> To view the new array which created now(how many physical and logical drives).
5. =>ctrl slot=0 array B add spares=2.5 ---> To add the extra disk to particular array.
6. =>rescan ---> It will start the scanning for newly added device.

HP ACUCLI Commands  in Linux:

 1. Display and Detailed Information:
  hpacucli> ctrl all show config
  hpacucli> ctrl all show config detail

 2. Display the Status:
 
  hpacucli> ctrl all show status

 3. Display the Cache details:
 
  hpacucli> ctrl slot=0 modify dwc=disable
  hpacucli> ctrl slot=0 modify dwc=enable

 4. Rescan the newly added device:
 
  hpacucli> rescan
  Note: detects newly added devices since the last rescan  
Physical Drive Commands :
 5. Display the prysical drive(detailed)
   
  hpacucli> ctrl slot=0 pd all show  --> it will list the all Physical disk detail
  hpacucli> ctrl slot=0 pd 2:3 show detail  --> it will show mention physical drive details.
  Note: you can obtain the slot number by displaying the controller configuration (see above)  
  Status hpacucli> ctrl slot=0 pd all show status  --> It will show physical disk status
  hpacucli> ctrl slot=0 pd 2:3 show status


 6. Erase the physical disk deatils:
 
  hpacucli> ctrl slot=0 pd 2:3 modify erase

 7. Blink disk LED:
 
  hpacucli> ctrl slot=0 pd 2:3 modify led=on
  hpacucli> ctrl slot=0 pd 2:3 modify led=off

Logical Drive Commands  :
 8. Display logical drive (detailed)
 
  hpacucli> ctrl slot=0 ld all show [detail]
  hpacucli> ctrl slot=0 ld 4 show [detail] 

 9. To view the Status of Logical drive:
 
  hpacucli> ctrl slot=0 ld all show status 
  hpacucli> ctrl slot=0 ld 4 show status

 10. Blink disk LED:
 
  hpacucli> ctrl slot=0 ld 4 modify led=on
  hpacucli> ctrl slot=0 ld 4 modify led=off

 11. Re-enabling failed drive:
 
  hpacucli> ctrl slot=0 ld 4 modify reenable forced 

 12. Create # logical drive - one disk:
 
  hpacucli> ctrl slot=0 create type=ld drives=1:12 raid=0 
 13. # logical drive - mirrored :
  hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14 size=300 raid=1
 14. # logical drive - raid 5 
 
  hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14,1:15,1:16,1:17 raid=5
Note:
drives - specific drives, all drives or unassigned drives
size - size of the logical drive in MB
raid - type of raid 0, 1 , 1+0 and 5  
 15. Remove:
 
  hpacucli> ctrl slot=0 ld 4 delete 
 16. Expanding:
  hpacucli> ctrl slot=0 ld 4 add drives=2:3 
 17 Extending:
  hpacucli> ctrl slot=0 ld 4 modify size=500 forced 
 18. Spare:
 
  hpacucli> ctrl slot=0 array all add spares=1:5,1:7

No comments: