|
@@ -93,17 +93,19 @@ uses \fBaoeping\fP to check for the presence of aoe device e10.9 on
|
|
|
network interface eth0.
|
|
|
.IP
|
|
|
.EX
|
|
|
- bash# aoeping -v 10 9 eth0 | head
|
|
|
- tag: 80000000
|
|
|
- eth: eth0
|
|
|
- shelf: 10
|
|
|
- slot: 9
|
|
|
- config query response:
|
|
|
- 00 0d 87 aa c9 00 00 10 04 00 11 1f 88 a2 18 00
|
|
|
- 00 0a 09 01 00 00 00 00 00 03 30 08 00 10 00 04
|
|
|
- 66 6f 6f 0a 00 ff ff ff ff ff ff ff ff ff ff ff
|
|
|
- ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
|
- ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
|
+.nf
|
|
|
+bash# aoeping -v 10 9 eth0 | head
|
|
|
+tag: 80000000
|
|
|
+eth: eth0
|
|
|
+shelf: 10
|
|
|
+slot: 9
|
|
|
+config query response:
|
|
|
+00 0d 87 aa c9 00 00 10 04 00 11 1f 88 a2 18 00
|
|
|
+00 0a 09 01 00 00 00 00 00 03 30 08 00 10 00 04
|
|
|
+66 6f 6f 0a 00 ff ff ff ff ff ff ff ff ff ff ff
|
|
|
+ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
|
+ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
|
+.fi
|
|
|
.EE
|
|
|
.LP
|
|
|
The next example shows root making sure the disk on the e10.9 is still
|
|
@@ -111,10 +113,12 @@ responsive by issuing an ATA device identify command with a 20-second
|
|
|
timeout.
|
|
|
.IP
|
|
|
.EX
|
|
|
- bash# aoeping -i -s 20 \\
|
|
|
- 10 9 eth0 > /dev/null \\
|
|
|
- && echo ok
|
|
|
- ok
|
|
|
+.nf
|
|
|
+bash# aoeping -i -s 20 \\
|
|
|
+ 10 9 eth0 > /dev/null \\
|
|
|
+ && echo ok
|
|
|
+ok
|
|
|
+.fi
|
|
|
.EE
|
|
|
.LP
|
|
|
The next example uses SMART to determine whether the disk on e10.9
|
|
@@ -124,11 +128,13 @@ register will be 0x4f when the disk has not exceeded its error
|
|
|
threshold.
|
|
|
.IP
|
|
|
.EX
|
|
|
- bash# aoeping -S return_status \\
|
|
|
- 10 9 eth0 | grep 'LBA Mid: 0x4f' \\
|
|
|
- > /dev/null \\
|
|
|
- && echo ok
|
|
|
- ok
|
|
|
+.nf
|
|
|
+bash# aoeping -S return_status \\
|
|
|
+ 10 9 eth0 | grep 'LBA Mid: 0x4f' \\
|
|
|
+ > /dev/null \\
|
|
|
+ && echo ok
|
|
|
+ok
|
|
|
+.fi
|
|
|
.EE
|
|
|
.LP
|
|
|
Note that in a script, it would be prudent to specify and handle a
|