162306a36Sopenharmony_ciWhat: /sys/bus/rbd/add 262306a36Sopenharmony_ciDate: Oct, 2010 362306a36Sopenharmony_ciKernelVersion: v2.6.37 462306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci (WO) Add rbd block device. 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>] 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci Example:: 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci The snapshot name can be "-" or omitted to map the image 1562306a36Sopenharmony_ci read/write. A <dev-id> will be assigned for any registered block 1662306a36Sopenharmony_ci device. If snapshot is used, it will be mapped read-only. 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciWhat: /sys/bus/rbd/remove 2062306a36Sopenharmony_ciDate: Oct, 2010 2162306a36Sopenharmony_ciKernelVersion: v2.6.37 2262306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 2362306a36Sopenharmony_ciDescription: 2462306a36Sopenharmony_ci (WO) Remove rbd block device. 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci Usage: <dev-id> [force] 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci Example:: 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci $ echo 2 > /sys/bus/rbd/remove 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci Optional "force" argument which when passed will wait for 3362306a36Sopenharmony_ci running requests and then unmap the image. Requests sent to the 3462306a36Sopenharmony_ci driver after initiating the removal will be failed. (August 3562306a36Sopenharmony_ci 2016, since 4.9.) 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ciWhat: /sys/bus/rbd/add_single_major 3962306a36Sopenharmony_ciDate: Dec, 2013 4062306a36Sopenharmony_ciKernelVersion: v3.14 4162306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 4262306a36Sopenharmony_ciDescription: 4362306a36Sopenharmony_ci (WO) Available only if rbd module is inserted with single_major 4462306a36Sopenharmony_ci parameter set to true. 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci Usage is the same as for /sys/bus/rbd/add. If present, this 4762306a36Sopenharmony_ci should be used instead of the latter: any attempts to use 4862306a36Sopenharmony_ci /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available 4962306a36Sopenharmony_ci will fail for backwards compatibility reasons. 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ciWhat: /sys/bus/rbd/remove_single_major 5362306a36Sopenharmony_ciDate: Dec, 2013 5462306a36Sopenharmony_ciKernelVersion: v3.14 5562306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 5662306a36Sopenharmony_ciDescription: 5762306a36Sopenharmony_ci (WO) Available only if rbd module is inserted with single_major 5862306a36Sopenharmony_ci parameter set to true. 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci Usage is the same as for /sys/bus/rbd/remove. If present, this 6162306a36Sopenharmony_ci should be used instead of the latter: any attempts to use 6262306a36Sopenharmony_ci /sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is 6362306a36Sopenharmony_ci available will fail for backwards compatibility reasons. 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ciWhat: /sys/bus/rbd/supported_features 6762306a36Sopenharmony_ciDate: Mar, 2017 6862306a36Sopenharmony_ciKernelVersion: v4.11 6962306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 7062306a36Sopenharmony_ciDescription: 7162306a36Sopenharmony_ci (RO) Displays the features supported by the rbd module so that 7262306a36Sopenharmony_ci userspace can generate meaningful error messages and spell out 7362306a36Sopenharmony_ci unsupported features that need to be disabled. 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/size 7762306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/major 7862306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/client_id 7962306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/pool 8062306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/name 8162306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/refresh 8262306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/current_snap 8362306a36Sopenharmony_ciDate: Oct, 2010 8462306a36Sopenharmony_ciKernelVersion: v2.6.37 8562306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 8662306a36Sopenharmony_ciDescription: 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci ============== ================================================ 8962306a36Sopenharmony_ci size (RO) The size (in bytes) of the mapped block 9062306a36Sopenharmony_ci device. 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci major (RO) The block device major number. 9362306a36Sopenharmony_ci 9462306a36Sopenharmony_ci client_id (RO) The ceph unique client id that was assigned 9562306a36Sopenharmony_ci for this specific session. 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ci pool (RO) The name of the storage pool where this rbd 9862306a36Sopenharmony_ci image resides. An rbd image name is unique 9962306a36Sopenharmony_ci within its pool. 10062306a36Sopenharmony_ci 10162306a36Sopenharmony_ci name (RO) The name of the rbd image. 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci refresh (WO) Writing to this file will reread the image 10462306a36Sopenharmony_ci header data and set all relevant data structures 10562306a36Sopenharmony_ci accordingly. 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_ci current_snap (RO) The current snapshot for which the device 10862306a36Sopenharmony_ci is mapped. 10962306a36Sopenharmony_ci ============== ================================================ 11062306a36Sopenharmony_ci 11162306a36Sopenharmony_ci 11262306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/pool_id 11362306a36Sopenharmony_ciDate: Jul, 2012 11462306a36Sopenharmony_ciKernelVersion: v3.6 11562306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 11662306a36Sopenharmony_ciDescription: 11762306a36Sopenharmony_ci (RO) The unique identifier for the rbd image's pool. This is a 11862306a36Sopenharmony_ci permanent attribute of the pool. A pool's id will never change. 11962306a36Sopenharmony_ci 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/image_id 12262306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/features 12362306a36Sopenharmony_ciDate: Oct, 2012 12462306a36Sopenharmony_ciKernelVersion: v3.7 12562306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 12662306a36Sopenharmony_ciDescription: 12762306a36Sopenharmony_ci ========= =============================================== 12862306a36Sopenharmony_ci image_id (RO) The unique id for the rbd image. (For rbd 12962306a36Sopenharmony_ci image format 1 this is empty.) 13062306a36Sopenharmony_ci 13162306a36Sopenharmony_ci features (RO) A hexadecimal encoding of the feature bits 13262306a36Sopenharmony_ci for this image. 13362306a36Sopenharmony_ci ========= =============================================== 13462306a36Sopenharmony_ci 13562306a36Sopenharmony_ci 13662306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/parent 13762306a36Sopenharmony_ciDate: Nov, 2012 13862306a36Sopenharmony_ciKernelVersion: v3.8 13962306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 14062306a36Sopenharmony_ciDescription: 14162306a36Sopenharmony_ci (RO) Information identifying the chain of parent images in a 14262306a36Sopenharmony_ci layered rbd image. Entries are separated by empty lines. 14362306a36Sopenharmony_ci 14462306a36Sopenharmony_ci 14562306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/minor 14662306a36Sopenharmony_ciDate: Dec, 2013 14762306a36Sopenharmony_ciKernelVersion: v3.14 14862306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 14962306a36Sopenharmony_ciDescription: 15062306a36Sopenharmony_ci (RO) The block device minor number. 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ci 15362306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/snap_id 15462306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/config_info 15562306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/cluster_fsid 15662306a36Sopenharmony_ciWhat: /sys/bus/rbd/devices/<dev-id>/client_addr 15762306a36Sopenharmony_ciDate: Aug, 2016 15862306a36Sopenharmony_ciKernelVersion: v4.9 15962306a36Sopenharmony_ciContact: Sage Weil <sage@newdream.net> 16062306a36Sopenharmony_ciDescription: 16162306a36Sopenharmony_ci ============ ================================================ 16262306a36Sopenharmony_ci snap_id (RO) The current snapshot's id. 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_ci config_info (RO) The string written into 16562306a36Sopenharmony_ci /sys/bus/rbd/add{,_single_major}. 16662306a36Sopenharmony_ci 16762306a36Sopenharmony_ci cluster_fsid (RO) The ceph cluster UUID. 16862306a36Sopenharmony_ci 16962306a36Sopenharmony_ci client_addr (RO) The ceph unique client 17062306a36Sopenharmony_ci entity_addr_t (address + nonce). The format is 17162306a36Sopenharmony_ci <address>:<port>/<nonce>: '1.2.3.4:1234/5678' or 17262306a36Sopenharmony_ci '[1:2:3:4:5:6:7:8]:1234/5678'. 17362306a36Sopenharmony_ci ============ ================================================ 174