Disk I/O errors

Hi,

i run a Raspberry until today whit a 1TB HDD. Its seems that all runs fine, but when i look into the log i get sometimes some errors.
Maybe someone can help me to fix that or can i ignore them?

Thirst:
2020-01-11T10:16:52.596Z ERROR piecestore delete failed {"error": "piecestore: pieces error: filestore error: unable to stat \"config/storage/blobs/ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa/ul/sm4ff3pcit74bicjz6ek26xvadzkfmud4znsfzisqfoxylwyaq.sj1\": stat config/storage/blobs/ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa/ul/sm4ff3pcit74bicjz6ek26xvadzkfmud4znsfzisqfoxylwyaq.sj1: input/output error", "errorVerbose": "piecestore: pieces error: filestore error: unable to stat \"config/storage/blobs/ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa/ul/sm4ff3pcit74bicjz6ek26xvadzkfmud4znsfzisqfoxylwyaq.sj1\": stat config/storage/blobs/ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa/ul/sm4ff3pcit74bicjz6ek26xvadzkfmud4znsfzisqfoxylwyaq.sj1: input/output error\n\tstorj.io/storj/storage/filestore.(*Dir).Stat:266\n\tstorj.io/storj/storage/filestore.(*blobStore).Stat:82\n\tstorj.io/storj/storagenode/pieces.(*BlobsUsageCache).pieceContentSize:205\n\tstorj.io/storj/storagenode/pieces.(*BlobsUsageCache).Delete:187\n\tstorj.io/storj/storagenode/pieces.(*Store).Delete:266\n\tstorj.io/storj/storagenode/piecestore.(*Endpoint).DeletePiece:234\n\tstorj.io/common/pb.DRPCPiecestoreDescription.Method.func4:1091\n\tstorj.io/drpc/drpcserver.(*Server).doHandle:175\n\tstorj.io/drpc/drpcserver.(*Server).HandleRPC:153\n\tstorj.io/drpc/drpcserver.(*Server).ServeOne:114\n\tstorj.io/drpc/drpcserver.(*Server).Serve.func2:147\n\tstorj.io/drpc/drpcctx.(*Tracker).track:51", "Satellite ID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S", "Piece ID": "ULSM4FF3PCIT74BICJZ6EK26XVADZKFMUD4ZNSFZISQFOXYLWYAQ"}

Second:
ERROR orders archiving orders {"error": "disk I/O error"}

And one more

    ` ERROR   bandwidth       Could not rollup bandwidth usage        {"error": "disk I/O error"}
    2020-01-11T10:10:33.633Z        ERROR   piecestore:cache        error persisting cache totals to the database:  {"error": "piece space used error: disk I/O error", "errorVerbose": "piece space used error: disk I/O error\n\tstorj.io/storj/storagenode/storagenodedb.(*pieceSpaceUsedDB).UpdatePieceTotal:172\n\tstorj.io/storj/storagenode/pieces.(*CacheService).PersistCacheTotals:87\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:73\n\tstorj.io/common/sync2.(*Cycle).Run:147\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:68\n\tstorj.io/storj/storagenode.(*Peer).Run.func6:462\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57"}`

But most i get the thirst one.

Would be nice if someone could help me.

Thanks :slight_smile:

Your HDD seems to have some trouble. How have you connected your HDD to your Pi?

I have a Segate Case but change the 4TB HDD whit a 1TB HDD from Segate and connect this via USB to my Raspberry


What in the Log happens:

2020-01-11T12:10:33.550Z        ERROR   bandwidth       Could not rollup bandwidth usage        {"error": "disk I/O error"}
2020-01-11T12:10:33.633Z        ERROR   piecestore:cache        error persisting cache totals to the database:  {"error": "piece space used error: disk I/O error", "errorVerbose": "piece space used error: disk I/O error\n\tstorj.io/storj/storagenode/storagenodedb.(*pieceSpaceUsedDB).UpdatePieceTotal:172\n\tstorj.io/storj/storagenode/pieces.(*CacheService).PersistCacheTotals:87\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:73\n\tstorj.io/common/sync2.(*Cycle).Run:147\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:68\n\tstorj.io/storj/storagenode.(*Peer).Run.func6:462\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57"}
2020-01-11T12:10:34.154Z        INFO    version running on version v0.29.3
2020-01-11T12:12:50.101Z        INFO    orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6      sending {"count": 11}
2020-01-11T12:12:50.102Z        INFO    orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs      sending {"count": 10}
2020-01-11T12:12:50.103Z        INFO    orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S      sending {"count": 17}
2020-01-11T12:12:50.103Z        INFO    orders.118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW       sending {"count": 12}
2020-01-11T12:12:50.423Z        INFO    orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs      finished
2020-01-11T12:12:50.575Z        INFO    orders.118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW       finished
2020-01-11T12:12:50.817Z        INFO    orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S      finished
2020-01-11T12:12:51.720Z        INFO    orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6      finished
2020-01-11T12:12:51.736Z        ERROR   orders  archiving orders        {"error": "disk I/O error"}

If i put my fingers on the HDD it seems that the HDD is in sleep mode, but if i look into the log it upload every few seconds something to the Satlelite. Is maybe this a problem?

Looks like your drive may be dying, was this a new or old drive you swapped with?

It was a used one, that my Girlfriend use before for games. Than i should switch this HDD fast. So, than i have a great reason for a upgrade to 4 or more TB.

i have checked the HDD whit Crystaldisk. Here the screen

Hi. I had same problems in Debian 10 with Samsung expansion desk
You need bypass USB controller (UAS). Using blacklist options. It couse hi iowait times.
I will update link about it.

1 Like

Thanks @zeddan81 now i have to check how i do this in raspbian.
If it works, i will give you my feedback :slight_smile:

Big Thanks :slight_smile:

This how to do it.

sudo lsusb

it will output like this:

root@server:/# lsusb
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 0bc2:331a Seagate RSS LLC
Bus 004 Device 002: ID 0bc2:331a Seagate RSS LLC
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

find the id of your usb storage devate RSS LLCice. i have 2 seagate expansion desktop drives

Bus 004 Device 002: ID 0bc2:331a Seagate RSS LLC

replace id in this command with yours

sudo echo "options usb-storage quirks=“0bc2:331a:u” >> /etc/modprobe.d/usb-storage-quirks.conf
sudo update-initramfs -u

then reboot system

This was solution for me.

It seems that this file not exist in raspbian:
/etc/modprobe.d/usb-storage-quirks.conf

And “sudo update-initramfs -u” gives me a “update-initramfs: command not found” back.

But i think my HDD use allready the USB_Driver?!

> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
>     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
>         |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
>         |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M

Witch model of your raspberry pi are you use?

Raspberry Pi 3B (Not 3B+)