From 24ae24a64e3b706a1827c41d745035302a04a30c Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Fri, 24 Aug 2012 17:01:47 -0300 Subject: [PATCH] Fix for 952722: pt-summary to show information about Fusion-io cards --- lib/bash/collect_system_info.sh | 57 +++++++ lib/bash/report_system_info.sh | 27 ++++ t/lib/bash/collect_system_info.sh | 10 +- t/lib/bash/report_system_info.sh | 69 ++++++++- t/pt-summary/samples/Linux/004/fio-001 | 13 ++ .../samples/Linux/004/fio-001_original_output | 71 +++++++++ t/pt-summary/samples/Linux/004/fio-002 | 9 ++ .../samples/Linux/004/fio-002_original_output | 44 ++++++ t/pt-summary/samples/Linux/004/fio-003 | 23 +++ .../samples/Linux/004/fio-003_original_output | 140 ++++++++++++++++++ t/pt-summary/samples/fio-status-001.txt | 71 +++++++++ t/pt-summary/samples/fio-status-002.txt | 44 ++++++ t/pt-summary/samples/fio-status-003.txt | 140 ++++++++++++++++++ 13 files changed, 716 insertions(+), 2 deletions(-) create mode 100644 t/pt-summary/samples/Linux/004/fio-001 create mode 100644 t/pt-summary/samples/Linux/004/fio-001_original_output create mode 100644 t/pt-summary/samples/Linux/004/fio-002 create mode 100644 t/pt-summary/samples/Linux/004/fio-002_original_output create mode 100644 t/pt-summary/samples/Linux/004/fio-003 create mode 100644 t/pt-summary/samples/Linux/004/fio-003_original_output create mode 100644 t/pt-summary/samples/fio-status-001.txt create mode 100644 t/pt-summary/samples/fio-status-002.txt create mode 100644 t/pt-summary/samples/fio-status-003.txt diff --git a/lib/bash/collect_system_info.sh b/lib/bash/collect_system_info.sh index 562afaeb..28593629 100644 --- a/lib/bash/collect_system_info.sh +++ b/lib/bash/collect_system_info.sh @@ -56,6 +56,7 @@ setup_commands () { CMD_LSB_RELEASE="$( _which lsb_release 2>/dev/null )" CMD_ETHTOOL="$( _which ethtool 2>/dev/null )" CMD_GETCONF="$( _which getconf 2>/dev/null )" + CMD_FIO_STATUS="$( _which fio-status 2>/dev/null )" } collect_system_data () { local PTFUNCNAME=collect_system_data; @@ -132,6 +133,9 @@ collect_system_data () { local PTFUNCNAME=collect_system_data; fi fi + # Fusion-io cards + fio_status_minus_a "$data_dir/fusion-io_card" + # Clean the data directory, don't leave empty files for file in $data_dir/*; do # The vmstat file gets special treatmeant, see above. @@ -140,6 +144,59 @@ collect_system_data () { local PTFUNCNAME=collect_system_data; done } +fio_status_minus_a () { + local file="$1" + local full_output="${file}_original_output" + [ -z "$CMD_FIO_STATUS" ] && return; + $CMD_FIO_STATUS -a > "$full_output" + + cat <<'EOP' > "$PT_TMPDIR/fio_status_format.pl" + my $tmp_adapter; + while (<>) { + if ( /Fusion-io driver version:\s*(.+)/ ) { + print "driver_version $1" + } + next unless /^Adapter:(.+)/; + $tmp_adapter = $1; + last; + } + + $/ = "\nAdapter: "; + $_ = $tmp_adapter . "\n" . scalar(<>); + my @adapters; + do { + my ($adapter, $adapter_general) = /\s*(.+)\s*\n\s*(.+)/m; + $adapter =~ tr/ /:/; + $adapter .= "::" . scalar(@adapters); # To differentiate two adapters with the same name + push @adapters, $adapter; + my ($connected_modules) = /Connected ioDimm modules?:\s*\n(.+?\n)\n/smg; + my @connected_modules = $connected_modules =~ /\s+([^:]+):.+\n/g; + + print "${adapter}_general $adapter_general"; + print "${adapter}_modules @connected_modules"; + + for my $module (@connected_modules) { + my ($attached, $general, $firmware, $media_status) = / + ^ \s* $module \s+ (Attached[^\n]+) \n + \s+ ([^\n]+) \n # All the second line + .+? (Firmware\s+[^\n]+) \n + .+? (Media \s+ status:[^\n]+) + /xsm; + print "${adapter}_${module}_attached_as $attached"; + print "${adapter}_${module}_general $general"; + print "${adapter}_${module}_firmware $firmware"; + print "${adapter}_${module}_media_status $media_status"; + } + } while <>; + + print "adapters @adapters\n"; + + exit; +EOP + + perl -wln "$PT_TMPDIR/fio_status_format.pl" "$full_output" > "$file" +} + linux_exclusive_collection () { local PTFUNCNAME=linux_exclusive_collection; local data_dir="$1" diff --git a/lib/bash/report_system_info.sh b/lib/bash/report_system_info.sh index 09b9646c..a1664706 100644 --- a/lib/bash/report_system_info.sh +++ b/lib/bash/report_system_info.sh @@ -884,6 +884,28 @@ parse_uptime () { ' "$file" } +report_fio_minus_a () { + local file="$1" + + name_val "fio Driver" "$(get_var driver_version "$file")" + + local adapters="$( get_var "adapters" "$file" )" + for adapter in $( echo $adapters | awk '{for (i=1; i<=NF; i++) print $i;}' ); do + name_val "$(echo "$adapter" | sed 's/:/ /' | sed 's/::[0-9]*$//')" "$(get_var "${adapter}_general" "$file")" + + local modules="$(get_var "${adapter}_modules" "$file")" + for module in $( echo $modules | awk '{for (i=1; i<=NF; i++) print $i;}' ); do + local name_val_len_orig=$NAME_VAL_LEN; + local NAME_VAL_LEN=16 + name_val "$module" "$(get_var "${adapter}_${module}_attached_as" "$file")" + name_val "" "$(get_var "${adapter}_${module}_general" "$file")" + name_val "" "$(get_var "${adapter}_${module}_firmware" "$file")" + name_val "" "$(get_var "${adapter}_${module}_media_status" "$file")" + local NAME_VAL_LEN=$name_val_len_orig; + done + done +} + # The sum of all of the above report_system_summary () { local PTFUNCNAME=report_system_summary; local data_dir="$1" @@ -938,6 +960,11 @@ report_system_summary () { local PTFUNCNAME=report_system_summary; # ######################################################################## # TODO: Add info about software RAID + if [ -s "$data_dir/fusion-io_card" ]; then + section "Fusion-io Card" + report_fio_minus_a "$data_dir/fusion-io_card" + fi + if [ -s "$data_dir/mounted_fs" ]; then section "Mounted Filesystems" parse_filesystems "$data_dir/mounted_fs" "${platform}" diff --git a/t/lib/bash/collect_system_info.sh b/t/lib/bash/collect_system_info.sh index 90248ad8..9cecde90 100644 --- a/t/lib/bash/collect_system_info.sh +++ b/t/lib/bash/collect_system_info.sh @@ -155,7 +155,7 @@ fake_command () { printf "#!/usr/bin/env bash\necho \"${output}\"\n" > "$PT_TMPDIR/${cmd}_replacement" chmod +x "$PT_TMPDIR/${cmd}_replacement" - eval "CMD_$(echo $cmd | tr '[a-z]' '[A-Z]')=\"$PT_TMPDIR/${cmd}_replacement\"" + eval "CMD_$(echo $cmd | tr '[a-z]' '[A-Z]' | tr '\-' '_')=\"$PT_TMPDIR/${cmd}_replacement\"" } test_linux_exclusive_collection () { @@ -312,3 +312,11 @@ EOF mkdir "$PT_TMPDIR/dmidecode_system_info" test_dmidecode_system_info "$PT_TMPDIR/dmidecode_system_info" +# fio_status_minus_a + +for i in $( seq 1 3 ); do + fake_command "fio-status" "\"; cat $samples/fio-status-00${i}.txt; echo \"" + fio_status_minus_a "$PT_TMPDIR/got" + + no_diff "$PT_TMPDIR/got" "$samples/Linux/004/fio-00$i" "fio_status_minus_a works for fio-status-00${i}.txt" +done \ No newline at end of file diff --git a/t/lib/bash/report_system_info.sh b/t/lib/bash/report_system_info.sh index a5a29a8a..0bc75242 100644 --- a/t/lib/bash/report_system_info.sh +++ b/t/lib/bash/report_system_info.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -plan 49 +plan 52 . "$LIB_DIR/alt_cmds.sh" . "$LIB_DIR/log_warn_die.sh" @@ -1578,3 +1578,70 @@ no_diff "$PT_TMPDIR/got" "$samples/Linux/output_002.txt" "Linux/002 (CentOS 5.7, report_system_summary "$samples/Linux/003" | tail -n +3 > "$PT_TMPDIR/got" no_diff "$PT_TMPDIR/got" "$samples/Linux/output_003.txt" "Linux/003 (CentOS 5.7, as non-root)" + +# pt-summary to show information about Fusion-io cards +# https://bugs.launchpad.net/percona-toolkit/+bug/952722 + +cat < "$PT_TMPDIR/expected" + fio Driver | 2.3.1 build 123 + ioDrive Duo | Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 + 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 + | 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 + | Media status: Healthy; Reserves: 100.00%, warn at 10.00% +EOF + +report_fio_minus_a "$samples/Linux/004/fio-001" > "$PT_TMPDIR/got" +no_diff \ + "$PT_TMPDIR/got" \ + "$PT_TMPDIR/expected" \ + "report_fio_minus_a works with one adapter and two modules" + +cat < "$PT_TMPDIR/expected" + fio Driver | 2.3.1 build 123 + ioDrive :0 | 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 + | Media status: Healthy; Reserves: 100.00%, warn at 10.00% +EOF + +report_fio_minus_a "$samples/Linux/004/fio-002" > "$PT_TMPDIR/got" + +no_diff \ + "$PT_TMPDIR/got" \ + "$PT_TMPDIR/expected" \ + "report_fio_minus_a works with one adapter and one module" + +cat < "$PT_TMPDIR/expected" + fio Driver | 2.3.1 build 123 + ioDrive Duo | Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 + 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 + | 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 + | 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 + | 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 + | Media status: Healthy; Reserves: 100.00%, warn at 10.00% +EOF + +report_fio_minus_a "$samples/Linux/004/fio-003" > "$PT_TMPDIR/got" + +no_diff \ + "$PT_TMPDIR/got" \ + "$PT_TMPDIR/expected" \ + "report_fio_minus_a works with two adapters, each with two modules" diff --git a/t/pt-summary/samples/Linux/004/fio-001 b/t/pt-summary/samples/Linux/004/fio-001 new file mode 100644 index 00000000..bb03b326 --- /dev/null +++ b/t/pt-summary/samples/Linux/004/fio-001 @@ -0,0 +1,13 @@ +driver_version 2.3.1 build 123 +ioDrive:Duo::0_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 +ioDrive:Duo::0_modules fct0 fct1 +ioDrive:Duo::0_fct0_attached_as Attached as 'fioa' (block device) +ioDrive:Duo::0_fct0_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 +ioDrive:Duo::0_fct0_firmware Firmware v5.0.7, rev 101971 +ioDrive:Duo::0_fct0_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +ioDrive:Duo::0_fct1_attached_as Attached as 'fiob' (block device) +ioDrive:Duo::0_fct1_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 +ioDrive:Duo::0_fct1_firmware Firmware v5.0.7, rev 101971 +ioDrive:Duo::0_fct1_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +adapters ioDrive:Duo::0 + diff --git a/t/pt-summary/samples/Linux/004/fio-001_original_output b/t/pt-summary/samples/Linux/004/fio-001_original_output new file mode 100644 index 00000000..891e3ab4 --- /dev/null +++ b/t/pt-summary/samples/Linux/004/fio-001_original_output @@ -0,0 +1,71 @@ +Found 2 ioDrives in this system with 1 ioDrive Duo +Fusion-io driver version: 2.3.1 build 123 + +Adapter: ioDrive Duo + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 + ioDrive Duo HL, PN:00190000003, Mfr:003, Date:20100621 + External Power Override: ON + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 12.04V, min 12.00V, max 12.27V + PCIE Bus current: avg 1.49A, max 2.81A + PCIE Bus power: avg 15.07W, max 33.77W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + PCIE bus errors: correctable, unsupported request + PCIE negotiated link: 8 lanes at 5.00 Gbits/sec each, 4000 MBytes/sec total + Connected ioDimm modules: + fct0: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + fct1: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + +fct0 Attached as 'fioa' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 0 Upper of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0b:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:000000001a090132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 47.7 degC, max 48.2 degC + Board temperature: 42 degC + Internal voltage: avg 1.025V, max 1.028V + Aux voltage: avg 2.464V, max 2.467V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 275,933,273,649,736 + Physical bytes read : 226,433,727,856,720 + RAM usage: + Current: 284,895,232 bytes + Peak : 284,895,232 bytes + +fct1 Attached as 'fiob' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 1 Lower of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0c:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:00000000194e0132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 42.8 degC, max 47.7 degC + Board temperature: 35 degC + Internal voltage: avg 1.008V, max 1.011V + Aux voltage: avg 2.461V, max 2.461V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 189,256,225,503,040 + Physical bytes read : 166,909,962,030,960 + RAM usage: + Current: 52,754,432 bytes + Peak : 52,754,432 bytes diff --git a/t/pt-summary/samples/Linux/004/fio-002 b/t/pt-summary/samples/Linux/004/fio-002 new file mode 100644 index 00000000..4ecd4b09 --- /dev/null +++ b/t/pt-summary/samples/Linux/004/fio-002 @@ -0,0 +1,9 @@ +driver_version 2.3.1 build 123 +ioDrive::0_general Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210 +ioDrive::0_modules fct0 +ioDrive::0_fct0_attached_as Attached as 'fioa' (block device) +ioDrive::0_fct0_general Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210 +ioDrive::0_fct0_firmware Firmware v5.0.5, rev 43674 +ioDrive::0_fct0_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +adapters ioDrive::0 + diff --git a/t/pt-summary/samples/Linux/004/fio-002_original_output b/t/pt-summary/samples/Linux/004/fio-002_original_output new file mode 100644 index 00000000..e08e5462 --- /dev/null +++ b/t/pt-summary/samples/Linux/004/fio-002_original_output @@ -0,0 +1,44 @@ +Found 1 ioDrive in this system +Fusion-io driver version: 2.3.1 build 123 + +Adapter: ioDrive + Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210 + Pseudo Low-Profile ioDIMM Adapter, PN:00119200000, Mfr:000, Date:20101222 + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 11.90V, min 11.77V, max 11.93V + PCIE Bus current: avg 0.40A, max 1.60A + PCIE Bus power: avg 4.80W, max 18.80W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + Sufficient power available: Unknown + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Connected ioDimm module: + fct0: 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 + ioDrive 720GB, PN:00214102701, Mfr:004, Date:20101222 + Located in slot 0 Upper of ioDrive SN:122210 + Powerloss protection: protected + PCI:0a:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.5, rev 43674 + 720.00 GBytes block device size, 812 GBytes physical device size + Format: block, v300, 1,406,251,904 sectors, 512 bytes per sector + Error correction: 39 bits per 960 bytes + FPGA ID:0 Format UID:00000001dd620132b86600330bcab400 + PCIE slot available power: unavailable + Sufficient power available: Unknown + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 53.2 degC, max 62.5 degC + Board temperature: 38 degC + Internal voltage: avg 0.996V, max 0.999V + Aux voltage: avg 2.461V, max 2.464V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 395,271,132,925,136 + Physical bytes read : 407,978,357,472,336 + RAM usage: + Current: 244,996,096 bytes + Peak : 244,996,096 bytes diff --git a/t/pt-summary/samples/Linux/004/fio-003 b/t/pt-summary/samples/Linux/004/fio-003 new file mode 100644 index 00000000..3612566c --- /dev/null +++ b/t/pt-summary/samples/Linux/004/fio-003 @@ -0,0 +1,23 @@ +driver_version 2.3.1 build 123 +ioDrive:Duo::0_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 +ioDrive:Duo::0_modules fct0 fct1 +ioDrive:Duo::0_fct0_attached_as Attached as 'fioa' (block device) +ioDrive:Duo::0_fct0_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 +ioDrive:Duo::0_fct0_firmware Firmware v5.0.7, rev 101971 +ioDrive:Duo::0_fct0_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +ioDrive:Duo::0_fct1_attached_as Attached as 'fiob' (block device) +ioDrive:Duo::0_fct1_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 +ioDrive:Duo::0_fct1_firmware Firmware v5.0.7, rev 101971 +ioDrive:Duo::0_fct1_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +ioDrive:Duo::1_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40124 +ioDrive:Duo::1_modules fct2 fct3 +ioDrive:Duo::1_fct2_attached_as Attached as 'fioc' (block device) +ioDrive:Duo::1_fct2_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 +ioDrive:Duo::1_fct2_firmware Firmware v5.0.7, rev 101971 +ioDrive:Duo::1_fct2_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +ioDrive:Duo::1_fct3_attached_as Attached as 'fiod' (block device) +ioDrive:Duo::1_fct3_general Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 +ioDrive:Duo::1_fct3_firmware Firmware v5.0.7, rev 101971 +ioDrive:Duo::1_fct3_media_status Media status: Healthy; Reserves: 100.00%, warn at 10.00% +adapters ioDrive:Duo::0 ioDrive:Duo::1 + diff --git a/t/pt-summary/samples/Linux/004/fio-003_original_output b/t/pt-summary/samples/Linux/004/fio-003_original_output new file mode 100644 index 00000000..495b1349 --- /dev/null +++ b/t/pt-summary/samples/Linux/004/fio-003_original_output @@ -0,0 +1,140 @@ +Found 4 ioDrives in this system with 2 ioDrive Duo +Fusion-io driver version: 2.3.1 build 123 + +Adapter: ioDrive Duo + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 + ioDrive Duo HL, PN:00190000003, Mfr:003, Date:20100621 + External Power Override: ON + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 12.04V, min 12.00V, max 12.27V + PCIE Bus current: avg 1.49A, max 2.81A + PCIE Bus power: avg 15.07W, max 33.77W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + PCIE bus errors: correctable, unsupported request + PCIE negotiated link: 8 lanes at 5.00 Gbits/sec each, 4000 MBytes/sec total + Connected ioDimm modules: + fct0: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + fct1: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + +fct0 Attached as 'fioa' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 0 Upper of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0b:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:000000001a090132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 47.7 degC, max 48.2 degC + Board temperature: 42 degC + Internal voltage: avg 1.025V, max 1.028V + Aux voltage: avg 2.464V, max 2.467V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 275,933,273,649,736 + Physical bytes read : 226,433,727,856,720 + RAM usage: + Current: 284,895,232 bytes + Peak : 284,895,232 bytes + +fct1 Attached as 'fiob' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 1 Lower of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0c:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:00000000194e0132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 42.8 degC, max 47.7 degC + Board temperature: 35 degC + Internal voltage: avg 1.008V, max 1.011V + Aux voltage: avg 2.461V, max 2.461V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 189,256,225,503,040 + Physical bytes read : 166,909,962,030,960 + RAM usage: + Current: 52,754,432 bytes + Peak : 52,754,432 bytes + +Adapter: ioDrive Duo + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40124 + ioDrive Duo HL, PN:00190000003, Mfr:003, Date:20100621 + External Power Override: ON + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 12.04V, min 12.00V, max 12.27V + PCIE Bus current: avg 1.49A, max 2.81A + PCIE Bus power: avg 15.07W, max 33.77W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + PCIE bus errors: correctable, unsupported request + PCIE negotiated link: 8 lanes at 5.00 Gbits/sec each, 4000 MBytes/sec total + Connected ioDimm modules: + fct2: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + fct3: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + +fct2 Attached as 'fioc' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 0 Upper of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0b:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:000000001a090132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 47.7 degC, max 48.2 degC + Board temperature: 42 degC + Internal voltage: avg 1.025V, max 1.028V + Aux voltage: avg 2.464V, max 2.467V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 275,933,273,649,736 + Physical bytes read : 226,433,727,856,720 + RAM usage: + Current: 284,895,232 bytes + Peak : 284,895,232 bytes + +fct3 Attached as 'fiod' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 1 Lower of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0c:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:00000000194e0132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 42.8 degC, max 47.7 degC + Board temperature: 35 degC + Internal voltage: avg 1.008V, max 1.011V + Aux voltage: avg 2.461V, max 2.461V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 189,256,225,503,040 + Physical bytes read : 166,909,962,030,960 + RAM usage: + Current: 52,754,432 bytes + Peak : 52,754,432 bytes diff --git a/t/pt-summary/samples/fio-status-001.txt b/t/pt-summary/samples/fio-status-001.txt new file mode 100644 index 00000000..891e3ab4 --- /dev/null +++ b/t/pt-summary/samples/fio-status-001.txt @@ -0,0 +1,71 @@ +Found 2 ioDrives in this system with 1 ioDrive Duo +Fusion-io driver version: 2.3.1 build 123 + +Adapter: ioDrive Duo + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 + ioDrive Duo HL, PN:00190000003, Mfr:003, Date:20100621 + External Power Override: ON + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 12.04V, min 12.00V, max 12.27V + PCIE Bus current: avg 1.49A, max 2.81A + PCIE Bus power: avg 15.07W, max 33.77W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + PCIE bus errors: correctable, unsupported request + PCIE negotiated link: 8 lanes at 5.00 Gbits/sec each, 4000 MBytes/sec total + Connected ioDimm modules: + fct0: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + fct1: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + +fct0 Attached as 'fioa' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 0 Upper of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0b:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:000000001a090132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 47.7 degC, max 48.2 degC + Board temperature: 42 degC + Internal voltage: avg 1.025V, max 1.028V + Aux voltage: avg 2.464V, max 2.467V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 275,933,273,649,736 + Physical bytes read : 226,433,727,856,720 + RAM usage: + Current: 284,895,232 bytes + Peak : 284,895,232 bytes + +fct1 Attached as 'fiob' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 1 Lower of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0c:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:00000000194e0132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 42.8 degC, max 47.7 degC + Board temperature: 35 degC + Internal voltage: avg 1.008V, max 1.011V + Aux voltage: avg 2.461V, max 2.461V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 189,256,225,503,040 + Physical bytes read : 166,909,962,030,960 + RAM usage: + Current: 52,754,432 bytes + Peak : 52,754,432 bytes diff --git a/t/pt-summary/samples/fio-status-002.txt b/t/pt-summary/samples/fio-status-002.txt new file mode 100644 index 00000000..e08e5462 --- /dev/null +++ b/t/pt-summary/samples/fio-status-002.txt @@ -0,0 +1,44 @@ +Found 1 ioDrive in this system +Fusion-io driver version: 2.3.1 build 123 + +Adapter: ioDrive + Fusion-io ioDrive 720GB, Product Number:FS1-003-721-CS SN:122210 + Pseudo Low-Profile ioDIMM Adapter, PN:00119200000, Mfr:000, Date:20101222 + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 11.90V, min 11.77V, max 11.93V + PCIE Bus current: avg 0.40A, max 1.60A + PCIE Bus power: avg 4.80W, max 18.80W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + Sufficient power available: Unknown + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Connected ioDimm module: + fct0: 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 + ioDrive 720GB, PN:00214102701, Mfr:004, Date:20101222 + Located in slot 0 Upper of ioDrive SN:122210 + Powerloss protection: protected + PCI:0a:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.5, rev 43674 + 720.00 GBytes block device size, 812 GBytes physical device size + Format: block, v300, 1,406,251,904 sectors, 512 bytes per sector + Error correction: 39 bits per 960 bytes + FPGA ID:0 Format UID:00000001dd620132b86600330bcab400 + PCIE slot available power: unavailable + Sufficient power available: Unknown + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 53.2 degC, max 62.5 degC + Board temperature: 38 degC + Internal voltage: avg 0.996V, max 0.999V + Aux voltage: avg 2.461V, max 2.464V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 395,271,132,925,136 + Physical bytes read : 407,978,357,472,336 + RAM usage: + Current: 244,996,096 bytes + Peak : 244,996,096 bytes diff --git a/t/pt-summary/samples/fio-status-003.txt b/t/pt-summary/samples/fio-status-003.txt new file mode 100644 index 00000000..495b1349 --- /dev/null +++ b/t/pt-summary/samples/fio-status-003.txt @@ -0,0 +1,140 @@ +Found 4 ioDrives in this system with 2 ioDrive Duo +Fusion-io driver version: 2.3.1 build 123 + +Adapter: ioDrive Duo + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40123 + ioDrive Duo HL, PN:00190000003, Mfr:003, Date:20100621 + External Power Override: ON + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 12.04V, min 12.00V, max 12.27V + PCIE Bus current: avg 1.49A, max 2.81A + PCIE Bus power: avg 15.07W, max 33.77W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + PCIE bus errors: correctable, unsupported request + PCIE negotiated link: 8 lanes at 5.00 Gbits/sec each, 4000 MBytes/sec total + Connected ioDimm modules: + fct0: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + fct1: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + +fct0 Attached as 'fioa' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 0 Upper of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0b:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:000000001a090132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 47.7 degC, max 48.2 degC + Board temperature: 42 degC + Internal voltage: avg 1.025V, max 1.028V + Aux voltage: avg 2.464V, max 2.467V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 275,933,273,649,736 + Physical bytes read : 226,433,727,856,720 + RAM usage: + Current: 284,895,232 bytes + Peak : 284,895,232 bytes + +fct1 Attached as 'fiob' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 1 Lower of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0c:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:00000000194e0132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 42.8 degC, max 47.7 degC + Board temperature: 35 degC + Internal voltage: avg 1.008V, max 1.011V + Aux voltage: avg 2.461V, max 2.461V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 189,256,225,503,040 + Physical bytes read : 166,909,962,030,960 + RAM usage: + Current: 52,754,432 bytes + Peak : 52,754,432 bytes + +Adapter: ioDrive Duo + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:40124 + ioDrive Duo HL, PN:00190000003, Mfr:003, Date:20100621 + External Power Override: ON + External Power: NOT connected + Powerloss protection: available + PCIE Bus voltage: avg 12.04V, min 12.00V, max 12.27V + PCIE Bus current: avg 1.49A, max 2.81A + PCIE Bus power: avg 15.07W, max 33.77W + PCIE Power limit threshold: 24.75W + PCIE slot available power: unavailable + PCIE bus errors: correctable, unsupported request + PCIE negotiated link: 8 lanes at 5.00 Gbits/sec each, 4000 MBytes/sec total + Connected ioDimm modules: + fct2: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + fct3: Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + +fct2 Attached as 'fioc' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06665 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 0 Upper of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0b:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:000000001a090132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 47.7 degC, max 48.2 degC + Board temperature: 42 degC + Internal voltage: avg 1.025V, max 1.028V + Aux voltage: avg 2.464V, max 2.467V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 275,933,273,649,736 + Physical bytes read : 226,433,727,856,720 + RAM usage: + Current: 284,895,232 bytes + Peak : 284,895,232 bytes + +fct3 Attached as 'fiod' (block device) + Fusion-io ioDrive Duo 640GB, Product Number:FS3-202-321-CS SN:06478 + ioDIMM3, PN:00119401203, Mfr:003, Date:20100621 + Located in slot 1 Lower of ioDrive Duo SN:40123 + Powerloss protection: protected + PCI:0c:00.0 + Vendor:1aed, Device:1005, Sub vendor:1aed, Sub device:1010 + Firmware v5.0.7, rev 101971 + 322.55 GBytes block device size, 396 GBytes physical device size + Format: block, v300, 78,748,288 sectors, 4096 bytes per sector + Error correction: 11 bits per 240 bytes + FPGA ID:0 Format UID:00000000194e0132b60d001c77abcc03 + PCIE slot available power: 25.00W + PCIE negotiated link: 4 lanes at 2.50 Gbits/sec each, 1000 MBytes/sec total + Internal temperature: 42.8 degC, max 47.7 degC + Board temperature: 35 degC + Internal voltage: avg 1.008V, max 1.011V + Aux voltage: avg 2.461V, max 2.461V + Media status: Healthy; Reserves: 100.00%, warn at 10.00% + Lifetime data volumes: + Physical bytes written: 189,256,225,503,040 + Physical bytes read : 166,909,962,030,960 + RAM usage: + Current: 52,754,432 bytes + Peak : 52,754,432 bytes