Create db storage pool in postgres profile

This commit is contained in:
Sam 2024-06-30 17:44:48 +01:00
parent 9f593876ab
commit 044b04752f
1 changed files with 9 additions and 3 deletions

View File

@ -17,14 +17,14 @@
config.source = "/dev/zvol/zspeed/postgres"; config.source = "/dev/zvol/zspeed/postgres";
} }
{ {
name = "test"; name = "default";
driver = "btrfs"; driver = "btrfs";
config.source = "/dev/zvol/zspeed/test"; config.source = "/dev/zvol/zspeed/default";
} }
]; ];
profile = { profile = {
name = "default"; name = "postgres";
devices = { devices = {
"eth0" = { "eth0" = {
name = "eth0"; name = "eth0";
@ -38,6 +38,12 @@
size = "8GiB"; size = "8GiB";
type = "disk"; type = "disk";
}; };
"db" = {
path = "/var/lib/postgresql/16/";
pool = "postgres";
source = "db";
type = "disk";
};
}; };
}; };
} }