sysfs-block-rnbd 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. What: /sys/block/rnbd<N>/rnbd/unmap_device
  2. Date: Feb 2020
  3. KernelVersion: 5.7
  4. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  5. Description: To unmap a volume, "normal" or "force" has to be written to:
  6. /sys/block/rnbd<N>/rnbd/unmap_device
  7. When "normal" is used, the operation will fail with EBUSY if any process
  8. is using the device. When "force" is used, the device is also unmapped
  9. when device is in use. All I/Os that are in progress will fail.
  10. Example::
  11. # echo "normal" > /sys/block/rnbd0/rnbd/unmap_device
  12. What: /sys/block/rnbd<N>/rnbd/state
  13. Date: Feb 2020
  14. KernelVersion: 5.7
  15. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  16. Description: The file contains the current state of the block device. The state file
  17. returns "open" when the device is successfully mapped from the server
  18. and accepting I/O requests. When the connection to the server gets
  19. disconnected in case of an error (e.g. link failure), the state file
  20. returns "closed" and all I/O requests submitted to it will fail with -EIO.
  21. What: /sys/block/rnbd<N>/rnbd/session
  22. Date: Feb 2020
  23. KernelVersion: 5.7
  24. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  25. Description: RNBD uses RTRS session to transport the data between client and
  26. server. The entry "session" contains the name of the session, that
  27. was used to establish the RTRS session. It's the same name that
  28. was passed as server parameter to the map_device entry.
  29. What: /sys/block/rnbd<N>/rnbd/mapping_path
  30. Date: Feb 2020
  31. KernelVersion: 5.7
  32. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  33. Description: Contains the path that was passed as "device_path" to the map_device
  34. operation.
  35. What: /sys/block/rnbd<N>/rnbd/access_mode
  36. Date: Feb 2020
  37. KernelVersion: 5.7
  38. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  39. Description: Contains the device access mode: ro, rw or migration.
  40. What: /sys/block/rnbd<N>/rnbd/resize
  41. Date: Feb 2020
  42. KernelVersion: 5.7
  43. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  44. Description: Write the number of sectors to change the size of the disk.
  45. What: /sys/block/rnbd<N>/rnbd/remap_device
  46. Date: Feb 2020
  47. KernelVersion: 5.7
  48. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  49. Description: Remap the disconnected device if the session is not destroyed yet.
  50. What: /sys/block/rnbd<N>/rnbd/nr_poll_queues
  51. Date: Feb 2020
  52. KernelVersion: 5.7
  53. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  54. Description: Contains the number of poll-mode queues