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";
|
||||
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" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue