# Disk I/O errors

**URL:** <https://forum.storj.io/t/disk-i-o-errors/3663>\
**Category:** troubleshooting\
**Created:** [January 11, 2020, 10:42am UTC](https://forum.storj.io/t/disk-i-o-errors/3663 "2020-01-11T10:42:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadeInGermany](https://storj.bcdn.literatehosting.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://forum.storj.io/u/MadeInGermany)\
**Post date:** [January 11, 2020, 10:42am UTC](https://forum.storj.io/t/disk-i-o-errors/3663/1 "2020-01-11T10:42:41Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [January 11, 2020, 11:22am UTC](https://forum.storj.io/t/disk-i-o-errors/3663/2 "2020-01-11T11:22:01Z")

</div>

> [@MadeInGermany](#):
>
> {“error”: “disk I/O error”}

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

---

<div class="post-metadata">

**Author:** ![MadeInGermany](https://storj.bcdn.literatehosting.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://forum.storj.io/u/MadeInGermany)\
**Post date:** [January 11, 2020, 11:40am UTC](https://forum.storj.io/t/disk-i-o-errors/3663/3 "2020-01-11T11:40:17Z")

</div>

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

> **[Expansion Desktop Hard Drive | Seagate US](https://www.seagate.com/consumer/backup/expansion-hard-drive/)**
>
> Seagate Expansion External Hard Drive delivers unsurpassed capacity, speed and reliability &ndash ;Check out Expansion External Hard Drive specs, features, reviews and more!

  
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?

---

<div class="post-metadata">

**Author:** ![deathlessdd](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/deathlessdd/32/6067_2.png) [@deathlessdd](https://forum.storj.io/u/deathlessdd)\
**Post date:** [January 11, 2020, 1:22pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/4 "2020-01-11T13:22:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MadeInGermany](https://storj.bcdn.literatehosting.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://forum.storj.io/u/MadeInGermany)\
**Post date:** [January 11, 2020, 1:28pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/5 "2020-01-11T13:28:04Z")

</div>

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

 ![externe](https://storj-s3.bcdn.literatehosting.net/original/2X/e/e07da0f9d7d38b59cddd6d929dbfdeccaf2d5f90.png)

---

<div class="post-metadata">

**Author:** ![zeddan81](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeddan81/32/66_2.png) [@zeddan81](https://forum.storj.io/u/zeddan81)\
**Post date:** [January 11, 2020, 2:44pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/6 "2020-01-11T14:44:46Z")

</div>

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.

> <https://unix.stackexchange.com/questions/441668/debian-usb3-hdd-uas-i-o-errors>

---

<div class="post-metadata">

**Author:** ![MadeInGermany](https://storj.bcdn.literatehosting.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://forum.storj.io/u/MadeInGermany)\
**Post date:** [January 11, 2020, 2:57pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/7 "2020-01-11T14:57:09Z")

</div>

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

Big Thanks 🙂

---

<div class="post-metadata">

**Author:** ![zeddan81](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeddan81/32/66_2.png) [@zeddan81](https://forum.storj.io/u/zeddan81)\
**Post date:** [January 11, 2020, 3:19pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/8 "2020-01-11T15:19:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MadeInGermany](https://storj.bcdn.literatehosting.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://forum.storj.io/u/MadeInGermany)\
**Post date:** [January 11, 2020, 5:54pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/9 "2020-01-11T17:54:29Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![zeddan81](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeddan81/32/66_2.png) [@zeddan81](https://forum.storj.io/u/zeddan81)\
**Post date:** [January 11, 2020, 6:18pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/10 "2020-01-11T18:18:13Z")

</div>

Witch model of your raspberry pi are you use?

---

<div class="post-metadata">

**Author:** ![MadeInGermany](https://storj.bcdn.literatehosting.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://forum.storj.io/u/MadeInGermany)\
**Post date:** [January 11, 2020, 7:12pm UTC](https://forum.storj.io/t/disk-i-o-errors/3663/11 "2020-01-11T19:12:53Z")

</div>

Raspberry Pi 3B (Not 3B+)
