Using iSCSI targets from Linux machine
From Notes_Wiki
Using iSCSI targets from Linux machine
Dicovering iSCSI targets
The following command can be used to scan for avaiable iSCSI targets:
iscsiadm -m discoverydb --type=st --interface=br0 --portal=<iscsi_server_IP>:3260 --op=new
Connecting iSCSI disk
Following command can be used to login on iSCSI target
iscsiadm -m discovery -p <iscsi_server_ip>:3260 -l
Sometimes even
iscsiadm -m node -p <iscsi_server_ip>:3260 -L all
may be required for things to work.
To disconnect iSCSI disk
To disconnect a drive use following steps:
- Use 'iscsiadm -m session' to list running sessions
- Then use 'iscsiadm -m session -r <session_number> -u' to logout from given session
Use 'man iscsiadm' for more information