Changes

From Amahi Wiki
Jump to: navigation, search
Several of these steps can take a LONG time depending on how many files are on the drives you have remounted. <br />
I recommend keeping an eye on greyhole to ensure it is doing what it should.
{{code| tail -f /var/log/greyhole.log​}}
Press Ctrl+Z to pause this task. Note the number in brackets or use the "jobs" command to see where it is queued. <br />
Bring it to the foreground to check it at anytime with:
{{code| fg 1}}
1 being the first task in the background.
====Restart Greyhole====
From the HDAdashboard: <br />* Setup > Settings > Servers > Greyhole <br />* Ensure Greyhole is started and the watchdog option is checked.
====Add Drives to Greyhole====
From the HDAdashboard:<br / >* Shares > Storage Pool > Check the drives (should be listed under the new mount points)<br / >* If your old mount points are still checked, uncheck them.
====Remove invalid symlinks====
{{code|sudo greyhole --fix-symlinks}}
At this point all of your files that were located on a drive whose mount point was changed will disappear from your shares. <br />
This is because the symlinks were no longer valid and greyhole is still looking for them in their old folders.<br />
Wait until it has completed.
====Delete Orphaned Metadata====
{{code|sudo greyhole --fsck --delete-orphaned-metadata}}
This will remove any metadata still stored for those missing files. It is necessary for the next step to work.
====Find the Orphaned Files====
{{code|sudo greyhole --fsck --find-orphaned-files --dir<nowiki>=</nowiki>/var/hda/files/drives/bay2/gh}}
This will run an fsck on the drive mounted in /var/hda/files/drives/bay2 and look for files without metadata. <br />
Repeat this for each drive you have changed the mount points for.<br />
At this point, your files should begin reappearing in your shares. If not, try running another fsck:
{{code|sudo greyhole --fix-symlinkssudo greyhole --fsck}}
12,424

edits