Installing – Let’s use Debian based manager :
Apt-get install open-iscsi
Apt-get install iperf
Apt-get install nload
Scanning for targets :
Iscsiadmin -m discovery -t st -p target_ip
Iscsiadm -m node -u
Iscsiadm -m node –login
Check if you see the object :
Lsblk
New disk should appear in dev – like sdx \–sdx1
How to partition (if wasn’t partitioned yet)
Fdisk /dev/sdc
N
P
Enter
w
Mkfs.ext4 /dev/sdx1
Connecting the drive to system
Fsck /dev/sdc1
Mount /dev/sdc1 /mnt
Creating big file with random data :
Dd if=/dev/urandom of=rnd.20G count=1024 bs=20M
Also you can check the copy speed live via rsync (when copying from mount location to mount for example) –
rsync –progress source destination
Live interface monitoring can be done via
nload – same like top but for nics
And at the end if you’d like to check what is the performance of network(without storage) – connect second host to same switch and run iperf
Iperf -s (on servers side)
Iperf -c x.x.x.x -d (-D option for simultaneous bi-directional bandwidth measurement)