리눅스

Total 331
Today 0
profile_image
슈퍼아이피
11-11-21 09:08 0개 20회
TIP
hp hpacucli 스토리지 명령어

hpacucli ctrl slot=1 show config
hpacucli ctrl slot=1 show config detail

hpacucli ctrl slot=1 pd all show status (Physical 구조)

hpacucli ctrl slot=1 ld all show status (Logical 구조)

 

hpacucli ctrl slot=1 show status

hpacucli ctrl all show status

 

결과가 무척 단순하다.


=> ctrl slot=0 show config


Smart Array 6i in Slot 0      ()


   array A (Parallel SCSI, Unused Space: 0 MB)


      logicaldrive 1 (203.5 GB, RAID 5, Recovering 39.4% complete)


      physicaldrive 2:0   (port 2:id 0 , Parallel SCSI, 72.8 GB, Rebuilding)
      physicaldrive 2:1   (port 2:id 1 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:2   (port 2:id 2 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:3   (port 2:id 3 , Parallel SCSI, 72.8 GB, OK)


   unassigned


      physicaldrive 2:4   (port 2:id 4 , Parallel SCSI, 18.2 GB, OK)
      physicaldrive 2:5   (port 2:id 5 , Parallel SCSI, 18.2 GB, OK)

새로 추가된 18.2GB 디스크 확인


Available options are:
   raid 0
   raid 1+0 (default value)


=> ctrl slot=0 create type=ld drives=2:4,2:5 raid=1+0

      미러로 만든다 해당 디스크는 2:4 ,2:5 번 이다.

=> ctrl slot=0 show config


Smart Array 6i in Slot 0      ()


   array A (Parallel SCSI, Unused Space: 0 MB)


      logicaldrive 1 (203.5 GB, RAID 5, Recovering 48.6% complete)


      physicaldrive 2:0   (port 2:id 0 , Parallel SCSI, 72.8 GB, Rebuilding)
      physicaldrive 2:1   (port 2:id 1 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:2   (port 2:id 2 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:3   (port 2:id 3 , Parallel SCSI, 72.8 GB, OK)


   array B (Parallel SCSI, Unused Space: 0 MB)


      logicaldrive 2 (17.0 GB, RAID 1+0, OK)


      physicaldrive 2:4   (port 2:id 4 , Parallel SCSI, 18.2 GB, OK)
      physicaldrive 2:5   (port 2:id 5 , Parallel SCSI, 18.2 GB, OK)

새로운 그룹으로 2:4 , 2:5 생성된것을 확인 할수 있다.


=>

[root@DL380 cciss]# more /proc/driver/cciss/cciss0       
cciss0: HP Smart Array 6i Controller
Board ID: 0x40910e11
Firmware Version: 2.36
IRQ: 217
Logical drives: 2
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 4
Max # commands on controller since init: 194
Max SG entries since init: 31
       Sequential access devices: 0


cciss/c0d0:      218.50GB       RAID 5
cciss/c0d1:       18.20GB       RAID 1(1+0)
[root@DL380 cciss]#

root@DL380 cciss]# fdisk -l /dev/cciss/c0d1


Disk /dev/cciss/c0d1: 18.2 GB, 18203197440 bytes
255 heads, 32 sectors/track, 4357 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes


           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d1p1               1        4357    17776544   83  Linux
[root@DL380 cciss]# mkfs.ext3 /dev/cciss/c0d1p1

=> ctrl slot=0 show config


Smart Array 6i in Slot 0      ()


   array A (Parallel SCSI, Unused Space: 0 MB)


      logicaldrive 1 (203.5 GB, RAID 5, OK)


      physicaldrive 2:0   (port 2:id 0 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:1   (port 2:id 1 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:2   (port 2:id 2 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:3   (port 2:id 3 , Parallel SCSI, 72.8 GB, OK)


   array B (Parallel SCSI, Unused Space: 0 MB)


      logicaldrive 2 (17.0 GB, RAID 1+0, OK)


      physicaldrive 2:4   (port 2:id 4 , Parallel SCSI, 18.2 GB, OK)
      physicaldrive 2:5   (port 2:id 5 , Parallel SCSI, 18.2 GB, OK)


=> ctrl slot=0 ld 2 delete

     2번 logicaldrive 제거


Warning: Deleting an array can cause other array letters to become renamed.
         E.g. Deleting array A from arrays A,B,C will result in two remaining
         arrays A,B ... not B,C



Warning: Deleting the specified device(s) will result in data being lost.
         Continue? (y/n) y


=> ctrl slot=0 show config


Smart Array 6i in Slot 0      ()


   array A (Parallel SCSI, Unused Space: 0 MB)


      logicaldrive 1 (203.5 GB, RAID 5, OK)


      physicaldrive 2:0   (port 2:id 0 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:1   (port 2:id 1 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:2   (port 2:id 2 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:3   (port 2:id 3 , Parallel SCSI, 72.8 GB, OK)


   unassigned


      physicaldrive 2:4   (port 2:id 4 , Parallel SCSI, 18.2 GB, OK)
      physicaldrive 2:5   (port 2:id 5 , Parallel SCSI, 18.2 GB, OK)


=>

[root@DL380 /]# more /proc/driver/cciss/cciss0
cciss0: HP Smart Array 6i Controller
Board ID: 0x40910e11
Firmware Version: 2.36
IRQ: 217
Logical drives: 1
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 6
Max # commands on controller since init: 384
Max SG entries since init: 31
       Sequential access devices: 0


cciss/c0d0:      218.50GB       RAID 5

댓글목록

등록된 댓글이 없습니다.