This is an old revision of the document!


Quick start

/etc/init.d/target stop
rmmod qla2xxx
modprobe qla2xxx qlini_mode="disabled"

We have already LVM group vg_0

lvcreate -L 10G -n deset vg_0
targetcli
/> cd /backstores/fileio
/backstores/fileio> create sovgut /dev/testlio/deset
cd /qla2xxx
create 21:00:00:1b:32:1f:74:39
create 21:01:00:1b:32:3f:74:39
cd 21:00:00:1b:32:1f:74:39/luns
create /backstores/fileio/sovgut
cd /qla2xxx/21:00:00:1b:32:1f:74:39/acls
/qla2xxx/21:0...3f:74:39/acls> 

Now we need client's wwn number. Easiest way is to

 cat /sys/class/scsi_host/host4/port_name

But this would be more helpfull

 cat /sys/class/fc_host/host*/port_name | sed -e s/0x// -e 's/../&:/g' -e s/:$//

<code> /qla2xxx/21:0…3f:74:39/acls>

quick start 2

cd backstores/fileio create disk01 /vps/disk01.img 10G cd /iscsi create iqn.starlab.h5 create iqn.starlab:h5 create iqn.starlab.h5:target create iqn.2019-06.starlab.h5:target cd iqn.2019-06.starlab.h5:target/tpg1/luns create /backstores/fileio/disk01 cd ../acls create iqn.1993-08.org.debian:backup set auth ? set auth=backup set auth userid=backup cd iqn.1993-08.org.debian:backup/ set auth userid=backup set auth password=TheTARGET_PATH exit cd iqn.2019-06.starlab.h5:target/tpg1/luns cd /iscsi/iqn.2019-06.starlab.h5:target/tpg1/luns cd /backstores/fileio/ create raid /vps/raid.img 1200G cd /iscsi/iqn.2019-06.starlab.h5:target/tpg1/luns/ create /backstores/fileio/raid exit

 
linux/lio.1549398326.txt.gz · Last modified: 2019/02/05 21:25 by admin