Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
nfs [2017/03/27 20:55] Stephane de Labrusse [Settings] |
nfs [2019/03/04 11:52] HF Add donate box |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Glpi ==== | + | {{page> |
- | <wrap hi> | + | ==== NFS ==== |
+ | <wrap hi> | ||
[[https:// | [[https:// | ||
Line 6: | Line 8: | ||
====Maintainer==== | ====Maintainer==== | ||
Stephane de Labrusse at [[stephdl@de-labrusse.fr]] | Stephane de Labrusse at [[stephdl@de-labrusse.fr]] | ||
+ | |||
====Installation==== | ====Installation==== | ||
Line 15: | Line 18: | ||
| | ||
==== Usage ==== | ==== Usage ==== | ||
- | The rpm installs nethserver-samba and nethserver-ibay, | + | The rpm installs nethserver-samba and nethserver-ibay, |
You have two modes | You have two modes | ||
Line 36: | Line 39: | ||
====Settings==== | ====Settings==== | ||
- | ===Group Ownership=== | + | ===Add secondary group to a user=== |
Except the command ' | Except the command ' | ||
- | * To see user | + | * To see user Ownership |
+ | < | ||
id User | id User | ||
+ | </ | ||
* To create a new gid/group | * To create a new gid/group | ||
+ | < | ||
groupadd -g GidNumber -o GroupName | groupadd -g GidNumber -o GroupName | ||
+ | </ | ||
* To add a secondary group to a user | * To add a secondary group to a user | ||
+ | < | ||
usermod -a -G GidNumber UserName | usermod -a -G GidNumber UserName | ||
+ | </ | ||
You might need to logout/ | You might need to logout/ | ||
Line 56: | Line 65: | ||
newgrp GroupName | newgrp GroupName | ||
===Mount the remote share=== | ===Mount the remote share=== | ||
+ | |||
* by the command line | * by the command line | ||
+ | |||
Once the share is created, then on the remote allowed client, we need to mount the share | Once the share is created, then on the remote allowed client, we need to mount the share | ||
< | < | ||
Line 77: | Line 88: | ||
</ | </ | ||
- | ===custom | + | * by the fstab |
+ | |||
+ | mount the network share in the [[https:// | ||
+ | |||
+ | If you want to get mounted the NFS remote share at boot, you can add it in your fstab | ||
+ | |||
+ | Eg | ||
+ | |||
+ | < | ||
+ | server:/ | ||
+ | </ | ||
+ | |||
+ | Using fstab is useful for a server which is always on, and the NFS shares are available whenever the client boots up. Edit /etc/fstab file, and add an appropriate line reflecting the setup. Again, the server' | ||
+ | |||
+ | Note: Consult the NFS and mount man pages for more mount options. Some additional mount options to consider are include: | ||
+ | |||
+ | * NFS Timeout | ||
+ | |||
+ | Nfs can have a really long timeout in case if the remote host is not reachable, if you want to avoid it you can do | ||
+ | |||
+ | < | ||
+ | mount -t nfs -o nolock, | ||
+ | </ | ||
+ | |||
+ | **timeo** | ||
+ | |||
+ | The -o timeo option allows designation of the length of time, in tenths of seconds, that the client will wait until it decides it will not get a reply from the server, and must try to send the request again. The default value is 7 tenths of a second | ||
+ | |||
+ | **retrans** | ||
+ | |||
+ | The -o retrans option allows designation of the number of timeouts allowed before the client gives up, and displays the Server not responding message. The default value is 3 attempts. | ||
+ | |||
+ | **retry** | ||
+ | |||
+ | The number of minutes that the mount command retries an NFS mount operation in the foreground or background before giving up. If a value of zero is specified, the mount command exits immediately after the first failure. If this option is not specified, the default value for foreground mounts is 2 minutes, and the default value for background mounts is 10000 minutes (80 minutes shy of one week). | ||
+ | |||
+ | ====Custom | ||
Nfs offers a lot of parameters and you may need some specific settings that it would be difficult or dangerous to let them in all hands. So for some cases you can enable by db command your nfs shares | Nfs offers a lot of parameters and you may need some specific settings that it would be difficult or dangerous to let them in all hands. So for some cases you can enable by db command your nfs shares | ||
but you cannot : | but you cannot : | ||
+ | |||
+ | < | ||
* use the wildcard ' | * use the wildcard ' | ||
* open your shares to ip(s) outside of your local network(s) | * open your shares to ip(s) outside of your local network(s) | ||
Line 86: | Line 135: | ||
* use the root '/' | * use the root '/' | ||
* let a space between the ip and its share definition | * let a space between the ip and its share definition | ||
+ | </ | ||
IF you want to do all these dangerous things, then you need to do them by custom templates. | IF you want to do all these dangerous things, then you need to do them by custom templates. | ||
Line 118: | Line 168: | ||
====Documentation==== | ====Documentation==== | ||
+ | [[https:// | ||
+ | [[https:// | ||
====Admin' | ====Admin' | ||
FIXME | FIXME | ||
==== Issues ==== | ==== Issues ==== | ||
- | Please raise Issues on [[https:// | + | Please raise Issues on [[https:// |
====Sources==== | ====Sources==== | ||
source are [[https:// | source are [[https:// | ||
- | {{tag> | + | {{tag> |