changed fs of lxc to btrfs
This commit is contained in:
parent
017dba3475
commit
6d41b7dea9
|
@ -57,11 +57,6 @@
|
||||||
"com.sun:auto-snapshot:daily" = "true";
|
"com.sun:auto-snapshot:daily" = "true";
|
||||||
"volblocksize" = "8k";
|
"volblocksize" = "8k";
|
||||||
};
|
};
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/postgres";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
test = {
|
test = {
|
||||||
type = "zfs_volume";
|
type = "zfs_volume";
|
||||||
|
@ -70,11 +65,6 @@
|
||||||
"com.sun:auto-snapshot:daily" = "true";
|
"com.sun:auto-snapshot:daily" = "true";
|
||||||
"volblocksize" = "8k";
|
"volblocksize" = "8k";
|
||||||
};
|
};
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/test";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,6 +16,6 @@ in
|
||||||
|
|
||||||
# allow static ipv4 for containers
|
# allow static ipv4 for containers
|
||||||
networking.firewall.extraCommands = ''
|
networking.firewall.extraCommands = ''
|
||||||
iptables -a input -i ${lxd_profiles.default.network.name} -m comment --comment "lxd rule for ${lxd_profiles.default.network.name}" -j accept
|
iptables -A INPUT -i ${lxd_profiles.default.network.name} -m comment --comment "lxd rule for ${lxd_profiles.default.network.name}" -j ACCEPT
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,7 @@ in
|
||||||
lxd_profiles.default.profile
|
lxd_profiles.default.profile
|
||||||
];
|
];
|
||||||
|
|
||||||
storage_pools = [
|
storage_pools = lxd_profiles.default.storage_pools;
|
||||||
lxd_profiles.default.storage_pool
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,11 +9,18 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
storage_pool = {
|
storage_pools = [
|
||||||
|
{
|
||||||
name = "postgres";
|
name = "postgres";
|
||||||
driver = "disk";
|
driver = "btrfs";
|
||||||
config.source = "/mnt/postgres";
|
config.source = "/dev/zd0";
|
||||||
};
|
}
|
||||||
|
{
|
||||||
|
name = "test";
|
||||||
|
driver = "btrfs";
|
||||||
|
config.source = "/dev/zd16";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
profile = {
|
profile = {
|
||||||
name = "default";
|
name = "default";
|
||||||
|
|
Loading…
Reference in New Issue