SOLVED: find missing files after lost HD

Nighter
Posts: 10
Joined: Sat Mar 12, 2011 10:45 am

SOLVED: find missing files after lost HD

Postby Nighter » Wed Sep 25, 2013 6:35 pm

Hi all

today I've lost 2 HDs more or less simultanious from my Pool. Unfortunately the pool contained Backup files, as I just installed my main PC 2 days ago. Next issue comes from the fact that these "new" backup files are currently not in a backup of my USB HDD.
As I've lost 2 drives at the same time, I think I've also lost several Backup files, even if the configuration was set to 1 extra copy within the pool.
Is there a way I can find files, where no copies are found in the pool, so I might identify the impact of this HD crash.
Checking the log is more or less a horror, as the logmessages containing the Warning messages, that a file was not found, does not contain the filename/location.

Any suggestions how I can determine which files I've lost in the pool?

Best regards

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: find missing files after lost HD

Postby bigfoot65 » Thu Sep 26, 2013 5:11 am

Probably no simple way to figure out which ones are missing. If you look in each share folder, any file that uses Greyhole and the copy is missing should reflect a broken link. It usually is RED.

It's highly unusual for 2 drives to fail at the same time. I would recommend in future you have MAX copies versus one so the file replicates on all drives in the pool. That would ensure adequate coverage.

Also when removing drives, you need to tell Greyhole so it can try to move files/pointers around to cover any missing files. Obviously if the only copies are on the bad drives, it will not be able to do much with those.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Nighter
Posts: 10
Joined: Sat Mar 12, 2011 10:45 am

Re: find missing files after lost HD

Postby Nighter » Sat Sep 28, 2013 3:25 am

Hm tha'ts not really working as it seems that greyhole have removed the broken links already :( any other suggestions?

Nighter
Posts: 10
Joined: Sat Mar 12, 2011 10:45 am

Re: find missing files after lost HD

Postby Nighter » Sat Sep 28, 2013 4:53 am

maybe I found a way... is "Removing metadata files for ..." an indicator that these files are no longer present on the storage, but had existing links in the LZ?

Next question to solve my problem is how can I restore the files from my backup USB drives into the LZ directly?
I tried to use rsync -rvnul /media/USB_Backup5/Backup /var/hda/lz/Backup/ but it tries to copy all files, even if the link to the files is within the folder :/ which parameter I'm missing here? I just want to copy the missing files, as I can't check if the file had changed,as the timestamp is different, as GH recreated the links with a newer date :/

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: find missing files after lost HD

Postby bigfoot65 » Sat Sep 28, 2013 7:35 am

There are a couple things you need to do. First, tell Greyhole the drives are gone by doing the following as root user:

Code: Select all

greyhole --gone /var/hda/files/drives/drivename/gh
It will also remove the bad symlinks.

Secondly, the LZ is your share folders. Best way to copy files there is the way you moved them originally. Use a client file manager to copy them back.

Recommend you check out the guidance in the wiki on Greyhole as it might help as well.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Nighter
Posts: 10
Joined: Sat Mar 12, 2011 10:45 am

Re: find missing files after lost HD

Postby Nighter » Sat Sep 28, 2013 9:09 am

found a more comfortable way...

mounted the sambashares locally on the NAS and copied not existing files via rsync --ignore-existing -rtc from my USB to the local mounted samba share...

interestingly greyhole had removed the affected HDs already without any interaction from my side .. had just to remove thim in the dashboard ..

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: find missing files after lost HD

Postby bigfoot65 » Sat Sep 28, 2013 10:10 am

Glad you have it resolved.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 24 guests