Page 1 of 1
SOLVED: find missing files after lost HD
Posted: Wed Sep 25, 2013 6:35 pm
by Nighter
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
Re: find missing files after lost HD
Posted: Thu Sep 26, 2013 5:11 am
by bigfoot65
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.
Re: find missing files after lost HD
Posted: Sat Sep 28, 2013 3:25 am
by Nighter
Hm tha'ts not really working as it seems that greyhole have removed the broken links already

any other suggestions?
Re: find missing files after lost HD
Posted: Sat Sep 28, 2013 4:53 am
by Nighter
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 :/
Re: find missing files after lost HD
Posted: Sat Sep 28, 2013 7:35 am
by bigfoot65
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.
Re: find missing files after lost HD
Posted: Sat Sep 28, 2013 9:09 am
by Nighter
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 ..
Re: find missing files after lost HD
Posted: Sat Sep 28, 2013 10:10 am
by bigfoot65
Glad you have it resolved.