2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/add
|
|
|
|
Date: Oct, 2010
|
|
|
|
KernelVersion: v2.6.37
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
2010-11-20 06:51:04 +08:00
|
|
|
Description:
|
2018-02-23 18:19:59 +08:00
|
|
|
(WO) Add rbd block device.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>]
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
The snapshot name can be "-" or omitted to map the image
|
|
|
|
read/write. A <dev-id> will be assigned for any registered block
|
|
|
|
device. If snapshot is used, it will be mapped read-only.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/remove
|
|
|
|
Date: Oct, 2010
|
|
|
|
KernelVersion: v2.6.37
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(WO) Remove rbd block device.
|
|
|
|
|
|
|
|
Usage: <dev-id> [force]
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
$ echo 2 > /sys/bus/rbd/remove
|
|
|
|
|
|
|
|
Optional "force" argument which when passed will wait for
|
|
|
|
running requests and then unmap the image. Requests sent to the
|
|
|
|
driver after initiating the removal will be failed. (August
|
|
|
|
2016, since 4.9.)
|
2016-08-19 00:38:45 +08:00
|
|
|
|
2010-11-20 06:51:04 +08:00
|
|
|
|
rbd: add support for single-major device number allocation scheme
Currently each rbd device is allocated its own major number, which
leads to a hard limit of 230-250 images mapped at once. This commit
adds support for a new single-major device number allocation scheme,
which is hidden behind a new single_major boolean module parameter and
is disabled by default for backwards compatibility reasons. (Old
userspace cannot correctly unmap images mapped under single-major
scheme and would essentially just unmap a random image, if that.)
$ rbd showmapped
id pool image snap device
0 rbd b100 - /dev/rbd0
1 rbd b101 - /dev/rbd1
2 rbd b102 - /dev/rbd2
3 rbd b103 - /dev/rbd3
Old scheme (modprobe rbd):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
New scheme (modprobe rbd single_major=Y):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:30 /dev/rbd0
brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
(major 253 was assigned dynamically at module load time)
The new limit is 4096 images mapped at once, and it comes from the fact
that, as before, 256 minor numbers are reserved for each mapping.
(A follow-up commit changes the number of minors reserved and the way
we deal with partitions over that number.)
If single_major is set to true, two new sysfs interfaces show up:
/sys/bus/rbd/{add,remove}_single_major. These are to be used instead
of /sys/bus/rbd/{add,remove}, which are disabled for backwards
compatibility reasons outlined above.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-13 21:28:57 +08:00
|
|
|
What: /sys/bus/rbd/add_single_major
|
2018-02-23 18:19:59 +08:00
|
|
|
Date: Dec, 2013
|
|
|
|
KernelVersion: v3.14
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(WO) Available only if rbd module is inserted with single_major
|
rbd: add support for single-major device number allocation scheme
Currently each rbd device is allocated its own major number, which
leads to a hard limit of 230-250 images mapped at once. This commit
adds support for a new single-major device number allocation scheme,
which is hidden behind a new single_major boolean module parameter and
is disabled by default for backwards compatibility reasons. (Old
userspace cannot correctly unmap images mapped under single-major
scheme and would essentially just unmap a random image, if that.)
$ rbd showmapped
id pool image snap device
0 rbd b100 - /dev/rbd0
1 rbd b101 - /dev/rbd1
2 rbd b102 - /dev/rbd2
3 rbd b103 - /dev/rbd3
Old scheme (modprobe rbd):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
New scheme (modprobe rbd single_major=Y):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:30 /dev/rbd0
brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
(major 253 was assigned dynamically at module load time)
The new limit is 4096 images mapped at once, and it comes from the fact
that, as before, 256 minor numbers are reserved for each mapping.
(A follow-up commit changes the number of minors reserved and the way
we deal with partitions over that number.)
If single_major is set to true, two new sysfs interfaces show up:
/sys/bus/rbd/{add,remove}_single_major. These are to be used instead
of /sys/bus/rbd/{add,remove}, which are disabled for backwards
compatibility reasons outlined above.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-13 21:28:57 +08:00
|
|
|
parameter set to true.
|
2018-02-23 18:19:59 +08:00
|
|
|
|
|
|
|
Usage is the same as for /sys/bus/rbd/add. If present, this
|
rbd: add support for single-major device number allocation scheme
Currently each rbd device is allocated its own major number, which
leads to a hard limit of 230-250 images mapped at once. This commit
adds support for a new single-major device number allocation scheme,
which is hidden behind a new single_major boolean module parameter and
is disabled by default for backwards compatibility reasons. (Old
userspace cannot correctly unmap images mapped under single-major
scheme and would essentially just unmap a random image, if that.)
$ rbd showmapped
id pool image snap device
0 rbd b100 - /dev/rbd0
1 rbd b101 - /dev/rbd1
2 rbd b102 - /dev/rbd2
3 rbd b103 - /dev/rbd3
Old scheme (modprobe rbd):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
New scheme (modprobe rbd single_major=Y):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:30 /dev/rbd0
brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
(major 253 was assigned dynamically at module load time)
The new limit is 4096 images mapped at once, and it comes from the fact
that, as before, 256 minor numbers are reserved for each mapping.
(A follow-up commit changes the number of minors reserved and the way
we deal with partitions over that number.)
If single_major is set to true, two new sysfs interfaces show up:
/sys/bus/rbd/{add,remove}_single_major. These are to be used instead
of /sys/bus/rbd/{add,remove}, which are disabled for backwards
compatibility reasons outlined above.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-13 21:28:57 +08:00
|
|
|
should be used instead of the latter: any attempts to use
|
2018-02-23 18:19:59 +08:00
|
|
|
/sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
|
|
|
|
will fail for backwards compatibility reasons.
|
|
|
|
|
rbd: add support for single-major device number allocation scheme
Currently each rbd device is allocated its own major number, which
leads to a hard limit of 230-250 images mapped at once. This commit
adds support for a new single-major device number allocation scheme,
which is hidden behind a new single_major boolean module parameter and
is disabled by default for backwards compatibility reasons. (Old
userspace cannot correctly unmap images mapped under single-major
scheme and would essentially just unmap a random image, if that.)
$ rbd showmapped
id pool image snap device
0 rbd b100 - /dev/rbd0
1 rbd b101 - /dev/rbd1
2 rbd b102 - /dev/rbd2
3 rbd b103 - /dev/rbd3
Old scheme (modprobe rbd):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
New scheme (modprobe rbd single_major=Y):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:30 /dev/rbd0
brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
(major 253 was assigned dynamically at module load time)
The new limit is 4096 images mapped at once, and it comes from the fact
that, as before, 256 minor numbers are reserved for each mapping.
(A follow-up commit changes the number of minors reserved and the way
we deal with partitions over that number.)
If single_major is set to true, two new sysfs interfaces show up:
/sys/bus/rbd/{add,remove}_single_major. These are to be used instead
of /sys/bus/rbd/{add,remove}, which are disabled for backwards
compatibility reasons outlined above.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-13 21:28:57 +08:00
|
|
|
|
|
|
|
What: /sys/bus/rbd/remove_single_major
|
2018-02-23 18:19:59 +08:00
|
|
|
Date: Dec, 2013
|
|
|
|
KernelVersion: v3.14
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(WO) Available only if rbd module is inserted with single_major
|
rbd: add support for single-major device number allocation scheme
Currently each rbd device is allocated its own major number, which
leads to a hard limit of 230-250 images mapped at once. This commit
adds support for a new single-major device number allocation scheme,
which is hidden behind a new single_major boolean module parameter and
is disabled by default for backwards compatibility reasons. (Old
userspace cannot correctly unmap images mapped under single-major
scheme and would essentially just unmap a random image, if that.)
$ rbd showmapped
id pool image snap device
0 rbd b100 - /dev/rbd0
1 rbd b101 - /dev/rbd1
2 rbd b102 - /dev/rbd2
3 rbd b103 - /dev/rbd3
Old scheme (modprobe rbd):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
New scheme (modprobe rbd single_major=Y):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:30 /dev/rbd0
brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
(major 253 was assigned dynamically at module load time)
The new limit is 4096 images mapped at once, and it comes from the fact
that, as before, 256 minor numbers are reserved for each mapping.
(A follow-up commit changes the number of minors reserved and the way
we deal with partitions over that number.)
If single_major is set to true, two new sysfs interfaces show up:
/sys/bus/rbd/{add,remove}_single_major. These are to be used instead
of /sys/bus/rbd/{add,remove}, which are disabled for backwards
compatibility reasons outlined above.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-13 21:28:57 +08:00
|
|
|
parameter set to true.
|
2018-02-23 18:19:59 +08:00
|
|
|
|
|
|
|
Usage is the same as for /sys/bus/rbd/remove. If present, this
|
rbd: add support for single-major device number allocation scheme
Currently each rbd device is allocated its own major number, which
leads to a hard limit of 230-250 images mapped at once. This commit
adds support for a new single-major device number allocation scheme,
which is hidden behind a new single_major boolean module parameter and
is disabled by default for backwards compatibility reasons. (Old
userspace cannot correctly unmap images mapped under single-major
scheme and would essentially just unmap a random image, if that.)
$ rbd showmapped
id pool image snap device
0 rbd b100 - /dev/rbd0
1 rbd b101 - /dev/rbd1
2 rbd b102 - /dev/rbd2
3 rbd b103 - /dev/rbd3
Old scheme (modprobe rbd):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:24 /dev/rbd0
brw-rw---- 1 root disk 252, 0 Dec 10 12:28 /dev/rbd1
brw-rw---- 1 root disk 252, 1 Dec 10 12:28 /dev/rbd1p1
brw-rw---- 1 root disk 252, 2 Dec 10 12:28 /dev/rbd1p2
brw-rw---- 1 root disk 252, 3 Dec 10 12:28 /dev/rbd1p3
brw-rw---- 1 root disk 251, 0 Dec 10 12:28 /dev/rbd2
brw-rw---- 1 root disk 251, 1 Dec 10 12:28 /dev/rbd2p1
brw-rw---- 1 root disk 250, 0 Dec 10 12:24 /dev/rbd3
New scheme (modprobe rbd single_major=Y):
$ ls -l /dev/rbd*
brw-rw---- 1 root disk 253, 0 Dec 10 12:30 /dev/rbd0
brw-rw---- 1 root disk 253, 256 Dec 10 12:30 /dev/rbd1
brw-rw---- 1 root disk 253, 257 Dec 10 12:30 /dev/rbd1p1
brw-rw---- 1 root disk 253, 258 Dec 10 12:30 /dev/rbd1p2
brw-rw---- 1 root disk 253, 259 Dec 10 12:30 /dev/rbd1p3
brw-rw---- 1 root disk 253, 512 Dec 10 12:30 /dev/rbd2
brw-rw---- 1 root disk 253, 513 Dec 10 12:30 /dev/rbd2p1
brw-rw---- 1 root disk 253, 768 Dec 10 12:30 /dev/rbd3
(major 253 was assigned dynamically at module load time)
The new limit is 4096 images mapped at once, and it comes from the fact
that, as before, 256 minor numbers are reserved for each mapping.
(A follow-up commit changes the number of minors reserved and the way
we deal with partitions over that number.)
If single_major is set to true, two new sysfs interfaces show up:
/sys/bus/rbd/{add,remove}_single_major. These are to be used instead
of /sys/bus/rbd/{add,remove}, which are disabled for backwards
compatibility reasons outlined above.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-12-13 21:28:57 +08:00
|
|
|
should be used instead of the latter: any attempts to use
|
|
|
|
/sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
|
|
|
|
available will fail for backwards compatibility reasons.
|
|
|
|
|
2016-08-19 00:38:43 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/supported_features
|
|
|
|
Date: Mar, 2017
|
|
|
|
KernelVersion: v4.11
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(RO) Displays the features supported by the rbd module so that
|
|
|
|
userspace can generate meaningful error messages and spell out
|
|
|
|
unsupported features that need to be disabled.
|
|
|
|
|
|
|
|
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/size
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/major
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/client_id
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/pool
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/name
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/refresh
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/current_snap
|
|
|
|
Date: Oct, 2010
|
|
|
|
KernelVersion: v2.6.37
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
size: (RO) The size (in bytes) of the mapped block
|
|
|
|
device.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
major: (RO) The block device major number.
|
2013-12-13 21:28:57 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
client_id: (RO) The ceph unique client id that was assigned
|
|
|
|
for this specific session.
|
2013-12-13 21:28:57 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
pool: (RO) The name of the storage pool where this rbd
|
|
|
|
image resides. An rbd image name is unique
|
|
|
|
within its pool.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
name: (RO) The name of the rbd image.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
refresh: (WO) Writing to this file will reread the image
|
|
|
|
header data and set all relevant data structures
|
|
|
|
accordingly.
|
2012-07-11 09:30:11 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
current_snap: (RO) The current snapshot for which the device
|
|
|
|
is mapped.
|
2012-07-11 09:30:11 +08:00
|
|
|
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/pool_id
|
|
|
|
Date: Jul, 2012
|
|
|
|
KernelVersion: v3.6
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(RO) The unique identifier for the rbd image's pool. This is a
|
|
|
|
permanent attribute of the pool. A pool's id will never change.
|
2012-07-12 23:46:35 +08:00
|
|
|
|
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/image_id
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/features
|
|
|
|
Date: Oct, 2012
|
|
|
|
KernelVersion: v3.7
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
image_id: (RO) The unique id for the rbd image. (For rbd
|
|
|
|
image format 1 this is empty.)
|
2010-11-20 06:51:04 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
features: (RO) A hexadecimal encoding of the feature bits
|
|
|
|
for this image.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/parent
|
|
|
|
Date: Nov, 2012
|
|
|
|
KernelVersion: v3.8
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(RO) Information identifying the chain of parent images in a
|
|
|
|
layered rbd image. Entries are separated by empty lines.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/minor
|
|
|
|
Date: Dec, 2013
|
|
|
|
KernelVersion: v3.14
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
(RO) The block device minor number.
|
2010-11-20 06:51:04 +08:00
|
|
|
|
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/snap_id
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/config_info
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/cluster_fsid
|
|
|
|
What: /sys/bus/rbd/devices/<dev-id>/client_addr
|
|
|
|
Date: Aug, 2016
|
|
|
|
KernelVersion: v4.9
|
|
|
|
Contact: Sage Weil <sage@newdream.net>
|
|
|
|
Description:
|
|
|
|
snap_id: (RO) The current snapshot's id.
|
2016-08-19 00:38:44 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
config_info: (RO) The string written into
|
|
|
|
/sys/bus/rbd/add{,_single_major}.
|
2016-08-19 00:38:44 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
cluster_fsid: (RO) The ceph cluster UUID.
|
2012-10-26 12:34:42 +08:00
|
|
|
|
2018-02-23 18:19:59 +08:00
|
|
|
client_addr: (RO) The ceph unique client
|
|
|
|
entity_addr_t (address + nonce). The format is
|
|
|
|
<address>:<port>/<nonce>: '1.2.3.4:1234/5678' or
|
|
|
|
'[1:2:3:4:5:6:7:8]:1234/5678'.
|