iSCSI Storage Initiator / Target in a Linux Environment
I have decided to share a short technical experience that i had recently. so in my pursue of a way to build a Home Linux Storage System , and also have a Software iSCSI interface to connect to it , since my home setup of hardware wont suffer an HBA addition . i did some research around sofware iSCSI. and although it is CPU Intensive, this might assist those of you that have a need for external disks.
the concept was to have a central home storage , have only small disks on my lab computers that will just run the thin OS , and then mount the drives from a central server – to which i connected a 1000/100/10 Switch just for data.
so the lab was divided into two.
1. A Linux Server that owns Physical Drives and serves as an iSCSI Target.
2. A Linux Workstation that needs to mount an external iSCSI disk Initiator.
1. How To Build The Linux Storage Server :
Install CENTOS 5.1
- yum update ( to update the OS to the latest )
- yum install kernel-devel ( optional )
- open firewall ports
- rpm -ivh iscsitarget-0.4.15-4.el5.i386.rpm
- rpm -ivh iscsitarget-kmdl-2.6.18-128.1.10.el5-0.4.15-4.el5.i686.rpm
- mkdir /home/iSCSI
- dd if=/dev/zero of=/home/iSCSI/LUN0 bs=1M count=512 ( 512 is size of disk in MB)
- vi /etc/ietd.conf and add the following lines
Target iqn.2009-06.com.example:mydisk
IncomingUser username password
OutgoingUser username password
Lun 0 Path=/home/iSCSI/LUN0,Type=fileio
Alias mydisk
InitialR2T Yes
ImmediateData Yes
MaxOutstandingR2T 8
- vi /etc/initiators.allow
add -> ALL ALL ( note : This is an access list )
- reboot ( to make new kernel appear and load the module )
- /etc/init.d/iscsi-target restart
- validate in tail -f /var/log/messages
2. How To Have The Initiator Mount The Drive On The Workstation :
( my workstation is also a centos in this case )
- rpm -i iscsi-initiator-utils-6.2.0.868-0.18.el5.i386.rpm ( this is the util )
- vi /etc/iscsi/iscsid.conf
#enable the following :
node.session.auth.username = username
node.session.auth.password = password
discovery.sendtargets.auth.username = username
discovery.sendtargets.auth.password = password
- /etc/init.d/iscsi start
- iscsiadm -m discovery -t sendtargets -p <ip of server>
- /etc/init.d/iscsi restart
- tail -f /var/log/messages --> to find the device representation
- fdisk /dev/sdd --> if the disk is sdd ...
n primary partition
w write table
- mkfs.ext3 /dev/sdd1
- mkdir /mnt/iscsi
- mount /dev/sdd1 /mnt/iscsi
- chkconfig iscsi on --> to mount at boot time auto
- vi /etc/fstab
add line -> /dev/sdd1 /mnt/iscsi ext3 _netdev 0 0
by the way , mounting an iSCSI using Windows Vista is also an easy task .. play with it :)
Anyway, Thats it.
I would use a dedicated file server as the target. Something like http://www.openfiler.com/
Posted by Lee | 1:01 PM
true , but then again ... i was never into out-of-the-box stuff , and when a lab is on the line , i rather know exactly what is there...
thnx for contributing the link though.
Posted by barry | 3:11 PM
Nice brief and this post helped me alot in my college assignement. Thank you for your information.
Posted by Anonymous | 7:37 AM
Genial dispatch and this enter helped me alot in my college assignement. Say thank you you for your information.
Posted by Anonymous | 6:15 AM
Genial brief and this enter helped me alot in my college assignement. Say thank you you on your information.
Posted by Anonymous | 7:37 PM
best place to buy xanax online long xanax your system drug test - xanax withdrawal tremors
Posted by Anonymous | 8:18 PM
buy tramadol online no prescription cheap 100mg tramadol - order tramadol american express
Posted by Anonymous | 4:48 AM
buy tramadol overnight delivery tramadol 50 mg headache - where can i buy tramadol for my dog
Posted by Anonymous | 12:23 PM
generic xanax xanax causing anxiety - xanax and other drug interactions
Posted by Anonymous | 12:23 AM
buy cheap tramadol can you order tramadol online legally - tramadol 50 mg buy online
Posted by Anonymous | 4:46 AM
buy tramadol online order tramadol phone - tramadol buy online cheap
Posted by Anonymous | 10:27 AM
buy tramadol online tramadol vs oxycodone - tramadol hcl 25
Posted by Anonymous | 1:58 PM
buy tramadol online best place buy tramadol - tramadol no prescription overnight shipping
Posted by Anonymous | 5:29 PM
buy tramadol online tramadol 50mg tablets street value - tramadol 50 mg oral tablet
Posted by Anonymous | 9:58 PM
buy tramadol online legal buy tramadol online usa - tramadol hcl 225 mg
Posted by Anonymous | 8:33 AM
buy cheap carisoprodol carisoprodol 350 mg no prescription - carisoprodol kidney disease
Posted by Anonymous | 9:48 AM
buy tramadol online tramadol withdrawal klonopin - tramadol hcl 50 mg dogs side effects
Posted by Anonymous | 5:46 AM
xanax online xanax 0.25 - generic xanax pill identifier
Posted by Anonymous | 9:38 AM
buy cialis online cialis online us - cialis daily dosage side effects
Posted by Anonymous | 10:48 AM
buy cialis online how to order cialis online - best place order cialis
Posted by Anonymous | 7:50 PM
buy cialis online cialis good price - cialis price bangkok
Posted by Anonymous | 4:10 AM
buy cialis online safely generic cialis canadian - cialis 72 hours
Posted by Anonymous | 11:51 AM
http://buytramadolonlinecool.com/#30807 tramadol hcl on drug test - tramadol withdrawal weight gain
Posted by Anonymous | 1:58 AM
buy tramadol tramadol 50mg dosage dogs - tramadol hcl 100 mg tablets
Posted by Anonymous | 11:26 AM
order lorazepam valium ativan dosage equivalents - ativan high vs xanax
Posted by Anonymous | 10:43 AM
buy tramadol online tramadol qt interval - how to order tramadol online
Posted by Anonymous | 10:49 PM
buy tramadol cheap tramadol for dogs maximum dose - tramadol 50 mg buy online
Posted by Anonymous | 12:58 AM
buy tramadol online buy tramadol online in europe - buy tramadol overnight delivery
Posted by Anonymous | 5:21 PM
http://staam.org/#74560 tramadol canine dosage - tramadol hcl bp monograph
Posted by Anonymous | 12:55 AM
Тhe pοst provides proven beneficial to uѕ.
It’s vеry useful and you are cеrtainly verу
educated in this area. Yоu possess openеd up my perѕonal eyes to
be able to vаrious thoughtѕ about this κind of subjеct along with intriguing, nοtablе and sound content.
My web blog - ativan
Posted by Anonymous | 2:53 AM
Your own аrticle fеatures proѵеn necessaгy
to mуself. It’s extremеly educаtional аnd you're simply clearly very experienced in this area. You possess exposed my own eyes to be able to numerous thoughts about this particular subject matter together with intriguing and sound written content.
Here is my web site ; ambien
Posted by Anonymous | 7:23 PM
Τhe pοѕt features estаblished bеnеfіcial to me.
Ӏt’s reallу uѕeful and you're simply naturally quite knowledgeable in this region. You get popped my sight in order to varying thoughts about this specific topic along with intriguing, notable and sound content material.
Have a look at my web-site :: buy Klonopin
Posted by Anonymous | 7:44 PM