From 1a9ab803a33132d7b3e86b02f0f3373ac34db91e Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 10 Apr 2021 12:34:40 +0200 Subject: [PATCH] add discord to osd options --- node.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.sh b/node.sh index 755843b..3c0e0b0 100755 --- a/node.sh +++ b/node.sh @@ -26,6 +26,8 @@ device='nvme0n1' mkdir -p /ceph/osd_$device/etc/ceph/ /ceph/osd_$device/var/lib/ceph/bootstrap-osd /ceph/osd_$device/var/lib/ceph/osd (docker exec ceph_mon ceph auth get client.bootstrap-osd) > /ceph/osd_$device/var/lib/ceph/bootstrap-osd/ceph.keyring (docker exec ceph_mon ceph config generate-minimal-conf) > /ceph/osd_$device/etc/ceph/ceph.conf +echo -e '\tbdev_enable_discard = true' >> /ceph/osd_$device/etc/ceph/ceph.conf +echo -e '\tbdev_async_discard = true' >> /ceph/osd_$device/etc/ceph/ceph.conf docker run --rm --net=ceph --hostname $(hostname) --privileged -v /ceph/osd_$device/etc/ceph:/etc/ceph -v /ceph/osd_$device/var/lib/ceph:/var/lib/ceph -v /dev:/dev --entrypoint ceph-volume docker.io/ceph/daemon:latest-octopus lvm prepare --bluestore --dmcrypt --data /dev/$device rm /ceph/osd_$device/var/lib/ceph/bootstrap-osd/ceph.keyring