forked from zilexa/Homeserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfstab
45 lines (45 loc) · 2.93 KB
/
fstab
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
GNU nano 5.2 /etc/fstab
# sudo nano /etc/fstab: static file system information.
# STOP! Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#
# Mount System disk ~ subvolumes
#--------------------------------
# Mount root subvolume @docker
UUID=!ADD YOUR OS/SYSTEM SSD UUID HERE! /home/asterix/docker btrfs defaults,noatime,compress=zstd:1,subvol=@docker 0 2
#
# Mount DATA disks
# -----------------
UUID=!ADD YOUR CACHE SSD UUID HERE! /mnt/disks/cache btrfs defaults,noatime,compress=zstd:3 0 0
UUID=!ADD YOUR DATA DISK1 UUID HERE! /mnt/disks/data1 btrfs defaults,noatime,compress=zstd:8 0 0
UUID=!ADD YOUR DATA DISK2 UUID HERE! /mnt/disks/data2 btrfs defaults,noatime,compress=zstd:8 0 0
UUID=!ADD YOUR DATA DISK3 UUID HERE! /mnt/disks/data3 btrfs defaults,noatime,compress=zstd:8 0 0
#
# MergerFS ~ POOL & pool-archive
# ------------------------------
# MergerFS datapool ~ with SSD as tiered cache
/mnt/disks/cache:/mnt/disks/data1:/mnt/disks/data2:/mnt/disks/data3 /mnt/pool fuse.mergerfs allow_other,cache.files=auto-full,dropcacheonclose=true,cache.readdir=true,cache.statfs=true,cache.symlinks=true,cache.entry=3,cache.attr=3,cache.negative_entry=2,use_ino,category.create=lfs,moveonenospc=true,minfreespace=200G,fsname=mergerfsPool 0 0
# MergerFS ~ datapool excluding the SSD cache (required to be able to unload the cache)
/mnt/disks/data1:/mnt/disks/data2:/mnt/disks/data3 /mnt/pool-archive fuse.mergerfs allow_other,cache.files=auto-full,dropcacheonclose=true,cache.readdir=true,cache.statfs=true,cache.symlinks=true,cache.entry=3,cache.attr=3,cache.negative_entry=2,use_ino,category.create=epmfs,moveonenospc=true,minfreespace=100G,fsname=mergerfsPool 0 0
#
#
# Mount PARITY disk(s) ~ for regular SnapRAID sync
# ------------------------------------------------
UUID=!ADD YOUR DATA PARITY1 UUID HERE! /mnt/disks/parity1 ext4 defaults,noatime 0 0
#
# Mount BACKUP disk(s) ~ for regular backups
# ------------------------------------------------
# No need to mount at boot/have always mounted (commented out), it will be temporarily mounted by backup.sh. Do add the UUID, for your reference!
# UUID=!ADD YOUR DATA BACKUP1 UUID HERE! /mnt/disks/backup1 btrfs defaults,noatime,compress=zstd:8 0 0
#
#
# NFS ~ home network shares
# -------------------------
# NFSv4.2 requires a root folder with each shared folder in it. We create /srv/nfs and bind mount the shared folders.
/mnt/pool/Media /srv/nfs/Media none rbind 0 0
#
# Example how to mount your servers NFS shares to a client:
#192.168.88.X: /mnt/Y nfs4 nfsvers=4,minorversion=2,proto=tcp,fsc,nocto 0 0