You are not logged in.

#1 2013-07-17 10:35:02

farmerdave
Member
Registered: 2011-11-23
Posts: 114

Files on XFS - cannot access, No such File or directory

I've got a HTPC with 3 partitions formatted to XFS. The pc has MythTV as the backend and XBMC as the frontend, and really doesn't get used for much else. Lately I have been seeing faults with the XFS partitions, which are spread over two different HDDs. Everything else is ext4.

$ sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  55.9G  0 disk 
├─sda1   8:1    0  94.1M  0 part /boot/grub
├─sda2   8:2    0   1.9G  0 part 
├─sda3   8:3    0     1K  0 part 
├─sda5   8:5    0    18G  0 part /
├─sda6   8:6    0    18G  0 part /mnt/ssdRootClone
└─sda7   8:7    0  17.9G  0 part /mnt/archRootCinnamon
sdc      8:32   0   1.4T  0 disk 
├─sdc1   8:33   0     1K  0 part 
├─sdc5   8:37   0 537.1G  0 part /home/david/Movies    <----XFS
├─sdc6   8:38   0 634.8G  0 part /home/david/TVseries   <---XFS
└─sdc7   8:39   0 225.4G  0 part /home/david/Music
sdb      8:16   0 698.7G  0 disk 
├─sdb1   8:17   0     1K  0 part 
├─sdb5   8:21   0    50G  0 part /mnt/archRootCinnamon/home
├─sdb6   8:22   0 598.6G  0 part /MythTV   <---XFS
├─sdb7   8:23   0  30.2G  0 part /home
└─sdb8   8:24   0  19.8G  0 part /home/david/Photos
sr0     11:0    1  1024M  0 rom  

The kind of problem is (I've removed most of the output, but should be obvious what the problem is)

$ ls -la /MythTV/Recordings
ls: cannot access /MythTV/Recordings/Gandhi_02.02.2013.mkv: No such file or directory
total 333404488
drwxrwxr-x  2 mythtv users        28672 Jul 17 18:22 .
drwxrwxr-x 14 mythtv users         4096 Apr  7 13:50 ..
-rw-r--r--  1 mythtv users   2087234697 Aug  9  2012 FrostNixon_08.07.2012.mkv
-rw-rw-rw-  1 mythtv users        64744 Jan 16 14:39 FrostNixon_08.07.2012.mkv.png
??????????  ? ?      ?                ?            ? Gandhi_02.02.2013.mkv
-rw-rw-rw-  1 mythtv users        51156 Feb  3 18:22 Gandhi_02.02.2013.mkv.png

I have unmounted these partitions, and ran

sudo xfs_repair -v /dev/sdb6

which seems to do the job, but it reappears again. I'm not sure how to reproduce the error as its happening on both disks. First time I noticed it was while using Thunar bulk rename tool. It refused to rename some files from lower case to uppercase first letter, then I saw the "???????". It may also happen after I delete a recording through XBMC, but not certain.

So I installed smartmontools and did the short + conveyance test,

$ sudo smartctl -H /dev/sdb
[sudo] password for david: 
smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.0.85-1-lts-custom] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

and

$ sudo smartctl -l selftest /dev/sdb
smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.0.85-1-lts-custom] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 0
Warning: ATA Specification requires self-test log structure revision number = 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     11770         -
# 2  Conveyance offline  Completed without error       00%     11770         -

Looking for help here!

Offline

#2 2013-07-17 13:41:08

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Files on XFS - cannot access, No such File or directory

If you suspect drive issues, run the long test. The short and conveyance tests are hit and miss. Also check for SMART errors (smartctl -l error <dev>). A drive can pass tests and be in a 'PASSED' state for 'SMART overall-health' even if errors occur regularly.

Also, I seem to recall something like this happening on an XFS lv months ago, but I'm not sure. More recently, the drive containing that lv would occasionally fail to be seen on the bus. I swapped the cable and moved it to another port and haven't had any problems since. Assuming I'm not hallucinating about the former, the two issues may have been related.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2013-07-18 09:03:11

farmerdave
Member
Registered: 2011-11-23
Posts: 114

Re: Files on XFS - cannot access, No such File or directory

Thanks, running the long test now.

I spoke with a work colleague, and mentioned I had compiled my own linux-lts kernel recently. All my hardware is several years old, but could this be contributing to the trouble?

Offline

Board footer

Powered by FluxBB