AutoFS and NFS Home
-
@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.
-
@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!
-
@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. -
@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) -
@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.
-
@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.
-
@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
-
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.
-
@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.
-
@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.
-
@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.