Blame SOURCES/bz1757115-gfs2_5_General_updates_and_layout_improvements.patch

d9305b
commit 75934649b85259d1559eabca40be820095643239
d9305b
Author: Andrew Price <anprice@redhat.com>
d9305b
Date:   Tue Feb 12 09:58:11 2019 +0000
d9305b
d9305b
    gfs2.5: General updates and layout improvements
d9305b
    
d9305b
    - Update the manpage to mention lvmlockd and don't mention gfs2_quota
d9305b
      or gfs_controld (both obsolete).
d9305b
    - Simplify the setup instructions and refer to distribution-specific
d9305b
      docs and support requirements.
d9305b
    - Rearrange the "See also" section for relevance and incorporate the
d9305b
      references from the setup section.
d9305b
    
d9305b
    Signed-off-by: Andrew Price <anprice@redhat.com>
d9305b
d9305b
diff --git a/gfs2/man/gfs2.5 b/gfs2/man/gfs2.5
d9305b
index 56d1a008..436abc09 100644
d9305b
--- a/gfs2/man/gfs2.5
d9305b
+++ b/gfs2/man/gfs2.5
d9305b
@@ -21,6 +21,20 @@ mounts which are equivalent to mounting a read-only block device and as
d9305b
 such can neither recover a journal or write to the filesystem, so do not
d9305b
 require a journal assigned to them.
d9305b
 
d9305b
+The GFS2 documentation has been split into a number of sections:
d9305b
+
d9305b
+\fBmkfs.gfs2\fP(8) Create a GFS2 filesystem
d9305b
+.br
d9305b
+\fBfsck.gfs2\fP(8) The GFS2 filesystem checker
d9305b
+.br
d9305b
+\fBgfs2_grow\fP(8) Growing a GFS2 filesystem
d9305b
+.br
d9305b
+\fBgfs2_jadd\fP(8) Adding a journal to a GFS2 filesystem
d9305b
+.br
d9305b
+\fBtunegfs2\fP(8) Tool to manipulate GFS2 superblocks
d9305b
+.br
d9305b
+\fBgfs2_edit\fP(8) A GFS2 debug tool (use with caution)
d9305b
+
d9305b
 .SH MOUNT OPTIONS
d9305b
 
d9305b
 .TP
d9305b
@@ -200,220 +214,55 @@ versa.  Finally, when first enabling this option on a filesystem that had been
d9305b
 previously mounted without it, you must make sure that there are no outstanding
d9305b
 cookies being cached by other software, such as NFS.
d9305b
 
d9305b
-.SH BUGS
d9305b
-
d9305b
-GFS2 doesn't support \fBerrors=\fP\fIremount-ro\fR or \fBdata=\fP\fIjournal\fR.
d9305b
-It is not possible to switch support for user and group quotas on and
d9305b
-off independently of each other. Some of the error messages are rather
d9305b
-cryptic, if you encounter one of these messages check firstly that gfs_controld
d9305b
-is running and secondly that you have enough journals on the filesystem
d9305b
-for the number of nodes in use.
d9305b
-
d9305b
-.SH SEE ALSO
d9305b
-
d9305b
-\fBmount\fP(8) for general mount options,
d9305b
-\fBchmod\fP(1) and \fBchmod\fP(2) for access permission flags,
d9305b
-\fBacl\fP(5) for access control lists,
d9305b
-\fBlvm\fP(8) for volume management,
d9305b
-\fBccs\fP(7) for cluster management,
d9305b
-\fBumount\fP(8),
d9305b
-\fBinitrd\fP(4).
d9305b
-
d9305b
-The GFS2 documentation has been split into a number of sections:
d9305b
-
d9305b
-\fBgfs2_edit\fP(8) A GFS2 debug tool (use with caution)
d9305b
-\fBfsck.gfs2\fP(8) The GFS2 file system checker
d9305b
-\fBgfs2_grow\fP(8) Growing a GFS2 file system
d9305b
-\fBgfs2_jadd\fP(8) Adding a journal to a GFS2 file system
d9305b
-\fBmkfs.gfs2\fP(8) Make a GFS2 file system
d9305b
-\fBgfs2_quota\fP(8) Manipulate GFS2 disk quotas 
d9305b
-\fBgfs2_tool\fP(8) Tool to manipulate a GFS2 file system (obsolete)
d9305b
-\fBtunegfs2\fP(8) Tool to manipulate GFS2 superblocks
d9305b
-
d9305b
 .SH SETUP
