make
start:
rcopen-iscsi start
discovery:
iscsiadm -m discovery -t st -p 192.168.4.123
update chap information:
iscsiadm -m node -p 192.168.4.123 --op=update \
--name=node.session.auth.authmethod --value=CHAP
iscsiadm -m node -p 192.168.4.123 --op=update \ --name=node.session.auth.username --value=andy
iscsiadm -m node -p 192.168.4.123 --op=update \ --name=node.session.auth.password --value=1234
login:
iscsiadm -m node -p 192.168.4.123 -l
or
iscsiadm -m node -r nodeId -l
the disk added after login is in /dev/sd*
delete record:
iscsiadm -m node -o delete
or
rm -rf /etc/iscsi/nodes/*
logout
iscsiadm -m node -U all
daemon:
/etc/init.d/iscsi
increase iscsi ping time to prevent a lot of io error messages
node.conn[0].timeo.noop_out_interval = X
ode.conn[0].timeo.noop_out_timeout = X
沒有留言:
張貼留言