-
Notifications
You must be signed in to change notification settings - Fork 1
/
nfs-server-config.sh
59 lines (57 loc) · 3.67 KB
/
nfs-server-config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Install NFS server
apt-get install nfs-kernel-server -y
# Run this after changing /etc/exports
exportfs -a ; systemctl restart nfs-kernel-server.service
# Sample /etc/exports
/mnt/chia-1 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-2 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-3 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-4 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-5 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-6 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-7 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-8 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-9 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-10 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-11 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-12 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-13 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-14 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-15 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-16 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-17 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-18 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-19 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-20 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-21 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-22 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-23 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-24 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-25 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-26 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-27 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-28 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-29 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-30 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-31 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-32 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-33 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-34 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-35 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-36 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-37 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-38 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-39 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-40 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-41 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-42 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-43 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-44 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-45 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-46 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-47 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-48 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-49 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-50 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-51 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
/mnt/chia-52 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)