https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/Global_File_System_2/index.html#s2-selinux-gfs2-gfs2
It all works OK, a GFS2 volume is mounted and accessible on all nodes.
The thing that I'm worried about it this bit from official redHat documnetation:
"Security Enhanced Linux (SELinux) is highly recommended for security reasons in most situations, but it is not supported for use with GFS2. SELinux stores information using extended attributes about every file system object. Reading, writing, and maintaining these extended attributes is possible but slows GFS2 down considerably. You must turn SELinux off on a GFS2 file system when you mount the file system, using one of the context options as described on the mount(8) man page. "
A GFS2 volume is mounted on /cluster/storage and the current security context can be seen below:
- Code: Select all
[pcmk]# ls -ldZ /cluster/storage/
drwxr-xr-x. root root system_u:object_r:unlabeled_t:s0 /cluster/storage/
I did read the man page for 'mount' and checked the context= bit there, however, I'm not sure on what exactly context needs to be applied to GFS2.
Any ideas, suggestions?