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 782ff3687953ca76012ae5a25e639022a19ff61b..3bb461e41225675b01488ba896fe231c38ead6aa 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 4a208193975010a1c8f5c07c02ed101f9bf9a591..6287f4d8b63efcafb457f3d41adba9fe5aba9b00 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 dc57bfc230b9620e0fe04fdff4042210c84296b2..86fc21d81be2d4ae7a79643a209c4cf076426b0a 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 987aeafe1632fe44f9a079acb91d6b36dfbb3b78..812e74c66cf67c73ae597aefe92f1d1bea6382dc 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 920fe389afece24a34dac18c60ce003f4f470c41..ff79d12514a8e16ada1c640983e4f5905ec92e23 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 a2b6b557d2c084c1363b8d17c25c41b8f312097a..19d5db0600154b8f4b42ad5b3cf65afa3a4adcea 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 e817c28e402d1b7611a76d6169da68c0fdfa0695..5153df3e8edb2cdddf5f69d76a0f264ce8d04400 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"