| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 | .TH aoe-stat 8.SH NAMEaoe-stat \- print aoe device status report.SH SYNOPSIS.nf.B modprobe aoe.B aoe-stat.B env sysfs_dir=/sys aoe-stat.fi.SH DESCRIPTIONThe.I aoe-statscript collects information on ATA over Ethernet devices from sysfs..PPFor each AoE device the kernel has discovered, there is one row in thescript's output.  Each row hasthe following columns..TP.BI devicenameThe device name is of the form .I eX.Y, with .I Xbeing the AoE device shelf address, and .I Y being the AoE slot address..TP.BI sizeThe size of the AoE device is in gigabytes (billions of bytes)..TP.BI ifnameThe network interface name is printed in the third column..TP.BI payloadThe number of bytes read from or written to the storage target ineach AoE packet appears in the fourth column, unless the aoe driverdoes not export this information..TP.BI statusThe device status is in the last column.  Possible valuesare \fI up\fR, \fI down\fR, and \fI down,closewait\fR.  The "up" status means the aoe driverconsiders this device ready for I/O.  The "down" status means the opposite.  The "down,closewait"status means that some software still has the device open, and whenthis straggler closes the device, it will enter the "down" state..SH UNAVAILABLE TARGETSIf a discovered AoE target will not respond to I/O commands, someof the information needed to allow Linux to use the device is notavailable.  The.I aoe-statcommand shows the missing information as "(NA)" fields..PPIt is normal for "(NA)" fields to appear during the brieftime between the time that an AoE target is detected and thetime the Linux kernel finishes reading its partition table..SH ENVIRONMENT VARIABLESIf the.I sysfs_dirvariable is set in the environment, it will override the defaultlocation where .I aoe-statwill look for sysfs, namely \fI /sys\fR..SH WARNINGSIf the minor device number of a device node does not match that of itsnamesake, \fIaoe-stat\fP will print a warning as shown below..IP.EX.nfnai:~# aoe-stat      e0.3         0.104GB   eth0 up                  e0.4      4398.046GB   eth0 up                 e20.0      1000.215GB   eth0 up                 e42.0      2000.431GB   eth0 up            aoe-stat Warning: device node /dev/etherd/e45.1 has wrong minor device number     e45.1      1152.874GB   eth0 up            .fi.EE.PPUsing such a device node is dangerous, because its name doesn't matchthe actual device that you would be reading from and writing to.  Sucha broken device node should be removed.  Device nodes are created by\fIudev\fP or (on systems without \fIudev\fP) by \fIaoe-mkdevs\fP..SH EXAMPLEIn this example, the root user on a host named.I nailoads the aoe driver module and then prints a list of all theavailable aoe devices.  Then he remembers to bring up the storagenetwork interfaces, does an AoE discovery, and prints the list again.This time the list shows all the devices in shelf seven..IP.EX.nfnai:~# modprobe aoenai:~# aoe-statnai:~# ifconfig eth3 upnai:~# aoe-discover nai:~# aoe-stat      e0.0     10995.116GB   eth3 up                  e0.1     10995.116GB   eth3 up                  e0.2     10995.116GB   eth3 up                  e1.0      1152.874GB   eth3 up                  e7.0       370.566GB   eth3 up            nai:~# .fi.EE.SH "SEE ALSO".IR aoe-discover (8),.IR aoe-interfaces (8),.IR aoe-mkdevs (8),.IR aoe-mkshelf (8),.IR aoetools (8),.IR udev (7)..SH AUTHOREd L. Cashin (ecashin@coraid.com)
 |