Sage Weil
f114b8665f
osd: don't read file content during _scrub
2008-12-09 16:00:53 -08:00
Sage Weil
3062b7bd52
msgr: be noisier about mark_down calls
2008-12-09 16:00:52 -08:00
Sage Weil
77fa4e6657
osd: avoid needless calls to peer(), build_prior()
...
Introduces PEERING pg state. Also is smarter about when build_prior and
peer are actually called.
2008-12-09 16:00:51 -08:00
Sage Weil
27481a4c6b
osd: make prior_set_affected() slightly smarter
...
Only return true if an osd goes down that we didn't already know was
down (prior_set may contain down osds if the PG is marked DOWN).
2008-12-09 16:00:50 -08:00
Sage Weil
d999ba0b3a
cobserver: cleanups
2008-12-09 14:57:48 -08:00
Sage Weil
36f58131e7
mon: use 'latest' for latest osd, mds maps
...
Mainly for benefit of PaxosObserver, but it also cleans things up
a bit.
2008-12-09 14:55:00 -08:00
Sage Weil
2e32e8717f
cobserver: cleanup; print map summaries w/ each new state
2008-12-09 14:44:58 -08:00
Sage Weil
ab8a92123b
mon: refactor map print_summary/operator<< methods
2008-12-09 14:44:41 -08:00
Yehuda Sadeh
202f8cdec9
cobserver: accidentaly removed a line
2008-12-09 14:23:38 -08:00
Yehuda Sadeh
4964511ade
kclient: missing files
2008-12-09 14:20:44 -08:00
Yehuda Sadeh
3a168be692
whitespaces
2008-12-09 14:19:27 -08:00
Yehuda Sadeh
426f47a972
mon: factor ClientMap class out
2008-12-09 14:12:31 -08:00
Yehuda Sadeh
d216720b58
cobserver: utility, observe changes in different maps
2008-12-09 14:12:31 -08:00
Sage Weil
8a5f231720
osd: use push() to push clone op
...
Also fixes missing updates to peer_missing[peer] and pushing
map.
2008-12-09 11:47:06 -08:00
Sage Weil
c0b005fa30
mon: factor our osdmap print, print_summary
2008-12-09 10:56:22 -08:00
Sage Weil
b764b630ac
mon: factor out mds print, print_summary
2008-12-09 10:56:22 -08:00
Sage Weil
57578b3ef3
mds: stay loner if client has B and no other reason to switch state
...
If the client has dirty data, and there is no other reason to
toggle the lock state, leave it as LONER. The client will write
out at its leisure, and we'll avoid an unstable lock state that
is waiting on a potentially slow writeout.
2008-12-09 09:58:24 -08:00
Sage Weil
c035a733a8
osd: missing last_mon_heartbeat declaration
2008-12-09 09:50:26 -08:00
Sage Weil
cc8a4fcbe6
msgr: make sure nonce matches too when connecting to peer
...
Otherwise the predictable port numbers cause problems.
2008-12-09 08:48:03 -08:00
Sage Weil
addea2edaf
msgr: print error when message type is unrecognized
2008-12-09 08:43:38 -08:00
Sage Weil
5b550c0c37
osd: ping mon less frequently when peerless
...
Every second is too much. Make it tunable.
2008-12-09 08:42:28 -08:00
Sage Weil
815c1e2422
mon: typo in pg dump output
2008-12-08 14:33:03 -08:00
Sage Weil
dc38de9b14
ceph: new default mon port; try to bind to port in known range
...
New monitor port in unused region (according to nmap-services).
Try to bind to a port in a known range, so that tools can easily
identify the protocol in use.
Remove some old .sh cruft.
2008-12-08 11:46:36 -08:00
Sage Weil
239821932c
mon: 'pg map <pgid>' command
...
To see current pg -> osd mapping
2008-12-08 11:15:10 -08:00
Sage Weil
5b74986e9a
mon: 'osd dump' command; refactor sstream->bufferlist code a bit
2008-12-08 10:11:12 -08:00
Sage Weil
a4bae517ea
osdmap: use print method from osdmaptool
2008-12-08 10:01:37 -08:00
Sage Weil
090e5f8a8b
osd: pause scrub wq async
...
The scrub _process() worker may be waiting on a message from a replica, so
we can't pause it synchronously. Instead, pause_new() to just prevent
new workers from starting.
2008-12-08 09:54:26 -08:00
Sage Weil
f319e52510
osd: lock pg before calling on_shutdown
2008-12-05 15:58:57 -08:00
Sage Weil
5289830402
osd: fix degraded figure calculation typo
2008-12-05 15:58:55 -08:00
Sage Weil
fe903cc669
cmonctl: resend command if monitor is not responsive
2008-12-05 15:45:08 -08:00
Sage Weil
8223f5279b
cmonctl: interactive mode using libedit
2008-12-05 15:35:22 -08:00
Sage Weil
a2203c138b
osd: log scrub ok
2008-12-05 14:33:03 -08:00
Sage Weil
c7c8fcf152
mon: rename out to log, log.type files
2008-12-05 14:33:03 -08:00
Sage Weil
ee75196d49
mon: notify PaxosService of any paxos state changes
2008-12-05 14:33:03 -08:00
Sage Weil
fa34945faa
mon: dump full pgmap on each state change (for debugging)
2008-12-05 14:29:17 -08:00
Sage Weil
4cc6a2d930
osd: don't die on stray sub op acks
...
If a replica drops out of the pg, we force and ack in on_change(), but
may still get it later. Don't freak out.
2008-12-05 14:27:25 -08:00
Sage Weil
b94c4e5716
osd: generate_backlog sanity check
...
If item is on disk and log, then log entry shouldn't be a delete.
2008-12-05 11:48:27 -08:00
Sage Weil
c1368ed107
osd: fix merge_log divergent item detection
...
An item in our log isn't divergent if it is below the bottom of
olog. Using the last_kept item isn't helpful here because
last_kept is in olog, and may be below that log's bottom.
2008-12-05 11:46:55 -08:00
Sage Weil
34ee473dcf
osd: clean on ondisklog a bit
...
Express as extent, not interval.
2008-12-05 11:45:05 -08:00
Sage Weil
7fb6a0a701
osd: make read_log output a bit more informative
2008-12-05 11:18:25 -08:00
Sage Weil
6cc5c54111
vstart: only sudo if -e dev/sudo
2008-12-05 11:08:53 -08:00
Sage Weil
bba2a54231
osd: revise missing map adjustment
...
Rewrite helpers in terms of how they are actually used.
2008-12-05 11:02:13 -08:00
Sage Weil
fddf29a0fd
osd: mark backlog events as BACKLOG
...
This is purely to make the logs easier to read.
2008-12-05 11:02:13 -08:00
Sage Weil
5d449248d1
osd: generate_backlog fixes
...
Generate backlog records even if the object appears in the log if
the existing entry's prior_version in non-zero and isn't also
in the log. This allows us to accurately generate the .have field
when we are building the missing map.
2008-12-05 11:02:12 -08:00
Sage Weil
3b909a7c77
crush: add include
2008-12-04 20:49:11 -08:00
Yehuda Sadeh
aaf32a1f0f
kclient: reduce stack usage
2008-12-04 16:51:07 -08:00
Sage Weil
cc8bb0885e
mon: 'osd scrub \*' to scrub all osds
2008-12-04 16:33:45 -08:00
Sage Weil
1ce00a481f
filestore: fix up listxattr buffer management a bit
2008-12-04 16:33:44 -08:00
Sage Weil
1006e2c3a0
dstart: put debug output on local disk
2008-12-04 16:33:41 -08:00
Sage Weil
d39ab9c461
debug: allow output and output symlinks to go in different directories
2008-12-04 16:33:39 -08:00