Hello, I am setting up FreeNAS (based on FreeBSD 11.1-STABLE) and have a problem with disk writes. It seems to be FreeBSD related because everything looks normal if I use Ubuntu on the same hardware and can reproduce with a FreeBSD live CD:
Diskinfo looks fine but this might only be doing read test?
And smart info
Code:
root@freenas:~ # dd if=/dev/zero of=/dev/da4 bs=1M
^C5111+0 records in
5110+0 records out
5358223360 bytes transferred in 369.763618 secs (14490943 bytes/sec)
root@freenas:~ # dd if=/dev/da4 of=/dev/null bs=1M
^C125744+0 records in
125744+0 records out
131852140544 bytes transferred in 670.443633 secs (196664021 bytes/sec)
ubuntu@ubuntu:~$ sudo dd if=/dev/zero of=/dev/sde bs=1M count=10K
10240+0 records in
10240+0 records out
10737418240 bytes (11 GB, 10 GiB) copied, 63.386 s, 169 MB/s
ubuntu@ubuntu:~$ sudo dd if=/dev/sde of=/dev/null bs=1M count=10K
10240+0 records in
10240+0 records out
10737418240 bytes (11 GB, 10 GiB) copied, 55.7659 s, 193 MB/s
Diskinfo looks fine but this might only be doing read test?
Code:
root@freenas:~ # diskinfo -t /dev/da4
/dev/da4
512 # sectorsize
4000787030016 # mediasize in bytes (3.6T)
7814037168 # mediasize in sectors
4096 # stripesize
0 # stripeoffset
486401 # Cylinders according to firmware.
255 # Heads according to firmware.
63 # Sectors according to firmware.
HGST H7240B520SUN4.0T # Disk descr.
001502M0PSKL NHG0PSKL # Disk ident.
id1,enc@n50050cc10203efb6/type@0/slot@c # Physical path
Not_Zoned # Zone Mode
Seek times:
Full stroke: 250 iter in 4.790527 sec = 19.162 msec
Half stroke: 250 iter in 3.465465 sec = 13.862 msec
Quarter stroke: 500 iter in 4.048862 sec = 8.098 msec
Short forward: 400 iter in 0.588699 sec = 1.472 msec
Short backward: 400 iter in 1.981070 sec = 4.953 msec
Seq outer: 2048 iter in 0.121217 sec = 0.059 msec
Seq inner: 2048 iter in 0.421541 sec = 0.206 msec
Transfer rates:
outside: 102400 kbytes in 0.573899 sec = 178429 kbytes/sec
middle: 102400 kbytes in 0.591255 sec = 173191 kbytes/sec
inside: 102400 kbytes in 1.113098 sec = 91995 kbytes/sec
And smart info
Code:
root@freenas:~ # smartctl -x /dev/da4
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.1-STABLE amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: HGST
Product: H7240B520SUN4.0T
Revision: M54J
Compliance: SPC-4
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
Formatted with type 1 protection
LU is fully provisioned
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000cca2430146bc
Serial number: 001502M0PSKL NHG0PSKL
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Thu Sep 27 12:19:39 2018 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
Read Cache is: Enabled
Writeback Cache is: Disabled
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature: 36 C
Drive Trip Temperature: 85 C
Manufactured in week 02 of year 2015
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 8
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 13
Elements in grown defect list: 0
Vendor (Seagate) cache information
Blocks sent to initiator = 2059298825830400
Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 0 0 0 3128 13801.399 0
write: 0 0 0 0 11284 20562.991 0
verify: 0 0 0 0 1164 0.000 0
Non-medium error count: 0
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background long Completed - 99 - [- - -]
# 2 Background short Completed - 90 - [- - -]
# 3 Background short Completed - 88 - [- - -]
Long (extended) Self Test duration: 34237 seconds [570.6 minutes]
Background scan results log
Status: waiting until BMS interval timer expires
Accumulated power on time, hours:minutes 454:31 [27271 minutes]
Number of background scans performed: 3, scan progress: 0.00%
Number of background medium scans performed: 3
Protocol Specific port log page for SAS SSP
relative target port id = 1
generation code = 1
number of phys = 1
phy identifier = 0
attached device type: expander device
attached reason: power on
reason: unknown
negotiated logical link rate: phy enabled; 6 Gbps
attached initiator port: ssp=0 stp=0 smp=1
attached target port: ssp=0 stp=0 smp=1
SAS address = 0x5000cca2430146bd
attached SAS address = 0x50050cc10b158ebf
attached phy identifier = 14
Invalid DWORD count = 0
Running disparity error count = 0
Loss of DWORD synchronization = 0
Phy reset problem = 0
Phy event descriptors:
Invalid word count: 0
Running disparity error count: 0
Loss of dword synchronization count: 0
Phy reset problem count: 0
relative target port id = 2
generation code = 1
number of phys = 1
phy identifier = 1
attached device type: no device attached
attached reason: unknown
reason: power on
negotiated logical link rate: phy enabled; unknown
attached initiator port: ssp=0 stp=0 smp=0
attached target port: ssp=0 stp=0 smp=0
SAS address = 0x5000cca2430146be
attached SAS address = 0x0
attached phy identifier = 0
Invalid DWORD count = 0
Running disparity error count = 0
Loss of DWORD synchronization = 0
Phy reset problem = 0
Phy event descriptors:
Invalid word count: 0
Running disparity error count: 0
Loss of dword synchronization count: 0
Phy reset problem count: 0
My hardware:
Dell R620 as head unit:
Dual E5 2690 v2
128GB RAM
H710P
LSI 9207 8e
Dell network card with 2 x540 2 i350
1 s3500 80G as boot drive
NetAPP DS4243 as DAS:
24 3.5 Bay
swapped in HB-SBB2-E601-COMP IO module because of price on minisas to qsfp cable
12 4TB HGST NL SAS drives HUS726040AL5210
I am pretty naive with, let's say, all Unix systems, but this still seems strange. Any idea how to trouble shoot this?