mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
move the CTDB_MANAGES_ISCSI setting from /etc/sysconfig/iscsi to /etc/sysconfig/ctdb
(This used to be ctdb commit a953a0fb450955b62d747bdc82c5b968fe0ed378)
This commit is contained in:
parent
f4ed8efa05
commit
e9664e5a4c
@ -49,6 +49,9 @@
|
||||
# should ctdb manage starting/stopping the VSFTPD service
|
||||
# CTDB_MANAGES_VSFTPD=yes
|
||||
|
||||
# should ctdb manage starting/stopping the ISCSI service
|
||||
# CTDB_MANAGES_ISCSI=yes
|
||||
|
||||
|
||||
# you may wish to raise the file descriptor limit for ctdb
|
||||
# use a ulimit command here. ctdb needs one file descriptor per
|
||||
|
@ -4,6 +4,7 @@
|
||||
PATH=/bin:/usr/bin:$PATH
|
||||
|
||||
. $CTDB_BASE/functions
|
||||
loadconfig ctdb
|
||||
loadconfig iscsi
|
||||
|
||||
cmd="$1"
|
||||
|
@ -41,20 +41,28 @@ onnode all chkconfig tgtd off
|
||||
Create this file and add the following three lines to it :
|
||||
|
||||
<pre>
|
||||
CTDB_MANAGES_ISCSI=yes
|
||||
CTDB_START_ISCSI_SCRIPTS=/gpfs/iscsi/
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
CTDB_MANAGES_ISCSI=yes just tells CTDB event script for iSCSI that CTDB should start and stop the iSCSI target service as required.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
CTDB_START_ISCSI_SCRIPTS=<directory on shared storage>
|
||||
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 <public address>.sh .
|
||||
</p>
|
||||
|
||||
|
||||
<h2>/etc/sysconfig/ctdb</h2>
|
||||
|
||||
Add the following line to /etc/sysconfig/ctdb :
|
||||
|
||||
<pre>
|
||||
CTDB_MANAGES_ISCSI=yes
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
CTDB_MANAGES_ISCSI=yes just tells CTDB event script for iSCSI that CTDB should start and stop the iSCSI target service as required.
|
||||
</p>
|
||||
|
||||
|
||||
<h2>Example: create a LUN that will be hosted on public ip address 10.1.1.1</h2>
|
||||
<p>
|
||||
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 />
|
||||
|
Loading…
x
Reference in New Issue
Block a user