无数据丢失情况 root@ceph:~# ceph osd ok-to-stop 2 OSD(s) 2 are ok to stop without reducing availability or risking data, provided there are no other concurrent failures or interventions. 70 PGs are likely to be degraded (but remain available) as a result.
有数据丢失情况 root@ceph:~# ceph osd ok-to-stop 2 Error EBUSY: 18 PGs are already too degraded, would become too degraded or might become unavailable
3、标记OSD out, ceph osd out {osd-num}
1 2 3 4 5 6 7 8 9 10 11
root@ceph:~# ceph osd out 3 marked out osd.3. root@ceph:~# ceph osd tree ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF -1 0.08997 root default -3 0.08997 host ceph 0 ssd 0.02249 osd.0 up 1.00000 1.00000 1 ssd 0.02249 osd.1 up 1.00000 1.00000 2 ssd 0.02249 osd.2 up 1.00000 1.00000 3 ssd 0.02249 osd.3 down 0 1.00000
root@ceph:~# ceph osd tree ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF -1 0.06747 root default -3 0.06747 host ceph 0 ssd 0.02249 osd.0 up 1.00000 1.00000 1 ssd 0.02249 osd.1 up 1.00000 1.00000 2 ssd 0.02249 osd.2 up 1.00000 1.00000
[root@rh7-iscsi-client ceph-ansible]# ansible-playbook purge_gateways.yml Which configuration elements should be purged? (all, lio or abort) [abort]: all
PLAY [Confirm removal of the iSCSI gateway configuration] *********************
[config] # Name of the Ceph storage cluster. A suitable Ceph configuration file allowing # access to the Ceph storage cluster from the gateway node is required, if not # colocated on an OSD node. cluster_name = ceph
# Place a copy of the ceph cluster's admin keyring in the gateway's /etc/ceph # drectory and reference the filename here gateway_keyring = ceph.client.admin.keyring
# API settings. # The API supports a number of options that allow you to tailor it to your # local environment. If you want to run the API under https, you will need to # create cert/key files that are compatible for each iSCSI gateway node, that is # not locked to a specific node. SSL cert and key files *must* be called # 'iscsi-gateway.crt' and 'iscsi-gateway.key' and placed in the '/etc/ceph/' directory # on *each* gateway node. With the SSL files in place, you can use 'api_secure = true' # to switch to https mode.
# To support the API, the bear minimum settings are: api_secure = false
# Additional API configuration options are as follows, defaults shown. # api_user = admin # api_password = admin # api_port = 5001 # trusted_ip_list = 192.168.0.10,192.168.0.11
root@yujiang-ceph-1:~# cat /etc/netplan/50-cloud-init.yaml # This file is generated from information provided by # the datasource. Changes to it will not persist across an instance. # To disable cloud-init's network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} network: ethernets: ens160: dhcp4: false addresses: [192.168.1.127/24] gateway4: 192.168.1.1 nameservers: addresses: [192.168.1.1, 114.114.114.114] version: 2
编译deb
1 2 3 4 5 6 7 8 9 10 11 12 13
解压xz文件 xz -d prometheus_2.1.0+ds-1.debian.tar.xz tar -xvf prometheus_2.1.0+ds-1.debian.tar
压缩xz文件 tar cvf prometheus_2.1.0+ds-1.debian.tar debian/ xz -z prometheus_2.1.0+ds-1.debian.tar
Option("osd_max_backfills", Option::TYPE_UINT, Option::LEVEL_ADVANCED) .set_default(1) .set_description("Maximum number of concurrent local and remote backfills or recoveries per OSD ") .set_long_description("There can be osd_max_backfills local reservations AND the same remote reservations per OSD. So a value of 1 lets this OSD participate as 1 PG primary in recovery and 1 shard of another recovering PG."),