Still no issues with the HDD after letting the machine run for several
days. I found a completely different SSD and tried installing to that and
got similar errors. It seems that this issue is only happening with SSDs.

Available disks are: sd1.
Which disk do you wish to initialize? (or 'done') [done] sd1
ahci0: NCQ errored slot 1 is idle (00000001 active)
ahci0: NCQ errored slot 7 is idle (00000100 active)
ahci0: NCQ errored slot 28 is idle (20000000 active)
ahci0: NCQ errored slot 29 is idle (40000000 active)
        Not Found
ahci0: NCQ errored slot 19 is idle (00100000 active)
ahci0: NCQ errored slot 25 is idle (04000000 active)
ahci0: NCQ errored slot 15 is idle (00010000 active)
ahci0: NCQ errored slot 17 is idle (00040000 active)
ahci0: NCQ errored slot 21 is idle (00400000 active)
Use (W)hole disk MBR, whole disk (G)PT or (E)dit? [whole] w
Setting OpenBSD MBR partition to whole sd1...ahci0: NCQ errored slot 23 is
idle (01000000 active)
done.
Label editor (enter '?' for help at any prompt)
> z
> p g
OpenBSD area: 64-468857025; size: 223.6G; free: 223.6G
#                size           offset  fstype [fsize bsize   cpg]
  c:           223.6G                0  unused
> a
partition: [a]
offset: [64]
size: [468856961] 1g
Rounding size to cylinder (16065 sectors): 2104451
FS type: [4.2BSD]
mount point: [none] /altroot
Rounding size to bsize (32 sectors): 2104448
> a
partition: [b]
offset: [2104512]
size: [466752513] 6g
Rounding size to cylinder (16065 sectors): 12578898
FS type: [swap] 4.2BSD
mount point: [none] /usr/local
Rounding size to bsize (32 sectors): 12578880
> a
partition: [d]
offset: [14683392]
size: [454173633] 10g
Rounding size to cylinder (16065 sectors): 20964843
FS type: [4.2BSD]
mount point: [none] /tmp
Rounding size to bsize (32 sectors): 20964832
> a
partition: [e]
offset: [35648224]
size: [433208801] 16g
Rounding size to cylinder (16065 sectors): 33543731
FS type: [4.2BSD]
mount point: [none] /home
Rounding size to bsize (32 sectors): 33543712
> a
partition: [f]
offset: [69191936]
size: [399665089]
FS type: [4.2BSD]
mount point: [none] /var
Rounding size to bsize (64 sectors): 399665088
> p g
OpenBSD area: 64-468857025; size: 223.6G; free: 0.0G
#                size           offset  fstype [fsize bsize   cpg]
  a:             1.0G               64  4.2BSD   2048 16384     1 # /altroot
  b:             6.0G          2104512  4.2BSD   2048 16384     1 #
/usr/local
  c:           223.6G                0  unused
  d:            10.0G         14683392  4.2BSD   2048 16384     1 # /tmp
  e:            16.0G         35648224  4.2BSD   2048 16384     1 # /home
  f:           190.6G         69191936  4.2BSD   4096 32768     1 # /var
> q
Write new label?: [y] y
/dev/rsd1a: 1027.6MB in 2104448 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
newfs: rdfs: read erroratascsi_disk_sync_done: error
 on block 64: Input/output error
ahci0: NCQ errored slot 1 is idle (00008000 active)
ahci0: NCQ errored slot 0 is idle (00010000 active)
ahci0: NCQ errored slot 0 is idle (00020000 active)
newfs: e05b7418e44cb2d5.e: No such file or directory
newfs: e05b7418e44cb2d5.d: No such file or directory
newfs: e05b7418e44cb2d5.b: No such file or directory
newfs: e05b7418e44cb2d5.f: No such file or directory
/dev/sd0a (f8c5562b70ea8f09.a) on /mnt type ffs (rw, asynchronous, local)
mount_ffs: e05b7418e44cb2d5.a on /mnt/altroot: No such file or directory

