| .. | .. |
|---|
| 7 | 7 | |
|---|
| 8 | 8 | Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>] |
|---|
| 9 | 9 | |
|---|
| 10 | + Example:: |
|---|
| 11 | + |
|---|
| 10 | 12 | $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add |
|---|
| 11 | 13 | |
|---|
| 12 | 14 | The snapshot name can be "-" or omitted to map the image |
|---|
| .. | .. |
|---|
| 22 | 24 | (WO) Remove rbd block device. |
|---|
| 23 | 25 | |
|---|
| 24 | 26 | Usage: <dev-id> [force] |
|---|
| 27 | + |
|---|
| 28 | + Example:: |
|---|
| 25 | 29 | |
|---|
| 26 | 30 | $ echo 2 > /sys/bus/rbd/remove |
|---|
| 27 | 31 | |
|---|
| .. | .. |
|---|
| 80 | 84 | KernelVersion: v2.6.37 |
|---|
| 81 | 85 | Contact: Sage Weil <sage@newdream.net> |
|---|
| 82 | 86 | Description: |
|---|
| 83 | | - size: (RO) The size (in bytes) of the mapped block |
|---|
| 87 | + |
|---|
| 88 | + ============== ================================================ |
|---|
| 89 | + size (RO) The size (in bytes) of the mapped block |
|---|
| 84 | 90 | device. |
|---|
| 85 | 91 | |
|---|
| 86 | | - major: (RO) The block device major number. |
|---|
| 92 | + major (RO) The block device major number. |
|---|
| 87 | 93 | |
|---|
| 88 | | - client_id: (RO) The ceph unique client id that was assigned |
|---|
| 94 | + client_id (RO) The ceph unique client id that was assigned |
|---|
| 89 | 95 | for this specific session. |
|---|
| 90 | 96 | |
|---|
| 91 | | - pool: (RO) The name of the storage pool where this rbd |
|---|
| 97 | + pool (RO) The name of the storage pool where this rbd |
|---|
| 92 | 98 | image resides. An rbd image name is unique |
|---|
| 93 | 99 | within its pool. |
|---|
| 94 | 100 | |
|---|
| 95 | | - name: (RO) The name of the rbd image. |
|---|
| 101 | + name (RO) The name of the rbd image. |
|---|
| 96 | 102 | |
|---|
| 97 | | - refresh: (WO) Writing to this file will reread the image |
|---|
| 103 | + refresh (WO) Writing to this file will reread the image |
|---|
| 98 | 104 | header data and set all relevant data structures |
|---|
| 99 | 105 | accordingly. |
|---|
| 100 | 106 | |
|---|
| 101 | | - current_snap: (RO) The current snapshot for which the device |
|---|
| 107 | + current_snap (RO) The current snapshot for which the device |
|---|
| 102 | 108 | is mapped. |
|---|
| 109 | + ============== ================================================ |
|---|
| 103 | 110 | |
|---|
| 104 | 111 | |
|---|
| 105 | 112 | What: /sys/bus/rbd/devices/<dev-id>/pool_id |
|---|
| .. | .. |
|---|
| 117 | 124 | KernelVersion: v3.7 |
|---|
| 118 | 125 | Contact: Sage Weil <sage@newdream.net> |
|---|
| 119 | 126 | Description: |
|---|
| 120 | | - image_id: (RO) The unique id for the rbd image. (For rbd |
|---|
| 127 | + ========= =============================================== |
|---|
| 128 | + image_id (RO) The unique id for the rbd image. (For rbd |
|---|
| 121 | 129 | image format 1 this is empty.) |
|---|
| 122 | 130 | |
|---|
| 123 | | - features: (RO) A hexadecimal encoding of the feature bits |
|---|
| 131 | + features (RO) A hexadecimal encoding of the feature bits |
|---|
| 124 | 132 | for this image. |
|---|
| 133 | + ========= =============================================== |
|---|
| 125 | 134 | |
|---|
| 126 | 135 | |
|---|
| 127 | 136 | What: /sys/bus/rbd/devices/<dev-id>/parent |
|---|
| .. | .. |
|---|
| 149 | 158 | KernelVersion: v4.9 |
|---|
| 150 | 159 | Contact: Sage Weil <sage@newdream.net> |
|---|
| 151 | 160 | Description: |
|---|
| 152 | | - snap_id: (RO) The current snapshot's id. |
|---|
| 161 | + ============ ================================================ |
|---|
| 162 | + snap_id (RO) The current snapshot's id. |
|---|
| 153 | 163 | |
|---|
| 154 | | - config_info: (RO) The string written into |
|---|
| 164 | + config_info (RO) The string written into |
|---|
| 155 | 165 | /sys/bus/rbd/add{,_single_major}. |
|---|
| 156 | 166 | |
|---|
| 157 | | - cluster_fsid: (RO) The ceph cluster UUID. |
|---|
| 167 | + cluster_fsid (RO) The ceph cluster UUID. |
|---|
| 158 | 168 | |
|---|
| 159 | | - client_addr: (RO) The ceph unique client |
|---|
| 169 | + client_addr (RO) The ceph unique client |
|---|
| 160 | 170 | entity_addr_t (address + nonce). The format is |
|---|
| 161 | 171 | <address>:<port>/<nonce>: '1.2.3.4:1234/5678' or |
|---|
| 162 | 172 | '[1:2:3:4:5:6:7:8]:1234/5678'. |
|---|
| 173 | + ============ ================================================ |
|---|