My files seem to be gone

jonathankonrad
Posts: 136
Joined: Sat Jul 25, 2009 1:42 pm

My files seem to be gone

Postby jonathankonrad » Tue Apr 24, 2012 4:13 pm

I have not started looking, since I am slightly afraid to find they are actually gone. I have a number of shares on my HDA. My HDA has 5 drives. Four of those drives are tied up in a Greyhole pool and all my shares are using that pool.

I recently opened some folders to find all my files are gone. I then checked other folders and files are all gone there too. So basically over the network all my folder structure is present. All my shares mount. However, all my data is gone.

What is the first step in checking, and then rebuilding this (aside from rebooting the HDA, which I did). Do I go to the bare metal? Do I trigger a rebuild of the Greyhole pool?

Here is all that troubleshooting work (though I'm worried about posting all this private stuff, any security issues here with that?) http://dl.dropbox.com/u/1471889/errors/ ... -issue.txt

Thanks for any help,

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: My files seem to be gone

Postby cpg » Wed Apr 25, 2012 2:31 pm

Hi,

I think it would be best to check from the Linux side. It's unlikely they are gone out of the blue.

It's probably permissions ... hard to tell what you have going on, but if you mounted new drives, perhaps when Greyhole got to allocate the files they were moved and the drives have permissions that make them impossible to read.

We have seen this occasionally.

From the Linux command line:

Code: Select all

ls -l /var/hda/files/drives
(i see you mounted them there)

Then check the permissions. Directories should be 775 (or drwxrwxr-x).
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: My files seem to be gone

Postby cpg » Wed Apr 25, 2012 2:43 pm

this part

mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
ls: cannot access /var/hda/files/drives/drive4/gh: No such file or directory
ls: cannot access /var/hda/files/drives/drive3/gh: No such file or directory
Uploading (1.5KiB)...
http://fpaste.org/cGrP/

is the troublesome part. check and see what the permissions *all the way* from the beginning of the path to the end, in every single directory on the way.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

jonathankonrad
Posts: 136
Joined: Sat Jul 25, 2009 1:42 pm

[SOLVED] Re: My files seem to be gone

Postby jonathankonrad » Sun Apr 29, 2012 3:21 pm

Thank you so much or the quick response. I was away and could not attempt any fix. When I did it turned out to be a hardware issue. When I ssh'd into the box, I could not pull up any files beyond the directories either. I began to panic. So I shutdown the HDA, pulled a drive from the pool and placed it in another computer. All the files were there! So Yeah Greyhole for it's redundancy and ability to keep files in regular format.

Turns out there was something wrong with my external eSata drive cage. Not sure what, but taking it apart, then putting it together (nothing technical, just pulling all four drives and putting them back in), all my files are back.

All commands execute without error now even this one:

mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste

So, I'm good. It was not Greyhole, it was hardware. Thanks,

Jonathan

Who is online

Users browsing this forum: No registered users and 17 guests