Commit Graph

745 Commits

Author SHA1 Message Date
Jan "Yenya" Kasprzak
bf5863baf5 doc/rbd: document cp versus deep cp
I found that the difference between "rbd cp" and "rbd deep cp",
i.e. what "deep" means in this context, is documented only in
the mailing list archive and in the Mimic reelase notes.

Let's make the difference explicit in the manpage and in rbd --help.

Signed-off-by: Jan "Yenya" Kasprzak <kas@fi.muni.cz>
2021-05-27 13:47:16 +02:00
Prasanna Kumar Kalever
35e5352f71 rbd: promote rbd-nbd attach and detach at rbd integrated cli
Example:
$ rbd device attach rbd-pool/image --device /dev/nbd0 --device-type nbd --force
$ rbd device detach rpool/image --device-type nbd

for now returning EOPNOTSUPP with krbd, ggate and wnbd

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-05-26 10:17:12 +05:30
Rishabh Dave
72478a585c
Merge pull request #39580 from ifed01/wip-ifed-migrate
ceph-volume: implement bluefs volume migration.
2021-05-18 18:20:43 +05:30
Kefu Chai
1c04ce6f3a doc/man: build and install cephfs-shell manpage
otherwise the manpage of cephfs-shell is not built and installed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-05-05 14:41:50 +08:00
Patrick Donnelly
52faaf848e
Revert "Merge PR #41134 into master"
This reverts commit 93bca2d0e9d771e3019af5e7228af7986c20ab61, reversing
changes made to 7e70b15c437a2fbe207b515a98b8b21880980867.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-05-04 14:46:47 -07:00
Kefu Chai
5191008aa4 doc/man: build and install cephfs-shell manpage
otherwise the manpage of cephfs-shell is not built and installed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-05-04 15:11:22 +08:00
Igor Fedotov
58efeb9151 ceph-volume: implement bluefs volume migration.
This is a wrapper over ceph-bluestore-tool's bluefs-bdev-migrate command.
Primarily intended to introduce LVM tags manipulation which
ceph-bluestore-tool is lacking.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2021-04-29 02:09:51 +03:00
Kefu Chai
2041207674 doc/man/8/ceph-authtool: fix the indent of option
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-19 22:09:52 +08:00
Xiubo Li
0b4807aefb cephfs-top: improve the output
When adding more metrics the top line will be too long and maybe
wrapped with serval lines, which will make it hard to read.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
2021-04-15 16:27:34 +08:00
Kefu Chai
792c2f878f doc/man/8/ceph-volume: fix formatting
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-25 01:03:34 +08:00
Kefu Chai
5757c69b06 doc/man: replace http://ceph.com/docs with https://docs.ceph.com
the former brings us to a 404 page

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-22 01:41:53 +08:00
Kefu Chai
7e4eb6d801 doc/man/8/mount.ceph: fix the formatting
* fix the indent of item
* add an empty line before code block

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-10 12:28:28 +08:00
Sage Weil
a16e46ef05 Revert "Merge PR #39482 into master"
This reverts commit 9200b1ea8e5, reversing
changes made to e42bbba9ca8.

For running tests to narrow down the root cause of:
https://tracker.ceph.com/issues/49237

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-03-01 11:27:18 -05:00
Sage Weil
5e197a21e6 Merge PR #39455 into master
* refs/pull/39455/head:
	doc/man/8/ceph: document --max option
	src/test/osd/safe-to-destroy: adjust test
	ceph: print command output to stdout even on error
	mgr/DaemonServer: include details in 'osd ok-to-stop' output
	mgr: add --max <n> to 'osd ok-to-stop' command
	mgr: relax osd ok-to-stop condition on degraded pgs

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-02-27 10:15:27 -05:00
Sage Weil
98f1be85d9 doc/man/8/ceph: document --max option
Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-26 13:11:43 -06:00
Rishabh Dave
cd760804a0 doc/ceph-fuse: add some options to man page
Add description for options --id and --client_fs to the ceph-fuse manual
and move description for -d closer to -f since both options are similar.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-02-22 17:25:03 +05:30
Sage Weil
1303bf252c Merge PR #39394 into master
* refs/pull/39394/head:
	tools/kvstore-tool: implement 'dissect' command
	kv/KeyValueHistogram: make Bluestore's DBHistogram class reusable.

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
2021-02-21 11:51:32 -05:00
Jason Dillaman
0dc74ee027
Merge pull request #39478 from orozery/rbd-encryption-doc
doc/rbd: rbd encryption

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-02-21 09:15:00 -05:00
Or Ozeri
e45cd83af1 doc/rbd: rbd encryption
This commit adds documentation of the new rbd encryption feature

