# iscsiadm -m discovery -t sendtargets -p xxxx.xxxx.xxxx.xxxx:3260 xxx.xxx.xxx.xxx:3260,1 iqn.xxxx-xx.com.hoge:volume1 xxx.xxx.xxx.xxx:3260,1 iqn.xxxx-xx.com.hoge:volume2
それぞれのターゲットに認証情報を設定してログイン
# iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.authmethod -v None # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.username -v "" # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.password -v "" # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.username_in -v "" # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.password_in -v "" # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 -l Logging in to [iface: default, target: iqn.xxxx-xx.com.hoge:volume1, portal: xxxx.xxxx.xxxx.xxxx,3260] (multiple) Login to [iface: default, target: iqn.xxxx-xx.com.hoge:volume1, portal: xxxx.xxxx.xxxx.xxxx,3260] successful. # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume2 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.authmethod -v CHAP # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume2 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.username -v username # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume2 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.password -v password # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume2 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.username_in -v username_in # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume2 -p xxx.xxx.xxx.xxx:3260,1 -o update -n node.session.auth.password_in -v password_in # iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume2 -p xxx.xxx.xxx.xxx:3260,1 -l Logging in to [iface: default, target: iqn.xxxx-xx.com.hoge:volume2, portal: xxxx.xxxx.xxxx.xxxx,3260] (multiple) Login to [iface: default, target: iqn.xxxx-xx.com.hoge:volume2, portal: xxxx.xxxx.xxxx.xxxx,3260] successful.
現在の認証設定を確認する場合は
# iscsiadm -m node -T iqn.xxxx-xx.com.hoge:volume1 -p xxx.xxx.xxx.xxx:3260,1 ----中略---- node.session.auth.authmethod = None node.session.auth.username = <empty> node.session.auth.password = <empty> node.session.auth.username_in = <empty> node.session.auth.password_in = <empty> ----中略----な感じで確認可能
0 件のコメント:
コメントを投稿