Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
Next, connect your data drives back to your server, then use the contents of your previous /etc/fstab to mount your data drives in their old paths (hint: copy and paste the lines that have mount points in /var/hda/files/drives/). When you're finished, mount the drives with:
{{Code| mount -a}}
Note'''NOTE: ''' This would allow you to remount the drives on the previous paths in your previous installation. For example, if you have one 1TB and one 2TB harddrive, and they were mounted as /var/hda/files/drives/drive1 and /var/hda/files/drives/drive2 repectively, it would be more efficient to remount your data drives on your new Amahi installation in the same locations. If you didn't backup your fstab, simply remount the drives like you were installing them for the first time:
{{Code| hda-diskmount}}
{{Warning|Warning: Before you continue, you should check the ownership of the files and folders in /var/hda/files to ensure that it belongs to
and not under 500:users. This can be resolved by running the following commands as root:
{{Code| chown -R 1000:users /var/hda/files chmod -R g+w /var/hda/files}} }}
Then this is what needs to be done:
* Enable "[[Advanced_Settings|Enable Advanced Settings" with ]] via the Amahi Dashboard: Setup » Settings.
* Go to Setup » Shares » Storage Pool and check your pooled drives to add them to the pool.
* Re-create your original shares in the Amahi Dashboard: Setup » Shares.
** You should make sure to select "Use Pool" and select the correct number of extra copies. If you don't remember all of your original shares, you can check your old /etc/greyhole.conf file (which includes the extra number of copies) or run the following:
{{Code| ls -1 /var/hda/files/drives/*/gh/ <nowiki>|</nowiki> grep -v : <nowiki>|</nowiki> sort -u}} 
* Run Greyhole's fsck command to rebuild your shares:
{{Code| greyhole --fsck}}
Until this completes, some of your files will be missing from your shares.
12,424

edits