Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
'''NOTE:''' For the procedures below, most will require '''root''' user privileges.
 
 
In order to speed up the entire process, you should backup the following files somewhere safe:
/etc/greyhole.conf
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 Then, install Fedora/Ubuntu and Amahi using our installation guide. * Connect [http://docs.amahi.org/ubuntu-12.html Ubuntu]* [http://docs.amahi.org/fedora-19.html Fedora]  Next, connect your data drives back to your server.* Use , 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, verify the mount points exist: ll /var/hda/files/drives If they do not, you will need to create them (replace ''drive1'' with what was reflected in ''/etc/fstab''): mkdir -p /var/hda/files/drives/drive1 Now you are ready to mount the drives with:  mount -a If there any errors, <u>'''DO NOT'''</u> continue until they are resolved.
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 2TB and one 2TB 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 installationin the same locations. This can be done by copying and pasting all of However, if you didn't backup your fstab, simply remount the mounts drives like you were installing them for your Greyhole Storage Pool into the /etc/fstab of your new Amahi installationfirst time using [[Adding_a_second_hard_drive_to_your_HDA#Mount_Hard_Drive|hda-diskmount]].
<blockquote>{{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>1stadminuser:<group>users
and If not under 500:users. This , this can be resolved by running the following commands as root:
chown -R 10001stadminuser:users /var/hda/files chmod -R g+w /var/hda/files '''NOTE:''' 1stadminuser should be replaced with the primary user who has administration privileges on your HDA. This is typically the first user created at install.}}</blockquote>
Then this is what needs to be done:
* Go to Setup &raquo; and select [[Advanced_Settings|Enable "Advanced Settings" with ]] check box via the Amahi Dashboard* Add drives to Greyhole:<br />: Setup-<u>Ubuntu</u>Settings to allow access :Go to Setup > &raquo; Shares > &raquo; Storage Pooland check your pooled drives to add them to the pool.:<u>Fedora</u>:If using [https://www.amahi.org/apps/greyhole-ui Greyhole UI], go to Setup &raquo; Drive Pooling &raquo; Partitions and check your pooled drives to add them to the pool (without the app, you will have to add them manually in ''/etc/greyhole.conf'').* Re-create your original shares in the Amahi Dashboard(see [[Storage_and_file_sharing|storage and file sharing]]:<br />: Setup-<u>Ubuntu</u>Shares.** :You should make sure to select "Use Pool" and select the correct number of extra copies. :<u>Fedora</u>:If you don't remember all of your original shares, you can check your old using [https://www.amahi.org/etcapps/greyhole-ui Greyhole UI], go to Setup &raquo; Shares and select the shares to use the pool.conf file (which includes Also select the extra correct number of extra copies) or within desired (without the "gh" folder found at the root of your data drivesapp, you will have to add them manually in ''/etc/greyhole.* Run Greyholeconf''s fsck command to rebuild your shares)== Previous Guide ==
<!--After re-install, recreate '''NOTE:''' If you don't remember all of your original shares exacty as they were.<br>Add the shares to the storage pool.<br>As root, run greyhole --fsck.<br>This will recreate the symlinks in the landing zone you can check your old /varetc/hda/filesgreyhole.<br>-->* Disconnect all data drives before you reinstall. This will prevent you from destroying them by mistake during the Fedora/Amahi install!* Install Amahi per conf file (which includes the regular instructions.* Connect the data drives, and use hda-diskmount to remount all extra number of them.Note that if you can, it would be faster if you can re-mount the drives in copies) or run the same paths they used to have.following:
'''Example:''' If you have one 1TB and one 2TB, and the 1TB was mounted as ls -1 /var/hda/files/drives/drive1, and the 2TB was mounted as */var/hda/files/drivesgh/drive2, it would be better to re| grep -mount that like that on your new HDA. If you mount them otherwise, it will still work, but Greyhole will work a while to re-build the links in your share before they can be usable.* Select the drives in the Amahi Dashboardv : Setup > Shares > Storage Pool* Re| sort -create your shares in the Amahi Dashboard: Setup > Shares.Make sure to select 'Use Pool', and select the correct number of extra copies.If you don't remember all the shares you had, just check inside the 'gh' folder found at the root of your drives to get a reminder!u
* Run Greyhole'''Example:'''{{Code|ls -1 /var/hda/files/drives/*/gh/ <nowiki>|</nowiki> grep -v s fsck command to rebuild your shares: <nowiki>|</nowiki> sort -u}}
* Launch a fsck to have Greyhole rebuild your shares.{{Code| greyhole --fsck}}
Until this completes, some of your files will be missing from your shares.
12,424

edits