So you have configured a brand new iscsi disk and want to put it to use in linux client?
No problem, read below!
Note: in our example, the ISCSI server is on 192.168.69.66
1. Discover the disks:
venus:~# iscsiadm -m discovery -t sendtargets -p 192.168.69.66
192.168.69.66:3260,3 iqn.2014-07.ro.gz.sun:swap-venus
2. activate them:
venus:~# iscsiadm -m node --login -p 192.168.69.66
Logging in to [iface: default, target: iqn.2014-07.ro.gz.sun:swap-venus, portal: 192.168.69.66,3260]
3. You should see the new disk with fdisk command now:
venus:~# fdisk -l /dev/sdb
Disk /dev/sdb: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
END!- Log in to post comments
- 33642 views