summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Use cluster_created_hooks to print a message about iSCSI host configuration.Martin Schwenke2010-03-151-2/+19
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Add new hook cluster_created_hook.Martin Schwenke2010-03-151-0/+3
| | | | | | | | | | | | This is run at the end of cluster creation. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Rework handling of existing hooks, part 2.Martin Schwenke2010-03-154-5/+5
| | | | | | | | | | | | Commit a65c5546d812b4669277e55c8d7f7ca915b6d12c needs this as well. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Rework handling of existing hooks.Martin Schwenke2010-03-151-33/+5
| | | | | | | | | | | | | | Make hack_nodes_functions, create_cluster_hooks, setup_base_hooks use the new hook infrastructure. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * New infrastructure functions register_hook and run_hooks.Martin Schwenke2010-03-151-0/+18
| | | | | | | | | | | | The latter takes a variable *name* not a variable *value*. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Generation of iSCSI host configuration, part 1.Martin Schwenke2010-03-151-15/+44
| | | | | | | | | | | | | | | | | | 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>
| * Override shared_disk_iscsi_setup_base with SoFS-specific version.Martin Schwenke2010-03-121-0/+10
| | | | | | | | | | | | | | | | | | 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>
| * First part of iSCSI support for shared disks.Martin Schwenke2010-03-123-1/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Git should ignore more files in the debian/ subdirectory.Martin Schwenke2010-03-121-0/+3
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * shared_disk_template() bug fix for first disk suffix.Martin Schwenke2010-03-121-1/+9
| | | | | | | | | | | | | | 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>
| * setup_base now calls commands in $setup_base_hooks.Martin Schwenke2010-03-121-0/+12
| | | | | | | | | | | | | | Use new function register_create_cluster_hook() to register hooks in this variable. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Parameterise multipath.conf.Martin Schwenke2010-03-122-3/+5
| | | | | | | | | | | | | | | | 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>
* | Fix RPM creation in autoclusterRalph Wuerthner2010-03-161-1/+1
|/ | | | | | | | | | | | | 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
* Make the disk cache types configurable.Martin Schwenke2010-02-256-7/+14
| | | | | | | | | 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>
* In Makefile packaging files depend on Makefile.Martin Schwenke2010-02-251-2/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Makefile puts git hash in version.Martin Schwenke2010-02-251-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* For RPM BuildArch should be noarch.Martin Schwenke2010-02-251-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Makefile fixes for building RPM.Martin Schwenke2010-02-251-3/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Use rhel_gen_yum_repos to set YUM_TEMPLATE for SoFS releases.Martin Schwenke2010-02-1910-78/+8
| | | | | | | | | | | | | | 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>
* Sensible handling for YUM repositories.Martin Schwenke2010-02-183-3/+25
| | | | | | | | | | | | | * 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>
* Default RHEL_VERSION is now 5.4.Martin Schwenke2010-02-181-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Use rhel_print_iso function for value of ISO in SoFS.common.Martin Schwenke2010-02-181-7/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add infrastructure function for determining RHEL ISO name from RHEL_VERSION.Martin Schwenke2010-02-181-1/+17
| | | | | | Use this for default version of ISO. Signed-off-by: Martin Schwenke <martin@meltin.net>
* setup_gpfs.sh didn't work if there was only a single node.Martin Schwenke2010-02-041-4/+10
| | | | | | | | | | | | 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>
* New configuration variable CREATE_BASE_TIMEOUT.Martin Schwenke2010-02-042-1/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* vircmd: Sleep before retrying.Martin Schwenke2010-01-281-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* vircmd: Exit with a useful return code.Martin Schwenke2010-01-281-2/+3
| | | | | | Use the return code from the last virsh failure, if any. Signed-off-by: Martin Schwenke <martin@meltin.net>
* vircmd: Add retry loop in vircmd to work around spurious internal errors.Martin Schwenke2010-01-281-1/+16
| | | | | | Based on a variation by Klaus Smolin. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix typo(s) in setup_tsm_server.sh - $AGENTS/$agents was inconsistent.Martin Schwenke2010-01-271-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Revert "Make new commands added to setup_tsm_server.sh synchronous."Martin Schwenke2010-01-211-2/+2
| | | | | | These changes don't work. :-( This reverts commit 831738a709251d57b13e8c02bfcc1f60dcb5a895.
* Make new commands added to setup_tsm_server.sh synchronous.Martin Schwenke2010-01-061-2/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* setup_tsm_server.sh updates to use storage pools more flexibly.Martin Schwenke2010-01-051-0/+2
| | | | | | | 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>
* Remove the FIXME message related to $(genpkg) files.Martin Schwenke2010-01-051-1/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Simplify "make dist".Martin Schwenke2010-01-051-10/+4
| | | | | | | | | | | 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>
* Update setup_tsm_client.sh.Martin Schwenke2010-01-051-22/+44
| | | | | | | | | 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>
* Rename config variable TSM_ACRHIVE_POOL_SIZE to TSM_ARCHIVE_POOL_SIZE.Martin Schwenke2010-01-052-2/+2
| | | | | | | | 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>
* Add create node help to usage message.Martin Schwenke2010-01-051-0/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Reinstate "autocluster create node" functionality.Martin Schwenke2009-12-101-15/+53
| | | | | | | | | | | | | | | | | 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>
* Make setup_tsm_server.sh script work again.Martin Schwenke2009-12-091-10/+47
| | | | | | | | | | | | | 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>
* Cluster node hosts file updates.Martin Schwenke2009-12-042-1/+3
| | | | | | | | | | 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>
* Copying a non-existent base template node-type-specific directory is harmless.Martin Schwenke2009-12-041-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* When copying base templates, check if node-type-specific directory exists.Martin Schwenke2009-12-041-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Reorganise base templates directory to allow for node-type-specific files.Martin Schwenke2009-12-0440-15/+33
| | | | | | | | | | | | | | | | | | | | | * 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>
* New configuration variable SOFS_REPO_DAILY_SUFFIX.Martin Schwenke2009-12-042-3/+6
| | | | | | | | 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>
* Start with GPFS 3.3.0-0 for SoFS 2.x.Martin Schwenke2009-12-041-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Stop GUIMEM being used for all nodes after a sofs_gui one.Martin Schwenke2009-11-171-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Update README to document dependency on "expect" and to blame firewalls.Martin Schwenke2009-11-091-2/+12
| | | | | | | | | | | 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>
* Change IP address of SoFS install server.Martin Schwenke2009-11-091-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix 2 problems in releases/SoFS.common from addition of SOFS_EXTRA_PACKAGES.Martin Schwenke2009-10-011-2/+1
| | | | | | | | | | | | 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>
* Move list of extra SoFS packages to new config variable SOFS_EXTRA_PACKAGES.Martin Schwenke2009-10-013-10/+12
| | | | | | | | 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>