mount glusterfs file system

burattif

    Hi,

     

    we have a problem with a few Oracle Linux server.

    During the OS startup one file system is not mounted, a glusterfs file system.

    We have this behaviur after a server power off, before we didn't have that issue.

    The OS version is 7.6 and below the /etc/fstab file:

     

         #

         # /etc/fstab

         # Created by anaconda on Wed Jan 23 10:20:12 2019

         #

         # Accessible filesystems, by reference, are maintained under '/dev/disk'

         # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

         #

         /dev/mapper/ol_srvmdw01-root /                       xfs     defaults        0 0

         UUID=6b8ed17b-6d87-4688-ab77-2baf0345f0bf /boot                   xfs     defaults        0 0

         /dev/mapper/ol_srvmdw01-swap swap                    swap    defaults        0 0

         /dev/disk/by-uuid/0dd600f1-ec65-4d62-a9e5-ab91fdace6b4 /app auto nosuid,nodev,nofail,x-gvfs-show 0 0

         srvmdw01:/gvolume /app/var/mdw/share/ glusterfs defaults 0 0

     

    But is possible to mount the file system manually with the command:

     

    mount -t glusterfs srvmdw01:/gvolume /app/var/mdw/share

     

    Do you have any idea because we don't have anymore the auto-mount during OS startup?

    Thanks

     

    Francesco

      • 1. Re: mount glusterfs file system
        Nik

        Hi.

          You should check and analyze available logs.

          ( /var/log/messages ; /var/log/bootlog ; check  messages at boot time )

        Without logs we can try  to guess  real problem...

         

        Please show content of file /etc/nsswitch.conf

         

        Regards,

          Nik

        • 2. Re: mount glusterfs file system
          Dude!

          If the filesystem resides on a device that requires network access you can use the _netdev mount option to tell the system to wait until the network has been enabled.

           

          For example:

           

          srvmdw01:/gvolume /app/var/mdw/share/ glusterfs defaults,_netdev 0 0

           

          This is also mentioned at https://docs.gluster.org/en/latest/Administrator%20Guide/Setting%20Up%20Clients/

           

          • 3. Re: mount glusterfs file system
            burattif

            Hi Nik,

             

            here the /etc/nsswitch.conf

             

            [root@srvmdw01 ~]# cat /etc/nsswitch.conf

            #

            # /etc/nsswitch.conf

            #

            # An example Name Service Switch config file. This file should be

            # sorted with the most-used services at the beginning.

            #

            # The entry '[NOTFOUND=return]' means that the search for an

            # entry should stop if the search in the previous entry turned

            # up nothing. Note that if the search failed due to some other reason

            # (like no NIS server responding) then the search continues with the

            # next entry.

            #

            # Valid entries include:

            #

            #       nisplus                 Use NIS+ (NIS version 3)

            #       nis                     Use NIS (NIS version 2), also called YP

            #       dns                     Use DNS (Domain Name Service)

            #       files                   Use the local files

            #       db                      Use the local database (.db) files

            #       compat                  Use NIS on compat mode

            #       hesiod                  Use Hesiod for user lookups

            #       [NOTFOUND=return]       Stop searching if not found so far

            #

             

            # To use db, put the "db" in front of "files" for entries you want to be

            # looked up first in the databases

            #

            # Example:

            #passwd:    db files nisplus nis

            #shadow:    db files nisplus nis

            #group:     db files nisplus nis

             

            passwd:     files sss

            shadow:     files sss

            group:      files sss

            #initgroups: files sss

             

            #hosts:     db files nisplus nis dns

            hosts:      files dns myhostname

             

            # Example - obey only what nisplus tells us...

            #services:   nisplus [NOTFOUND=return] files

            #networks:   nisplus [NOTFOUND=return] files

            #protocols:  nisplus [NOTFOUND=return] files

            #rpc:        nisplus [NOTFOUND=return] files

            #ethers:     nisplus [NOTFOUND=return] files

            #netmasks:   nisplus [NOTFOUND=return] files

             

            bootparams: nisplus [NOTFOUND=return] files

             

            ethers:     files

            netmasks:   files

            networks:   files

            protocols:  files

            rpc:        files

            services:   files sss

             

            netgroup:   nisplus sss

             

            publickey:  nisplus

             

            automount:  files nisplus sss

            aliases:    files nisplus

             

            [root@srvmdw01 ~]#

             

            I find the following in the /var/log/boot.log-20190926:

             

            [^[[32m  OK  ^[[0m] Started privileged operations for unprivileged applications.

                     Starting Postfix Mail Transport Agent...

                     Starting OpenSSH server daemon...

                     Starting Logout off all iSCSI sessions on shutdown...

                     Starting Dynamic System Tuning Daemon...

                     Starting GlusterFS, a clustered file-system server...

            [^[[32m  OK  ^[[0m] Started Logout off all iSCSI sessions on shutdown.

                     Starting Availability of block devices...

            [^[[32m  OK  ^[[0m] Reached target Remote File Systems (Pre).

            [^[[32m  OK  ^[[0m] Started Availability of block devices.

            [^[[32m  OK  ^[[0m] Started OpenSSH server daemon.

            [^[[32m  OK  ^[[0m] Started Accounts Service.

            [^[[32m  OK  ^[[0m] Started Dynamic System Tuning Daemon.

            [^[[32m  OK  ^[[0m] Started GlusterFS, a clustered file-system server.

            [^[[32m  OK  ^[[0m] Reached target Network is Online.

             

             

            Thanks!

            Francesco