{Debian} 使用 seafile 上传大文件时卸载外部磁盘

{Debian} 使用 seafile 上传大文件时卸载外部磁盘

因此,我最近购买了一块小型开发板 (radxa),与备用外部驱动器一起使用,以便创建 dropbox 克隆。起初我使用 Owncloud,但由于我的系统限制(32 位),php 无法处理超过 2gb 的文件,因此我切换到 seafile,因为我有很多超过 2gb 的文件。上传较小的文件(<1gb)一切顺利。尝试上传超过 1.5 gb 的文件时,情况发生了变化。

我的外置硬盘是普通的 1Tb 希捷硬盘,配有电源适配器,格式化为 EXT4。它设置为在启动时自动挂载(/dev/sda1 到 /media/ExtDrive),一切运行正常。

上传大文件时,我收到来自 seafile 的错误,提示无法读取数据位置(驱动器)。然后我使用 fdisk -l 检查它是否已安装,但似乎没有。我可以进入驱动器的文件夹,但出现权限错误,更改权限时出现文件系统只读错误。

重新启动时,PC 似乎崩溃了(无法通过 SSH 连接),需要断开 PC 和外部驱动器的电源线,然后一切似乎都正常,直到我重试上传大文件,然后同样的事情发生。

可能是我的外部驱动器工作不正常或者是我尚未配置的设置?

多谢你们 !

以下是 dmesg 的最后几行:

