Move mastodon database to its own disk

This commit is contained in:
fi 2026-10-07 12:55:30 +02:00
commit eeaf83c8ce
Signed by: fi
SSH key fingerprint: SHA256:dgX1HRsK+8F1OzYvKfv1VLhMJac/Iv/rsjixuV94+dA

View file

@ -19,6 +19,11 @@
fsType = "ext4";
autoResize = true;
};
"/mnt/database" = {
device = "/dev/disk/by-label/database";
fsType = "ext4";
autoResize = true;
};
"/var/lib/mastodon/public-system" = {
depends = [ "/mnt/data" ];
device = "/mnt/data/mastodon";
@ -26,14 +31,14 @@
options = [ "bind" ];
};
"/var/lib/postgresql" = {
depends = [ "/mnt/data" ];
device = "/mnt/data/postgresql";
depends = [ "/mnt/database" ];
device = "/mnt/database/postgresql";
fsType = "none";
options = [ "bind" ];
};
"/var/lib/private/opensearch/data" = {
depends = [ "/mnt/data" ];
device = "/mnt/data/opensearch";
depends = [ "/mnt/database" ];
device = "/mnt/database/opensearch";
fsType = "none";
options = [ "bind" ];
};