Fixed report_fio_minus_a and fio_status_minus_a to handle ioMemory and report internal temp, also fixed some bugs

This commit is contained in:
Brian Fraser
2012-08-24 18:23:30 -03:00
parent 1d3bf2c82b
commit 878528b859
6 changed files with 46 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
plan 52
plan 53
. "$LIB_DIR/alt_cmds.sh"
. "$LIB_DIR/log_warn_die.sh"
@@ -1588,10 +1588,12 @@ cat <<EOF > "$PT_TMPDIR/expected"
fct0 | Attached as 'fioa' (block device)
| Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665
| Firmware v5.0.7, rev 101971
| Internal temperature: 47.7 degC, max 48.2 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
fct1 | Attached as 'fiob' (block device)
| Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478
| Firmware v5.0.7, rev 101971
| Internal temperature: 42.8 degC, max 47.7 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
EOF
@@ -1603,10 +1605,11 @@ no_diff \
cat <<EOF > "$PT_TMPDIR/expected"
fio Driver | 2.3.1 build 123
ioDrive :0 | Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210
ioDrive | Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210
fct0 | Attached as 'fioa' (block device)
| Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210
| Firmware v5.0.5, rev 43674
| Internal temperature: 53.2 degC, max 62.5 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
EOF
@@ -1623,19 +1626,23 @@ cat <<EOF > "$PT_TMPDIR/expected"
fct0 | Attached as 'fioa' (block device)
| Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665
| Firmware v5.0.7, rev 101971
| Internal temperature: 47.7 degC, max 48.2 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
fct1 | Attached as 'fiob' (block device)
| Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478
| Firmware v5.0.7, rev 101971
| Internal temperature: 42.8 degC, max 47.7 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
ioDrive Duo | Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40124
fct2 | Attached as 'fioc' (block device)
| Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665
| Firmware v5.0.7, rev 101971
| Internal temperature: 47.7 degC, max 48.2 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
fct3 | Attached as 'fiod' (block device)
| Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478
| Firmware v5.0.7, rev 101971
| Internal temperature: 42.8 degC, max 47.7 degC
| Media status: Healthy; Reserves: 100.00%, warn at 10.00%
EOF
@@ -1645,3 +1652,25 @@ no_diff \
"$PT_TMPDIR/got" \
"$PT_TMPDIR/expected" \
"report_fio_minus_a works with two adapters, each with two modules"
cat <<EOF > "$PT_TMPDIR/expected"
fio Driver | 3.1.5 build 126
Dual Controller Adapter | Fusion-io ioDrive2 Duo 2.41TB, Product Number:F01-001-2T41-CS-0001, SN:1150D0121, FIO SN:1150D0121
fct0 | Attached as 'fioa' (block device)
| SN:1150D0121-1121
| Firmware v7.0.0, rev 107322 Public
| Internal temperature: 51.68 degC, max 58.08 degC
| Reserve space status: Healthy; Reserves: 100.00%, warn at 10.00%
fct1 | Attached as 'fiob' (block device)
| SN:1150D0121-1111
| Firmware v7.0.0, rev 107322 Public
| Internal temperature: 46.76 degC, max 51.19 degC
| Reserve space status: Healthy; Reserves: 100.00%, warn at 10.00%
EOF
report_fio_minus_a "$samples/Linux/004/fio-004" > "$PT_TMPDIR/got"
no_diff \
"$PT_TMPDIR/got" \
"$PT_TMPDIR/expected" \
"report_fio_minus_a works with Dual Controller Adapter / ioMemory modules"