d9305b
 
d9305b
-GFS2 clustering is driven by the dlm, which depends on dlm_controld to
d9305b
-provide clustering from userspace.  dlm_controld clustering is built on
d9305b
-corosync cluster/group membership and messaging.
d9305b
-
d9305b
-Follow these steps to manually configure and run gfs2/dlm/corosync.
d9305b
-
d9305b
-.B 1. create /etc/corosync/corosync.conf and copy to all nodes
d9305b
-
d9305b
-In this sample, replace cluster_name and IP addresses, and add nodes as
d9305b
-needed.  If using only two nodes, uncomment the two_node line.
d9305b
-See corosync.conf(5) for more information.
d9305b
-
d9305b
-.nf
d9305b
-totem {
d9305b
-        version: 2
d9305b
-        secauth: off
d9305b
-        cluster_name: abc
d9305b
-}
d9305b
-
d9305b
-nodelist {
d9305b
-        node {
d9305b
-                ring0_addr: 10.10.10.1
d9305b
-                nodeid: 1
d9305b
-        }
d9305b
-        node {
d9305b
-                ring0_addr: 10.10.10.2
d9305b
-                nodeid: 2
d9305b
-        }
d9305b
-        node {
d9305b
-                ring0_addr: 10.10.10.3
d9305b
-                nodeid: 3
d9305b
-        }
d9305b
-}
d9305b
-
d9305b
-quorum {
d9305b
-        provider: corosync_votequorum
d9305b
-#       two_node: 1
d9305b
-}
d9305b
-
d9305b
-logging {
d9305b
-        to_syslog: yes
d9305b
-}
d9305b
-.fi
d9305b
-
d9305b
-.PP
d9305b
-
d9305b
-.B 2. start corosync on all nodes
d9305b
-
d9305b
-.nf
d9305b
-systemctl start corosync
d9305b
-.fi
d9305b
-
d9305b
-Run corosync-quorumtool to verify that all nodes are listed.
d9305b
-
d9305b
-.PP
d9305b
-
d9305b
-.B 3. create /etc/dlm/dlm.conf and copy to all nodes
d9305b
-
d9305b
-.B *
d9305b
-To use no fencing, use this line:
d9305b
+GFS2 clustering is driven by the dlm, which depends on dlm_controld to provide
d9305b
+clustering from userspace.  dlm_controld clustering is built on corosync
d9305b
+cluster/group membership and messaging. GFS2 also requires clustered lvm which
d9305b
+is provided by lvmlockd or, previously, clvmd. Refer to the documentation for
d9305b
+each of these components and ensure that they are configured before setting up
d9305b
+a GFS2 filesystem. Also refer to your distribution's documentation for any
d9305b
+specific support requirements.
d9305b
 
d9305b
-.nf
d9305b
-enable_fencing=0
d9305b
-.fi
d9305b
+Ensure that gfs2-utils is installed on all nodes which mount the filesystem as
d9305b
+it provides scripts required for correct withdraw event response.
d9305b
 
