
執行 Red Hat Enterprise Linux Server 版本 6.6。
建立新的 LUN,重新掃描匯流排,在建立的 4 個新設備之一上建立 PV,然後在同一裝置上建立 VG-LV。 LUN 是多路徑的,但我忘記修改 multipah.conf 的 blacklist_exceptions 和 LUN 的多路徑部分。所以我最終得到:
PV Name /dev/sdbq
/dev/disk/by-id
lrwxrwxrwx 1 root root 10 Oct 13 17:56 scsi-360002ac00000000055000b01000071a6 -> ../../sdbq
lrwxrwxrwx 1 root root 10 Oct 13 17:56 wwn-0x60002ac00000000055000b01000071a6 -> ../../sdbq
/dev/disk/by-path
lrwxrwxrwx 1 root root 10 Oct 13 17:52 pci-0000:04:00.1-fc-0x20210002ac0071a6-lun-16 -> ../../sdbn
lrwxrwxrwx 1 root root 10 Oct 13 17:34 pci-0000:04:00.1-fc-0x21210002ac0071a6-lun-16 -> ../../sdbo
lrwxrwxrwx 1 root root 10 Oct 13 17:34 pci-0000:07:00.1-fc-0x24220002ac0071a6-lun-16 -> ../../sdbp
lrwxrwxrwx 1 root root 10 Oct 13 17:56 pci-0000:07:00.1-fc-0x25220002ac0071a6-lun-16 -> ../../sdbq
那麼,此時如何建立指向 LUN 的 mpath 裝置呢?並且,如何將多路徑設備關聯到 PV?
答案1
- 創建
multipath.conf
條目0x60002ac00000000055000b01000071a6
, 以下條目
alias
將給出/dev/mapper/name
重新運行多路徑
echo reconfigure | multipath -k
這將保留
sdbq
- 運行
pvscan
這個應該創建鏈接/dev/mapper