- volumes: # attached to each instance
count: 3
size: 10 # GB
+overrides:
+ ceph:
+ conf:
+ osd:
+ osd shutdown pgref assert: true
\ No newline at end of file
osd crush chooseleaf type: 0
osd pool default pg num: 128
osd pool default pgp num: 128
+ ceph:
+ conf:
+ osd:
+ osd shutdown pgref assert: true
roles:
- [mon.a, mgr.x, osd.0, osd.1, osd.2, client.0]
- volumes: # attached to each instance
count: 3
size: 10 # GB
+overrides:
+ ceph:
+ conf:
+ osd:
+ osd shutdown pgref assert: true
\ No newline at end of file
log-rotate:
ceph-mds: 10G
ceph-osd: 10G
+overrides:
+ ceph:
+ conf:
+ osd:
+ osd shutdown pgref assert: true
\ No newline at end of file
- volumes: # attached to each instance
count: 3
size: 10 # GB
+overrides:
+ ceph:
+ conf:
+ osd:
+ osd shutdown pgref assert: true
\ No newline at end of file
- [mon.b, osd.1, osd.5, osd.9, osd.13]
- [mon.c, osd.2, osd.6, osd.10, osd.14]
- [mgr.x, osd.3, osd.7, osd.11, osd.15, client.0]
+overrides:
+ ceph:
+ conf:
+ osd:
+ osd shutdown pgref assert: true
\ No newline at end of file
// Max time to wait between notifying mon of shutdown and shutting down
OPTION(osd_mon_shutdown_timeout, OPT_DOUBLE, 5)
+OPTION(osd_shutdown_pgref_assert, OPT_BOOL, false) // crash if the OSD has stray PG refs on shutdown
OPTION(osd_max_object_size, OPT_U64, 100*1024L*1024L*1024L) // OSD's maximum object size
OPTION(osd_max_object_name_len, OPT_U32, 2048) // max rados object name len
#ifdef PG_DEBUG_REFS
p->second->dump_live_ids();
#endif
- ceph_abort();
+ if (cct->_conf->osd_shutdown_pgref_assert) {
+ ceph_abort();
+ }
}
p->second->unlock();
p->second->put("PGMap");