65 lines · plain
1What: /sys/block/rnbd<N>/rnbd/unmap_device2Date: Feb 20203KernelVersion: 5.74Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>5Description: To unmap a volume, "normal" or "force" has to be written to:6 /sys/block/rnbd<N>/rnbd/unmap_device7 8 When "normal" is used, the operation will fail with EBUSY if any process9 is using the device. When "force" is used, the device is also unmapped10 when device is in use. All I/Os that are in progress will fail.11 12 Example::13 14 # echo "normal" > /sys/block/rnbd0/rnbd/unmap_device15 16What: /sys/block/rnbd<N>/rnbd/state17Date: Feb 202018KernelVersion: 5.719Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>20Description: The file contains the current state of the block device. The state file21 returns "open" when the device is successfully mapped from the server22 and accepting I/O requests. When the connection to the server gets23 disconnected in case of an error (e.g. link failure), the state file24 returns "closed" and all I/O requests submitted to it will fail with -EIO.25 26What: /sys/block/rnbd<N>/rnbd/session27Date: Feb 202028KernelVersion: 5.729Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>30Description: RNBD uses RTRS session to transport the data between client and31 server. The entry "session" contains the name of the session, that32 was used to establish the RTRS session. It's the same name that33 was passed as server parameter to the map_device entry.34 35What: /sys/block/rnbd<N>/rnbd/mapping_path36Date: Feb 202037KernelVersion: 5.738Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>39Description: Contains the path that was passed as "device_path" to the map_device40 operation.41 42What: /sys/block/rnbd<N>/rnbd/access_mode43Date: Feb 202044KernelVersion: 5.745Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>46Description: Contains the device access mode: ro, rw or migration.47 48What: /sys/block/rnbd<N>/rnbd/resize49Date: Feb 202050KernelVersion: 5.751Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>52Description: Write the number of sectors to change the size of the disk.53 54What: /sys/block/rnbd<N>/rnbd/remap_device55Date: Feb 202056KernelVersion: 5.757Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>58Description: Remap the disconnected device if the session is not destroyed yet.59 60What: /sys/block/rnbd<N>/rnbd/nr_poll_queues61Date: Feb 202062KernelVersion: 5.763Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>64Description: Contains the number of poll-mode queues65