[15296.905650] Buffer I/O error on device sda1, logical block 66827920
[15296.905670] Buffer I/O error on device sda1, logical block 66827921
[15296.905690] Buffer I/O error on device sda1, logical block 66827922
[15296.905716] Buffer I/O error on device sda1, logical block 66827923
[15296.905737] Buffer I/O error on device sda1, logical block 66827924
[15296.905760] Buffer I/O error on device sda1, logical block 66827925
[15296.905781] Buffer I/O error on device sda1, logical block 66827926
[15296.905799] Buffer I/O error on device sda1, logical block 66827927
[15296.905815] Buffer I/O error on device sda1, logical block 66827928
[15296.905832] Buffer I/O error on device sda1, logical block 66827929
[15296.905849] Buffer I/O error on device sda1, logical block 66827930
[15296.905868] Buffer I/O error on device sda1, logical block 66827931
[15296.905885] Buffer I/O error on device sda1, logical block 66827932
[15296.905904] EXT4-fs warning (device sda1): ext4_end_bio:258: I/O error writing to inode     16258903 (offset 1228800 size 126976 starting block 66827940)
[15296.905940] sd 0:0:0:0: rejecting I/O to offline device
[15296.905996] sd 0:0:0:0: rejecting I/O to offline device
[15296.906052] sd 0:0:0:0: rejecting I/O to offline device
[15296.906083] sd 0:0:0:0: rejecting I/O to offline device
[15296.916336] sd 0:0:0:0: rejecting I/O to offline device
[15296.926333] sd 0:0:0:0: rejecting I/O to offline device
[15296.926358] Buffer I/O error on device sda1, logical block 66827933
[15296.926400] Buffer I/O error on device sda1, logical block 66827934
[15296.926425] Buffer I/O error on device sda1, logical block 66827935
[15296.926456] Buffer I/O error on device sda1, logical block 66827936
[15296.926486] Buffer I/O error on device sda1, logical block 66827937
[15296.926517] Buffer I/O error on device sda1, logical block 66827938
[15296.926544] Buffer I/O error on device sda1, logical block 66827939
[15296.926580] Buffer I/O error on device sda1, logical block 66827940
[15296.926605] Buffer I/O error on device sda1, logical block 66827941
[15296.926635] Buffer I/O error on device sda1, logical block 66827942
[15296.926668] Buffer I/O error on device sda1, logical block 66827943
[15296.926694] Buffer I/O error on device sda1, logical block 66827944
[15296.926723] EXT4-fs warning (device sda1): ext4_end_bio:258: I/O error writing to inode  16258903 (offset 1351680 size 49152 starting block 66827952)
[15296.926795] JBD2: Detected IO errors while flushing file data on sda1-8
[15296.926822] sd 0:0:0:0: rejecting I/O to offline device
[15296.926947] sd 0:0:0:0: rejecting I/O to offline device
[15296.927041] sd 0:0:0:0: rejecting I/O to offline device
[15296.927655] Aborting journal on device sda1-8.
[15296.927727] sd 0:0:0:0: rejecting I/O to offline device
[15296.927790] JBD2: I/O error detected when updating journal superblock for sda1-8.
[15296.929017] sd 0:0:0:0: rejecting I/O to offline device
[15296.929056] EXT4-fs error (device sda1): ext4_journal_start_sb:296: Detected aborted journal
[15296.929088] EXT4-fs (sda1): Remounting filesystem read-only
[15296.929105] EXT4-fs (sda1): previous I/O error to superblock detected
[15296.929138] sd 0:0:0:0: rejecting I/O to offline device
[15296.929167] EXT4-fs (sda1): ext4_da_writepages: jbd2_start: 515 pages, ino 16258904; err -30
[15296.936264] sd 0:0:0:0: rejecting I/O to offline device
[15296.936342] sd 0:0:0:0: rejecting I/O to offline device
[15296.936381] sd 0:0:0:0: rejecting I/O to offline device
[15296.936411] sd 0:0:0:0: rejecting I/O to offline device
[15296.936442] sd 0:0:0:0: rejecting I/O to offline device
[15296.936477] sd 0:0:0:0: rejecting I/O to offline device
[15298.516344] rk30_i2c rk30_i2c.2: Addr[0x50] wait event timeout, state: 0, is_busy: 1, error: 0, complete_what: 0x2, ipd: 0x1b
[15298.536301] rk30_i2c rk30_i2c.1: Addr[0x5a] wait event timeout, state: 0, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[15298.556330] rk30_i2c rk30_i2c.1: I2C_CON: start bit is set
[15298.776342] rk30_i2c rk30_i2c.1: Addr[0x5a] wait event timeout, state: 0, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[15298.796291] rk30_i2c rk30_i2c.1: I2C_CON: start bit is set
[15299.016313] rk30_i2c rk30_i2c.1: Addr[0x5a] wait event timeout, state: 0, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[15299.036311] rk30_i2c rk30_i2c.1: I2C_CON: start bit is set
[15299.256302] rk30_i2c rk30_i2c.2: Addr[0x50] wait event timeout, state: 0, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[15299.276327] rk30_i2c rk30_i2c.2: I2C_CON: start bit is set
[15309.180104] usb 2-1.4.4: USB disconnect, device number 15
[15310.697177] usb 2-1.4.4: new low speed USB device number 16 using usb20_host
[15310.802377] usb 2-1.4.4: New USB device found, idVendor=093a, idProduct=2510
[15310.808255] usb 2-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[15310.808388] usb 2-1.4.4: Product: USB Optical Mouse
[15310.814035] usb 2-1.4.4: Manufacturer: PixArt
[15310.827271] input: PixArt USB Optical Mouse as /devices/platform/usb20_host/usb2/2-1/2-1.4/2-1.4.4/2-1.4.4:1.0/input/input251
[15310.832038] generic-usb 0003:093A:2510.00FC: input: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-usb20_host-1.4.4/input0
[15370.875962] usb 2-1.4.4: USB disconnect, device number 16
[15372.389136] usb 2-1.4.4: new low speed USB device number 17 using usb20_host
[15372.493410] usb 2-1.4.4: New USB device found, idVendor=093a, idProduct=2510
[15372.495338] usb 2-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[15372.495403] usb 2-1.4.4: Product: USB Optical Mouse
[15372.497344] usb 2-1.4.4: Manufacturer: PixArt
[15372.509754] input: PixArt USB Optical Mouse as /devices/platform/usb20_host/usb2/2-1/2-1.4/2-1.4.4/2-1.4.4:1.0/input/input252
[15372.512293] generic-usb 0003:093A:2510.00FD: input: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-usb20_host-1.4.4/input0
[15386.650305] sd 0:0:0:0: rejecting I/O to offline device
[15386.652343] sd 0:0:0:0: rejecting I/O to offline device

答案1

我可以通过拔下鼠标并将外部驱动器插入 USB 集线器来修复它。我不明白它为什么能工作,但至少它能工作!

相关内容