Difference between revisions of "Reconnect existing Greyhole storage pool"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{NeedsUpdate}}
 
{{NeedsUpdate}}
 +
  
 
'''NOTE:'''  This guidance is specific to Ubuntu, so for Amahi 7 some dashboard steps will need to be done manually via command line.
 
'''NOTE:'''  This guidance is specific to Ubuntu, so for Amahi 7 some dashboard steps will need to be done manually via command line.
Line 17: Line 18:
  
  
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:
+
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 (as '''roo'''t user or precede with '''sudo''' for <u>ALL</u> commands) with:
  
 
  mount -a
 
  mount -a
Line 37: Line 38:
  
 
* Enable [[Advanced_Settings|Enable Advanced Settings]] via the Amahi Dashboard
 
* Enable [[Advanced_Settings|Enable Advanced Settings]] via the Amahi Dashboard
* Go to Setup &raquo; Shares &raquo; Storage Pool and check your pooled drives to add them to the pool.
+
* Go to Setup &raquo; Shares &raquo; Storage Pool and check your pooled drives to add them to the pool (Ubuntu '''ONLY'''; Fedora must be done manually in the /etc/greyhole.conf file).
 
* Re-create your original shares in the Amahi Dashboard: Setup &raquo; Shares.
 
* Re-create your original shares in the Amahi Dashboard: Setup &raquo; 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:
 
**  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:

Revision as of 14:12, 5 April 2014

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.


NOTE: This guidance is specific to Ubuntu, so for Amahi 7 some dashboard steps will need to be done manually via command line.


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. Then, install Fedora/Ubuntu and Amahi using our installation guide.


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 (as root user or precede with sudo for ALL commands) with:

mount -a

NOTE: This would allow you to remount the drives on the previous paths in your previous installation. For example, if you have one 2TB and one 3TB 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:

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
 <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


Then this is what needs to be done:

  • Enable Enable Advanced Settings via the Amahi Dashboard
  • Go to Setup » Shares » Storage Pool and check your pooled drives to add them to the pool (Ubuntu ONLY; Fedora must be done manually in the /etc/greyhole.conf file).
  • 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:
ls -1 /var/hda/files/drives/*/gh/ | grep -v : | sort -u
  • Run Greyhole's fsck command to rebuild your shares:
greyhole --fsck

Until this completes, some of your files will be missing from your shares.