This is an old revision of the document!
yum install targetcli net-tools wget chrony wget https://downloads.linux.hp.com/SDR/add_repo.sh sh ./add_repo.sh spp -d rhel -r 7 yum install hpssacli
#!/bin/sh if [ ! -c /dev/sg0 ] ; then exec /sbin/modprobe sg >/dev/null 2>&1 fi
chmod 755 /etc/sysconfig/modules/scsi.modules
hpssacli controller slot=2 modify cacheratio=75/25
echo noop > /sys/block/sda/queue/scheduler # /sbin/blockdev --setra 1024 /dev/sda
tuned-adm profile network-throughput
targetcli
/backstores/block create lun1 /dev/data/lun1 /iscsi create /iscsi/iqn.2003-01.org.linux-iscsi.testnas.x8664:sn.3e16441761a3/tpg1 portals delete 0.0.0.0 3260 portals create 192.168.0.100 3260 portals create 192.168.1.100 3260 luns/ create /backstores/block/lun1 acls/ create iqn.1998-01.com.vmware:supermicro1-22d4a58e acls/ create iqn.1998-01.com.vmware:supermicro2-6b09d927 cd /
/> ls o- / ......................................................................................... [...] o- backstores .............................................................................. [...] | o- block .................................................................. [Storage Objects: 1] | | o- lun1 ...................................... [/dev/data/lun1 (50.0GiB) write-thru activated] | o- fileio ................................................................. [Storage Objects: 0] | o- pscsi .................................................................. [Storage Objects: 0] | o- ramdisk ................................................................ [Storage Objects: 0] o- iscsi ............................................................................ [Targets: 1] | o- iqn.2003-01.org.linux-iscsi.testnas.x8664:sn.3e16441761a3 ......................... [TPGs: 1] | o- tpg1 ............................................................... [no-gen-acls, no-auth] | o- acls .......................................................................... [ACLs: 2] | | o- iqn.1998-01.com.vmware:supermicro1-22d4a58e .......................... [Mapped LUNs: 1] | | | o- mapped_lun0 .................................................. [lun0 block/lun1 (rw)] | | o- iqn.1998-01.com.vmware:supermicro2-6b09d927 .......................... [Mapped LUNs: 1] | | o- mapped_lun0 .................................................. [lun0 block/lun1 (rw)] | o- luns .......................................................................... [LUNs: 1] | | o- lun0 .................................................... [block/lun1 (/dev/data/lun1)] | o- portals .................................................................... [Portals: 2] | o- 192.168.0.100:3260 ............................................................... [OK] | o- 192.168.1.100:3260 ............................................................... [OK] o- loopback ......................................................................... [Targets: 0] />