segunda-feira, 1 de junho de 2015

Configurando discos usando multipath no RedHat 6

Passos:


1) Discovery 

echo "- - -" >> /sys/class/scsi_host/host0/scan

2) verificando a descoberta via fdisk 

fdisk -l 

2) Identificando volumes

lsscsi

3) Descobrindo o wwid

Ex.
scsi_id -g --dev /dev/sdX

4) Editar o /etc/multipath.conf

colocar os parametros para colocar o wwid no blacklist 

5) Ejecutar:

multipath -r 

6) Verificar:

multipath -ll

7) Formatar via mkfs.ext3

Ex.
mkfs.ext3 -m 0 /dev/mapper/mpathX


Referencias

http://en.community.dell.com/techcenter/enterprise-solutions/w/oracle_solutions/4983.how-to-configure-multipath-on-enterprise-linux-6-x-for-dell-compellent-storage

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/pdf/DM_Multipath/Red_Hat_Enterprise_Linux-6-DM_Multipath-en-US.pdf

http://www.torontoaix.com/linux-how-to-s-and-tips/wwn-linux