Changes

Jump to: navigation, search

Talk:SYA810 iSCSI Lab

1,173 bytes added, 17:02, 14 April 2009
Created page with '= RAID on iSCSI for Dumpling = == Terminology == Target the iscsi server Initiator the iscsi client IQN /etc/iscsi/initiatorname.iscsi --> iqn.YYYY-MM.domain.reversed.string is...'
= RAID on iSCSI for Dumpling =
== Terminology ==
Target the iscsi server
Initiator the iscsi client
IQN /etc/iscsi/initiatorname.iscsi --> iqn.YYYY-MM.domain.reversed.string
iscsi port 3260

== Steps ==
===Target===
# install
yum -y install netbsd-iscsi
# create a disk
= dd
dd if=/dev/zero of=fakefile bs=1024 count=104857600
= LVM
# edit /etc/iscsi/targets to specifiy which hard disk to be used. change the subnet to 127.0.0.1 in this case. change the file location is neccessary

===Initiator===
====Connecting iSCSI====
# install initiator
yum -y install iscsi-initiator-utils
# tunnel to target
ssh joker@142.204.141.183 -L 3260:localhost:3260
ssh joker@142.204.141.183 -L 3260:localhost:3260; sleep 60 &
# discovery and connect
iscsiadm -m discovery -t sendtargets -p localhost
# show connected node
iscsiadm -m node

# login to iscsi
iscsiadm -m node -l
# logout from iscsi
iscsiadm -m node -U

====Setting up RAID====
# setup the drive crated as the loop drive
losetup /dev/loop0 ./fakefile
# create raid drive
mdadm -C /dev/md1 -l1 -n2 /dev/loop0 /dev/sdc
# format the RAID
mkfs.ext3 /dev/md1
# mount the drive
mkdir /media/raid10
mount /dev/md1 /media/raid10

Navigation menu