yum update && yum upgrade -y
yum install iscsi-initiator-utils -y
vi /etc/iscsi/iscsid.conf
iscsiadm -m discovery -t st -p 1.1.1.2
10.10.10.2:3260,1 iqn.2004-08.jp.buffalo.8857eeb78f4f.rsync
1.1.1.2:3260,1 iqn.2004-08.jp.buffalo.8857eeb78f4f.rsync
vi /etc/iscsi/iscsid.conf
node.session.auth.username = username
node.session.auth.password = password
iscsiadm -m node -l -T iqn.2004-08.jp.buffalo.8857eeb78f4f.rsync -p 1.1.1.2
Logging in to [iface: default, target: iqn.2004-08.jp.buffalo.8857eeb78f4f.rsync, portal: 1.1.1.2,3260] (multiple)
Login to [iface: default, target: iqn.2004-08.jp.buffalo.8857eeb78f4f.rsync, portal: 1.1.1.2,3260] successful.
[ 9311.769734] sd 54:0:0:0: Attached scsi generic sg2 type 0
[ 9311.769879] sd 54:0:0:0: [sdb] 104857600 512-byte logical blocks: (53.7 GB/50.0 GiB)
[ 9311.771863] sd 54:0:0:0: [sdb] Write Protect is off
[ 9311.771872] sd 54:0:0:0: [sdb] Mode Sense: 43 00 00 08
[ 9311.772251] sd 54:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 9311.777438] sd 54:0:0:0: [sdb] Attached SCSI disk
Disk /dev/sdb: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 8388608 bytes
tcp: [52] 1.1.1.2:3260,1 iqn.2004-08.jp.buffalo.8857eeb78f4f.rsync (non-flash)