drone: add nofail option to external mounts

This commit is contained in:
wo2wz 2025-11-24 18:02:34 -05:00
parent 91a0bb384a
commit 947a6bb970

View file

@ -41,16 +41,19 @@
"/mnt/external" = { "/mnt/external" = {
device = "zpool-mirror"; device = "zpool-mirror";
fsType = "zfs"; fsType = "zfs";
options = [ "nofail" ];
}; };
"/mnt/external/backup" = { "/mnt/external/backup" = {
device = "zpool-mirror/backup"; device = "zpool-mirror/backup";
fsType = "zfs"; fsType = "zfs";
options = [ "nofail" ];
}; };
"/mnt/external/storage" = { "/mnt/external/storage" = {
device = "zpool-mirror/storage"; device = "zpool-mirror/storage";
fsType = "zfs"; fsType = "zfs";
options = [ "nofail" ];
}; };
# bind mounts for file storage dirs on nextcloud from external storage # bind mounts for file storage dirs on nextcloud from external storage
@ -58,21 +61,20 @@
depends = [ "/mnt/external/storage" ]; depends = [ "/mnt/external/storage" ];
device = "/mnt/external/storage/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files"; device = "/mnt/external/storage/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files";
fsType = "none"; fsType = "none";
options = [ "bind" ]; options = [ "bind" "nofail" ];
}; };
"/var/lib/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_versions" = { "/var/lib/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_versions" = {
depends = [ "/mnt/external/storage" ]; depends = [ "/mnt/external/storage" ];
device = "/mnt/external/storage/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_versions"; device = "/mnt/external/storage/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_versions";
fsType = "none"; fsType = "none";
options = [ "bind" ]; options = [ "bind" "nofail" ];
}; };
"/var/lib/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_trashbin" = { "/var/lib/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_trashbin" = {
depends = [ "/mnt/external/storage" ]; depends = [ "/mnt/external/storage" ];
device = "/mnt/external/storage/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_versions"; device = "/mnt/external/storage/nextcloud/data/534abfe6ec19b02ab61e1196758f7a971e75f07077a431ea15157d8e10910fc5/files_versions";
fsType = "none"; fsType = "none";
options = [ "bind" ]; options = [ "bind" "nofail" ];
}; };
}; };
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;