forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'ceph-for-5.17-rc1' of git://github.com/ceph/ceph-client
Pull ceph updates from Ilya Dryomov: "The highlight is the new mount "device" string syntax implemented by Venky Shankar. It solves some long-standing issues with using different auth entities and/or mounting different CephFS filesystems from the same cluster, remounting and also misleading /proc/mounts contents. The existing syntax of course remains to be maintained. On top of that, there is a couple of fixes for edge cases in quota and a new mount option for turning on unbuffered I/O mode globally instead of on a per-file basis with ioctl(CEPH_IOC_SYNCIO)" * tag 'ceph-for-5.17-rc1' of git://github.com/ceph/ceph-client: ceph: move CEPH_SUPER_MAGIC definition to magic.h ceph: remove redundant Lsx caps check ceph: add new "nopagecache" option ceph: don't check for quotas on MDS stray dirs ceph: drop send metrics debug message rbd: make const pointer spaces a static const array ceph: Fix incorrect statfs report for small quota ceph: mount syntax module parameter doc: document new CephFS mount device syntax ceph: record updated mon_addr on remount ceph: new device mount syntax libceph: rename parse_fsid() to ceph_parse_fsid() and export libceph: generalize addr/ip parsing based on delimiter
- Loading branch information
Showing
13 changed files
with
255 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,24 +82,43 @@ Mount Syntax | |
|
||
The basic mount syntax is:: | ||
|
||
# mount -t ceph monip[:port][,monip2[:port]...]:/[subdir] mnt | ||
# mount -t ceph [email protected]_name=/[subdir] mnt -o mon_addr=monip1[:port][/monip2[:port]] | ||
|
||
You only need to specify a single monitor, as the client will get the | ||
full list when it connects. (However, if the monitor you specify | ||
happens to be down, the mount won't succeed.) The port can be left | ||
off if the monitor is using the default. So if the monitor is at | ||
1.2.3.4:: | ||
|
||
# mount -t ceph 1.2.3.4:/ /mnt/ceph | ||
# mount -t ceph [email protected]=/ /mnt/ceph -o mon_addr=1.2.3.4 | ||
|
||
is sufficient. If /sbin/mount.ceph is installed, a hostname can be | ||
used instead of an IP address. | ||
used instead of an IP address and the cluster FSID can be left out | ||
(as the mount helper will fill it in by reading the ceph configuration | ||
file):: | ||
|
||
# mount -t ceph cephuser@cephfs=/ /mnt/ceph -o mon_addr=mon-addr | ||
|
||
Multiple monitor addresses can be passed by separating each address with a slash (`/`):: | ||
|
||
# mount -t ceph cephuser@cephfs=/ /mnt/ceph -o mon_addr=192.168.1.100/192.168.1.101 | ||
|
||
When using the mount helper, monitor address can be read from ceph | ||
configuration file if available. Note that, the cluster FSID (passed as part | ||
of the device string) is validated by checking it with the FSID reported by | ||
the monitor. | ||
|
||
Mount Options | ||
============= | ||
|
||
mon_addr=ip_address[:port][/ip_address[:port]] | ||
Monitor address to the cluster. This is used to bootstrap the | ||
connection to the cluster. Once connection is established, the | ||
monitor addresses in the monitor map are followed. | ||
|
||
fsid=cluster-id | ||
FSID of the cluster (from `ceph fsid` command). | ||
|
||
ip=A.B.C.D[:N] | ||
Specify the IP and/or port the client should bind to locally. | ||
There is normally not much reason to do this. If the IP is not | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.