标签:discover pre centos get emctl eof restart targe disk
cat > iscsi_client.sh<<'EOF'
yum -y install iscsi-initiator-utils
systemctl restart iscsid && systemctl enable iscsid
cat > /etc/iscsi/initiatorname.iscsi <<EOO
InitiatorName=iqn.2020-03.tech.leoshi:target01
EOO
systemctl restart iscsid
iscsiadm -m discovery -t sendtargets -p 10.1.30.109:3260
iscsiadm -m node -T iqn.2020-03.tech.leoshi:target01 -p 10.1.30.109:3260 -l
partprobe
fdisk -l
EOF
bash iscsi_client.sh
标签:discover pre centos get emctl eof restart targe disk
原文地址:https://www.cnblogs.com/leoshi/p/12523658.html