Making mounts permanent
Currently, even though we mounted the NFS share with the mount
command, this mounted filesystem is not considered persistent. The next time this system reboots, the NFS mount will not be remounted.
That is because as a system boots up, part of the boot process is to read the /etc/fstab
file and mount
any filesystems defined within it.
To better understand how this works, let's look at the /etc/fstab
file on the database server:
[db]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Mon Jul 21 23:35:56 2014 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/os-root / xfs defaults 1 1 UUID=be76ec1d-686d-44a0-9411-b36931ee239b /boot xfs defaults 1 2 /dev/mapper/os-swap swap swap defaults 0 0 192.168.33.13:/nfs /data nfs defaults 0 0
The contents of the...