IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
implementation will only create a HA solution for iSCSI where each public address is assinged its own iscsi target name and the LUNs that are created are only accessible through one specific target (i.e. one public address at a time).
! This feature ONLY works when public addresses are used. It is not supported, nor does it work, if you use the LVS feature to present the entire cluster as one single ip address. !
</p>
<h2>Prereqs</h2>
Configure CTDB as above and set it up to use public ipaddresses.<br>
Verify that the CTDB cluster works.
<h2>Install the iSCSI target software on all nodes</h2>
On RHEL5 this package is called "scsi-target-utils" and it needs to be installed
on all nodes in the cluster. The easiest way to install this package is by using :
<pre>
onnode all yum install scsi-target-utils -y
</pre>
Make sure that the service is not started automatically when booting, we want CTDB to start/stop this service :
<pre>
onnode all chkconfig tgtd off
</pre>
<h2>/etc/sysconfig/iscsi</h2>
Create this file and add the following three lines to it :
This is a directory on shared storage where the scripts to start and configure the iscsi service are held. There is one script for each public address named <publicaddress>.sh .
Before you cna export a LUN you must create it as a file in the shared filesystem. When doing so, make sure you create it as a real file and not a sparse file!<br/>
While it is much quicker to create a sparse file if you want a file with filesize 100Gb, SCSI has no concept of "disk full" so if you run out of backing space for the sparse file, the scsi initiators will be "surprised" and "unhappy".
iqn.2007-11.com.ctdb:iscsi.target.10.1.1.1 in the example above is the iscsi name that is assigned to the target. Dont use this name, pick your own name!