Useful iSCSI commands

Useful Linux commands for managing your iSCSI iSER block devices.

Our target servers will always be in the default IPoIB partition, of which your machine will always be a Limited member. Usually MLNX_OFED will be installed in the image by us.

Send your iSCSI initiator IQN through the ticket system after buying additional block storage.

Windows has its own GUI for iSCSI, sadly it doesnt support RDMA without propietary software, only TCP, which will top out at around 12Gpbs

If you have a VPS, your block storage is handled by the host and attached over virt-blk devices.

*Discovering the target server:
# iscsiadm --mode discoverydb --type sendtargets --portal ${server_ip}:3260 --discover -I iser

*Logging into the target server:
# iscsiadm -m node -l

*Disconnecting from the target server (ONLY DO THIS AFTER UNMOUNTING!):
# iscsiadm -m node -T ${server_iqn} -p ${server_ip}:3260 -u

*Updating after adding a new LUN to your account or resizing a device:
# iscsiadm -m node --targetname ${server_iqn} -R

*Benchmarking your block devices (WARNING, DESTRUCTIVE TESTS!):
 *Random Read/Write 90/10
  # fio --name=${scsi_dev} --rw=randrw --direct=1 --ioengine=libaio --bs=16k --numjobs=8 --rwmixread=90 --size=8G --runtime=600 --group_reporting
 *Sequential Read
  # fio --name=#{scsi_dev} --rw=read --direct=1 --ioengine=libaio --bs=8k --numjobs=8 --size=8G --runtime=600  --group_reporting

  • 25 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?