Science:
Linux disk structure
Linux partition management and file system formatting
Linux Mounted Networked Storage
Mount Failure encountered error:
(1) Mount.nfs:access denied
10.9. 87.65:/filedir/10.9. 87.65:/filedir
Analysis: It is likely that the network is not available, or the directory name error caused by the file directory is not obtained
You can use the following command to confirm:
10.9. 87.65 10.9. 87.65 : 10.9. A. *
The file directory is only open for IP access to the same network segment
(2) mount.nfs:rpc.statd are not running but are required for remote locking.
10.9. 87.65:/filedir/is isn't'-o nolock' or not permitted
Analysis: The NFS mount default options include file locks, depending on the dynamic port assignment feature provided by Portmap or the Rpcbind service is not started.
Workaround: Kill file Lock (LOCKD) or Mount-o nolock or start service Rpcbind, Nfslock
10.9. 87.65:/filedir/filedir
Or try to open Nfslock and Rpcbind:
sudo/sbin//sbin/service nfslock start
It is also possible to resolve this issue by restarting the following three services before mounting:
Service Nfslock restartservice Rpcbind restartservice NFS Restart
PS: In order to prevent Linux reboot, the mount disk disappears, need to configure the/etc/fstab file.
Mount-a command: Automatically mount according to the contents of/etc/fstab
The/etc/fstab file will be executed automatically when the system starts, so let's look at the contents of the/etc/fstab file first.
/DEV/MAPPER/VG_MYYDSRW-LV_ROOT/EXT4 defaults1 1UUID=47fa30fe-a6c7-414c-b28b-77da3fde58a9/boot EXT4 Defaults1 2/dev/mapper/vg_myydsrw-lv_swap Swap swap Defaults0 0Tmpfs/DEV/SHM TMPFS Defaults0 0devpts/dev/pts devpts gid=5, mode=620 0 0Sysfs/sys SYSFS Defaults0 0proc/PROC proc Defaults0 0
The first column can be the actual partition name, or it can be the volume label (lable) of the actual partition.
The second column is a mount point, the mount point must be a directory that currently exists, and for compatibility, it is a good idea to set its permissions to 777 after creating the target directory that needs to be mounted.
The third column is the file system type for this partition, and Linux can use types such as ext2, ext3, and so on, which must be the same type used when formatting the partition. You can also use Auto to enable the system to automatically detect the partition type of the target partition.
The fourth column is the Mount option to set the mounted parameters. The common parameters are as follows: Auto: System automatically mounts, fstab default is this option DEFAULTS:RW, suid, Dev, exec, auto, nouser, and Async.noauto boot not automatically mount Nouser only super users can mount Ro Mount RW by read-only permission mount user any user can mount please note that the optical drive and floppy drive can be mounted only when the media is installed, so it is Noauto
The fifth column is the dump backup setting, and when its value is set to 1 o'clock, the dump backup program is allowed to be backed up and set to 0 o'clock, ignoring the backup operation;
The sixth column is the fsck disk check setting. Its value is in one order. When its value is 0 o'clock, never check; the/root directory partition is always 1. Other partitions start at 2, the smaller the number, the first check if the number of two partitions is the same.
Linux NFS Mount failure case