Skip to Content
Learning RHEL Networking
book

Learning RHEL Networking

by Andrew Mallett
June 2015
Intermediate to advanced
216 pages
4h 48m
English
Packt Publishing
Content preview from Learning RHEL Networking

Using exportfs to create temporary exports

It's not always desirable to create permanent exports within the /etc/exports file. Should you want to define a new export temporarily, you can use the exportfs command. As we have already defined the NFS root to be /var/exports, all directories that we export must be after that structure. Let's temporarily export /var/export/doc to all hosts. We can do so using the following command:

$ sudo exportfs *:/var/exports/doc

On the next restart of nfs-server, this export will be lost; however, if you need to delete it ahead of this, you can implement the following command:

$ sudo exportfs -u *:/var/exports/doc

Should you need to include export options with the temporary export, use the -o option in a similar ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Mohamed Alibi, BHASKARJYOTI ROY
Troubleshooting CentOS

Troubleshooting CentOS

Jonathan Hobson

Publisher Resources

ISBN: 9781785287831