12
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HW保守で使いそうなTips 〜ディスク周り〜

Last updated at Posted at 2015-10-27

個人的に、ディスク周りのHW保守でよく使うTipsを適当に書いてます

raidコントローラーの確認

$ lspci | grep LSI
02:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS-3 3108 [Invader] (rev 02)

MegaCli コマンド

raid・仮想ディスクの状態確認

$ /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll -NoLog

物理ディスクの状態確認

$ /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll
$ /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll | egrep 'Slot|Firmware state|Inquiry'
$ /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | egrep 'Slot|state|Data|Raw'

LED点灯(ディスクのスロット)

# -physdrv[Enclosure Device ID:Slot Number]
$ /opt/MegaRAID/MegaCli/MegaCli64 -Pdlocate start physdrv[E:S] -a0

LED消灯

# -physdrv[Enclosure Device ID:Slot Number]
$ /opt/MegaRAID/MegaCli/MegaCli64 -Pdlocate stop physdrv[E:S] -a0

ディスクのオフライン

# -physdrv[Enclosure Device ID:Slot Number]
$ /opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv[E:S] -a0

ディスク抜く前にしておくコマンド

# -physdrv[Enclosure Device ID:Slot Number]
$ /opt/MegaRAID/MegaCli/MegaCli64 -PDPrpRmv -PhysDrv[E:S] -a0

Rebuildの進捗確認

#  -physdrv[Enclosure Device ID:Slot Number]
$ /opt/MegaRAID/MegaCli/MegaCli64 -AdpGetProp RebuildRate -a0
$ /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -showprog -physdrv[E:S] -a0

mpt-statusコマンド

ハードディスクの状態確認

$ /usr/sbin/mpt-status

Rebuildの進捗確認

$ /usr/sbin/mpt-status -n

omreportコマンド(DELL)

raid・仮想ディスクの状態確認

$ /opt/dell/srvadmin/bin/omreport storage vdisk controller=0

物理ディスクの状態確認

$ /opt/dell/srvadmin/bin/omreport storage pdisk controller=0

rebuildの確認

$ /opt/dell/srvadmin/bin/omreport storage pdisk controller=0 | egrep 'ID|Status|State|Progress'

hpacucliコマンド(HP)

raid確認

$ /opt/compaq/hpacucli/bld/hpacucli ctrl all show config
12
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?