« Home | אינטגרציה בעולם הEnterprise Datacenter » | IP-Expect The IP-Unexpected » | A New MSN Phishing ( Identity Theft ) Worm - ENG » | A New MSN Phishing ( Identity Theft ) Attack » | My Blog Is 2yrs Old » | Google Analytics Cookie Jar » | Google's Latest "Get Faster Gmail" Notes » | Your Partner Or Your Problem » | Security Assets Interoperability » | אלגברה להמונים - בחסות "לרדת בגדול". »

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.

Labels: , , , ,

Syndication : Digg It  Add to Technorati Favorites  Stumble It  Worth Reading 

I would use a dedicated file server as the target. Something like http://www.openfiler.com/

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.

Nice brief and this post helped me alot in my college assignement. Thank you for your information.

Genial dispatch and this enter helped me alot in my college assignement. Say thank you you for your information.

Genial brief and this enter helped me alot in my college assignement. Say thank you you on your information.

best place to buy xanax online long xanax your system drug test - xanax withdrawal tremors

buy tramadol online no prescription cheap 100mg tramadol - order tramadol american express

buy tramadol overnight delivery tramadol 50 mg headache - where can i buy tramadol for my dog

generic xanax xanax causing anxiety - xanax and other drug interactions

buy cheap tramadol can you order tramadol online legally - tramadol 50 mg buy online

buy tramadol online order tramadol phone - tramadol buy online cheap

buy tramadol online tramadol vs oxycodone - tramadol hcl 25

buy tramadol online best place buy tramadol - tramadol no prescription overnight shipping

buy tramadol online tramadol 50mg tablets street value - tramadol 50 mg oral tablet

buy tramadol online legal buy tramadol online usa - tramadol hcl 225 mg

buy cheap carisoprodol carisoprodol 350 mg no prescription - carisoprodol kidney disease

buy tramadol online tramadol withdrawal klonopin - tramadol hcl 50 mg dogs side effects

xanax online xanax 0.25 - generic xanax pill identifier

buy cialis online cialis online us - cialis daily dosage side effects

buy cialis online how to order cialis online - best place order cialis

buy cialis online cialis good price - cialis price bangkok

buy cialis online safely generic cialis canadian - cialis 72 hours

http://buytramadolonlinecool.com/#30807 tramadol hcl on drug test - tramadol withdrawal weight gain

buy tramadol tramadol 50mg dosage dogs - tramadol hcl 100 mg tablets

order lorazepam valium ativan dosage equivalents - ativan high vs xanax

buy tramadol online tramadol qt interval - how to order tramadol online

buy tramadol cheap tramadol for dogs maximum dose - tramadol 50 mg buy online

buy tramadol online buy tramadol online in europe - buy tramadol overnight delivery

http://staam.org/#74560 tramadol canine dosage - tramadol hcl bp monograph

Т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

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

Τ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

Post a Comment

About

    My Name is Barry Shteiman, im a devoted tech junkie, and this is my blog.
    E: barry.shteiman -at- gmail.com
    Twitter : bshteiman

Tags & Categories

Mailing List & RSS

Stay Updated  
Add to Technorati Favorites