aoe-stat.8 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .TH aoe-stat 8
  2. .SH NAME
  3. aoe-stat \- print aoe device status report
  4. .SH SYNOPSIS
  5. .nf
  6. .B modprobe aoe
  7. .B aoe-stat
  8. .B env sysfs_dir=/sys aoe-stat
  9. .fi
  10. .SH DESCRIPTION
  11. The
  12. .I aoe-stat
  13. script collects information on ATA over Ethernet devices from sysfs.
  14. .PP
  15. For each AoE device the kernel has discovered, there is one row in the
  16. script's output. Each row has
  17. the following columns.
  18. .TP
  19. .BI devicename
  20. The device name is of the form
  21. .I eX.Y,
  22. with
  23. .I X
  24. being the AoE device shelf address, and
  25. .I Y
  26. being the AoE slot address.
  27. .TP
  28. .BI size
  29. The size of the AoE device is in gigabytes (billions of bytes).
  30. .TP
  31. .BI ifname
  32. The network interface name is printed in the third column.
  33. .TP
  34. .BI status
  35. The device status is in the last column. Possible values
  36. are \fI up\fR, \fI down\fR,
  37. and \fI down,closewait\fR. The "up" status means the aoe driver
  38. considers this device ready
  39. for I/O. The "down" status means the opposite. The "down,closewait"
  40. status means that some software still has the device open, and when
  41. this straggler closes the device, it will enter the "down" state.
  42. .SH ENVIRONMENT VARIABLES
  43. If the
  44. .I sysfs_dir
  45. variable is set in the environment, it will override the default
  46. location where
  47. .I aoe-stat
  48. will look for
  49. sysfs, namely \fI /sys\fR.
  50. .SH EXAMPLE
  51. In this example, the root user on a host named
  52. .I nai
  53. loads the aoe driver module and then prints a list of all the
  54. available aoe devices. Then he remembers to bring up the storage
  55. network interfaces, does an AoE discovery, and prints the list again.
  56. This time the list shows all the devices in shelf seven.
  57. .IP
  58. .EX
  59. .nf
  60. nai:~# modprobe aoe
  61. nai:~# aoe-stat
  62. nai:~# ifconfig eth3 up
  63. nai:~# aoe-discover
  64. nai:~# aoe-stat
  65. e0.0 10995.116GB eth0 up
  66. e0.1 10995.116GB eth0 up
  67. e0.2 10995.116GB eth0 up
  68. e1.0 1152.874GB eth0 up
  69. e7.0 370.566GB eth0 up
  70. nai:~#
  71. .fi
  72. .EE
  73. .SH "SEE ALSO"
  74. .IR aoe-discover (8),
  75. .IR aoe-interfaces (8),
  76. .IR aoe-mkdevs (8),
  77. .IR aoe-mkshelf (8).
  78. .SH AUTHOR
  79. Ed L. Cashin (ecashin@coraid.com)