4 Contact: Sage Weil <sage@newdream.net>
6 (WO) Add rbd block device.
8 Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>]
12 $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
14 The snapshot name can be "-" or omitted to map the image
15 read/write. A <dev-id> will be assigned for any registered block
16 device. If snapshot is used, it will be mapped read-only.
19 What: /sys/bus/rbd/remove
21 KernelVersion: v2.6.37
22 Contact: Sage Weil <sage@newdream.net>
24 (WO) Remove rbd block device.
26 Usage: <dev-id> [force]
30 $ echo 2 > /sys/bus/rbd/remove
32 Optional "force" argument which when passed will wait for
33 running requests and then unmap the image. Requests sent to the
34 driver after initiating the removal will be failed. (August
38 What: /sys/bus/rbd/add_single_major
41 Contact: Sage Weil <sage@newdream.net>
43 (WO) Available only if rbd module is inserted with single_major
44 parameter set to true.
46 Usage is the same as for /sys/bus/rbd/add. If present, this
47 should be used instead of the latter: any attempts to use
48 /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
49 will fail for backwards compatibility reasons.
52 What: /sys/bus/rbd/remove_single_major
55 Contact: Sage Weil <sage@newdream.net>
57 (WO) Available only if rbd module is inserted with single_major
58 parameter set to true.
60 Usage is the same as for /sys/bus/rbd/remove. If present, this
61 should be used instead of the latter: any attempts to use
62 /sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
63 available will fail for backwards compatibility reasons.
66 What: /sys/bus/rbd/supported_features
69 Contact: Sage Weil <sage@newdream.net>
71 (RO) Displays the features supported by the rbd module so that
72 userspace can generate meaningful error messages and spell out
73 unsupported features that need to be disabled.
76 What: /sys/bus/rbd/devices/<dev-id>/size
77 What: /sys/bus/rbd/devices/<dev-id>/major
78 What: /sys/bus/rbd/devices/<dev-id>/client_id
79 What: /sys/bus/rbd/devices/<dev-id>/pool
80 What: /sys/bus/rbd/devices/<dev-id>/name
81 What: /sys/bus/rbd/devices/<dev-id>/refresh
82 What: /sys/bus/rbd/devices/<dev-id>/current_snap
84 KernelVersion: v2.6.37
85 Contact: Sage Weil <sage@newdream.net>
88 ============== ================================================
89 size (RO) The size (in bytes) of the mapped block
92 major (RO) The block device major number.
94 client_id (RO) The ceph unique client id that was assigned
95 for this specific session.
97 pool (RO) The name of the storage pool where this rbd
98 image resides. An rbd image name is unique
101 name (RO) The name of the rbd image.
103 refresh (WO) Writing to this file will reread the image
104 header data and set all relevant data structures
107 current_snap (RO) The current snapshot for which the device
109 ============== ================================================
112 What: /sys/bus/rbd/devices/<dev-id>/pool_id
115 Contact: Sage Weil <sage@newdream.net>
117 (RO) The unique identifier for the rbd image's pool. This is a
118 permanent attribute of the pool. A pool's id will never change.
121 What: /sys/bus/rbd/devices/<dev-id>/image_id
122 What: /sys/bus/rbd/devices/<dev-id>/features
125 Contact: Sage Weil <sage@newdream.net>
127 ========= ===============================================
128 image_id (RO) The unique id for the rbd image. (For rbd
129 image format 1 this is empty.)
131 features (RO) A hexadecimal encoding of the feature bits
133 ========= ===============================================
136 What: /sys/bus/rbd/devices/<dev-id>/parent
139 Contact: Sage Weil <sage@newdream.net>
141 (RO) Information identifying the chain of parent images in a
142 layered rbd image. Entries are separated by empty lines.
145 What: /sys/bus/rbd/devices/<dev-id>/minor
148 Contact: Sage Weil <sage@newdream.net>
150 (RO) The block device minor number.
153 What: /sys/bus/rbd/devices/<dev-id>/snap_id
154 What: /sys/bus/rbd/devices/<dev-id>/config_info
155 What: /sys/bus/rbd/devices/<dev-id>/cluster_fsid
156 What: /sys/bus/rbd/devices/<dev-id>/client_addr
159 Contact: Sage Weil <sage@newdream.net>
161 ============ ================================================
162 snap_id (RO) The current snapshot's id.
164 config_info (RO) The string written into
165 /sys/bus/rbd/add{,_single_major}.
167 cluster_fsid (RO) The ceph cluster UUID.
169 client_addr (RO) The ceph unique client
170 entity_addr_t (address + nonce). The format is
171 <address>:<port>/<nonce>: '1.2.3.4:1234/5678' or
172 '[1:2:3:4:5:6:7:8]:1234/5678'.
173 ============ ================================================