Document URL: http://jenkinscat.gsslab.pnq.redhat.com:8080/job/doc-Red_Hat_Gluster_Storage-3.1-Console_Administration_Guide-en-US%20%28html-single%29/lastStableBuild/artifact/tmp/en-US/html-single/index.html#Viewing_Bricks_from_a_Host
Section Number and Name: Procedure 5.9 Creating bricks
Describe the issue: When bricks are created from UI, the file context is set to file 'system_u:object_r:file_t:s0' . context of the newly created bricks has to be changed to 'system_u:object_r:glusterd_brick_t:s0' otherwise selinux will prevent user to create special files in the mount point.
Suggestions for improvement: Add the below as important "Once the bricks are created from UI and before using them to create a volume perform the following on all the nodes in the cluster."
# semanage fcontext -a -t glusterd_brick_t '/rhgs/brick1(/.*)?'
# restorecon -Rv /rhgs/brick1
Replace /rhgs/brick1 with your actual brick path
Additional information:
Comment 2Anjana Suparna Sriram
2015-07-22 11:23:46 UTC