Signed-off-by: Or Ozeri <oro@il.ibm.com>
2021-02-21 07:31:24 +02:00
Sage Weil
c896292d58 Revert "Merge pull request #37764 from mgfritch/cephadm-no-container-init"
This reverts commit f635555fe76322336a1e0e8cc3c199562642ad0e, reversing
changes made to d4d3d17b23fcf6d8808a96b992f56924f495b174.

This PR seems to be (indirectly?) responsible for
  https://tracker.ceph.com/issues/49237

Also, it was causing the rados.py task's follow-up step to wait
for snap trimming to fail: it would time out a 'ceph osd dump --format=json'
command.  :/

Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-15 12:40:39 -05:00
Igor Fedotov
b437f7141c tools/kvstore-tool: implement 'dissect' command
This command shows information on key/value counts and lengths for KV
DB.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2021-02-12 16:55:13 +03:00
Michael Fritch
9ac2ab85cb
cephadm: run containers using --init by default
generally all ceph containers need an init process to both reap any
zombie pids and/or perform signal handling (e.g. coredumps, etc.)

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-02-05 08:03:49 -07:00
Michael Fritch
d89fae5c9d
doc/man/cephadm: add missing --container-init flag
adopt command allows for the `--container-init` flag

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-02-05 08:03:43 -07:00
Ilya Dryomov
fcb0334156
Merge pull request #39064 from idryomov/wip-doc-osdtimeout
doc: don't mention osdtimeout option in mount.ceph man page

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2021-01-26 13:37:10 +01:00
Ilya Dryomov
4cbd952916
Merge pull request #39060 from idryomov/wip-krbd-msgr2
krbd: add support for msgr2 (kernel 5.11)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-01-26 11:46:08 +01:00
Ilya Dryomov
fd5f5722a2 doc: deprecate [no]cephx_require_signatures map options
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-01-25 21:17:44 +01:00
Ilya Dryomov
08f714964b krbd: add support for msgr2
Recognize ms_mode map option and filter initial monitor addresses
accordingly: if ms_mode is not given or ms_mode=legacy, discard v2
addresses, otherwise discard v1 addresses.

Note that nothing was discarded (i.e. v2 addresses were passed to
the kernel) previously.  The intent was to preserve that behaviour
in case ms_mode is not given, allowing to change the kernel default
in the future.  However, it turns out that mount.ceph helper has
been misguidedly discarding v2 addresses since commit eae01275134e
("mount.ceph: fork a child to get info from local configuration"),
so that ship has sailed.

Fixes: https://tracker.ceph.com/issues/48976
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-01-25 21:17:44 +01:00
Ilya Dryomov
ed3913f02c doc: don't mention osdtimeout option in mount.ceph man page
It was deprecated over 8 years ago and will be entirely removed in
kernel 5.12.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-01-25 18:44:56 +01:00
Adam Kupczyk
882714e0c9 tools/bluestore: Add command 'show-sharding' to ceph-bluestore-tool
Add command 'show-sharding' to ceph-bluestore-tool.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
2021-01-19 15:07:16 +01:00
Jason Dillaman
45addcbd2e
Merge pull request #38838 from orozery/rbd-encryption-cli
librbd: rbd encryption cli

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-01-13 19:49:23 -05:00
Patrick Donnelly
72c3b5e6a3
Merge PR #37876 into master
* refs/pull/37876/head:
	systemd: cephfs-mirror systemd unit files
	doc, man: man page for `cephfs-mirror` tool
	doc: document mirror daemon internals
	cephfs-mirror: switch to using PeerReplayer class
	cephfs-mirror: cancel ongoing snapshot syncs on dir removal
	cephfs-mirror: display peer snapshot sync stats
	cephfs-mirror: carve out (and implement) mirroring snapshots to peers
	cephfs-mirror: remove `cephfs_mirror_directory_choose_policy` option
	cephfs-mirror: include helper routines to separate source
	cephfs-mirror: remove peer only when peer is tracked
	cephfs-mirror: typedef ceph_mount_info as MountRef shared pointer
	cephfs-mirror: enclose json dump in object section
	cephfs-mirror: note current peer set
	cephfs-mirror: fix option typo and document certain options
	cephfs-mirror: remove unnecessary command line options
	cephfs-mirror: default log level 0/5

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-01-13 08:26:05 -08:00
Or Ozeri
b2c3d5d4b2 librbd: add encryption cli
This commit adds rbd encryption cli (encryption format and nbd map)

