|
Buscar |
Verificar y reconstruir el RAID Hardware LSIEsta guía le servirá para reconstruir el RAID HW de su servidor dedicado en el caso de que se haya producido un cambio de disco o bien el RAID no esté sincronizado.
Si su sistema no es Linux, debe arrancar el sistema en modo Rescue, entrar en SSH con la contraseña root que se le envía y seguir las instrucciones. Primero compruebe si el modelo de su tarjeta es de tipo "Mega", por ejemplo: root@rescue:~# lspci -nn |grep -i mega 03:00.0 RAID bus controller [0104]: LSI Logic / Symbios Logic LSI MegaSAS 9260 [1000:0079] (rev 04) En este caso es una tarjeta de tipo MegaRaid. Dependiendo de su modelo de tarjeta de RAID (LsiRaid o LsiMegaRaid), deberá utilizar un comando de gestión diferente:
Procedimiento simple Conéctese en SSH con el usuario root o a través del panel de control de Webmin (ejecutar un comando), introduzca el comando siguiente : # lsiutil -p1 -i -s Este comando verifica la configuración del RAID y si es necesario, inicia la reconstrucción (sincronización de los dos discos duros). Procedimiento avanzado Para consultar la configuración y el estado del RAID o bien para ejecutar una operación de mantenimiento, se debe usar el comando lsiutil. Si su distribución no tiene el paquete lsiutil ya disponible, puede descargarlo y compilarlo de la siguiente forma: # wget ftp://ftp.lsil.com/HostAdapterDrivers/linux/lsiutil/lsiutil.tar.gz# tar xvfz lsiutil.tar.gz # cd lsiutil # rm lsiutil # make # cp lsiutil/lsiutil /usr/local/sbin/ Para conocer las diferentes opciones introduzca el comando lsiutil -h # lsiutil -h LSI Logic MPT Configuration Utility, Version 1.56, March 19, 2008 Help Usage Invoking lsiutil with no arguments will start an interactive session. -e Turn on Expert Mode (more menu options). -w, -ww, -www Log internal operations to lsiutil.log, for debug. -y Answer yes to yes/no questions whose default is yes. -n Answer no to yes/no questions whose default is no. -j type[,type] Include just ports of type 'type' (FC, SCSI, SAS). -x Concatenate SAS firmware and NVDATA files. Display Options usage: lsiutil [ -p portNumber ] [ -u ][ -s ] [ -d ] [ -i ] [ -b ] -p portNumber Specify the port number to operate on. If not specified, all ports are used. -u Use untagged, rather than tagged, SCSI commands. -s Scan for and display all targets. -d Dump all config pages. -i Display port settings. -b Show board manufacturing information. -m freq[,time] Monitor port performance, updating the display every 'freq' seconds, for 'time' seconds. Examples: 1. to display the port settings and targets for port 1: lsiutil -p 1 -i -s 2. to display the targets found on all known ports: lsiutil -s Operational Options usage: lsiutil -p portNumber [ -l linkSpeed ] [ -t topology ] [ -c timeout,depth ] [ -r ] -p portNumber Specify the port number to operate on. Required parameter for operational options. -l linkSpeed Set link speed. Valid options for linkSpeed are: 'a' Auto link speed negotiation '1' Force 1Gb link speed '2' Force 2Gb link speed '4' Force 4Gb link speed -t topology Set topology. Valid options for topology are: 'a' Auto topology negotiation '1' Force NL_Port topology'2' Force N_Port topology-c timeout,depth Set interrupt coalescing values. Timeout is a value in microseconds between 1 and 1000. Depth is a value between 1 and 128. Setting either or both values to zero will disable interrupt coalescing for that port. -r Perform a chip reset on the given port. -z Perform an FC link reset on the given port. NOTE: In order for linkSpeed, topology, or interrupt coalescing settings to take effect, a chip reset is necessary. Examples: 1. to force linkspeed to 1Gb on port 2: lsiutil -p 2 -l 1 2. to set interrupt coalescing to a timeout of 200ms with a depth of 9 and to force N_Port topology on port 1:lsiutil -p 1 -c 200,9 -t 2 Para lanzar un chequeo del RAID puede ejecutar el comando : # lsiutil -p1 -a 21,2,1,3,0,0 LSI Logic MPT Configuration Utility, Version 1.56, March 19, 2008 1 MPT Port found Port Name Chip Vendor/Type/Rev MPT Rev Firmware Rev IOC 1. /proc/mpt/ioc0 LSI Logic SAS1068E B3 105 00143000 0 1 volume is active, 2 physical disks are active PhysDisk 0 is Bus 0 Target 1PhysDisk State: onlinePhysDisk Size 238418 MB, Inquiry Data: ATA ST3250620NS 3BKSPhysDisk 1 is Bus 0 Target 8PhysDisk State: onlinePhysDisk Size 238418 MB, Inquiry Data: ATA ST3250620NS 3BKSVolume 0 is Bus 0 Target 0, Type IM (Integrated Mirroring) Volume Name: Volume WWID: 01e2adb8d959aedc Volume State: optimal, enabled Volume Settings: write caching enabled, auto configure, priority resync Volume draws from Hot Spare Pools: 0 Volume Size 237464 MB, 2 Members Primary is PhysDisk 1 (Bus 0 Target 8)Secondary is PhysDisk 0 (Bus 0 Target 1)Volume 0 State: optimal, enabled Este comando verifica la configuración del RAID y si es necesario, inicia la reconstrucción (sincronización de los dos discos duros). En este caso, no es necesario (estado : optimal, enabled) En el caso que el sistema detecte que el RAID está degradado, al final, le aparecería el estado : Volume 0 State: degraded, enabled, resync in progress ... Lo cual indica que la sincronización está en progreso. : HardRaidLsiRaid0 :: RAID 0/1 con una tarjeta LSI Logic : ReconstruirRaid :: Verificar y reconstruir el RAID Hardware 3ware : LinuxRaid0 :: RAID 0/1 con Raid por Hardware 3ware : ReconstruirRaidSoft :: Verificar y reconstruir el RAID Software : LinuxRaidSoftRaid0 :: RAID 0/1 con Raid por Software en Linux |