aoe-stat.8 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. nai:~# modprobe aoe
  60. nai:~# aoe-stat
  61. nai:~# ifconfig eth3 up
  62. nai:~# aoe-discover
  63. nai:~# aoe-stat
  64. e0.0 10995.116GB eth0 up
  65. e0.1 10995.116GB eth0 up
  66. e0.2 10995.116GB eth0 up
  67. e1.0 1152.874GB eth0 up
  68. e7.0 370.566GB eth0 up
  69. nai:~#
  70. .EE
  71. .LP
  72. .SH "SEE ALSO"
  73. .IR aoe-discover (8),
  74. .IR aoe-interfaces (8),
  75. .IR aoe-mkdevs (8),
  76. .IR aoe-mkshelf (8).
  77. .SH AUTHOR
  78. Ed L. Cashin (ecashin@coraid.com)