Technical Goulash

iscsi + mdadm mirror creation

iscsi + mdadm mirror creation

Create a file based LUN: root@hcst001:/NAS/iscsi# dd if=/dev/zero of=./lun3.img bs=1024k count=10240 root@hcst002:/NAS/iscsi# dd if=/dev/zero of=./lun3.img bs=1024k count=10240 Add lun to /etc/iet/initiators.allow: iqn.2010-12.side.lan.hcst001:iscsi.lun3 10.1.1.200 iqn.2010-12.side.lan.hcst002:iscsi.lun3 10.1.1.200 Add lun to /etc/iet/ietd.conf: Target iqn.2011-12.side.lan.hcst001:iscsi.lun3 Lun 3 Path=/NAS/iscsi/lun3.img,Type=fileio Target iqn.2010-12.side.lan.hcst002:iscsi.lun3 Lun 3 Path=/NAS/iscsi/lun3.img,Type=fileio Restart iscsitarget: /etc/init.d/iscsitarget restart Discover the new luns: root@hcvm001:~# /usr/bin/iscsiadm -m […]