ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    AutoFS and NFS Home

    IT Discussion
    linux red hat identity management ldap autofs
    4
    28
    4.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dafyreD
      dafyre @Dashrender
      last edited by

      @Dashrender said:

      @dafyre said:

      @Dashrender said:

      @dafyre said:

      mount -t unionfs -o dirs=/data/users:/data/otherserver /data/allusers

      I got it.. that's kinda cool, basically fakes a merger of those two folders into a new folder.

      Yepp... so if somebody writes something into /data/allusers/newuser it gets created on the nfsserver1 ...

      But if somebody writes something into an existing folder, then it saves it where that folder really lives.

      It's ugly, but it does work!

      So if you want/need something to go to server2, you have to create the folder first? ok
      pain, but maybe worth it.

      if you want nfsserver2 to be primary, you would change the mount point around...

      mount -t unionfs -o dirs=/data/otherserver:/data/users /data/allusers
      (note: this would be run from the command line of nfsserver1)

      DashrenderD 1 Reply Last reply Reply Quote 0
      • DashrenderD
        Dashrender @dafyre
        last edited by

        @dafyre said:

        @Dashrender said:

        @dafyre said:

        @Dashrender said:

        @dafyre said:

        mount -t unionfs -o dirs=/data/users:/data/otherserver /data/allusers

        I got it.. that's kinda cool, basically fakes a merger of those two folders into a new folder.

        Yepp... so if somebody writes something into /data/allusers/newuser it gets created on the nfsserver1 ...

        But if somebody writes something into an existing folder, then it saves it where that folder really lives.

        It's ugly, but it does work!

        So if you want/need something to go to server2, you have to create the folder first? ok
        pain, but maybe worth it.

        if you want nfsserver2 to be primary, you would change the mount point around...

        mount -t unionfs -o dirs=/data/otherserver:/data/users /data/allusers
        (note: this would be run from the command line of nfsserver1)

        not what I was going for.. I was going for leave the primary where you had it.. but I want to occasionally add a new thing to server 2, not server 1, so I would have to go to the actual share and create the folder manually.

        dafyreD 1 Reply Last reply Reply Quote 0
        • dafyreD
          dafyre @Dashrender
          last edited by

          @Dashrender said:

          @dafyre said:

          @Dashrender said:

          @dafyre said:

          @Dashrender said:

          @dafyre said:

          mount -t unionfs -o dirs=/data/users:/data/otherserver /data/allusers

          I got it.. that's kinda cool, basically fakes a merger of those two folders into a new folder.

          Yepp... so if somebody writes something into /data/allusers/newuser it gets created on the nfsserver1 ...

          But if somebody writes something into an existing folder, then it saves it where that folder really lives.

          It's ugly, but it does work!

          So if you want/need something to go to server2, you have to create the folder first? ok
          pain, but maybe worth it.

          if you want nfsserver2 to be primary, you would change the mount point around...

          mount -t unionfs -o dirs=/data/otherserver:/data/users /data/allusers
          (note: this would be run from the command line of nfsserver1)

          not what I was going for.. I was going for leave the primary where you had it.. but I want to occasionally add a new thing to server 2, not server 1, so I would have to go to the actual share and create the folder manually.

          If you do it the second way I listed, any new folders created under /data/allusers would go to server2 by default. But yeah, you could just as easily create the folders on server2 and set the permissions appropriately.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @stacksofplates
            last edited by

            @johnhooks said:

            @dafyre said:

            Why are there two NFS servers to start with? (Just curious)

            They're only 20-24 drives each. About 50TB per server. All of the engineer's home folders are on them so one isn't enough.

            At some point down the road we are going to implement a clustered storage but we just don't have the time right now because of time constraints for this project.

            Gluster could be done in an hour. I have how tos posted for both NFS Home Automounting and Gluster 🙂

            stacksofplatesS 1 Reply Last reply Reply Quote 3
            • scottalanmillerS
              scottalanmiller
              last edited by

              Gluster would solve this as fast as any of those solutions 🙂 Faster than this conversation, actually.

              Another option is use one as a NAS head and use the other as SAN and present it all as one pool even though it is two machines. But that would give up some of the performance and make it more fragile.

              1 Reply Last reply Reply Quote 2
              • stacksofplatesS
                stacksofplates @scottalanmiller
                last edited by

                @scottalanmiller said:

                @johnhooks said:

                @dafyre said:

                Why are there two NFS servers to start with? (Just curious)

                They're only 20-24 drives each. About 50TB per server. All of the engineer's home folders are on them so one isn't enough.

                At some point down the road we are going to implement a clustered storage but we just don't have the time right now because of time constraints for this project.

                Gluster could be done in an hour. I have how tos posted for both NFS Home Automounting and Gluster 🙂

                Ha yes anywhere else it would take no time at all. We have so much red tape to jump through it's ridiculous.

                dafyreD 1 Reply Last reply Reply Quote 0
                • dafyreD
                  dafyre @stacksofplates
                  last edited by

                  @johnhooks said:

                  @scottalanmiller said:

                  @johnhooks said:

                  @dafyre said:

                  Why are there two NFS servers to start with? (Just curious)

                  They're only 20-24 drives each. About 50TB per server. All of the engineer's home folders are on them so one isn't enough.

                  At some point down the road we are going to implement a clustered storage but we just don't have the time right now because of time constraints for this project.

                  Gluster could be done in an hour. I have how tos posted for both NFS Home Automounting and Gluster 🙂

                  Ha yes anywhere else it would take no time at all. We have so much red tape to jump through it's ridiculous.

                  Start setting up and testing a Gluster Cluster (see what I did there?)... and maybe by the time you get it set up and tested, you'll be done playing jump rope with the red tape.

                  stacksofplatesS 1 Reply Last reply Reply Quote 0
                  • stacksofplatesS
                    stacksofplates @dafyre
                    last edited by

                    @dafyre said:

                    @johnhooks said:

                    @scottalanmiller said:

                    @johnhooks said:

                    @dafyre said:

                    Why are there two NFS servers to start with? (Just curious)

                    They're only 20-24 drives each. About 50TB per server. All of the engineer's home folders are on them so one isn't enough.

                    At some point down the road we are going to implement a clustered storage but we just don't have the time right now because of time constraints for this project.

                    Gluster could be done in an hour. I have how tos posted for both NFS Home Automounting and Gluster 🙂

                    Ha yes anywhere else it would take no time at all. We have so much red tape to jump through it's ridiculous.

                    Start setting up and testing a Gluster Cluster (see what I did there?)... and maybe by the time you get it set up and tested, you'll be done playing jump rope with the red tape.

                    The other issue is the NFS servers we have right now are applicances (was done before I got here I've only been here less than a month). We can install certain things, but too much and we might lose "support."

                    We have to have these inspectors come in and approve stuff if any changes are made to this network. It's ridiculous.

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 2 / 2
                    • First post
                      Last post