]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yehuda Sadeh [Wed, 25 Apr 2012 18:02:41 +0000 (11:02 -0700)]
rest-bench: cleanups, initialization
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Wed, 25 Apr 2012 07:30:48 +0000 (00:30 -0700)]
rest-bench: create workqueue for requests dispatching
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Wed, 25 Apr 2012 06:56:51 +0000 (23:56 -0700)]
rest_bench: cleanups, implement get and put
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Tue, 24 Apr 2012 20:45:27 +0000 (13:45 -0700)]
rest_bench: some more implementation
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Sat, 21 Apr 2012 00:36:00 +0000 (17:36 -0700)]
rest_bench: initial work
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Fri, 20 Apr 2012 21:55:42 +0000 (14:55 -0700)]
rados_bencher: abstract away rados specific operations
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Fri, 20 Apr 2012 19:57:20 +0000 (12:57 -0700)]
rados_bencher -> obj_bencher
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Thu, 19 Apr 2012 23:44:59 +0000 (16:44 -0700)]
rados_bencher: fix build
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Mon, 26 Mar 2012 21:53:37 +0000 (14:53 -0700)]
rados_bencher: restructure code, create RadosBencher class
Preparing for different benchmark backend.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Fri, 20 Apr 2012 00:01:48 +0000 (17:01 -0700)]
rados_bencher: restructure code (initial work)
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Sage Weil [Fri, 4 May 2012 22:26:33 +0000 (15:26 -0700)]
librados: call safe callback on read operation
This avoids confusion for the user who isn't sure if they should wait for
complete or safe on a read aio. It also means that you can always wait
for safe for both reads or writes, which can simplify some code.
Dup the roundtrip functional tests to verify this works.
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Yehuda Sadeh <yehuda.sadeh@inktank.com>
Sage Weil [Fri, 4 May 2012 21:51:15 +0000 (14:51 -0700)]
crush: note that tree bucket size is tree size, not item count
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 4 May 2012 21:16:49 +0000 (14:16 -0700)]
Merge remote-tracking branch 'gh/wip-crush-forcefeed'
Reviewed-by: Sam Just <sam.just@inktank.com>
Sage Weil [Fri, 4 May 2012 21:15:59 +0000 (14:15 -0700)]
OpRequest: ignore all ops while the oldest one is still young.
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
Reviewed-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 4 May 2012 19:09:28 +0000 (12:09 -0700)]
crush: update_item() should pass an error back to the caller
If you give it a nonsensical loc, it will fail check_item_loc() (false) and
then error out on insert_item().
Reported-by: Sam Just <sam.just@inktank.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 4 May 2012 18:06:27 +0000 (11:06 -0700)]
crush: improve docs/comments for check_item_loc and insert_item semantics
We don't adjust the internal hierarchy structure (currently). This is a
bit confusing, so describe the semantics in some detail.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 4 May 2012 18:05:34 +0000 (11:05 -0700)]
crush: comment and clean up checks for check_item_loc and insert_item
- drop useless cur for check_item_loc
- comment the checks we're doing so the code is understandable
- use name_exists instead of broken get_item_id != 0 check
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 4 May 2012 03:44:20 +0000 (20:44 -0700)]
Merge branch 'wip-crush-update'
Reviewed-by: Greg Farnum <greg@inktank.com>
Sage Weil [Fri, 4 May 2012 03:43:54 +0000 (20:43 -0700)]
Merge branch 'wip-osd-uuid'
Reviewed-by: Greg Farnum <greg@inktank.com>
Sage Weil [Fri, 4 May 2012 03:40:20 +0000 (20:40 -0700)]
Makefile: fix $shell_scripts substution
No spaces here, apparently!
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 4 May 2012 02:47:55 +0000 (19:47 -0700)]
mon: simplify 'osd create <uuid>' command
Make the flow clearer for the three cases (exists, about to exist, new).
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 4 May 2012 03:33:35 +0000 (20:33 -0700)]
crushtool: another simple test for update
If the weight doesn't change it should be a no-op.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 4 May 2012 03:28:27 +0000 (20:28 -0700)]
crush: document return values
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 4 May 2012 03:28:21 +0000 (20:28 -0700)]
crush: compare fixed-point weights in update_item
This is less ugly than converting the quantized value back to a float and
comparing that.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 4 May 2012 01:51:03 +0000 (18:51 -0700)]
thread: remove get_num_threads() static
This looks in /proc to count threads. Kludgey and no longer needed.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Sage Weil [Fri, 4 May 2012 01:50:42 +0000 (18:50 -0700)]
global_init: do not count threads before daemonize()
We were verifying that there was only 1 thread (the presumably main()) when
we call daemonize. However, with the new logging code, we stop a thread
right before the check, and /proc apparently updates asynchronously such
that our attempt to count running threads gives us a bad answer.
Just remove this kludgey check; we'll have to catch this class of bugs
the hard way.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Sage Weil [Fri, 4 May 2012 01:59:02 +0000 (18:59 -0700)]
crush: clean up check_item_loc() comments
Thanks Greg!
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Joao Eduardo Luis [Tue, 1 May 2012 18:55:30 +0000 (19:55 +0100)]
OpRequest: only show a small set of the oldest messages, instead of all.
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
Yehuda Sadeh [Thu, 3 May 2012 19:50:23 +0000 (12:50 -0700)]
rgw: update cache interface for put_obj_meta
This fixes issue #2381.
The method interface was different than the one needed in order
to override the one in RGWRados.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 3 May 2012 19:26:17 +0000 (12:26 -0700)]
doc: fix some underscores
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 3 May 2012 16:48:57 +0000 (09:48 -0700)]
osd: drop unused CEPH_OSDMAP*VERSION* #defines
It's easier to manage/rev/grok these inline.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 3 May 2012 19:16:55 +0000 (12:16 -0700)]
Merge branch 'wip-doc-rebase-2'
John Wilkins [Thu, 3 May 2012 19:14:26 +0000 (12:14 -0700)]
Fixed link to blog.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
John Wilkins [Thu, 3 May 2012 18:49:22 +0000 (11:49 -0700)]
Fixed another link to the blog.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
John Wilkins [Thu, 3 May 2012 18:42:50 +0000 (11:42 -0700)]
Fixed link.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
John Wilkins [Thu, 3 May 2012 18:31:37 +0000 (11:31 -0700)]
Clean up. Changed ceph.newdream.net to ceph.com.
Removed {ARCH} references.
Added link to Source.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Sage Weil [Thu, 3 May 2012 18:25:12 +0000 (11:25 -0700)]
doc: more fonts
Signed-off-by: Sage Weil <sage@newdream.net>
Ross Turk [Thu, 3 May 2012 18:02:51 +0000 (11:02 -0700)]
doc: new theme
Signed-off-by: Ross Turk <ross.turk@inktank.com>
Sage Weil [Thu, 3 May 2012 17:51:02 +0000 (10:51 -0700)]
doc/install/debian: simplify more
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 3 May 2012 17:45:08 +0000 (10:45 -0700)]
doc/install: reorg, simplify
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 3 May 2012 16:51:28 +0000 (09:51 -0700)]
doc: clarify path names for mkcephfs
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 3 May 2012 16:44:55 +0000 (09:44 -0700)]
doc: simplify quick start
Remove dup items
Signed-off-by: Sage Weil <sage@newdream.net>
Tommi Virtanen [Thu, 3 May 2012 17:15:21 +0000 (10:15 -0700)]
doc: Whitespace cleanup.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Thu, 3 May 2012 17:10:29 +0000 (10:10 -0700)]
doc: Rename to use dashes not underscores in URLs.
This makes the-separate-words in the url match as separate words in
searches, where this_way only matches an explicit "this_way" search.
http://www.mattcutts.com/blog/dashes-vs-underscores/
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Thu, 3 May 2012 17:02:29 +0000 (10:02 -0700)]
doc: Remove leading whitespace, that syntax means it's a definition list.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Thu, 3 May 2012 16:42:56 +0000 (09:42 -0700)]
Updated URLs for the new ceph.com site.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Yehuda Sadeh [Thu, 3 May 2012 00:33:43 +0000 (17:33 -0700)]
objecter: ping connections with lingering ops every tick()
Also, make sure that we initialize linger_op.session once
we have it.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
John Wilkins [Thu, 3 May 2012 03:31:35 +0000 (20:31 -0700)]
Removed "Ceph Development Status" per Bryan
Modified title syntax per Tommi
Modified paragraph width to 80-chars per Dan
Moved "Build from Source" out of Install
Renamed create_cluster to config-cluster
Added config-ref with configuration reference tables
Added a toc ref for man/1/obsync per Dan
Removed redundant sections from Ops
Deleted "Why use Ceph" and "Introduction to Storage Clusters"
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Sage Weil [Wed, 2 May 2012 23:50:14 +0000 (16:50 -0700)]
Merge branch 'stable'
Conflicts:
src/common/config_opts.h
Sage Weil [Wed, 2 May 2012 23:49:06 +0000 (16:49 -0700)]
config: $cluster-whatever for admin_socket, log files
This is more consistent with /var/lib/ceph/$type/$cluster-$id.
Signed-off-by: Sage Weil <sage@newdream.net>
Tommi Virtanen [Wed, 2 May 2012 22:50:36 +0000 (15:50 -0700)]
config: Admin socket path had literal "name" in it instead of $name.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Wed, 2 May 2012 22:50:36 +0000 (15:50 -0700)]
config: Admin socket path had literal "name" in it instead of $name.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Sage Weil [Wed, 2 May 2012 22:32:17 +0000 (15:32 -0700)]
mon: make 'osd map <poolname> <objectname>' return pg and osd mapping
This keeps coming up and is annoying to do manually.
Fixes: #2141
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Wed, 2 May 2012 22:14:46 +0000 (15:14 -0700)]
ceph-object-corpus: a few instances of the newly encoded types
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 22:13:20 +0000 (15:13 -0700)]
ceph-dencoder: ignore trailing goop after OSDMap and OSDMap::Incremental
All users pass around bufferlists and avoid encoding these structures
inline, but the dencoder tests are picky. Disable that for these types so
that we can add new fields without noise.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 21:17:52 +0000 (14:17 -0700)]
mon: drop 'osd crush add ...'
'osd crush set ...' is better, us that instead.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 21:56:50 +0000 (14:56 -0700)]
vstart.sh: use 'osd crush set ...'
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 21:17:26 +0000 (14:17 -0700)]
mon: 'osd crush set ...' do an add or update
This operation will add/update/move the item to the specified location.
It is idempotent and much more useful than 'osd crush add ...'.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 20:45:21 +0000 (13:45 -0700)]
crushtool: extent cli test to include --remove-item and --update-item
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 19:17:27 +0000 (12:17 -0700)]
crushtool: add --update-item command
Similar to --add-item, except it will move, rename, or reweight the item if
it is already present in the map.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 19:15:23 +0000 (12:15 -0700)]
crush: do some docs
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 19:09:12 +0000 (12:09 -0700)]
crush: implement update_item()
This is similar to insert_item(), except it will succeed if the item is
already there, and will move an item to the specified location if it is
not. It returns 0 for no change, 1 if a chance was made. It also makes
sure the weight and name match.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 19:08:26 +0000 (12:08 -0700)]
crush: add check_item_loc
The check_item_loc() method will take an item and position and tell you if
it matches the items current location. The matching is identical to that
used for insert_item, in that a specific location constraint match means
success, even if a less specific one does not match (e.g., rack=wrongrack,
host=correcthost will return true).
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 2 May 2012 19:06:28 +0000 (12:06 -0700)]
crush: fix weights when removing items
Reweight an item to 0 before removing it, so that the parent weights are
adjusted accordingly.
Signed-off-by: Sage Weil <sage@newdream.net>
Josh Durgin [Wed, 2 May 2012 15:03:37 +0000 (08:03 -0700)]
rbd.py: add new error for deleting an image with snapshots
Forgot to update the python bindings in
88dda3be5aed38c8f587af9b27cb54a0fcca7530
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Sage Weil [Wed, 2 May 2012 20:32:05 +0000 (13:32 -0700)]
config: no -C shorthand for --cluster
ceph-authtool uses it!
Fixes: #2376
Signed-off-by: Sage Weil <sage@newdream.net>
John Wilkins [Wed, 2 May 2012 02:36:34 +0000 (19:36 -0700)]
Edits.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 2 May 2012 02:20:34 +0000 (19:20 -0700)]
Corrections.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Tue, 1 May 2012 02:03:53 +0000 (19:03 -0700)]
Significant updates to introduction, getting packages, building from source, installing packages, and creating a cluster.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Sage Weil [Thu, 26 Apr 2012 19:07:11 +0000 (12:07 -0700)]
doc: document NOIN, NOOUT, NOUP, NODOWN flags and flapping
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 25 Apr 2012 21:52:34 +0000 (14:52 -0700)]
Removed this. As part of restructuring of install to include admin host.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 25 Apr 2012 21:50:15 +0000 (14:50 -0700)]
Minor edits. Still WIP.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 25 Apr 2012 21:46:51 +0000 (14:46 -0700)]
The new files contain S3 APIs and a build from source doc.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Thu, 12 Apr 2012 18:35:45 +0000 (11:35 -0700)]
Minor cleanup.
Signed off by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Thu, 12 Apr 2012 00:13:21 +0000 (17:13 -0700)]
Added a new landing page graphic, and made some minor edits on the landing page.
Submitted by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 11 Apr 2012 18:26:36 +0000 (11:26 -0700)]
Removed some files for reorg.
Submitted by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 11 Apr 2012 18:22:59 +0000 (11:22 -0700)]
Added a plug for commercial support. ;)
Submitted by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 11 Apr 2012 18:21:43 +0000 (11:21 -0700)]
Building out information architecture. Modified getting involved, why use ceph, etc.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Tue, 10 Apr 2012 19:53:15 +0000 (12:53 -0700)]
Remove reference to Introduction to RADOS OSDs
Submitted by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Tue, 10 Apr 2012 19:46:07 +0000 (12:46 -0700)]
Added introduction to clustered storage and deleted older files that have been moved.
Submitted by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Tue, 10 Apr 2012 17:32:22 +0000 (10:32 -0700)]
Restructuring documentation.
Submitted by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
John Wilkins [Wed, 14 Mar 2012 18:58:27 +0000 (11:58 -0700)]
Initial cut of introduction, getting started, and installing. More to do on installation. RADOS gateway to follow.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Dan Mick [Wed, 2 May 2012 18:46:32 +0000 (11:46 -0700)]
Put change to rbd manpage in .rst instead, update man/ from output
John Wilkins [Tue, 13 Mar 2012 23:48:45 +0000 (16:48 -0700)]
doc: move documentation build instructions to doc/dev section
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Dan Mick [Tue, 1 May 2012 22:33:19 +0000 (15:33 -0700)]
Treat rename across pools as an error
Fixes: #2370
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
Greg Farnum [Tue, 1 May 2012 23:40:46 +0000 (16:40 -0700)]
doc: add warning about multiple monitors on one machine.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Yehuda Sadeh [Tue, 1 May 2012 23:47:32 +0000 (16:47 -0700)]
rgw: normalize bucket/obj before updating cache
Fixes bug #2369. The problem was that sometimes we send the
notification with the un-normalized bucket/obj pair. We
should make sure that we use the caonical name before doing
any cache update.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Sage Weil [Tue, 1 May 2012 23:20:59 +0000 (16:20 -0700)]
vstart.sh: explicitly specify uuids during startup
This exercises all the new per-osd uuid code.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 23:16:56 +0000 (16:16 -0700)]
osd: --get-{osd,journal}-uuid synonyms for --get-{osd,journal}-fsid
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 23:16:32 +0000 (16:16 -0700)]
osd: allow uuid to be fed to mkfs with 'osd uuid' setting
E.g., ceph-osd --mkfs --osd-uuid <uuid> -i 123 ...
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 23:15:45 +0000 (16:15 -0700)]
filestore: allow fsid to be fed in for mkfs
Mkfs currently always generates a new uuid. Allow the caller to feed one
in.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 23:14:20 +0000 (16:14 -0700)]
mon: 'osd create <uuid>'
Make the osd create command idempotent by providing a uuid. If you call it
multiple times with the same (or some other existing) uuid you'll get back
the osd id that is already using it.
Drop support for 'osd create <id>', which was mostly useless and
non-idempotent anyway.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 23:13:12 +0000 (16:13 -0700)]
mon: fill in osd uuid in map on boot
We may want to make this more strict, so that if it is defined it has to
match the map, and only fill it in when the map's uuid is still zeroed
(for legacy clusters)...
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 23:12:02 +0000 (16:12 -0700)]
osdmap: store a uuid for each osd
Rev the extended section of the map to store it. Dump it when the osd
exists. Zero it out if an osd is destroyed. Provide some accessors to
identify an osd given a uuid (linear search).
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 20:48:43 +0000 (13:48 -0700)]
osd: make output less ugly
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 20:46:09 +0000 (13:46 -0700)]
osd: create a 'ready' file on mkfs completion
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 1 May 2012 20:46:01 +0000 (13:46 -0700)]
osd: use fsync+rename when writing meta files (during mkfs)
It's overkill to do the dir fsync on each file, but not worth making
efficient.
Signed-off-by: Sage Weil <sage@newdream.net>
Samuel Just [Tue, 1 May 2012 00:31:09 +0000 (17:31 -0700)]
PG: Add probe set to HB peers during GetInfo
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Mon, 30 Apr 2012 22:09:23 +0000 (15:09 -0700)]
PG: check_new_interval now handles adding new maps to past intervals
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Sage Weil [Tue, 1 May 2012 19:37:20 +0000 (12:37 -0700)]
filestore: allow flusher+sync_flush enable/disable via injectargs
This only affects the decision to queue or do things inline, so it is safe
to change while the filestore is up and running.
Also adjust the #ifdef so that there we share a single path through the
code when sync_file_range() is missing.
Fixes: #2368
Signed-off-by: Sage Weil <sage@newdream.net>