mount_ffs: e05b7418e44cb2d5.e on /mnt/home: No such file or directory

mount_ffs: e05b7418e44cb2d5.d on /mnt/tmp: No such file or directory

/dev/sd0d (f8c5562b70ea8f09.d) on /mnt/usr type ffs (rw, asynchronous,
local, nodev)
/dev/sd0e (f8c5562b70ea8f09.e) on /mnt/usr/X11R6 type ffs (rw,
asynchronous, local, nodev)
mount_ffs: e05b7418e44cb2d5.b on /mnt/usr/local: No such file or directory

/dev/sd0g (f8c5562b70ea8f09.g) on /mnt/usr/obj type ffs (rw, asynchronous,
local, nodev, nosuid)
/dev/sd0f (f8c5562b70ea8f09.f) on /mnt/usr/src type ffs (rw, asynchronous,
local, nodev, nosuid)
mount_ffs: e05b7418e44cb2d5.f on /mnt/var: No such file or directory


WARNING! The following filesystems were not properly mounted:
/mnt/altroot (e05b7418e44cb2d5.a)
/mnt/home (e05b7418e44cb2d5.e)
/mnt/tmp (e05b7418e44cb2d5.d)
/mnt/usr/local (e05b7418e44cb2d5.b)
/mnt/var (e05b7418e44cb2d5.f)

On Fri, May 19, 2017 at 4:31 PM, Sanka Coffie <[email protected]> wrote:

