Changes

From Amahi Wiki
Jump to: navigation, search
14 bytes added ,  04:13, 16 February 2012
no edit summary
now Now that we have the legal stuff covered , let's get started
= Installing the ISCSI server=
Log into your amahi box via ssh and become root
}}
let Let amahi update whatever is necessary to avoid a kernel module error trying to start the ISCSI server.
then Then install kernel headers and gcc
{{Code|
Code= yum install kernel-headers kernel-devel gcc
}}
now Now we going to download the install script i wrote
{{Code|
Code= wget http://dl.dropbox.com/u/57179706/iscsi/install.sh
}}
then Then run
{{Code|
Code= sh ./install.sh
}}
this This should have now compiled and installed the ISCSI server on your Amahi box .
= Configuration and creation of an ISCSI disk image =
the The easiest way to get an iscsi ISCSI target is to create an image file .
we We are doing this by typing :
{{Code|
Code= mkdir /var/hda/files/iscsi
dd if=/dev/zero of=/var/hda/files/iscsi/disk.img bs=1M count=0 seek=256000
}}
you 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 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 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
Lun 0 Path=/var/hda/files/iscsi/disk.img,Type=fileio
}}
save Save and exit your editor
= start/restart your ISCSI server =
{{Code|
Code= service iscsi-target restart
done
I will update this page later on how to hook a ISCSI drive using the win7 iscsi-initiator when i finally figured out why i have no toolbar while editing the wiki page.
21

edits