nfs/setup-client.sh
raw link view readme1 | |
2 | yum install nfs-utils -y |
3 | |
4 | mkdir /mnt/server01 |
5 | cat >> /etc/fstab << EOF |
6 | $SERVERNAME:/var/nfs /mnt/server01 nfs rw,sync,hard,noatime 0 0 |
7 | EOF |
8 | |
9 | cat > /root/connect_and_modify.sh << EOF |
10 | mount -a |
11 | touch /mnt/server01/taco |
12 | echo another test file > /mnt/server01/file02.txt |
13 | cat /mnt/server01/file01 |
14 | EOF |
15 | chmod +x /root/connect_and_modify.sh |
16 |