Test 1 Review
Know how to
- install NFS server
- export directories (including specific options)
- mount directories
- add fstab options so mount persists
Know how to:
- Send logs from one machine to another
- Rotate log files when they get too big
- Filter logs to a particular destination
Test 1 Sample
Create an nfs machine.
- Install the packages necessary to share directories via nfs
- Create the following exported directories:
- /fruit - read only, pausing for successful mount, asynchronous; to any ip anywhere
- /veggies - read/write, not pause, synchronous; to only ips in this subnet
- /pizza - ???; only to your logging machine
On your second machine, create a user named
Create the following mount points.
- /home/test/fruit = should mount your /fruit directory from nfs
- /veggies = should mount your /veggies from nfs
- /tmp/pizza = should mount your /pizza from nfs
Insert fstab entries so that each of your exports will automatically be mounted at boot time.
On this second machine, install
syslog-ng. Send the syslog from nfs over to this machine. The log file should be found in
/var/log/nfsmachine/syslog.log. Configure logrotate to rotate these logs if they get over 100k in size.
Last Updated 03/24/2016