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.
    • stacksofplatesS
      stacksofplates
      last edited by stacksofplates

      So we are going to implement Red Hat's Identity Management for the workstations here to replace an old NIS system. I'm kind of stuck on one issue. For this area, we are going to have 2 NFS servers with the users home folders across both units. Is there a way to auto mount with their folder across both? We could enter a key manually for each user and then the mount location, but that's fairly tedious. Maybe I'm simply overlooking something easy. Here's what the interface looks like:

      0_1460057660030_idm.png

      0_1460057936560_idm2.png

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

        Another option would be to have a /home1 and /home2. That's fine, I just wanted to know if there is a way to have it all under the normal /home directory.

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

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

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

            @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.

            dafyreD scottalanmillerS 2 Replies Last reply Reply Quote 0
            • dafyreD
              dafyre @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.

              I wonder if something like UnionFS might be helpful here?

              It's part of how I get my Plex server to see both files on my local machine as well as files on my ACD drive as if they were all in one folder.

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

                @dafyre 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.

                I wonder if something like UnionFS might be helpful here?

                It's part of how I get my Plex server to see both files on my local machine as well as files on my ACD drive as if they were all in one folder.

                That's a possibility. I'll have to look into it. Sounds similar to GFS?

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

                  It looks like it might work... assuming you have some engineers on NFS1 and some Engineers on NFS2...

                  http://www.linuxjournal.com/article/7714

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

                    As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

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

                      @johnhooks said:

                      @dafyre 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.

                      I wonder if something like UnionFS might be helpful here?

                      It's part of how I get my Plex server to see both files on my local machine as well as files on my ACD drive as if they were all in one folder.

                      That's a possibility. I'll have to look into it. Sounds similar to GFS?

                      I'm not sure. It's not really a file system... It's more akin to DFS Name Spaces, I think...

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

                        @Dashrender said:

                        As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

                        You set the remote folders in the configuration. The & in the location is the wildcard character for the username. So I was hoping it would look in one, if it doesn't find it, it would go to the next.

                        You can also manually add each user's home folder and location, but that's a lot of work.

                        If it won't work, we can just do a /home1 and a /home2.

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

                          @dafyre said:

                          @johnhooks said:

                          @dafyre 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.

                          I wonder if something like UnionFS might be helpful here?

                          It's part of how I get my Plex server to see both files on my local machine as well as files on my ACD drive as if they were all in one folder.

                          That's a possibility. I'll have to look into it. Sounds similar to GFS?

                          I'm not sure. It's not really a file system... It's more akin to DFS Name Spaces, I think...

                          Ah ok. I'll look into it. Thanks!

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

                            @johnhooks said:

                            @dafyre said:

                            @johnhooks said:

                            @dafyre 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.

                            I wonder if something like UnionFS might be helpful here?

                            It's part of how I get my Plex server to see both files on my local machine as well as files on my ACD drive as if they were all in one folder.

                            That's a possibility. I'll have to look into it. Sounds similar to GFS?

                            I'm not sure. It's not really a file system... It's more akin to DFS Name Spaces, I think...

                            Ah ok. I'll look into it. Thanks!

                            yeah what dafyre was talking about looked like DFS to me.

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

                              @johnhooks said:

                              @Dashrender said:

                              As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

                              You set the remote folders in the configuration. The & in the location is the wildcard character for the username. So I was hoping it would look in one, if it doesn't find it, it would go to the next.

                              You can also manually add each user's home folder and location, but that's a lot of work.

                              If it won't work, we can just do a /home1 and a /home2.

                              In windows I can assign a user a homedrive of \servername\sharename%username%

                              But I don't think there is a way to variablize the sharename itself

                              dafyreD stacksofplatesS 2 Replies Last reply Reply Quote 0
                              • dafyreD
                                dafyre @Dashrender
                                last edited by

                                @Dashrender said:

                                @johnhooks said:

                                @Dashrender said:

                                As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

                                You set the remote folders in the configuration. The & in the location is the wildcard character for the username. So I was hoping it would look in one, if it doesn't find it, it would go to the next.

                                You can also manually add each user's home folder and location, but that's a lot of work.

                                If it won't work, we can just do a /home1 and a /home2.

                                In windows I can assign a user a homedrive of \servername\sharename%username%

                                But I don't think there is a way to variablize the sharename itself

                                Right. He could fake it with UnionFS or (if stuck in Windows) DFS Name Spaces

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

                                  @Dashrender said:

                                  @johnhooks said:

                                  @Dashrender said:

                                  As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

                                  You set the remote folders in the configuration. The & in the location is the wildcard character for the username. So I was hoping it would look in one, if it doesn't find it, it would go to the next.

                                  You can also manually add each user's home folder and location, but that's a lot of work.

                                  If it won't work, we can just do a /home1 and a /home2.

                                  In windows I can assign a user a homedrive of \servername\sharename%username%

                                  But I don't think there is a way to variablize the sharename itself

                                  Ya, I could do that with a 2nd home directory and it would be fine. I can only have one * key though, so I would have to set up a new auto.home2 map and have the mount point as /home2 with the new * key under it.

                                  It might not even be worth messing with. Later on at some point we are going to do some kind of clustered storage (gluster or ceph) and it won't matter anyway, we could have as much as we want in one directory.

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

                                    @dafyre said:

                                    @Dashrender said:

                                    @johnhooks said:

                                    @Dashrender said:

                                    As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

                                    You set the remote folders in the configuration. The & in the location is the wildcard character for the username. So I was hoping it would look in one, if it doesn't find it, it would go to the next.

                                    You can also manually add each user's home folder and location, but that's a lot of work.

                                    If it won't work, we can just do a /home1 and a /home2.

                                    In windows I can assign a user a homedrive of \servername\sharename%username%

                                    But I don't think there is a way to variablize the sharename itself

                                    Right. He could fake it with UnionFS or (if stuck in Windows) DFS Name Spaces

                                    Could you though? I haven't actually used DFS before, but I thought that DFS worked as follows. You create a root DFS \domainname then you create a share within that root space \domainname\usershares then you mount other direct shares to that DFS share which creates a subfolder in the DFS share, i.e. real share \server1\home1 = DFS \domainname\share\home1

                                    So this would mean you'd have
                                    \domainname\share\home1
                                    \domainname\share\home2

                                    You'd still have to assign the specific path (\domainname\share\home1 or home2) in the user information.

                                    I could be completely off base on this, if so, please correct me.

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

                                      @johnhooks said:

                                      @Dashrender said:

                                      @johnhooks said:

                                      @Dashrender said:

                                      As a complete Linux noob here... if you have users \home folders spread over two systems, how does where ever they are logging in know which one of those servers have their files?

                                      You set the remote folders in the configuration. The & in the location is the wildcard character for the username. So I was hoping it would look in one, if it doesn't find it, it would go to the next.

                                      You can also manually add each user's home folder and location, but that's a lot of work.

                                      If it won't work, we can just do a /home1 and a /home2.

                                      In windows I can assign a user a homedrive of \servername\sharename%username%

                                      But I don't think there is a way to variablize the sharename itself

                                      Ya, I could do that with a 2nd home directory and it would be fine. I can only have one * key though, so I would have to set up a new auto.home2 map and have the mount point as /home2 with the * key under it.

                                      It might not even be worth messing with. Later on at some point we are going to do some kind of clustered storage (gluster or ceph) and it won't matter anyway, we could have as much as we want in one directory.

                                      UnionFS would work something like this...

                                      On nfsserver1 in the /data folder...

                                      mkdir otherserver
                                      mkdir allusers
                                      mount nfsserver2:/data/usres /data/otherserver

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

                                      Modify the exportfs to use /data/allusers

                                      Then point your software above to nfsserver1:/data/allusers/&

                                      That's the short short, untested highly volatile may melt your face off, or cause your servers to dance with the devil in the pale moonlight, heavily untested version... but an idea, none-the-less.

                                      1 Reply Last reply Reply Quote 1
                                      • DashrenderD
                                        Dashrender
                                        last edited by

                                        @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.

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

                                          @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!

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

                                            @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.

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