another one bit the dust
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
[client.bootstrap-mds]
|
[client.bootstrap-mds]
|
||||||
key = AQBEUXJewHz8IhAAwimqlg5sf0JjRZB2QtLjYA==
|
key = AQDOy3xet8pzFxAAn/57Q2bDH8YvsSFQmwVwPA==
|
||||||
caps mon = "allow profile bootstrap-mds"
|
caps mon = "allow profile bootstrap-mds"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[client.bootstrap-mgr]
|
[client.bootstrap-mgr]
|
||||||
key = AQBEUXJeVuH8IhAA5YgFIpggxebNgELWg891hw==
|
key = AQDOy3xe6Rx0FxAAHUiDMQndE+ta14msazLvjQ==
|
||||||
caps mon = "allow profile bootstrap-mgr"
|
caps mon = "allow profile bootstrap-mgr"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[client.bootstrap-osd]
|
[client.bootstrap-osd]
|
||||||
key = AQBEUXJeHUX9IhAAoCa5bSDNnpKTrkLjldTuwA==
|
key = AQDOy3xeBGx0FxAA9w8aLufA6wJ4o3q2eoVrlg==
|
||||||
caps mon = "allow profile bootstrap-osd"
|
caps mon = "allow profile bootstrap-osd"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[client.bootstrap-rgw]
|
[client.bootstrap-rgw]
|
||||||
key = AQBEUXJeHXD+IhAAZhpROqBnVM/NuaTnAPG9dQ==
|
key = AQDOy3xeJGF1FxAAa34GyVvvtCm0enqnLZgNrw==
|
||||||
caps mon = "allow profile bootstrap-rgw"
|
caps mon = "allow profile bootstrap-rgw"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[client.admin]
|
[client.admin]
|
||||||
key = AQBEUXJe3ez7IhAAjt6d3nLr5GISaHgPV84lKw==
|
key = AQDOy3xeVlZzFxAAM+JvrWp58gxTNIV5q9e7kg==
|
||||||
caps mds = "allow *"
|
caps mds = "allow *"
|
||||||
caps mgr = "allow *"
|
caps mgr = "allow *"
|
||||||
caps mon = "allow *"
|
caps mon = "allow *"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
[client.ceph]
|
[client.ceph]
|
||||||
key = AQA/VHJeomHcIhAAmN1ae+RgZdtqEGshg11cfQ==
|
key = AQDwznxeNFj5IhAAUzp67JaKfgxB8k5WlbQSFQ==
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ osd pool default min size = 1 # Allow writing two copies in a degraded state.
|
|||||||
osd max backfills = 1
|
osd max backfills = 1
|
||||||
#osd max backfill scan max = 128
|
#osd max backfill scan max = 128
|
||||||
#50mb / 5mb / 64mb
|
#50mb / 5mb / 64mb
|
||||||
|
mon memory target = 1073741824
|
||||||
mon_osd_cache_size_min = 134217728 #default 128Mb
|
mon_osd_cache_size_min = 134217728 #default 128Mb
|
||||||
osd_memory_target = 134217728 #128 Mb/ 5 sata ports
|
osd_memory_target = 134217728 #128 Mb/ 5 sata ports
|
||||||
osd_memory_base = 134217728 #128 Mb/ 5 sata ports
|
osd_memory_base = 134217728 #128 Mb/ 5 sata ports
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[mon.]
|
[mon.]
|
||||||
key = AQDmUHJeAAAAABAAG+PZK0Vk3qbWra7BWSMwyw==
|
key = AQD/yXxeAAAAABAAJhaRs9sKKAvHIg254QBojw==
|
||||||
caps mon = allow *
|
caps mon = allow *
|
||||||
|
|||||||
19
emergency/restore_mons_from_osds.sh
Executable file
19
emergency/restore_mons_from_osds.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#from: https://docs.ceph.com/docs/nautilus/rados/troubleshooting/troubleshooting-mon/?highlight=trouble%20monitor#recovery-using-osds
|
||||||
|
|
||||||
|
|
||||||
|
ms=/tmp/mon-store
|
||||||
|
mkdir $ms
|
||||||
|
hosts="ebin02 ebin01"
|
||||||
|
# collect the cluster map from OSDs
|
||||||
|
for host in $hosts; do
|
||||||
|
rsync -avz $ms/. $host:$ms.remote
|
||||||
|
rm -rf $ms
|
||||||
|
ssh $host <<EOF
|
||||||
|
for osd in /var/lib/ceph/osd/ceph-*; do
|
||||||
|
ceph-objectstore-tool --data-path \$osd --op update-mon-db --no-mon-config --mon-store-path $ms.remote
|
||||||
|
done
|
||||||
|
EOF
|
||||||
|
rsync -avz $host:$ms.remote/. $ms
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user