sysfs-block-rnbd 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. What: /sys/block/rnbd<N>/rnbd/unmap_device
  2. Date: Feb 2020
  3. KernelVersion: 5.7
  4. Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
  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 <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
  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 <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
  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 <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
  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 <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
  39. Description: Contains the device access mode: ro, rw or migration.