Monitoring du RAID Hard sur Dedibox Pro
NB : Cet article concerne les Dédibox R210 sous debian squeeze
Comment surveiller l'état du RAID Hard des dernières Dedibox Pro r210 ?
On commence par vérifier le matériel utilisé :
# lspci [...] 03:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS2008 ... PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 03) [...]
On va chercher le nom des outils correspondants ici : http://hwraid.le-vert.net/wiki/DebianPackages. Dans mon cas, il s'agit donc d'installer sas2ircu / sas2ircu-status.
On ajoute le dépôt (attention : la ligne donnée sur le site est pour Lenny) :
# cat >> /etc/apt/sources.list
deb http://hwraid.le-vert.net/debian squeeze main
On met à jour les paquets et on installe :
# aptitude update
# aptitude install sas2ircu-status
Et voilà, on peut connaître l'état du RAID et bien plus encore
# sas2ircu-status
-- Controller informations --
-- ID | Model
c0 | SAS2008
-- Arrays informations --
-- ID | Type | Size | Status
c0u0 | RAID1 | 1907G | Okay (OKY)
-- Disks informations
-- ID | Model | Status
c0u0p0 | ST32000444SS (9WM47H1W) | Optimal (OPT)
# sas2ircu
LSI Corporation SAS2 IR Configuration Utility.
Version 5.00.00.00 (2010.02.09)
Copyright (c) 2009 LSI Corporation. All rights reserved.
SAS2IRCU: No command specified.
sas2ircu ...
where is:
Number between 0 and 255
where is:
DISPLAY - display controller, volume and physical device info
LIST - Lists all available LSI adapters (does not need ctlr #>
CREATE - create an IR volume
DELETE - set controller configuration to factory defaults
HOTSPARE - make drive a hot spare
STATUS - display current volume status info
CONSTCHK - Start Consistency Check operation on the specified IR Volume
ACTIVATE - Activate an Inactive IR volume
LOCATE - Locate a disk drive on an enclosure
LOGIR - Upload or Clear IR Log data
BOOTIR - Select an IR Boot Volume as primary boot device
BOOTENCL - Select an Enclosure/Bay as primary boot device
where are:
Command specific values; enter "sas2ircu "
to get command specific help
|