]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 years agorest-bench: cleanups, initialization
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>
13 years agorest-bench: create workqueue for requests dispatching
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>
13 years agorest_bench: cleanups, implement get and put
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>
13 years agorest_bench: some more implementation
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>
13 years agorest_bench: initial work
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>
13 years agorados_bencher: abstract away rados specific operations
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>
13 years agorados_bencher -> obj_bencher
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>
13 years agorados_bencher: fix build
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>
13 years agorados_bencher: restructure code, create RadosBencher class
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>
13 years agorados_bencher: restructure code (initial work)
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>
13 years agolibrados: call safe callback on read operation
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>
13 years agocrush: note that tree bucket size is tree size, not item count
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>
13 years agoMerge remote-tracking branch 'gh/wip-crush-forcefeed'
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>
13 years agoOpRequest: ignore all ops while the oldest one is still young.
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>
13 years agocrush: update_item() should pass an error back to the caller
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>
13 years agocrush: improve docs/comments for check_item_loc and insert_item semantics
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>
13 years agocrush: comment and clean up checks for check_item_loc and insert_item
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>
13 years agoMerge branch 'wip-crush-update'
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>
13 years agoMerge branch 'wip-osd-uuid'
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>
13 years agoMakefile: fix $shell_scripts substution
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>
13 years agomon: simplify 'osd create <uuid>' command
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>
13 years agocrushtool: another simple test for update
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>
13 years agocrush: document return values
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>
13 years agocrush: compare fixed-point weights in update_item
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>
13 years agothread: remove get_num_threads() static
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>
13 years agoglobal_init: do not count threads before daemonize()
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>
13 years agocrush: clean up check_item_loc() comments
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>
13 years agoOpRequest: only show a small set of the oldest messages, instead of all.
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>
13 years agorgw: update cache interface for put_obj_meta
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>
13 years agodoc: fix some underscores
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>
13 years agoosd: drop unused CEPH_OSDMAP*VERSION* #defines
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>
13 years agoMerge branch 'wip-doc-rebase-2'
Sage Weil [Thu, 3 May 2012 19:16:55 +0000 (12:16 -0700)]
Merge branch 'wip-doc-rebase-2'

13 years agoFixed link to blog.
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>
13 years agoFixed another link to the blog.
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>
13 years agoFixed link.
John Wilkins [Thu, 3 May 2012 18:42:50 +0000 (11:42 -0700)]
Fixed link.

Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
13 years agoClean up. Changed ceph.newdream.net to ceph.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>
13 years agodoc: more fonts
Sage Weil [Thu, 3 May 2012 18:25:12 +0000 (11:25 -0700)]
doc: more fonts

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agodoc: new theme
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>
13 years agodoc/install/debian: simplify more
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>
13 years agodoc/install: reorg, simplify
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>
13 years agodoc: clarify path names for mkcephfs
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>
13 years agodoc: simplify quick start
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>
13 years agodoc: Whitespace cleanup.
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>
13 years agodoc: Rename to use dashes not underscores in URLs.
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>
13 years agodoc: Remove leading whitespace, that syntax means it's a definition list.
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>
13 years agoUpdated URLs for the new ceph.com site.
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>
13 years agoobjecter: ping connections with lingering ops every tick()
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>
13 years agoRemoved "Ceph Development Status" per Bryan
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>
13 years agoMerge branch 'stable'
Sage Weil [Wed, 2 May 2012 23:50:14 +0000 (16:50 -0700)]
Merge branch 'stable'

Conflicts:
src/common/config_opts.h

13 years agoconfig: $cluster-whatever for admin_socket, log files
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>
13 years agoconfig: Admin socket path had literal "name" in it instead of $name.
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>
13 years agoconfig: Admin socket path had literal "name" in it instead of $name.
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>
13 years agomon: make 'osd map <poolname> <objectname>' return pg and osd mapping
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>
13 years agoceph-object-corpus: a few instances of the newly encoded types
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>
13 years agoceph-dencoder: ignore trailing goop after OSDMap and OSDMap::Incremental
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>
13 years agomon: drop 'osd crush add ...'
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>
13 years agovstart.sh: use 'osd crush set ...'
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>
13 years agomon: 'osd crush set ...' do an add or update
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>
13 years agocrushtool: extent cli test to include --remove-item and --update-item
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>
13 years agocrushtool: add --update-item command
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>
13 years agocrush: do some docs
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>
13 years agocrush: implement update_item()
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>
13 years agocrush: add check_item_loc
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>
13 years agocrush: fix weights when removing items
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>
13 years agorbd.py: add new error for deleting an image with snapshots
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>
13 years agoconfig: no -C shorthand for --cluster
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>
13 years agoEdits.
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>
13 years agoCorrections.
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>
13 years agoSignificant updates to introduction, getting packages, building from source, installi...
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>
13 years agodoc: document NOIN, NOOUT, NOUP, NODOWN flags and flapping
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>
13 years agoRemoved this. As part of restructuring of install to include admin host.
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>
13 years agoMinor edits. Still WIP.
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>
13 years agoThe new files contain S3 APIs and a build from source doc.
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>
13 years agoMinor cleanup.
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>
13 years agoAdded a new landing page graphic, and made some minor edits on the landing page.
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>
13 years agoRemoved some files for reorg.
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>
13 years agoAdded a plug for commercial support. ;)
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>
13 years agoBuilding out information architecture. Modified getting involved, why use ceph, etc.
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>
13 years agoRemove reference to Introduction to RADOS OSDs
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>
13 years agoAdded introduction to clustered storage and deleted older files that have been moved.
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>
13 years agoRestructuring documentation.
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>
13 years agoInitial cut of introduction, getting started, and installing. More to do on installat...
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>
13 years agoPut change to rbd manpage in .rst instead, update man/ from output
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

13 years agodoc: move documentation build instructions to doc/dev section
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>
13 years agoTreat rename across pools as an error
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>
13 years agodoc: add warning about multiple monitors on one machine.
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>
13 years agorgw: normalize bucket/obj before updating cache
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>
13 years agovstart.sh: explicitly specify uuids during startup
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>
13 years agoosd: --get-{osd,journal}-uuid synonyms for --get-{osd,journal}-fsid
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>
13 years agoosd: allow uuid to be fed to mkfs with 'osd uuid' setting
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>
13 years agofilestore: allow fsid to be fed in for mkfs
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>
13 years agomon: 'osd create <uuid>'
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>
13 years agomon: fill in osd uuid in map on boot
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>
13 years agoosdmap: store a uuid for each osd
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>
13 years agoosd: make output less ugly
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>
13 years agoosd: create a 'ready' file on mkfs completion
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>
13 years agoosd: use fsync+rename when writing meta files (during mkfs)
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>
13 years agoPG: Add probe set to HB peers during GetInfo
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>
13 years agoPG: check_new_interval now handles adding new maps to past intervals
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>
13 years agofilestore: allow flusher+sync_flush enable/disable via injectargs
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>