| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| | |
This is run at the end of cluster creation.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| | |
Commit a65c5546d812b4669277e55c8d7f7ca915b6d12c needs this as well.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| | |
Make hack_nodes_functions, create_cluster_hooks, setup_base_hooks use
the new hook infrastructure.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| | |
The latter takes a variable *name* not a variable *value*.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
New configuration variable ISCSI_TID for target ID. This may still
need to be retrofitted to the client configuration.
shared_disk_template() generates most of the required tgtadm commands
and shared_disk_iscsi_setup_base_internal() generates the ACLs.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This only calls shared_disk_iscsi_setup_base_internal if:
* there are no sofs_storage nodes; or
* the current node is a sofs_storage node.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Several new configuration variables: ISCSI_HOST, ISCSI_PORT,
ISCSI_IQN, ISCSI_DEFAULT_TEMPLATE, ISCSI_ST_CONFIG_TEMPLATE - all
fairly self-explanatory.
shared_disk_template() does nothing if SHARED_DISK_TYPE is "iscsi".
shared_disk_setup() creates disk images with dd if SHARED_DISK_TYPE is
"iscsi".
New $setup_base_hook function shared_disk_iscsi_setup_base() does
these things on each node it is called for:
* Creates a default iSCSI client config.
* Hacks /etc/init.d/iscsi to do multipath magic.
shared_disk_iscsi_setup_base() is defined indirectly via function
shared_disk_iscsi_setup_base_internal() so that it can be overridden
by a function that may conditionally call the internal version.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| | |
If the shared disks are of a different type to the system disks then
we should default to starting at 'a' instead of 'b'.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| | |
Use new function register_create_cluster_hook() to register hooks in
this variable.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add new variable SHARED_DISK_MULTIPATH_CALLOUT to parameterise the
uid_callout option and use SYSTEM_DISK_PREFIX to decide what to
blacklist.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Martin,
while testing autocluster RPMs I had to make the following simple change to
autocluster:
commit bf7ded9fa88d11c219238499c2658fe68db0befb
Author: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Date: Thu Mar 4 09:13:35 2010 +0100
Added config.d directory to RPM package
|
|
|
|
|
|
|
|
|
| |
New options SYSTEM_DISK_CACHE and SHARED_DISK_CACHE can be used to
configure the cache type of the disks. Valid values are: default,
none, writeback, writethrough - or as specified in the libvirt XML
documentation.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SoFS.common now knows about the default SoFS settings for
YUM_TEMPLATE. A couple of the release files set YUM_TEMPLATE
themselves because the default is not right for them. Remove
SoFS.repo template and all of the associated SOFS_REPO_* options.
Hand tested for backward compatibility with commands like:
./autocluster --with-release=SoFS-2.0 \
-e 'echo "@@@YUM_TEMPLATE@@@" | substitute_vars -'
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* The generated file is always autocluster.repo.
* New function rhel_gen_yum_repos() takes a repo names as args and
generates output including all the named repos (all enabled) along
with the contents of templates/RHEL.repo.
* The change to autocluster cause the repo file to be generated is a
bit interesting. :-)
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Use this for default version of ISO.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main problem was that $secondary was unset so mmcrcluster would
generate a usage message because there would be no argument to -s.
However, 'onnode 1 ...' was used and would generate a spurious warning
while failing to set secondary.
This version uses "onnode all ..." once and then manipulates the
resulting list of hosts.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Use the return code from the last virsh failure, if any.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Based on a variation by Klaus Smolin.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
These changes don't work. :-(
This reverts commit 831738a709251d57b13e8c02bfcc1f60dcb5a895.
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
Add some TSM magic so that the backup and archive pools spill over
into the space management pool.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
| |
I changed this locally to use "git archive" quite a while ago and it
has been slowing down my commits. :-)
However, I couldn't figure out a neat way of adding the extra
$(genpkg) (generated packaging) files to the archive generated by "git
archive". GNU tar's --transform option makes it trivial!
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
This should be run on a sofs_front node and will configure all
sofs_front nodes to do HSM. Updated so that the first tsm_server node
is configured as the server and HSM is only configured on sofs_front
nodes.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
This was obviously a typo. Given that the TSM support has been broken
for a while I don't think finally fixing the typo will hurt anyone.
:-)
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was removed several months ago when the node types were
generalised and it didn't seem to make sense at the time.
The new version takes an IP offset as its second argument and creates
the corresponding node. It doesn't run the create cluster hooks,
since they may do cluster-wide things.
Note that creating a single node can result in an inconsistent
cluster. For example, the when creating a node that is part of a CTDB
or GPFS cluster the behaviour is not well specified. However, this
function may be very useful for (re)creating rhel_base and tsm_server
nodes.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This scripts hasn't received any love since the handling of node types
was generaliased. Although we're meant to run this script on a
tsm_server node, we use the hostname of the first tsm_server node in
the NODES list. Similarly, we setup all sofs_front nodes as client
nodes in the server config.
This isn't yet well tested but a quick test suggests that it does
work.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
| |
Remove default TSM entry from the "all" hosts file.
Add new hosts file for "rhel_base" nodes that does not include
anything for CIFSNAME. If a rhel_base node is used as a test client
then it should lookup CIFSNAME in DNS and connect via a real IP.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Previous contents of base/ are now in base/all.
* create_node_COMMON() takes an extra argument (inserted as $3) that
specifies the node type. All of the create_node_* functions pass
"$type" for this argument.
* setup_base() now has an optional argument, which is only passed by
create_node_COMMON. Rather than simply copying and substituting
templates for the entire $BASE_TEMPLATES/ subdirectory it now does
this for $BASE_TEMPLATES/all and then $BASE_TEMPLATES/$type.
Therefore, the contents of the type-specific directory override the
contents of "all" directory.
* releases/SoFS.common uses the "all" version of SoFS-postinstall.sh
when setting POSTINSTALL_TEMPLATE. This variable also now respects
$BASE_TEMPLATES instead of hard-coding the base/ subdirectory.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
Allows the suffix of the SoFS daily repository to be configured. This
is allows you to set the name of this repo to, say "SoFS-2.0-RC" by
setting SOFS_REPO_DAILY_SUFFIX to "2.0-RC".
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
| |
The "waitfor" script uses expect - this wasn't documented.
Installation problems can be blamed on firewalls. This has been seem
on the current Fedora Core version, which installs a friendly firewall
that won't allow connections to squid. Add a blame paragraph to the
section on squid.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
There were 2 things wrong with commit
734759caf0709b52e358dd61bcc4bfe4dc60907e.
* Remove single quotes around "ibmcim*" - they're not needed and cause
an error.
* Also remove extra "esac" that was introduced at end of file.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
Having this list of packages hardcoded in the postinstall script is a
maintenance nightmare. This does the same thing using a variable,
with the default value in releases/SoFS.common.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|