Move mastodon database to its own disk
This commit is contained in:
parent
e7266e9df8
commit
eeaf83c8ce
1 changed files with 9 additions and 4 deletions
|
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue