OpenShift上のTridentでnodePrep:[iscsi]が設定されている場合、どのような操作が実行されますか?
環境
- Trident 24.10以降
- OpenShift
回答
OpenShift上のTridentOrchestratorにnodePrep: [iscsi]が設定されている場合、次の操作が実行されます:
- アップデート
/etc/multipath.conf:
- (
/etc/multipath.confが存在しない場合)
以下の内容で/etc/multipath.confを作成します:
defaults {
find_multipaths no
}
blacklist {
device {
vendor ".*"
product ".*"
}
}
blacklist_exceptions {
device {
vendor "NETAPP"
product "LUN"
}
}
- (
/etc/multipath.confとfind_multipaths = noが存在する場合)
NetAppLUNをblacklist_exceptionsに追加 - (
/etc/multipath.confが存在し、find_multipathsがnoに設定されていない場合)
ノードの準備が停止します
- サービスを有効にして開始します。
- iscsid (command:
systemctl enable --now iscsid) - multipathd (command:
systemctl enable --now multipathd)
注記:パッケージのインストール(lsscsi、iscsi-initiator-utils、device-mapper-multipath)および/etc/iscsi/iscsid.confへの更新は自動的には実行されません。