Multipath+UDEV在线扩容ASM
# 1、两台主机分别扫描SCSI总线,识别添加的磁盘
for h in $( ls /sys/class/scsi_host/ | awk -F"host" '{print $2}'| sort -n); do echo "- - -" >/sys/class/scsi_host/host$h/scan; done
# 2、两台主机分别获取wwid并修改multipath配置
# 获取wwid
/usr/lib/udev/scsi_id -g -u /dev/mapper/XXX
Disk /dev/mapper/mpathp: 536.9 GB, 536870912000 bytes, 1048576000 sectors
wwid:3694b27110033ceef80d733b00000000d
Disk /dev/mapper/mpathq: 536.9 GB, 536870912000 bytes, 1048576000 sectors
wwid:3694b27110033ceef80d95a8f00000010
Disk /dev/mapper/mpathr: 536.9 GB, 536870912000 bytes, 1048576000 sectors
wwid:3694b27110033ceef80d72a7a0000000c
Disk /dev/mapper/mpaths: 536.9 GB, 536870912000 bytes, 1048576000 sectors
wwid:3694b27110033ceef80d964ad00000011
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/mapper/mpathp: 536.9 GB, 536870912000 bytes, 1048576000 sectors
wwid:3694b27110033ceef80d733b00000000d
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/mapper/mpathq: 536.9 GB, 536870912000 bytes, 1048576000 sectors
wwid:3694b27110033ceef80d95a8f00000010
WARNING: fdisk GPT support is currently new, and therefore in
Multipath+UDEV在线扩容ASM
于 2023-06-01 10:29:41 首次发布