1bd15134aSAishwarya PantWhat: /sys/bus/rbd/add 2bd15134aSAishwarya PantDate: Oct, 2010 3bd15134aSAishwarya PantKernelVersion: v2.6.37 4bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 5dfc5606dSYehuda SadehDescription: 6bd15134aSAishwarya Pant (WO) Add rbd block device. 7dfc5606dSYehuda Sadeh 80276dca6SMike Christie Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>] 9dfc5606dSYehuda Sadeh 1054a19b4dSMauro Carvalho Chehab Example:: 1154a19b4dSMauro Carvalho Chehab 12dfc5606dSYehuda Sadeh $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add 13dfc5606dSYehuda Sadeh 14bd15134aSAishwarya Pant The snapshot name can be "-" or omitted to map the image 15bd15134aSAishwarya Pant read/write. A <dev-id> will be assigned for any registered block 16bd15134aSAishwarya Pant device. If snapshot is used, it will be mapped read-only. 17bd15134aSAishwarya Pant 18bd15134aSAishwarya Pant 19bd15134aSAishwarya PantWhat: /sys/bus/rbd/remove 20bd15134aSAishwarya PantDate: Oct, 2010 21bd15134aSAishwarya PantKernelVersion: v2.6.37 22bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 23bd15134aSAishwarya PantDescription: 24bd15134aSAishwarya Pant (WO) Remove rbd block device. 25dfc5606dSYehuda Sadeh 260276dca6SMike Christie Usage: <dev-id> [force] 27dfc5606dSYehuda Sadeh 2854a19b4dSMauro Carvalho Chehab Example:: 2954a19b4dSMauro Carvalho Chehab 300276dca6SMike Christie $ echo 2 > /sys/bus/rbd/remove 310276dca6SMike Christie 32bd15134aSAishwarya Pant Optional "force" argument which when passed will wait for 33bd15134aSAishwarya Pant running requests and then unmap the image. Requests sent to the 34bd15134aSAishwarya Pant driver after initiating the removal will be failed. (August 35bd15134aSAishwarya Pant 2016, since 4.9.) 36bd15134aSAishwarya Pant 37dfc5606dSYehuda Sadeh 389b60e70bSIlya DryomovWhat: /sys/bus/rbd/add_single_major 39bd15134aSAishwarya PantDate: Dec, 2013 40bd15134aSAishwarya PantKernelVersion: v3.14 41bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 42bd15134aSAishwarya PantDescription: 43bd15134aSAishwarya Pant (WO) Available only if rbd module is inserted with single_major 449b60e70bSIlya Dryomov parameter set to true. 45bd15134aSAishwarya Pant 46bd15134aSAishwarya Pant Usage is the same as for /sys/bus/rbd/add. If present, this 479b60e70bSIlya Dryomov should be used instead of the latter: any attempts to use 48bd15134aSAishwarya Pant /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available 49bd15134aSAishwarya Pant will fail for backwards compatibility reasons. 50bd15134aSAishwarya Pant 519b60e70bSIlya Dryomov 529b60e70bSIlya DryomovWhat: /sys/bus/rbd/remove_single_major 53bd15134aSAishwarya PantDate: Dec, 2013 54bd15134aSAishwarya PantKernelVersion: v3.14 55bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 56bd15134aSAishwarya PantDescription: 57bd15134aSAishwarya Pant (WO) Available only if rbd module is inserted with single_major 589b60e70bSIlya Dryomov parameter set to true. 59bd15134aSAishwarya Pant 60bd15134aSAishwarya Pant Usage is the same as for /sys/bus/rbd/remove. If present, this 619b60e70bSIlya Dryomov should be used instead of the latter: any attempts to use 629b60e70bSIlya Dryomov /sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is 639b60e70bSIlya Dryomov available will fail for backwards compatibility reasons. 649b60e70bSIlya Dryomov 65dfc5606dSYehuda Sadeh 66bd15134aSAishwarya PantWhat: /sys/bus/rbd/supported_features 67bd15134aSAishwarya PantDate: Mar, 2017 68bd15134aSAishwarya PantKernelVersion: v4.11 69bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 70bd15134aSAishwarya PantDescription: 71bd15134aSAishwarya Pant (RO) Displays the features supported by the rbd module so that 72bd15134aSAishwarya Pant userspace can generate meaningful error messages and spell out 73bd15134aSAishwarya Pant unsupported features that need to be disabled. 74005a07bfSIlya Dryomov 75005a07bfSIlya Dryomov 76bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/size 77bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/major 78bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/client_id 79bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/pool 80bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/name 81bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/refresh 82bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/current_snap 83bd15134aSAishwarya PantDate: Oct, 2010 84bd15134aSAishwarya PantKernelVersion: v2.6.37 85bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 86bd15134aSAishwarya PantDescription: 8754a19b4dSMauro Carvalho Chehab 8854a19b4dSMauro Carvalho Chehab ============== ================================================ 8954a19b4dSMauro Carvalho Chehab size (RO) The size (in bytes) of the mapped block 90bd15134aSAishwarya Pant device. 91dfc5606dSYehuda Sadeh 9254a19b4dSMauro Carvalho Chehab major (RO) The block device major number. 93dfc5606dSYehuda Sadeh 9454a19b4dSMauro Carvalho Chehab client_id (RO) The ceph unique client id that was assigned 95bd15134aSAishwarya Pant for this specific session. 96267fb90bSMike Christie 9754a19b4dSMauro Carvalho Chehab pool (RO) The name of the storage pool where this rbd 98bd15134aSAishwarya Pant image resides. An rbd image name is unique 99bd15134aSAishwarya Pant within its pool. 100267fb90bSMike Christie 10154a19b4dSMauro Carvalho Chehab name (RO) The name of the rbd image. 1020d6d1e9cSMike Christie 10354a19b4dSMauro Carvalho Chehab refresh (WO) Writing to this file will reread the image 104bd15134aSAishwarya Pant header data and set all relevant data structures 105bd15134aSAishwarya Pant accordingly. 1060d6d1e9cSMike Christie 10754a19b4dSMauro Carvalho Chehab current_snap (RO) The current snapshot for which the device 108bd15134aSAishwarya Pant is mapped. 10954a19b4dSMauro Carvalho Chehab ============== ================================================ 11034b13184SAlex Elder 11134b13184SAlex Elder 112bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/pool_id 113bd15134aSAishwarya PantDate: Jul, 2012 114bd15134aSAishwarya PantKernelVersion: v3.6 115bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 116bd15134aSAishwarya PantDescription: 117bd15134aSAishwarya Pant (RO) The unique identifier for the rbd image's pool. This is a 118bd15134aSAishwarya Pant permanent attribute of the pool. A pool's id will never change. 119dfc5606dSYehuda Sadeh 120dfc5606dSYehuda Sadeh 121bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/image_id 122bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/features 123bd15134aSAishwarya PantDate: Oct, 2012 124bd15134aSAishwarya PantKernelVersion: v3.7 125bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 126bd15134aSAishwarya PantDescription: 12754a19b4dSMauro Carvalho Chehab ========= =============================================== 12854a19b4dSMauro Carvalho Chehab image_id (RO) The unique id for the rbd image. (For rbd 129bd15134aSAishwarya Pant image format 1 this is empty.) 130dd82fff1SIlya Dryomov 13154a19b4dSMauro Carvalho Chehab features (RO) A hexadecimal encoding of the feature bits 132bd15134aSAishwarya Pant for this image. 13354a19b4dSMauro Carvalho Chehab ========= =============================================== 134dd82fff1SIlya Dryomov 135dfc5606dSYehuda Sadeh 136bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/parent 137bd15134aSAishwarya PantDate: Nov, 2012 138bd15134aSAishwarya PantKernelVersion: v3.8 139bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 140bd15134aSAishwarya PantDescription: 141bd15134aSAishwarya Pant (RO) Information identifying the chain of parent images in a 142bd15134aSAishwarya Pant layered rbd image. Entries are separated by empty lines. 143dfc5606dSYehuda Sadeh 144589d30e0SAlex Elder 145bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/minor 146bd15134aSAishwarya PantDate: Dec, 2013 147bd15134aSAishwarya PantKernelVersion: v3.14 148bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 149bd15134aSAishwarya PantDescription: 150bd15134aSAishwarya Pant (RO) The block device minor number. 151589d30e0SAlex Elder 152dfc5606dSYehuda Sadeh 153bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/snap_id 154bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/config_info 155bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/cluster_fsid 156bd15134aSAishwarya PantWhat: /sys/bus/rbd/devices/<dev-id>/client_addr 157bd15134aSAishwarya PantDate: Aug, 2016 158bd15134aSAishwarya PantKernelVersion: v4.9 159bd15134aSAishwarya PantContact: Sage Weil <sage@newdream.net> 160bd15134aSAishwarya PantDescription: 16154a19b4dSMauro Carvalho Chehab ============ ================================================ 16254a19b4dSMauro Carvalho Chehab snap_id (RO) The current snapshot's id. 1639bb2f334SAlex Elder 16454a19b4dSMauro Carvalho Chehab config_info (RO) The string written into 165bd15134aSAishwarya Pant /sys/bus/rbd/add{,_single_major}. 1669bb2f334SAlex Elder 16754a19b4dSMauro Carvalho Chehab cluster_fsid (RO) The ceph cluster UUID. 168dfc5606dSYehuda Sadeh 16954a19b4dSMauro Carvalho Chehab client_addr (RO) The ceph unique client 170bd15134aSAishwarya Pant entity_addr_t (address + nonce). The format is 171bd15134aSAishwarya Pant <address>:<port>/<nonce>: '1.2.3.4:1234/5678' or 172bd15134aSAishwarya Pant '[1:2:3:4:5:6:7:8]:1234/5678'. 17354a19b4dSMauro Carvalho Chehab ============ ================================================ 174