Show Table of Contents
3.3. NFS Share Setup
The following procedure configures the NFS share for the NFS daemon failover. You need to perform this procedure on only one node in the cluster.
- Create the
/nfsshare
directory.[root@z1 ~]#
mkdir /nfsshare
- Mount the
ext4
file system that you created in Section 3.2, “Configuring an LVM Volume with an ext4 File System” on the/nfsshare
directory.[root@z1 ~]#
mount /dev/my_vg/my_lv /nfsshare
- Create an
exports
directory tree on the/nfsshare
directory.[root@z1 ~]#
mkdir -p /nfsshare/exports
[root@z1 ~]#mkdir -p /nfsshare/exports/export1
[root@z1 ~]#mkdir -p /nfsshare/exports/export2
- Place files in the
exports
directory for the NFS clients to access. For this example, we are creating test files namedclientdatafile1
andclientdatafile2
.[root@z1 ~]#
touch /nfsshare/exports/export1/clientdatafile1
[root@z1 ~]#touch /nfsshare/exports/export2/clientdatafile2
- Unmount the ext4 file system and deactivate the LVM volume group.
[root@z1 ~]#
umount /dev/my_vg/my_lv
[root@z1 ~]#vgchange -an my_vg
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.