Como certificar-se de que o RHEL verá discos de múltiplos caminhos após uma reinicialização?

1

Estamos usando o RHEL, mas infelizmente há problemas com vários caminhos.

Parece que nem todos os discos SAN são vistos automaticamente após uma reinicialização. Um recarregamento multipath de serviço é necessário para que o sistema operacional possa ver os discos.

root@test-01 ~]# ls -al /dev/mapper/ total 0
drwxr-xr-x.  2 root root     480 May 31 13:17 .
drwxr-xr-x. 21 root root    5500 May 31 13:20 ..
crw-rw----.  1 root root  10, 58 May 31 13:17 control
brw-rw----.  1 root disk 253, 16 May 31 13:17 TS_DATA_DISK000p1 
brw-rw----.  1 root disk 253, 14 May 31 13:17 TS_DATA_DISK001p1
brw-rw----.  1 root disk 253,  7 May 31 13:17 TS_DATA_DISK002p1 
brw-rw----.  1 root disk 253,  9 May 31 13:17 TS_DATA_DISK003p1
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK000p1 -> ../dm-15
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK001p1 -> ../dm-17
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK002p1 -> ../dm-22
lrwxrwxrwx.  1 root root       7 May 31 13:17 TS_BEL_DISK003 -> ../dm-5
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK003p1 -> ../dm-12
brw-rw----.  1 root disk 253, 23 May 31 13:17 TS_JPG_DISK000p1
brw-rw----.  1 root disk 253, 18 May 31 13:17 TS_JPG_DISK001p1
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_JPG_DISK002 -> ../dm-21
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_JPG_DISK002p1 -> ../dm-24
lrwxrwxrwx.  1 root root       8 May 31 13:17 mpathb -> ../dm-25
lrwxrwxrwx.  1 root root       8 May 31 13:17 mpathbp1 -> ../dm-26
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg00-lvhome -> ../dm-30
lrwxrwxrwx.  1 root root       7 May 31 13:17 vg00-lvroot -> ../dm-1
lrwxrwxrwx.  1 root root       7 May 31 13:17 vg00-lvswap -> ../dm-0
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg00-lvtmp -> ../dm-29
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg00-lvvar -> ../dm-28
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg_app-lv_d01_app -> ../dm-27
[root@test-01 ~]# service multipathd reload
Reloading multipathd:                                      [  OK  ]
[root@test-01 ~]# ls -al /dev/mapper total 0
drwxr-xr-x.  2 root root    680 May 31 13:22 .
drwxr-xr-x. 21 root root   5500 May 31 13:22 ..
crw-rw----.  1 root root 10, 58 May 31 13:17 control
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_DATA_DISK000 -> ../dm-10
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_DATA_DISK000p1 -> ../dm-16
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK001 -> ../dm-6
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_DATA_DISK001p1 -> ../dm-14
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK002 -> ../dm-3
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK002p1 -> ../dm-7
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK003 -> ../dm-4
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK003p1 -> ../dm-9
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_BEL_DISK000 -> ../dm-8
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK000p1 -> ../dm-15
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK001 -> ../dm-11
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK001p1 -> ../dm-17
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK002 -> ../dm-19
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK002p1 -> ../dm-22
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_BEL_DISK003 -> ../dm-5
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK003p1 -> ../dm-12
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK000 -> ../dm-20
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK000p1 -> ../dm-23
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK001 -> ../dm-13
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK001p1 -> ../dm-18
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK002 -> ../dm-21
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK002p1 -> ../dm-24
lrwxrwxrwx.  1 root root      8 May 31 13:22 mpathb -> ../dm-25
lrwxrwxrwx.  1 root root      8 May 31 13:22 mpathbp1 -> ../dm-26
lrwxrwxrwx.  1 root root      7 May 31 13:22 d01 -> ../dm-2
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg00-lvhome -> ../dm-30
lrwxrwxrwx.  1 root root      7 May 31 13:17 vg00-lvroot -> ../dm-1
lrwxrwxrwx.  1 root root      7 May 31 13:17 vg00-lvswap -> ../dm-0
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg00-lvtmp -> ../dm-29
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg00-lvvar -> ../dm-28
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg_app-lv_d01_app -> ../dm-27
[root@test-01 ~]#

Como certificar-se de que o RHEL verá discos de múltiplos caminhos após uma reinicialização, sem ter que executar manualmente o recarregamento do multipathd de serviço?

    
por ujjain 03.06.2013 / 12:50

1 resposta

2

Se você fez alterações em /etc/multipath.conf sem recriar o initrd, pode sempre tentar recriar seu initrd. Isso e garantir que o daemon multipathd esteja em execução ( chkconfig multipathd on ) deve ser suficiente para a maioria dos casos que vi.

Não sei qual armazenamento você está usando, mas se o módulo de armazenamento / HBA for carregado após o início de multipathd , isso também poderá ser um problema.

    
por 03.06.2013 / 13:46