Difference between revisions of "ISCSI"
Line 86: | Line 86: | ||
Code= http://amahirepo.3owl.com/repofile/ | Code= http://amahirepo.3owl.com/repofile/ | ||
}} | }} | ||
− | Download rpmorama.repo | + | Download rpmorama.repo (right click and save as) |
+ | |||
Copy that file to | Copy that file to | ||
/etc/yum.repos.d/ | /etc/yum.repos.d/ |
Revision as of 23:49, 18 February 2012
WARNING | |
---|---|
This is recommended only for advanced users, proceed with caution. |
Contents
- 1 Installing the ISCSI server on Fedora 14/Amahi 6
- 2 Installing the ISCSI server
- 3 Configuration and creation of an ISCSI disk image
- 4 Configuring the ISCSI server to serve your disk image
- 5 Start/restart your ISCSI server
- 6 Use Win 7 ISCSI initiator to connect a ISCSI target
- 7 Install Using External Repository
Installing the ISCSI server on Fedora 14/Amahi 6
Warning Dragons Ahead !!!!! This HOWTO is for advanced users Your HDA might self-destruct in a million pieces and you might loose Data in the event that you brick your HDA
Installing the ISCSI server
Log into your amahi box via ssh and become root
NOTE: As i have experienced myself it is a good idea to check if your updates are all done correctly . do this by Typing
bash code |
---|
yum update
|
Let amahi update whatever is necessary to avoid a kernel module error trying to start the ISCSI server.
Then install kernel headers and gcc
bash code |
---|
yum install kernel-headers kernel-devel gcc
|
Now we going to download the install script i wrote
bash code |
---|
wget http://dl.dropbox.com/u/57179706/iscsi/install.sh
|
Then run
bash code |
---|
sh ./install.sh
|
This should have now compiled and installed the ISCSI server on your Amahi box.
Configuration and creation of an ISCSI disk image
The easiest way to get an ISCSI target is to create an image file.
We are doing this by typing :
bash code |
---|
mkdir /var/hda/files/iscsi dd if=/dev/zero of=/var/hda/files/iscsi/disk.img bs=1M count=0 seek=256000
|
You can name the disk.img whatever you want and the numbers behind seek is the size of the image disk which in our case is 250 gigs.
Now if we look in /var/hda/files/iscsi/ we will find a file called disk.img
Configuring the ISCSI server to serve your disk image
We have to edit the config file in /etc/iet/ietd.conf (use your favorite editor)
Leave everything as it is exept at the bottom we add
bash code |
---|
Target iqn.2012-02.com.domain:disk.img Lun 0 Path=/var/hda/files/iscsi/disk.img,Type=fileio
|
Save and exit your editor
Start/restart your ISCSI server
bash code |
---|
service iscsi-target restart
|
done
Use Win 7 ISCSI initiator to connect a ISCSI target
Go to Start - Control Panel - click on Administrative tools -
From there click on ISCSI initiator
Install Using External Repository
For ease of use i have created a repository which can easily be added
Download the repo file located at :
bash code |
---|
http://amahirepo.3owl.com/repofile/
|
Download rpmorama.repo (right click and save as)
Copy that file to
/etc/yum.repos.d/
Run
bash code |
---|
yum update
|
Then you can install the iscsi server by typing
bash code |
---|
yum install iscsitarget
|
You still have to create the disk and edit the iet.conf file