Reconnect existing Greyhole storage pool

From Amahi Wiki
Revision as of 06:46, 2 August 2012 by Cpg (talk | contribs) (Created page with " In order to speed up the entire process, you should backup the following files somewhere safe: /etc/greyhole.conf and /etc/fstab This will allow you to rebuild your Greyhol...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In order to speed up the entire process, you should backup the following files somewhere safe:

 /etc/greyhole.conf

and

 /etc/fstab

This will allow you to rebuild your Greyhole Storage Pool much faster without needing to rebuild all links in your share before they can be used.

  • Before re-installing Fedora/Ubuntu, please disconnect all data drives. This will prevent you from potentially destroying any data during the re-installation process.
  • Install Amahi using our installation guide.
  • Connect your data drives back to your server.
  • Use the contents of your previous /etc/fstab to mount your data drives in their old paths.

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. This can be done by copying and pasting all of the mounts for your Greyhole Storage Pool into the /etc/fstab of your new Amahi installation.

Warning: Before you continue, you should check the ownership of the files and folders in /var/hda/files to ensure that it belongs to

 <user>:<group>

and not under 500:users. This can be resolved by running the following commands as root:

chown -R 1000:users /var/hda/files chmod -R g+w /var/hda/files

  • Enable "Advanced Settings" with the Amahi Dashboard: Setup->Settings to allow access to Setup > Shares > Storage 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 within the "gh" folder found at the root of your data drives.
  • Run Greyhole's fsck command to rebuild your shares.