New configuration variables CLUSTERFS_TYPE, CLUSTERFS_DEFAULT_MOUNTPOINT
authorMartin Schwenke <martin@meltin.net>
Tue, 24 Jun 2014 02:10:18 +0000 (12:10 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 2 Jul 2014 04:17:17 +0000 (14:17 +1000)
* CLUSTERFS_DEFAULT_MOUNTPOINT replaces GPFS_DEFAULT_MOUNTPOINT

* Tweak various scripts and configuration files to allow cluster
  filesystem type to be configured

* Also tweak chroot-related options to not have GPFS-specific values

Signed-off-by: Martin Schwenke <martin@meltin.net>
base/all/root/scripts/cluster_configure/example.conf
base/all/root/scripts/cluster_configure/templates/rhel/00.ctdb/1.2.4#/files/etc/sysconfig/ctdb
base/all/root/scripts/cluster_configure/templates/rhel/50.samba/3.4#/files/etc/samba/smb.conf
base/all/root/scripts/gpfs-nas.conf
base/all/root/scripts/setup_gpfs.sh
config.d/00base.defconf
config.d/40gpfs.defconf

index 782ff36..3bb461e 100644 (file)
@@ -1,17 +1,17 @@
 [DEFAULT]
 cluster = foobar
 domain = foobar.local
-chroot_parent = /var/lib/gpfs-nas-chroot
+chroot_parent = /var/lib/nas-chroot
 scp_chroot = %(chroot_parent)s/scp
-gpfs_default_mountpoint = /gpfs-nas/gpfs0
+clusterfs_default_mountpoint = /clusterfs
 
 [filesystem:0]
 type = gpfs
-mountpoint = %(gpfs_default_mountpoint)s
+mountpoint = %(clusterfs_default_mountpoint)s
 
 [share:data]
-directory = %(gpfs_default_mountpoint)s/data
-filesystem = %(gpfs_default_mountpoint)s
+directory = %(clusterfs_default_mountpoint)s/data
+filesystem = %(clusterfs_default_mountpoint)s
 permissions = 0777
 comment = An example share
 
index 4a20819..6287f4d 100644 (file)
@@ -1,6 +1,6 @@
 # Core 
 CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
-CTDB_RECOVERY_LOCK=@@GPFS_DEFAULT_MOUNTPOINT@@/.ctdb/recovery.lock
+CTDB_RECOVERY_LOCK=@@CLUSTERFS_DEFAULT_MOUNTPOINT@@/.ctdb/recovery.lock
 
 # Services managed
 CTDB_MANAGES_SAMBA=yes
index dc57bfc..86fc21d 100644 (file)
@@ -2,7 +2,7 @@
        # enable clustering
        clustering=yes
        ctdb:registry.tdb=yes
-       private dir=!!gpfs_default_mountpoint!!/.ctdb/
+       private dir=!!clusterfs_default_mountpoint!!/.ctdb/
        ctdbd socket = !!|ctdb_socket()!!
 
        security = !!|"ADS" if self.config.get("package:samba", "auth_method") == "winbind" else "USER"!!
index 987aeaf..812e74c 100644 (file)
@@ -3,18 +3,18 @@ cluster = @@CLUSTER@@
 domain = @@DOMAIN@@
 workgroup = @@WORKGROUP@@
 kdc = @@KDC_NAME@@
-chroot_parent = /var/lib/gpfs-nas-chroot
+chroot_parent = /var/lib/nas-chroot
 scp_chroot = %(chroot_parent)s/scp
-gpfs_default_mountpoint = @@GPFS_DEFAULT_MOUNTPOINT@@
+clusterfs_default_mountpoint = @@CLUSTERFS_DEFAULT_MOUNTPOINT@@
 auth_method = @@AUTH_METHOD@@
 
 [filesystem:0]
-type = gpfs
-mountpoint = %(gpfs_default_mountpoint)s
+type = @@CLUSTERFS_TYPE@@
+mountpoint = %(clusterfs_default_mountpoint)s
 
 [share:data]
-directory = %(gpfs_default_mountpoint)s/data
-filesystem = %(gpfs_default_mountpoint)s
+directory = %(clusterfs_default_mountpoint)s/data
+filesystem = %(clusterfs_default_mountpoint)s
 permissions = 0777
 comment = An example share
 
index 920fe38..ff79d12 100755 (executable)
@@ -39,7 +39,7 @@ EOF
 
 gpfs_num_nsds="@@GPFS_DEFAULT_NSDS@@"
 cluster_name="@@CLUSTER@@"
-mountpoint="@@GPFS_DEFAULT_MOUNTPOINT@@"
+mountpoint="@@CLUSTERFS_DEFAULT_MOUNTPOINT@@"
 
 opts="gpfs-num-nsds:,cluster-name:,mountpoint:"
 getopt_output=$(getopt -n autocluster -o h -l "$opts" -- "$@")
index a2b6b55..19d5db0 100644 (file)
@@ -7,6 +7,12 @@
 defconf CLUSTER_TYPE "samba" \
        "samba|ad|build" "Type of cluster, for configuration stage"
 
+defconf CLUSTERFS_TYPE "gpfs" \
+       "<gpfs|?>" "type of cluster filesystem to use"
+
+defconf CLUSTERFS_DEFAULT_MOUNTPOINT "/clusterfs" \
+       "<directory>" "mountpoint for default cluster filesystem"
+
 defconf NODES "sofs_front:0-3 rhel_base:4" \
        "<nodes>" "list of node types to create, with associated IP offsets"
 
index e817c28..5153df3 100644 (file)
@@ -6,5 +6,3 @@ defconf GPFS_BASE_VERSION "3.2.0-0" \
 defconf GPFS_DEFAULT_NSDS "" \
        "<n>" "number of NSDs used by default GPFS filesystem, empty => all"
 
-defconf GPFS_DEFAULT_MOUNTPOINT "/gpfs" \
-       "<directory>" "mountpoint for default GPFS filesystem"