fstab for btrfs snaper and organization
This commit is contained in:
101
server/fstab.nix
101
server/fstab.nix
@@ -89,10 +89,72 @@
|
|||||||
"datacow"
|
"datacow"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"/mnt/disk2" = {
|
||||||
|
device = "/dev/mapper/disk2";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [
|
||||||
|
"subvol=@data"
|
||||||
|
"compress=zstd:3"
|
||||||
|
"space_cache=v2"
|
||||||
|
"commit=120"
|
||||||
|
"datacow"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"/mnt/seedbox" = {
|
||||||
|
device = "/dev/mapper/seedbox";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [
|
||||||
|
"subvol=@data"
|
||||||
|
"compress=zstd:3"
|
||||||
|
"space_cache=v2"
|
||||||
|
"commit=120"
|
||||||
|
"datacow"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"/mnt/parity" = {
|
||||||
|
device = "/dev/disk/by-uuid/2e437a79-a246-411b-ac21-d03414b14305";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = [ "defaults" ];
|
||||||
|
};
|
||||||
|
"/mnt/hnbox" = {
|
||||||
|
device = "/dev/mapper/hnbox";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "compress=zstd:3" "space_cache=v2" "commit=120" "datacow" ];
|
||||||
|
};
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/c574cb53-dc40-46db-beff-0fe8a4787156";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
"/boot/efi" = {
|
||||||
|
device = "/dev/disk/by-uuid/CBE7-5DEB";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
# NEXTCCLOUD
|
||||||
"/var/lib/nextcloud/data" = {
|
"/var/lib/nextcloud/data" = {
|
||||||
device = "/mnt/disk1/nextcloud";
|
device = "/mnt/disk1/nextcloud";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
# BTRFS SNAPER
|
||||||
|
"/mnt/btrfs/disk1" = {
|
||||||
|
device = "/dev/mapper/disk1";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "compress=zstd:3" "space_cache=v2" "commit=120" "datacow" ];
|
||||||
|
};
|
||||||
|
"/mnt/btrfs/disk2" = {
|
||||||
|
device = "/dev/mapper/disk2";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "compress=zstd:3" "space_cache=v2" "commit=120" "datacow" ];
|
||||||
|
};
|
||||||
|
"/mnt/btrfs/seedbox" = {
|
||||||
|
device = "/dev/mapper/seedbox";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "compress=zstd:3" "space_cache=v2" "commit=120" "datacow" ];
|
||||||
|
};
|
||||||
|
# Jellyfin RO
|
||||||
|
"/mnt/jellyfin/external" = {
|
||||||
|
device = "/mnt/seedbox/external";
|
||||||
|
options = [ "bind" "ro" ];
|
||||||
|
};
|
||||||
"/mnt/jellyfin/media" = {
|
"/mnt/jellyfin/media" = {
|
||||||
device = "/mnt/disk1/multimedia/media";
|
device = "/mnt/disk1/multimedia/media";
|
||||||
options = [ "bind" "ro" ];
|
options = [ "bind" "ro" ];
|
||||||
@@ -105,44 +167,7 @@
|
|||||||
device = "/mnt/seedbox/other/P90x.Mega.Pack";
|
device = "/mnt/seedbox/other/P90x.Mega.Pack";
|
||||||
options = [ "bind" "ro" ];
|
options = [ "bind" "ro" ];
|
||||||
};
|
};
|
||||||
"/mnt/disk2" = {
|
# NFS
|
||||||
device = "/dev/mapper/disk2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [
|
|
||||||
"subvol=@data"
|
|
||||||
"compress=zstd:3"
|
|
||||||
"space_cache=v2"
|
|
||||||
"commit=120"
|
|
||||||
"datacow"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/mnt/hnbox" = {
|
|
||||||
device = "/dev/mapper/hnbox";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd:3" "space_cache=v2" "commit=120" "datacow" ];
|
|
||||||
};
|
|
||||||
"/mnt/seedbox" = {
|
|
||||||
device = "/dev/mapper/seedbox";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd:3" "space_cache=v2" "commit=120" "datacow" ];
|
|
||||||
};
|
|
||||||
"/mnt/jellyfin/external" = {
|
|
||||||
device = "/mnt/seedbox/external";
|
|
||||||
options = [ "bind" "ro" ];
|
|
||||||
};
|
|
||||||
"/mnt/parity" = {
|
|
||||||
device = "/dev/disk/by-uuid/2e437a79-a246-411b-ac21-d03414b14305";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "defaults" ];
|
|
||||||
};
|
|
||||||
"/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/c574cb53-dc40-46db-beff-0fe8a4787156";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
"/boot/efi" = {
|
|
||||||
device = "/dev/disk/by-uuid/CBE7-5DEB";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
"/export/disk1" = {
|
"/export/disk1" = {
|
||||||
device = "/mnt/disk1";
|
device = "/mnt/disk1";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user