Bug 1654778
Summary: | Please update GlusterFS documentation to describe how to do a non-root install | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Brian Rzycki <brzycki> |
Component: | doc | Assignee: | Sheetal Pamecha <spamecha> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 5 | CC: | atumball, bugs, pasik |
Target Milestone: | --- | Keywords: | EasyFix |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-09 05:59:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Brian Rzycki
2018-11-29 16:35:17 UTC
Building and Installing GlusterFS purely as a non-root user will work with these steps - ./autogen.sh ./configure \ --prefix=$HOME/gfs \ --with-mountutildir=$HOME/gfs/sbin \ --with-initdir=$HOME/gfs/etc/init.d make -j make install 1. However to run glusterfs and start glusterd you need to provide init scripts to systemctl. As initdir path is changed "initdir=$HOME/gfs/etc/init.d" systemctl will not able to locate it and fork it into the background as a daemon process. This requires changing env variable path to get the glusterd.service from a new location than default. If this is not done you cannot run 'gluster' commands. 2. Another thing is that mount.glusterfs script has to be in /sbin/mount.glusterfs for mounting via command mount -t glusterfs to work. Changing mountutildir path changes script location to $HOME/gfs/sbin/mount.glusterfs. Workarounds are there to manually change and use fstab resulting is unnecessary steps as compared to single mount command. 3. All the log files are placed in the /var/log/glusterfs directory by default(cli, glusterd, mount, fuse etc). running gluster commands from nonsuper user will result in error in creating all these log files unless triggered with sudo privileges. Providing Installing steps for non-root user in doc will result in confusion and overheads while using glusterfs. Based on above mentioned points I would like to close this bug. That's fine. In my opinion the documentation should be more explicit that GlusterFS cannot run as a non privilidged user and requires some amount of group admin rights. Its mentioned in docs https://docs.gluster.org/en/latest/Developer-guide/Building-GlusterFS/#running-glusterfs |