d9305b
-.B *
d9305b
-To use no fencing, but exercise fencing functions, use this line:
d9305b
-
d9305b
-.nf
d9305b
-fence_all /bin/true
d9305b
-.fi
d9305b
-
d9305b
-The "true" binary will be executed for all nodes and will succeed (exit 0)
d9305b
-immediately.
d9305b
-
d9305b
-.B *
d9305b
-To use manual fencing, use this line:
d9305b
-
d9305b
-.nf
d9305b
-fence_all /bin/false
d9305b
-.fi
d9305b
-
d9305b
-The "false" binary will be executed for all nodes and will fail (exit 1)
d9305b
-immediately.
d9305b
-
d9305b
-When a node fails, manually run: dlm_tool fence_ack <nodeid>
d9305b
-
d9305b
-.B *
d9305b
-To use stonith/pacemaker for fencing, use this line:
d9305b
-
d9305b
-.nf
d9305b
-fence_all /usr/sbin/dlm_stonith
d9305b
-.fi
d9305b
-
d9305b
-The "dlm_stonith" binary will be executed for all nodes.  If
d9305b
-stonith/pacemaker systems are not available, dlm_stonith will fail and
d9305b
-this config becomes the equivalent of the previous /bin/false config.
d9305b
-
d9305b
-.B *
d9305b
-To use an APC power switch, use these lines:
d9305b
-
d9305b
-.nf
d9305b
-device  apc /usr/sbin/fence_apc ipaddr=1.1.1.1 login=admin password=pw
d9305b
-connect apc node=1 port=1
d9305b
-connect apc node=2 port=2
d9305b
-connect apc node=3 port=3
d9305b
-.fi
d9305b
-
d9305b
-Other network switch based agents are configured similarly.
d9305b
-
d9305b
-.B *
d9305b
-To use sanlock/watchdog fencing, use these lines:
d9305b
-
d9305b
-.nf
d9305b
-device wd /usr/sbin/fence_sanlock path=/dev/fence/leases
d9305b
-connect wd node=1 host_id=1
d9305b
-connect wd node=2 host_id=2
d9305b
-unfence wd
d9305b
-.fi
d9305b
-
d9305b
-See fence_sanlock(8) for more information.
d9305b
-
d9305b
-.B *
d9305b
-For other fencing configurations see dlm.conf(5) man page.
d9305b
-
d9305b
-.PP
d9305b
-
d9305b
-.B 4. start dlm_controld on all nodes
d9305b
-
d9305b
-.nf
d9305b
-systemctl start dlm
d9305b
-.fi
d9305b
-
d9305b
-Run "dlm_tool status" to verify that all nodes are listed.
d9305b
-
d9305b
-.PP
d9305b
-
d9305b
-.B 5. if using clvm, start clvmd on all nodes
d9305b
-
d9305b
-systemctl clvmd start
d9305b
-
d9305b
-.PP
d9305b
-
d9305b
-.B 6. make new gfs2 file systems
d9305b
+.B 1. Create the gfs2 filesystem
d9305b
 
d9305b
 mkfs.gfs2 -p lock_dlm -t cluster_name:fs_name -j num /path/to/storage
d9305b
 
d9305b
-The cluster_name must match the name used in step 1 above.
d9305b
-The fs_name must be a unique name in the cluster.
d9305b
-The -j option is the number of journals to create, there must
d9305b
-be one for each node that will mount the fs.
d9305b
+The cluster_name must match the name configured in corosync (and thus dlm).
d9305b
+The fs_name must be a unique name for the filesystem in the cluster.
d9305b
+The -j option is the number of journals to create; there must
d9305b
+be one for each node that will mount the filesystem.
d9305b
 
d9305b
 .PP
d9305b
+.B 2. Mount the gfs2 filesystem
d9305b
 
d9305b
-.B 7. mount gfs2 file systems
d9305b
+If you are using a clustered resource manager, see its documentation for
d9305b
+enabling a gfs2 filesystem resource. Otherwise, run:
d9305b
 
d9305b
 mount /path/to/storage /mountpoint
d9305b
 
d9305b
 Run "dlm_tool ls" to verify the nodes that have each fs mounted.
d9305b
 
d9305b
 .PP
d9305b
+.B 3. Shut down
d9305b
 
d9305b
-.B 8. shut down
d9305b
+If you are using a clustered resource manager, see its documentation for
d9305b
+disabling a gfs2 filesystem resource. Otherwise, run:
d9305b
 
d9305b
-.nf
d9305b
 umount -a -t gfs2
d9305b
-systemctl clvmd stop
d9305b
-systemctl dlm stop
d9305b
-systemctl corosync stop
d9305b
-.fi
d9305b
 
d9305b
 .PP
d9305b
+.SH SEE ALSO
d9305b
 
d9305b
-.B More setup information:
d9305b
-.br
d9305b
-.BR dlm_controld (8),
d9305b
-.br
d9305b
-.BR dlm_tool (8),
d9305b
-.br
d9305b
-.BR dlm.conf (5),
d9305b
-.br
d9305b
-.BR corosync (8),
d9305b
-.br
d9305b
-.BR corosync.conf (5)
d9305b
-.br
d9305b
+\fBmount\fP(8) and \fBumount\fP(8) for general mount information,
d9305b
+\fBchmod\fP(1) and \fBchmod\fP(2) for access permission flags,
d9305b
+\fBacl\fP(5) for access control lists,
d9305b
+\fBlvm\fP(8) for volume management,
d9305b
+\fBdlm_controld\fP(8),
d9305b
+\fBdlm_tool\fP(8),
d9305b
+\fBdlm.conf\fP(5),
d9305b
+\fBcorosync\fP(8),
d9305b
+\fBcorosync.conf\fP(5),