> Progress!
>
> I tried with a second SSD (same model and firmware) and got the following
> errors when writing the disklabel:
>
> > p g
> OpenBSD area: 64-488392065; size: 232.9G; free: 0.0G
> #                size           offset  fstype [fsize bsize   cpg]
>   a:             1.0G               64  4.2BSD   2048 16384     1 #
> /altroot
>   b:             6.0G          2104512  4.2BSD   2048 16384     1 #
> /usr/local
>   c:           232.9G                0  unused
>   d:            10.0G         14683392  4.2BSD   2048 16384     1 # /tmp
>   e:            16.0G         35648224  4.2BSD   2048 16384     1 # /home
>   f:           199.9G         69191936  4.2BSD   4096 32768     1 # /var
> > q
> Write new label?: [y] y
> /dev/rsd1a: 1027.6MB in 2104448 sectors of 512 bytes
> 6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd1e: 16378.8MB in 33543712 sectors of 512 bytes
> 81 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd1d: 10236.7MB in 20964832 sectors of 512 bytes
> 51 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd1b: 6142.0MB in 12578880 sectors of 512 bytes
> 31 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
> /dev/rsd1f: 204687.6MB in 419200128 sectors of 512 bytes
> 252 cylinder groups of 814.44MB, 26062 blocks, 52224 inodes each
> /dev/sd0a (719c57e87b3d3bc2.a) on /mnt type ffs (rw, asynchronous, local)
> /dev/sd1a (7a4553b45ede3f55.a) on /mnt/altroot type ffs (rw, asynchronous,
> local, nodev, nosuid)
> mount_ffs: 7a4553b45ede3f55.e on /mnt/home: Input/output error
>
> ahci0: NCQ errored slot 12 is idle (00800000 active)
> mount_ffs: 7a4553b45ede3f55.d on /mnt/tmp: Input/output error
>
> /dev/sd0d (719c57e87b3d3bc2.d) on /mnt/usr type ffs (rw, asynchronous,
> local, nodev)
> /dev/sd0e (719c57e87b3d3bc2.e) on /mnt/usr/X11R6 type ffs (rw,
> asynchronous, local, nodev)
> /dev/sd1b (7a4553b45ede3f55.b) on /mnt/usr/local type ffs (rw,
> asynchronous, local, nodev)
> /dev/sd0g (719c57e87b3d3bc2.g) on /mnt/usr/obj type ffs (rw, asynchronous,
> local, nodev, nosuid)
> /dev/sd0f (719c57e87b3d3bc2.f) on /mnt/usr/src type ffs (rw, asynchronous,
> local, nodev, nosuid)
> /dev/sd1f (7a4553b45ede3f55.f) on /mnt/var type ffs (rw, asynchronous,
> local, nodev, nosuid)
>
> WARNING! The following filesystems were not properly mounted:
> /mnt/home (7a4553b45ede3f55.e)
> /mnt/tmp (7a4553b45ede3f55.d)
> Continue anyway? [no]
>
>
> Then I tried again with a known good 2.5" HDD of the same size and
> everything went smoothly. Same SATA and power cables, same SATA port
> (there's only one). From the dmesg output it looks like the same driver is
> still being used with this HDD, so maybe there's an issue with the firmware
> used by those SSDs? I rebooted several times and ran fsck with no issues.
>
> The rest is dmesg output after a reboot with the working HDD:
>
> $ dmesg
> OpenBSD 6.1-current (GENERIC.MP) #69: Fri May 19 09:08:02 MDT 2017
>     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4261076992 (4063MB)
> avail mem = 4126146560 <(412)%20614-6560> (3935MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
> bios0: vendor coreboot version "88a4f96" date 03/11/2016
> bios0: PC Engines apu2
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S2 S3 S4 S5
> acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
> acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4)
> PBR8(S4) UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD GX-412TC SOC, 998.46 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,
> MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,
> F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,
> EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu0: TSC frequency 998458450 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD GX-412TC SOC, 998.16 MHz
> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,
> MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,
> F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,
> EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 2 (application processor)
> cpu2: AMD GX-412TC SOC, 998.13 MHz
> cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,
> MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,
> F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,
> EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: AMD GX-412TC SOC, 998.14 MHz
> cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,
> MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,
> F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,
> EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
> ioapic1 at mainbus0: apid 5 pa 0xfec20000, version 21, 32 pins
> acpihpet0 at acpi0: 14318180 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PBR4)
> acpiprt2 at acpi0: bus 1 (PBR5)
> acpiprt3 at acpi0: bus 2 (PBR6)
> acpiprt4 at acpi0: bus 3 (PBR7)
> acpiprt5 at acpi0: bus -1 (PBR8)
> acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
> acpibtn0 at acpi0: PWRB
> "PNP0501" at acpi0 not configured
> cpu0: 998 MHz: speeds: 1000 800 600 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00
> pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00
> ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address
> 00:0d:b9:42:75:94
> ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> em1 at pci2 dev 0 function 0 "Intel I210" rev 0x03: msi, address
> 00:0d:b9:42:75:95
> ppb2 at pci0 dev 2 function 4 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci3 at ppb2 bus 3
> em2 at pci3 dev 0 function 0 "Intel I210" rev 0x03: msi, address
> 00:0d:b9:42:75:96
> "AMD CCP" rev 0x00 at pci0 dev 8 function 0 not configured
> xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x11: msi
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev
> 3.00/1.00 addr 1
> ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: apic 4 int
> 19, AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> ahci0: port 1: 1.5Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, SATA SSD, S9FM> SCSI3 0/direct fixed
> t10.ATA_SATA_SSD_8EC60766164804905620
> sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin
> sd1 at scsibus1 targ 1 lun 0: <ATA, FUJITSU MHY2250B, 0081> SCSI3 0/direct
> fixed naa.500000e041e52d1a
> sd1: 238475MB, 512 bytes/sector, 488397168 sectors
> ehci0 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 4 int 18
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMBus
> disabled
> pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
> sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16
> sdhc0: SDHC 2.0, 63 MHz base clock
> sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
> pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
> pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
> pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
> pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
> pchb6 at pci0 dev 24 function 5 "AMD AMD64 16h Misc Cfg" rev 0x00
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x52
> uhub2 at uhub1 port 1 configuration 1 interface 0 "Advanced Micro Devices
> product 0x7900" rev 2.00/0.18 addr 2
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (f8c5562b70ea8f09.a) swap on sd0b dump on sd0b
>
> On Thu, May 18, 2017 at 11:22 AM, Sanka Coffie <[email protected]>
> wrote:
>
>> Finally had time to get back to this. I received the SATA cable from
>> PCEngines but it doesn't actually work - the SSD doesn't show up in the
>> device list.
>>
>> I started with current dated May 17, 2017 and the disklabel is
>> successfully written but when installing the sets I get the following
>> errors:
>>
>> Installing base61.tgz    97% |************************* | 53248 KB
>>  00:00 ETAa                   hci0: NCQ errored slot 6 is idle (00080000
>> active)
>> tar: Could not create: ./var/mail: Input/output error
>> ahci0: NCQ errored slot 6 is idle (00400000 active)
>> ahci0: log page read failed, slot 31 was still active.
>> Installing base61.tgz    99% |************************* | 54144 KB  -
>> stalled -a                   hci0: stopping the port, softreset slot 31 was
>> still active.
>> ahci0: failed to reset port during timeout handling, disabling it
>> uid 0 on /mnt/var: out of inodes
>>
>> /mnt/var: create/symlink failed, no inodes free
>> tar: Could not create: ./var/syspatch: No space left on device
>> tar: Could not create: ./var/tmp: No space left on device
>>
>> I'm installing through pxeboot and am not sure if that would cause any of
>> these space issues (this APU2 has 4GB of RAM).
>>
>> On Wed, Mar 1, 2017 at 12:14 PM, Sanka Coffie <[email protected]>
>> wrote:
>>
>>> Oh I forgot. There is only one SATA port on this device so there isn't
>>> another I can swap between.
>>>
>>> https://www.pcengines.ch/apu2c4.htm
>>>
>>>
>>> On Wed, Mar 1, 2017 at 12:11 PM, Sanka Coffie <[email protected]>
>>> wrote:
>>>
>>>> I've done that but will certainly try again. Also, I "tested" the
>>>> drive, but it's an SSD and the only way I've found to test it is to check
>>>> the S.M.A.R.T. information. There doesn't seem to be an actual block test
>>>> like there is for an HDD, which makes sense I suppose.
>>>>
>>>> I just ordered the PCEngines version of the SATA+Power cable and will
>>>> give that a shot when it comes in. Maybe the SATA or power cable I have are
>>>> bad.
>>>>
>>>> On Mon, Feb 27, 2017 at 1:22 AM, Jonathan Matthew <[email protected]>
>>>> wrote:
>>>>
>>>>> On 02/23/2017 11:23 AM, Sanka Coffie wrote:
>>>>>
>>>>>> After a few rounds of rebooting and running fsck/fsck_ffs I finally
>>>>>> got
>>>>>> another clean boot, which then resulted in the kernel panic below.
>>>>>> Both
>>>>>> /var and /tmp are on the secondary SSD which has been causing issues.
>>>>>> I'm going to test that drive a third time just to be sure.
>>>>>>
>>>>>
>>>>> After look at the ATA command set spec, I think that this:
>>>>>
>>>>> > ahci0: ncq error: 6 0 41 84
>>>>> > ahci0: NCQ errored slot 6 is idle (00020000 active)
>>>>>
>>>>> indicates a problem between the device and the host.  84 there means
>>>>> 'interface crc error' and 'device aborted', which means the device
>>>>> couldn't transfer data to the host.  That might explain why it can't
>>>>> identify the command that caused the error too.
>>>>>
>>>>> Assuming you haven't already, can you try removing the second SSD and
>>>>> making sure it's firmly inserted into the slot and screwed down?  If that
>>>>> doesn't help, can you try swapping the SSDs between slots?  You might have
>>>>> to install the boot blocks on the secondary SSD to be able to boot.  See
>>>>> the installboot man page for details.
>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to