https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&user=Dwilliam&feedformat=atomAlpine Linux - User contributions [en]2024-03-29T11:37:15ZUser contributionsMediaWiki 1.40.0https://wiki.alpinelinux.org/w/index.php?title=Setting_up_iSCSI&diff=1726Setting up iSCSI2007-11-07T14:03:27Z<p>Dwilliam: </p>
<hr />
<div>== Introduction ==<br />
<br />
iSCSI consists of two pieces: A target and an initiator. A target is a large pool of disk space that can be accessed over IP by the initiators. Initiators use the disk space, formatting it and mounting it the same as local disk.<br />
<br />
<br />
== iSCSI Target ==<br />
<br />
The iscsitarget-X.X.apk package provides the target functionality. It includes the iscsi_trgt module and the ietd service (ietd is the iSCSI Enterprise Target Daemon).<br />
Once the package is installed, you can set up a target by editing two conf files.<br />
<br />
In /etc/ietd.conf, add the following information:<br />
<br />
Target iqn.2006-01.com.openfiler:disk2.bpbx-vm-1<br />
Lun 0 Path=/dev/sda1, Type=fileio<br />
<br />
The "Target" line above is an example. This line really just needs to be unique. /dev/sdx refers to the disk and partition that will be presented to the initiator. <br />
<br />
In the /etc/initiators.allow file, add the following line:<br />
<br />
iqn.2006-01.com.openfiler:disk2.bpbx-vm-1 10.1.194.111<br />
<br />
The IP address in the line above will be the initiator's ip address. Now only this ip address is allowed to access this specific target.<br />
<br />
<br />
<br />
== iSCSI Initiator ==<br />
<br />
To configure the iSCSI initiator, add the initiator name to the file /etc/iscsi/initiatorname.iscsi<br />
<br />
InitiatorName=iqn.1993-08.org.debian:01:4efa151441<br />
<br />
Verify the file /etc/iscsi/iscsid.conf exists. If not, it may need to be copied from /etc/iscsid.conf.<br />
<br />
<br />
== Connecting the Initiator to the Target ==<br />
<br />
From the iSCSI initiator, first run this command:<br />
<br />
iscsiadm --mode discovery --type sendtargets --portal IP_OF_TARGET<br />
<br />
This command contacts the target to determine which disks are available. If all is configured correctly, the target name iqn.2006-01.com.openfiler:disk2.bpbx-vm-1 (from the example above) will be returned.<br />
<br />
After the target is discovered, run this command to connect:<br />
<br />
iscsiadm --mode node --targetname NAME_OF_TARGET --portal IP_OF_TARGET --login<br />
<br />
Replacing --login with --logout will end the connection. <br />
<br />
To make this connection persistent (so that it will reconnect after reboot), run this command:<br />
<br />
iscsiadm -m node -T NAME_OF_TARGET -p IP_OF_TARGET --op update -n node.conn[0].startup -v automatic</div>Dwilliamhttps://wiki.alpinelinux.org/w/index.php?title=Setting_up_iSCSI&diff=1725Setting up iSCSI2007-11-06T22:07:15Z<p>Dwilliam: </p>
<hr />
<div>== Introduction ==<br />
<br />
iSCSI consists of two pieces: A target and an initiator. A target is a large pool of disk space that can be accessed over IP by the initiators. Initiators use the disk space, formatting it and mounting it the same as local disk.<br />
<br />
<br />
== iSCSI Target ==<br />
<br />
The iscsitarget-X.X.apk package provides the target functionality. It includes the iscsi_trgt module and the ietd service (ietd is the iSCSI Enterprise Target Daemon).<br />
Once the package is installed, you can set up a target by editing two conf files.<br />
<br />
In /etc/ietd.conf, add the following information:<br />
<br />
Target iqn.2006-01.com.openfiler:disk2.bpbx-vm-1<br />
Lun 0 Path=/dev/sda1, Type=fileio<br />
<br />
The "Target" line above is an example. This line really just needs to be unique. /dev/sdx refers to the disk and partition that will be presented to the initiator. <br />
<br />
In the /etc/initiators.allow file, add the following line:<br />
<br />
iqn.2006-01.com.openfiler:disk2.bpbx-vm-1 10.1.194.111<br />
<br />
The IP address in the line above will be the initiator's ip address. Now only this ip address is allowed to access this specific target.<br />
<br />
<br />
<br />
== iSCSI Initiator ==</div>Dwilliamhttps://wiki.alpinelinux.org/w/index.php?title=Setting_up_iSCSI&diff=1724Setting up iSCSI2007-11-06T21:57:27Z<p>Dwilliam: </p>
<hr />
<div><br />
== Introduction ==<br />
<br />
iSCSI consists of two pieces: A target and an initiator. A target is a large pool of disk space that can be accessed over IP by the initiators. Initiators use the disk space, formatting it and mounting it the same as local disk.<br />
<br />
<br />
== iSCSI Target ==<br />
<br />
The iscsitarget-X.X.apk package provides the target functionality. It includes the iscsi_trgt module and the ietd service (ietd is the iSCSI Enterprise Target Daemon).</div>Dwilliamhttps://wiki.alpinelinux.org/w/index.php?title=Setting_up_iSCSI&diff=1723Setting up iSCSI2007-11-06T21:52:47Z<p>Dwilliam: initial submission</p>
<hr />
<div>iSCSI consists of two pieces: A target and an initiator. A target is a large pool of disk space that can be accessed over IP by the initiators. Initiators use the disk space, formatting it and mounting it the same as local disk.</div>Dwilliamhttps://wiki.alpinelinux.org/w/index.php?title=Alpine_Linux:Documentation&diff=1722Alpine Linux:Documentation2007-11-06T21:50:18Z<p>Dwilliam: added iSCSI section</p>
<hr />
<div>== User Documentation ==<br />
Documentation how to install and use the Alpine distro.<br />
<br />
* [[Installing Alpine]]<br />
* [[Upgrading Alpine]]<br />
* [[Alpine package management]]<br />
* [[Comparison with Gentoo and Debian]]<br />
* Submitting [[Problem Reports]]<br />
<br />
=== HOWTOS ===<br />
<br />
==== Installation ====<br />
* [[Bootstrapping Alpine on Soekris net4xxx]]<br />
* [[Setting up a software raid1 array]]<br />
* [[Setting up Logical Volumes with LVM]]<br />
* [[Setting up a /var partition on software IDE raid1]]<br />
* [[Native Harddisk Install]]<br />
* [[Installing XUbuntu using Alpine boot floppy]]<br />
<br />
==== Networking ====<br />
* [[Setting up a OpenVPN-server with Alpine]]<br />
* [[Setting up traffic monitoring using rrdtool (and snmp)]]<br />
* [[Setting up Zaptel/Asterisk on Alpine]]<br />
<br />
==== Misc ====<br />
* [[Setting up lm_sensors]]<br />
<br />
==== iSCSI ====<br />
* [[iSCSI Target and Initiator Configuration]]<br />
<br />
=== Vserver ===<br />
* [[Setting up a basic vserver]]<br />
<br />
== Developer Documentation ==<br />
Documentation how to build and modify the Alpine distro.<br />
<br />
* [[Setting up the build environment]]<br />
* [[Creating patches]]<br />
* [[Alpine Configuration Framework Design]] (Why ACF is the way it is)<br />
<br />
== Misc. References ==<br />
Other useful references.<br />
<br />
* http://www.metoffice.gov.uk/research/nwp/external/fcm/doc/user_guide/working_practices.html - Some guidelines on use of Trac and SVN</div>Dwilliam