Changes

From Amahi Wiki
Jump to: navigation, search
Sometimes, greyhole will have too many tasks queued, and will lock up, leaving you with a full landing zone and an fsck queue that just isn't processing. Always leave your server overnight (or longer, depending on the size of your landing zone (overnight should be sufficient for most) to ensure that its not just taking a while to process, but if its really, definitely stuck, you may want to follow these instructions to clear the queue.
Stop the greyhole daemon<br /><u>Fedora 19</u>{{Code|systemctl stop amahi-greyhole.service}}<u>Ubuntu</u>{{Code|sudo service greyhole stop}}
Connect to the MYSQL engine
{{Code|mysql -u greyhole -pgreyhole}}
Exit the MYSQL engine
{{Code|exit;}}
Restart the greyhole daemon<br /><u>Fedora 19</u>{{Code|systemctl start amahi-greyhole.service}}<u>Ubuntu</u>{{Code|sudo service greyhole start}}
Schedule an fsck to clear out the files currently in the landing zone
{{Code|sudo greyhole --fsck}}
===Queue Still Stuck===
Blow away the contents of your landing zone shares. It is '''very''' important you don't touch the /drives folder within /var/hda/files if you have a default setup.
{{Code|sudo rm -rf /var/hda/files/shareName/*}}
Now, clean up the horrible mess you'll probably have in each drive in /var/hda/files/drives - I had old shares and other assorted crap that was slowing down each fsck. Your /var/hda/files/drives/driveX/gh folder (replace X with whatever drive number you have) should ''only'' have references for your current shares. Use the code below to remove any folders that contain old shares.
{{Code|sudo rm -rf /var/hda/files/drives/drive/gh/folderName}}
Then clean up the even more horrible mess you probably have in your /var/hda/files/drives/driveX/gh/.gh_graveyard folder. ''Note, this is a hidden folder, it won't be listed if you just ls the /var/hda/files/drives/driveX/gh folder.'' Use the command below to remove each folder that isn't a current share.
{{Code|sudo rm -rf /var/hda/files/drives/drive/gh/.gh_graveyard/folderName}}
Now, restart the greyhole service using the Amahi Console. Remember to turn the watchdog back on.
Schedule another --fsck. It should start pretty much right away, and begin rebuilding the landing zone. Note that any shares you have won't be available again until the fsck completes.
{{Code|sudo greyhole sgreyhole --fsck}}
'''Optional''': You'll probably now want to check the landing zone backup you made, and recopy any actual data in the folder back in (don't just copy the whole folder back in, that would make everything you just did pointless).
'''Optional''': Cleaning all the crap out of your physical drives has probably freed up a bit of space (or quite a bit, depending how much crap you have). Now is probably a good time to balance out your storage again.
{{Code|sudo greyhole --balance}}
If you run into any trouble with the above, post it in the [http://forums.amahi.org/viewforum.php?f=39&sid=f676fa2944ab7d2ccfc8901ee731b6fe Amahi forums] '''and''' PM me (U=doczombie) the link to your forum post if you like (PM's without a link to a forum post are liable to be ignored).
12,424

edits