April 19, 20224 yr Hi, i have a little problem. I use borgmatic and have mounted an external USB Drive to the borgmatic container. So the mount point for example is "/mnt/disks/externaldrive" and i use the same path in the borgmatic container as "Read/Write - Slave" access mode. The problem is now after some time, be it days or 1-2 weeks. The complete server is getting something like stuck. Cant shutdown the server, open logs from webgui, cant update plugins, etc. The borgmatic backup job fails. I found out the problem is my external drive, i cant unmount it or do anything with it. The only solution is to disconnect the drive and everything is back to normal. My idea was now to check the disk if there is something wrong, it is a important backup disks so it would be important to keep the data alive. Could it be possible that i mount the drive wrong to the container? Anybody can tell me how i could start a repair/check of the filesystem? I am from the windows world and i am looking something like "chkdsk" Log from the drive when the errors started and disconnecting and connect it again. Apr 2 13:40:54 rserver emhttpd: spinning down /dev/sda Apr 2 15:00:32 rserver kernel: sd 1:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=0x00 cmd_age=30s Apr 2 15:00:32 rserver kernel: sd 1:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 d5 a5 9c 00 00 01 00 Apr 2 15:00:32 rserver kernel: blk_update_request: I/O error, dev sda, sector 112012512 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 Apr 6 10:28:41 rserver kernel: blk_update_request: I/O error, dev sda, sector 3907724336 op 0x1:(WRITE) flags 0x9800 phys_seg 1 prio class 0 Apr 6 10:28:41 rserver kernel: blk_update_request: I/O error, dev sda, sector 112012512 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Apr 6 10:28:41 rserver kernel: blk_update_request: I/O error, dev sda, sector 112012480 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 0 Apr 6 10:28:43 rserver emhttpd: spinning down /dev/sda Apr 6 12:54:21 rserver emhttpd: read SMART /dev/sda Apr 19 19:38:47 rserver kernel: sd 1:0:0:0: [sda] Spinning up disk... Apr 19 19:38:58 rserver kernel: sd 1:0:0:0: [sda] 976746240 4096-byte logical blocks: (4.00 TB/3.64 TiB) Apr 19 19:38:58 rserver kernel: sd 1:0:0:0: [sda] Write Protect is off Apr 19 19:38:58 rserver kernel: sd 1:0:0:0: [sda] Mode Sense: 53 00 10 08 Apr 19 19:38:58 rserver kernel: sd 1:0:0:0: [sda] No Caching mode page found Apr 19 19:38:58 rserver kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through Apr 19 19:38:58 rserver kernel: sda: sda1 Apr 19 19:38:58 rserver kernel: sd 1:0:0:0: [sda] Attached SCSI disk Edited April 19, 20224 yr by unr41dus3r
April 20, 20224 yr Author Has anybody an idea? Couldnt find much information how to check the filesystem on a luks encrypted partition.
April 20, 20224 yr First you need to decrypt the device, you can replace externaldrive with any name you want: cryptsetup luksOpen /dev/sda1 externaldrive After entering the correct passphrase you can then run fsck, for example for a xfs formatted drive it would be: xfs_repair -v /dev/mapper/externaldrive
April 20, 20224 yr Forgot to mention, with the info you posted I'm not seeing anything that points to issues with the filesystem, but that's how you run it.
April 20, 20224 yr Author Thanks for the information. Do you have an idea what the problem could be? Do i need to mount the drive in another way? In the timeframe the blk_update error occured nothing special happened on the server. Could it be that the external exclosure is broken or with the usb connection?
April 20, 20224 yr 8 minutes ago, unr41dus3r said: Do you have an idea what the problem could be? Not with the information posted, full diags might show more, also worth trying to connect the drive to a SATA port.
April 20, 20224 yr Author I checked the log and maybe i found already why this is happening, something in my USB 3.0 controller is resetting. kernel: program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO (i dont think its related but its the error above) kernel: usb 5-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd I checked the syslog, do you have any idea where i could look next for more information? I am not a friend to share my log and with it so much information, i would be really happy if you could help me with some information This is the USB Controller information: 04:00.0 USB controller [0c03]: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller [1912:0014] (rev 03) Subsystem: Hewlett-Packard Company uPD720201 USB 3.0 Host Controller [103c:1996] Kernel driver in use: xhci_hcd Edited April 20, 20224 yr by unr41dus3r
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.