- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:lio [2015/05/03 01:44] admin created |
linux:lio [2019/02/05 21:26] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Quick start====== | ===== Quick start====== | ||
+ | <code bash> | ||
/etc/init.d/target stop | /etc/init.d/target stop | ||
rmmod qla2xxx | rmmod qla2xxx | ||
modprobe qla2xxx qlini_mode="disabled" | modprobe qla2xxx qlini_mode="disabled" | ||
+ | </code> | ||
We have already LVM group vg_0 | We have already LVM group vg_0 | ||
Line 16: | Line 18: | ||
create 21:00:00:1b:32:1f:74:39 | create 21:00:00:1b:32:1f:74:39 | ||
create 21:01:00:1b:32:3f: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> | ||
</code> | </code> | ||
- | |||
Now we need client's wwn number. Easiest way is to | Now we need client's wwn number. Easiest way is to | ||
Line 24: | Line 29: | ||
cat /sys/class/fc_host/host*/port_name | sed -e s/0x// -e 's/../&:/g' -e s/:$// | 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> | ||
+ | </code> | ||
+ | |||
+ | ====== quick start 2 ====== | ||
+ | <code> | ||
+ | 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 | ||
+ | </code> |
linux/lio.1430610265.txt.gz · Last modified: 2015/05/03 01:44 by admin