use all mon servers for connecting. use preStart
This commit is contained in:
parent
3913c09782
commit
bf568e9de3
|
@ -34,7 +34,7 @@ in {
|
||||||
|
|
||||||
fileSystems."/srv/ceph" = {
|
fileSystems."/srv/ceph" = {
|
||||||
#device = "172.22.99.13:6789:/";
|
#device = "172.22.99.13:6789:/";
|
||||||
device = "172.20.72.53:6789:/";
|
device = "172.20.72.55:6789,172.20.72.56:6789,172.20.72.53:6789:/";
|
||||||
fsType = "ceph";
|
fsType = "ceph";
|
||||||
options = [
|
options = [
|
||||||
"name=storage2"
|
"name=storage2"
|
||||||
|
@ -131,11 +131,8 @@ in {
|
||||||
volumes =
|
volumes =
|
||||||
[ "/dev:/dev" "/etc/ceph:/etc/ceph" "/var/lib/ceph/:/var/lib/ceph" ];
|
[ "/dev:/dev" "/etc/ceph:/etc/ceph" "/var/lib/ceph/:/var/lib/ceph" ];
|
||||||
};
|
};
|
||||||
systemd.services.docker-ceph-osd-7.serviceConfig = {
|
systemd.services.docker-ceph-osd-7.preStart =
|
||||||
ExecStartPre = [
|
"-${pkgs.docker}/bin/docker run --rm --net=host --ipc=host --privileged=true -v /dev:/dev -v /etc/ceph:/etc/ceph -v /var/lib/ceph/:/var/lib/ceph -e OSD_DEVICE=/dev/sdb -it ceph/ceph:v14.2.9 ceph-volume lvm activate --all --no-systemd";
|
||||||
"-${pkgs.docker}/bin/docker run --rm --net=host --ipc=host --privileged=true -v /dev:/dev -v /etc/ceph:/etc/ceph -v /var/lib/ceph/:/var/lib/ceph -e OSD_DEVICE=/dev/sdb -it ceph/ceph:v14.2.9 ceph-volume lvm activate --all --no-systemd"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user