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"; fsType = "ext4";
autoResize = true; autoResize = true;
}; };
"/mnt/database" = {
device = "/dev/disk/by-label/database";
fsType = "ext4";
autoResize = true;
};
"/var/lib/mastodon/public-system" = { "/var/lib/mastodon/public-system" = {
depends = [ "/mnt/data" ]; depends = [ "/mnt/data" ];
device = "/mnt/data/mastodon"; device = "/mnt/data/mastodon";
@ -26,14 +31,14 @@
options = [ "bind" ]; options = [ "bind" ];
}; };
"/var/lib/postgresql" = { "/var/lib/postgresql" = {
depends = [ "/mnt/data" ]; depends = [ "/mnt/database" ];
device = "/mnt/data/postgresql"; device = "/mnt/database/postgresql";
fsType = "none"; fsType = "none";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/var/lib/private/opensearch/data" = { "/var/lib/private/opensearch/data" = {
depends = [ "/mnt/data" ]; depends = [ "/mnt/database" ];
device = "/mnt/data/opensearch"; device = "/mnt/database/opensearch";
fsType = "none"; fsType = "none";
options = [ "bind" ]; options = [ "bind" ];
}; };