无法使用 iscsi 预留和多路径写入/安装磁盘。使用 Pacemaker 和 iscsi 隔离代理

无法使用 iscsi 预留和多路径写入/安装磁盘。使用 Pacemaker 和 iscsi 隔离代理

我在连接到 Dell MD1200 的起搏器群集中拥有两个 iscsi 目标服务器,我可以使用在每个服务器中配置的 multipath.conf 键来记录 scsi 预留,但我无法在任何一个系统上可靠地写入阵列。只有关闭所有系统并只启动一个节点,我才能挂载并写入阵列。我觉得我缺少一个使用 multipathd 以外的预留键设置主系统的配置

这是我的配置:

multipath.conf 节点1

defaults {
        user_friendly_names    no
        find_multipaths        yes
        reservation_key        3bcc0000
        path_selector          "service-time 0"
        path_grouping_policy   group_by_serial
        polling_interval       10
        uid_attribute          ID_SERIAL
        prio                   const
        path_checker           tur
        rr_min_io              100
        max_fds                8192
        rr_weight              priorities
        failback               immediate
        no_path_retry          fail
}

blacklist_exceptions {
        property "(SCSI_IDENT_|ID_WWN)"
}

blacklist {
}

multipath.conf 节点2

defaults {
        user_friendly_names    no
        find_multipaths        yes
        reservation_key        3bcc0001
        path_selector          "service-time 0"
        path_grouping_policy   group_by_serial
        polling_interval       10
        uid_attribute          ID_SERIAL
        prio                   const
        path_checker           tur
        rr_min_io              100
        max_fds                8192
        rr_weight              priorities
        failback               immediate
        no_path_retry          fail
}

blacklist_exceptions {
        property "(SCSI_IDENT_|ID_WWN)"
}

blacklist {
}

iscsi 隔离代理配置:

pcs stonith config
 Resource: vol1-san01_fence (class=stonith type=fence_scsi)
  Attributes: devices=/dev/mapper/35000c500b6f6b607,/dev/mapper/35000c500b6f71b8b,/dev/mapper/35000c500b6f71c27,/dev/mapper/35000c500b6f71c37,/dev/mapper/35000c500b6f7df7b,/dev/mapper/35000c500b6f80333,/dev/mapper/35000c500b6f8070f,/dev/mapper/35000c500b6f8072b,/dev/mapper/35000cca0131663d4,/dev/mapper/35000cca01317b5d8,/dev/mapper/35000cca01317bb94,/dev/mapper/35000cca01317beb8 key=3bcc0000 pcmk_host_list=sphqsan01 pcmk_monitor_action=metadata
  Meta Attrs: provides=unfencing
  Operations: monitor interval=60s (vol1-san01_fence-monitor-interval-60s)
 Resource: vol1-san02_fence (class=stonith type=fence_scsi)
  Attributes: devices=/dev/mapper/35000c500b6f6b607,/dev/mapper/35000c500b6f71b8b,/dev/mapper/35000c500b6f71c27,/dev/mapper/35000c500b6f71c37,/dev/mapper/35000c500b6f7df7b,/dev/mapper/35000c500b6f80333,/dev/mapper/35000c500b6f8070f,/dev/mapper/35000c500b6f8072b,/dev/mapper/35000cca0131663d4,/dev/mapper/35000cca01317b5d8,/dev/mapper/35000cca01317bb94,/dev/mapper/35000cca01317beb8 key=3bcc0001 pcmk_host_list=sphqsan02 pcmk_monitor_action=metadata
  Meta Attrs: provides=unfencing
  Operations: monitor interval=60s (vol1-san02_fence-monitor-interval-60s)

检查预留(node2当前已被禁用):

[root@sphqsan01 ~]# /usr/bin/sg_persist -n -i -k -d /dev/mapper/35000c500b6f6b607
  PR generation=0x79, 2 registered reservation keys follow:
    0x3bcc0000
    0x3bcc0000

相关内容