NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all
Redhat recommends us to add _netdev option for NFS file system in /etc/fstab. So that they can be mounted after starting the networking service.
Example #1
============================
[root@localhost ~]# firewall-cmd --list-all
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client high-availability ssh
ports:
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
Alternative ways to refer to partitions:
- Label : LABEL=label
- Network ID
- Samba : //server/share
- NFS : server:/share
- SSHFS : sshfs#user@server:/share
- Device : /dev/sdxy (not recommended)
Example #1
//192.168.1.134/share_name /mnt/share_name cifs username=server_user,password=server_password,_netdev 0 0
^ Path to your share ^ Mountpoint ^ Username ^ Password ^ See note A
Note A:
The
Example #2The
_netdev
options makes sure the mount is only attempted AFTER a network connection has been established.============================
[root@localhost ~]# firewall-cmd --list-all
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client high-availability ssh
ports:
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
Comments
Post a Comment