This is an old revision of the document!


Quick start

/etc/init.d/target stop
rmmod qla2xxx
modprobe qla2xxx qlini_mode="disabled"
<code>
 
We have already LVM group vg_0
<code bash>
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>

 
linux/lio.1438168324.txt.gz · Last modified: 2015/07/29 13:12 by vondra