harvany

Members
  • Posts

    3
  • Joined

  • Last visited

harvany's Achievements

Noob

Noob (1/14)

0

Reputation

  1. Here's a quick script I use to return the true path of a file: #!/bin/bash for d in /mnt/disk[1-9]*; do if [[ -e "$d$(printf "$1" | sed 's/\/mnt\/user//')" ]]; then echo "$d$(printf "$1" | sed 's/\/mnt\/user//')" && break fi done Or as a function: shfs_locate() { for d in /mnt/disk[1-9]*; do if [[ -e "$d$(printf "$1" | sed 's/\/mnt\/user//')" ]]; then echo "$d$(printf "$1" | sed 's/\/mnt\/user//')" && break fi done } Run it like "shfs_locate.sh /mnt/user/myshare/myfile" or as a function: "shfs_locate /mnt/user/myshare/myfile" Interested if anyone knows how to implement this natively with shfs commands exposed by unRAID to prevent any disk spin-up.
  2. Ran scrub on all my disks. The only errors were on this same disk: 5 corruption errors in total (across 3 files). Also, extended SMART on the disk came back clean (reallocated, pending, uncorrectable all 0). The 3 files were all modified a year ago within hours of each other and inode numbers are just 10 apart or so. On the other hand, the single UDMA CRC error appeared 6 months ago, so even more likely to be unrelated per your comment. Do you think this was non-hardware BTRFS corruption during writing or afterwards? Or some physical bitrot that didn't show up on SMART? Both would be pretty rare, but can't think of other explanations, especially given this a single disk BTRFS, no ECC errors in BIOS log, no SMART extended test errors. [edit] actually physical bitrot should have resulted in a CRC error from the SMART test, so probably some random BTRFS software corruption
  3. I got a BTRFS checksum failure on one of my array disks (btrfs dev stats shows "corrupt 1"). It's a single disk BTRFS filesystem. This is on the same HDD that randomly had a single UDMA CRC error count a couple months ago. Is it possible the corruption occured due to that UDMA CRC but was only reported now? It's in an old infrequently accessed file which is being seeded through torrent, so maybe it was never accessed till now. I'm currently running a scrub. Does BTRFS only calc/report checksum errors on access? Trying to figure out if it's more than that random UDMA error (if so, I may need to replace the drive). SMART is healthy except for the UDMCA CRC error count = 1. What I can't explain, however, is that the array has finished scheduled parity checks since that UDMCA error without errors/correction I believe. [edit] btw I am running ECC RAM and no errors in bios log