Signed-off-by: Or Ozeri <oro@il.ibm.com>
2021-01-13 17:57:17 +02:00
Venky Shankar
42233bb5df doc, man: man page for cephfs-mirror tool
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-01-12 05:57:32 -05:00
Jeff Layton
dac04fc19f doc: document ms_mode option in the mount.ceph manpage
Fixes: https://tracker.ceph.com/issues/48838
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2021-01-11 15:42:14 -05:00
Venky Shankar
4dd3f42552 doc, man: man page for cephfs-top utility
Fixes: http://tracker.ceph.com/issues/48602
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-01-11 06:15:53 -05:00
Patrick Donnelly
d03064d930
Merge PR #38642 into master
* refs/pull/38642/head:
	rpm/deb/cmake: install mount.fuse.ceph man page

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-01-08 15:12:42 -08:00
Jason Dillaman
b885dfe455
Merge pull request #38670 from Rethan/doc-fix-max_part-description
doc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-12-21 09:13:37 -05:00
haoyixing
90e3740582 doc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part
The parameter --max_part should actually override module param max_part,
not as nbds_max as it said.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
2020-12-21 16:46:45 +08:00
Ken Dreyer
ad85bdf8de rpm/deb/cmake: install mount.fuse.ceph man page
Install the mount.fuse.ceph man page and ship it in the ceph-fuse
packaging along with the corresponding mount.fuse.ceph binary.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2020-12-17 16:30:07 -07:00
Kefu Chai
c17c6c66eb ceph-conf: add --pid option
this change partially reverts 1f09b196657d21cec8fca9bc868bae307200aae8,
and add "--pid" option, so user can specify the pid to override the $pid
meta variable when expanding options.

Fixes: https://tracker.ceph.com/issues/47977
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-12-16 02:01:12 +08:00
haoyixing
0e7e036aa7 doc/dev: use http://docs.ceph.com/en/latest/ instead of /docs/master/ for docs
Several links under http://docs.ceph.com/docs/master/ were unable to access.
Change them to http://docs.ceph.com/en/lastest so we can access them directly.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
2020-11-24 12:49:47 +08:00
Jason Dillaman
c4be773b27 doc/man: add new RBD migration prepare source-spec optionals
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-02 19:58:55 -05:00
Jason Dillaman
0db501b2e3
Merge pull request #37273 from trociny/wip-rbd-nbd-persist
rbd-nbd: allow to restart daemon without destroying device

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-10-26 07:57:47 -04:00
Adam King
5224c5baf4 doc: document additional journal args in cephadm logs command
Signed-off-by: Adam King <adking@redhat.com>
2020-10-20 16:08:28 -04:00
Mykola Golub
5486050a8c doc: update rbd-nbd man
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-13 18:32:50 +01:00
Alex Marangone
9ecdb34342 doc: update osdmaptool man page
Signed-off-by: Alex Marangone <amarangone@digitalocean.com>
2020-10-12 14:17:42 +08:00
Ilya Dryomov
a107c47360 rbd: make common options override krbd-specific options
ceph-csi has added support for passing custom map and unmap options via
mapOptions and unmapOptions storage class parameters.  However, it also
uses --read-only for implementing ROX (ReadOnlyMany) PVs.  If the user
supplies "mapOptions: rw", they will get around the intended read-only
restriction (at least on the block device).

ceph-csi could be patched to use "-o ro", but it actually makes sense
for common options to win over device type-specific equivalents.

Fixes: https://tracker.ceph.com/issues/47625
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-09-24 10:50:24 +02:00
Ilya Dryomov
6827bbbcfb
Merge pull request #36927 from idryomov/wip-krbd-noudev
krbd: optionally skip waiting for udev events

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
2020-09-21 19:39:30 +02:00
Anthony D'Atri
815263b583 doc/man: Add optional reweight-by-utilization args
doc/mgr: Grammar and wording for Prometheus labels
doc/rados: Spelling and clarity

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
2020-09-20 22:47:01 -07:00
Ponnuvel Palaniyappan
d99d520493 doc: Fixed a number of typos in documentation
Signed-off-by: Ponnuvel Palaniyappan <pponnuvel@gmail.com>
2020-09-18 18:17:15 +01:00