>Synopsis: octeon: Unable to write large amounts of data to USB
disk
>Category: octeon USB disks
>Environment:
System : OpenBSD 6.5
Details : OpenBSD 6.5 (GENERIC.MP) #0: Mon Apr 15 07:34:41
UTC 2019
visa@octeon:/usr/src/sys/arch/octeon/compile/G
ENERIC.MP
Architecture: OpenBSD.octeon
Machine : octeon
>Description:
I have an Ubiquity Edgerouter 4, which I would like to use
as home router and NAS - using OpenBSD 6.5. System setup
went like a breeze, but now I am fighting with openrsync
and USB disks.
With a single large USB disk (Western Digital My Book 8TB)
this would mostly work. openrsync transfers would hang
after several hundred MB, but could be retstarted until
all data was successfully transferred. On some occasions
rsync would crash with SIGSEGV, presumably when ssh process
ran out of memory. Still trying to investigate this.
The real problems started, when I attached an external
RAID disk consisting of 2x 2TB disks in a Fantec QB-X2US3R
disk enclosure. After less than 100MB openrsync would stop
with the following message:
/usr/src/usr.bin/rsync/downloader.c:566: error:
Backup1/home/dev/dev_cc_devel/linux-
2.6.19/..tmp_kallsyms2.o.gS4TUkcuSR: renameat:
Backup1/home/dev/dev_cc_devel/linux-2.6.19/.tmp_kallsyms2.o:
Input/output error
/usr/src/usr.bin/rsync/receiver.c:398: error: rsync_downloader
/usr/src/usr.bin/rsync/client.c:93: error: rsync_receiver
dmesg would show lots and lots of iterations of the same
message:
usb_insert_transfer: xfer=0x9800000000f9bcf0 not free
The system is unable to interact with the harddisk after
this error occurs.
>How-To-Repeat:
Attach USB RAID disk to USB port of Ubiquity Edgerouter 4
running OpenBSD 6.5
disklabel, create BSD 4.2 filesystem across whole disk
start backup with the following command:
openrsync -a -v --no-specials --no-devices
[email protected]:/Archive/home/rudolf/ ./Archive/home/rudolf/
>Fix:
not known
dmesg:
OpenBSD 6.5 (GENERIC.MP) #0: Mon Apr 15 07:34:41 UTC 2019
visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC.MP
real mem = 1073741824 (1024MB)
avail mem = 1037959168 (989MB)
mainbus0 at root: board 20300 rev 0.15
cpu0 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU
rev 0.0
cpu0: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
cpu1 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU
rev 0.0
cpu1: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
cpu2 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU
rev 0.0
cpu2: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
cpu3 at mainbus0: CN70xx/CN71xx CPU rev 0.2 1000 MHz, CN70xx/CN71xx FPU
rev 0.0
cpu3: cache L1-I 78KB 39 way D 32KB 32 way, L2 1024KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
"bootbus" at simplebus0 not configured
octciu0 at simplebus0
octcib0 at simplebus0: max-bits 23
octcib1 at simplebus0: max-bits 12
octcib2 at simplebus0: max-bits 6
octcib3 at simplebus0: max-bits 15
octcib4 at simplebus0: max-bits 4
octcib5 at simplebus0: max-bits 11
octcib6 at simplebus0: max-bits 11
octgpio0 at simplebus0: 20 pins, xbit 16
cn30xxsmi0 at simplebus0
cn30xxsmi1 at simplebus0
"pip" at simplebus0 not configured
octsctl0 at simplebus0: disabled
octxctl0 at simplebus0: DWC3 rev 0x250a
xhci0 at octxctl0, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev
3.00/1.00 addr 1
octxctl1 at simplebus0: DWC3 rev 0x250a
xhci1 at octxctl1, xHCI 1.0
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "Generic xHCI root hub" rev
3.00/1.00 addr 1
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
com1 at simplebus0: ns16550a, 64 byte fifo
com1: probed fifo depth: 0 bytes
octmmc0 at simplebus0
sdmmc0 at octmmc0: 8-bit, mmc high-speed
"spi" at simplebus0 not configured
"ocla0" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
"dma-engine" at simplebus0 not configured
octrng0 at iobus0 base 0x1400000000000 irq 0
cn30xxgmx0 at iobus0 base 0x1180008000000
cnmac0 at cn30xxgmx0: SGMII, address 18:e8:29:4e:fb:0d
ukphy0 at cnmac0 phy 4: Generic IEEE 802.3u media interface, rev. 2:
OUI 0x0001c1, model 0x000c
cnmac1 at cn30xxgmx0: SGMII, address 18:e8:29:4e:fb:0e
ukphy1 at cnmac1 phy 5: Generic IEEE 802.3u media interface, rev. 2:
OUI 0x0001c1, model 0x000c
cnmac2 at cn30xxgmx0: SGMII, address 18:e8:29:4e:fb:0f
ukphy2 at cnmac2 phy 6: Generic IEEE 802.3u media interface, rev. 2:
OUI 0x0001c1, model 0x000c
cnmac3 at cn30xxgmx0: SGMII, address 18:e8:29:4e:fb:10
ukphy3 at cnmac3 phy 7: Generic IEEE 802.3u media interface, rev. 2:
OUI 0x0001c1, model 0x000c
cn30xxgmx1 at iobus0 base 0x1180010000000
/dev/ksyms: Symbol table not valid.
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Kingston, MMC4GB, 0000> SCSI2 0/direct
removable
sd0: 3728MB, 512 bytes/sector, 7634944 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (e36a5dad34aed32e.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
usbdevs:
Controller /dev/usb0:
addr 01: 0000:0000 Generic, xHCI root hub
super speed, self powered, config 1, rev 1.00
driver: uhub0
Controller /dev/usb1:
addr 01: 0000:0000 Generic, xHCI root hub
super speed, self powered, config 1, rev 1.00
driver: uhub1
pcidump:
acpidump: