<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ccondrup</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ccondrup"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Ccondrup"/>
	<updated>2026-04-28T21:52:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Shares_troubleshooting&amp;diff=47473</id>
		<title>Shares troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Shares_troubleshooting&amp;diff=47473"/>
		<updated>2011-10-25T02:38:06Z</updated>

		<summary type="html">&lt;p&gt;Ccondrup: adding instructions for connecting via cmd&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Access Problems ==&lt;br /&gt;
&lt;br /&gt;
Access issues are caused by one or two things, in order: Windows (SMB/Samba) access (domain works, username works), and Linux permissions access&lt;br /&gt;
&lt;br /&gt;
So, to diagnose things, make sure you can login first from your client operating system, and then if that works, make sure you can access the files you are interested in from Linux.&lt;br /&gt;
&lt;br /&gt;
* First make sure that '''your workgroup or samba domain match between your HDA and your clients'''. For your HDA's workgroup/domain, go to Setup -&amp;gt; Settings and turn on advanced settings, after that, go to Shares -&amp;gt; Settings and check the workgroup name. If the DNS domain is home.com, the workgroup will be just home.&lt;br /&gt;
* If only one user can access or write in your shares, and your shares are in a subdirectory of /media, you'll need to unmount your drive from /media, and re-mount it using the instructions found here: [[Adding_a_second_hard_drive_to_your_HDA|How to add additional hard drives in your HDA]].&lt;br /&gt;
* In at least Windows 7, we have observed that the operating system tries to use a &amp;quot;Domain&amp;quot; of the name of the computer, which is wrong! Try typing this in the Username field:&lt;br /&gt;
       YOURWORKGROUP\username&lt;br /&gt;
So, if your username is jdoe and the workgroup is HOME, try HOME\jdoe&lt;br /&gt;
* Some windows clients for some reason may require the whole DNS path, so if your internal domain is, say, home.com, try:&lt;br /&gt;
            \\hda.home.com&lt;br /&gt;
* Make sure the user has permissions to at least read the share (of course) in the Shares area of your HDA&lt;br /&gt;
* Check the Credential manager under Control Panel: Control Panel -&amp;gt; Al Control Panel Items -&amp;gt; Credential Manager: See this [http://forums.amahi.org/viewtopic.php?f=4&amp;amp;t=964&amp;amp;start=11 thread in the forums].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Permission Problems ==&lt;br /&gt;
&lt;br /&gt;
#If you cannot write to the shares, permissions at the SAMBA and Linux levels must be checked.&lt;br /&gt;
*At the SAMBA level, check Setup -&amp;gt; Shares. Make sure the user has access to the share you are looking at.&lt;br /&gt;
*At the Linux level, you have to ssh into your HDA or login at the console and try to write a file in to the folder for the share (typically in /var/hda/files/FOO, if you did not change the default path).&lt;br /&gt;
#If you cannot access the shares, and you are on a Windows Vista machine, there may be other connections open and you may get this error:&lt;br /&gt;
[[File:Errorpermissions.jpeg]]&lt;br /&gt;
*So we will try doing this:&lt;br /&gt;
**Start -&amp;gt; Type &amp;quot;cmd&amp;quot; into the search bar and press enter&lt;br /&gt;
**Type in &amp;quot;net use * /delete&amp;quot; to delete all open shared connections&lt;br /&gt;
**Double check nothing is connected: &amp;quot;net use&amp;quot;&lt;br /&gt;
**Try connecting to the HDA shares one more time.&lt;br /&gt;
*Still getting 'not accessible' errors? Users have had luck connecting via cmd on Windows XP clients:&lt;br /&gt;
**Type in &amp;quot;net use \\hda\Pictures /USER:HOME\jdoe password&amp;quot; Be sure to substitute the share name, username and password with your real values.&lt;br /&gt;
**Try connecting to the HDA shares one more time.&lt;br /&gt;
&lt;br /&gt;
== Further Debugging ==&lt;br /&gt;
&lt;br /&gt;
For actual debugging, follow the details of the [[Shares Debug]] page.&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
NOTE: we used to have a bug in [[Amahi 5.0]] where users that use ANY capital letters were not created properly. Please stick to users with all lowercase letters. This was fixed in [[Amahi 5.1]].&lt;br /&gt;
&lt;br /&gt;
(This appears to be a problem in shadow-utils in Fedora. For status, see Amahi bug [http://bugs.amahi.org/issues/show/395 395] and Fedora bug [https://bugzilla.redhat.com/show_bug.cgi?id=550732 550732].)&lt;/div&gt;</summary>
		<author><name>Ccondrup</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=47389</id>
		<title>Mount Shares Locally</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=47389"/>
		<updated>2011-10-24T00:01:43Z</updated>

		<summary type="html">&lt;p&gt;Ccondrup: typo in path to rc3.d&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.&lt;br /&gt;
&lt;br /&gt;
* As '''root:''' Install the mount_shares_locally initd script:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally&lt;br /&gt;
 chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 chkconfig --add mount_shares_locally&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username. Example '''username=&amp;quot;amahi&amp;quot;'''&lt;br /&gt;
{{Code|Code= nano /etc/init.d/mount_shares_locally}}&lt;br /&gt;
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).&lt;br /&gt;
{{Code|Code= nano /home/YourHDA_username/.smb_credentials}}&lt;br /&gt;
*Enter the following:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 username=your_username&lt;br /&gt;
 password=your_password&lt;br /&gt;
 domain=HOME&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''NOTE:'''  your_username and your_password in the .smb_credentials file needs to be the original username and password you created when you installed fedora.&lt;br /&gt;
&lt;br /&gt;
*To test your new mounts, you can execute '''service mount_shares_locally start'''&amp;lt;br/&amp;gt;&lt;br /&gt;
You will find the mounted shares in ''/mnt/samba/*''&amp;lt;br/&amp;gt;&lt;br /&gt;
'''service mount_shares_locally stop''' will unmount the local shares.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now. The above initd script replaces all this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Unable to mount localy after upgrading to Amahi6 ==&lt;br /&gt;
If you try to run mount using this script after you upgraded to Amahi6 you might get greeted by this type of error.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost ~]# /etc/init.d/mount_shares_locally start&lt;br /&gt;
 Mounting Samba shares locally: /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
                                                           [  OK  ]&lt;br /&gt;
&lt;br /&gt;
It's easily fixed by installing the missing dependency.&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install cifs-utils}}&lt;br /&gt;
&lt;br /&gt;
Now it should work fine to run&lt;br /&gt;
&lt;br /&gt;
{{Code|/etc/init.d/mount_shares_locally start}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Problems With Newer Versions of Greyhole ==&lt;br /&gt;
&lt;br /&gt;
Since Greyhole moved from SQL Lite to MySQL, you may hit a problem where Greyhole and the mount_shares_locally script both attempt to start before MySQL in bootup, leading to the services not starting properly.  If this happens, you can try this to fix it:&lt;br /&gt;
&lt;br /&gt;
{{Code|ls /etc/rc.d/rc3.d/}}&lt;br /&gt;
* Look for any entries marked S-1.  If there are any, they need to be removed.  Run the following as root:&lt;br /&gt;
&lt;br /&gt;
{{Code|rm S-1*}}&lt;/div&gt;</summary>
		<author><name>Ccondrup</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Upgrade_FireFox&amp;diff=46909</id>
		<title>Upgrade FireFox</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Upgrade_FireFox&amp;diff=46909"/>
		<updated>2011-09-30T01:17:14Z</updated>

		<summary type="html">&lt;p&gt;Ccondrup: xulrunner7 is out, with firefox 7.0.1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To update FireFox to the latest version in Fedora 14:&lt;br /&gt;
* Install the Amahi  RPM Fusion[http://www.amahi.org/apps/rpm-fusion-free (Free)] and [http://www.amahi.org/apps/rpm-fusion-non-free (Non-Free)] web applications. &lt;br /&gt;
* [http://wiki.amahi.org/index.php/Open_Terminal_as_root As root user], do the following commands:&lt;br /&gt;
{{Code|tar -cvzf $HOME/mozilla-firefox-profiles-backup.tar.gz $HOME/.mozilla/firefox/&lt;br /&gt;
rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpm&lt;br /&gt;
yum --enablerepo&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;remi list firefox&lt;br /&gt;
yum --enablerepo&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;remi install firefox xulrunner7}}&lt;br /&gt;
* You should now have the latest version.&lt;/div&gt;</summary>
		<author><name>Ccondrup</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Greyhole_updating&amp;diff=46153</id>
		<title>Greyhole updating</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Greyhole_updating&amp;diff=46153"/>
		<updated>2011-09-01T13:39:02Z</updated>

		<summary type="html">&lt;p&gt;Ccondrup: Added cmds in troubleshooting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Disclaimer ==&lt;br /&gt;
Amahi releases new versions of Greyhole (GH) after they've been tested. If you follow this guide to update your GH install manually you do so on your own risk. If it breaks, it's on you.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
1. Find current version:&lt;br /&gt;
{{Code|rpm -q hda-greyhole}}&lt;br /&gt;
&lt;br /&gt;
2. Is there a new version?&lt;br /&gt;
{{Link|http://www.greyhole.net/download/}}&lt;br /&gt;
&lt;br /&gt;
3. Browse the archive and copy the link for the latest hda-greyhole (Amahi needs hda-greyhole, the regular greyhole will conflict)&lt;br /&gt;
{{Link|http://www.greyhole.net/download/archives.html}}&lt;br /&gt;
: Unsure whether you have i386 or x86_64? Run in terminal:&lt;br /&gt;
{{Code|uname -i}}&lt;br /&gt;
&lt;br /&gt;
4. Back to terminal, make sure you are root (su). Example update command:&lt;br /&gt;
{{Code|rpm -Uvh http://www.greyhole.net/releases/hda-greyhole-0.9.10-1.i386.rpm}}&lt;br /&gt;
&lt;br /&gt;
5. Check the GH log for any errors that might have occurred after the upgrade&lt;br /&gt;
{{Code|nano /var/log/greyhole.log}}&lt;br /&gt;
&lt;br /&gt;
6. Re-check the version of your newly updated Greyhole install, and enjoy!&lt;br /&gt;
{{Code|rpm -q hda-greyhole}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
'''Can't access your shares after you upgraded ?'''&lt;br /&gt;
Try to re-install the same RPM a second time. Sometimes, the script included in the RPM can't create the Greyhole module for Samba where it should, and this will cause your Greyhole pooled shares to become unaccessible. Re-installing the same RPM a second time always fix that issue. Use the same command but add the --force parameter&lt;br /&gt;
{{Code|rpm -Uvh http://www.greyhole.net/releases/hda-greyhole-0.9.10-1.i386.rpm --force}}&lt;br /&gt;
&lt;br /&gt;
Use the following command to verify that the Samba symlink was indeed created:&lt;br /&gt;
{{Code|ls -l /usr/lib*/samba/vfs/greyhole.so}}&lt;/div&gt;</summary>
		<author><name>Ccondrup</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46063</id>
		<title>Greyhole</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Greyhole&amp;diff=46063"/>
		<updated>2011-08-31T13:21:55Z</updated>

		<summary type="html">&lt;p&gt;Ccondrup: Added link to newly created Greyhole updating-page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:apps]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NEW:''' [http://code.google.com/p/greyhole/wiki/MigrateFromWHS Widows Home Server Drive Extender Migration Guide]&lt;br /&gt;
&lt;br /&gt;
'''NEW:''' [[Greyhole troubleshooting]] guide&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What is Greyhole ==&lt;br /&gt;
&lt;br /&gt;
[http://greyhole.pommepause.com/ Greyhole] is Amahi's [[Storage pooling]] technology. Storage Pooling combines the space of multiple disk drives and makes them look as if they were all part of a single pool of disk space.&lt;br /&gt;
Specifically, Greyhole:&lt;br /&gt;
* Combines the space from multiple drives into a single volume&lt;br /&gt;
* Distributes files across all drives in the pool&lt;br /&gt;
* Creates multiple copies of files in admin-specified shares&lt;br /&gt;
&lt;br /&gt;
This feature is installed by default, but requires a few simple steps to begin utilizing the features.&lt;br /&gt;
&lt;br /&gt;
You can add additional drives to your hda and prepare them for use in Greyhole by following [[Adding a second hard drive to your HDA|this tutorial]].&lt;br /&gt;
&lt;br /&gt;
To add a drive to your Greyhole storage pool. Open your HDA dashboard and navigate to the Shares tab. Then click on the Storage Pool sub-category. You will see a page similar to the one below.&lt;br /&gt;
&lt;br /&gt;
== Important Warnings ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:darkred&amp;quot;&amp;gt;You should '''never''' change or delete files in the shared directories (''/var/hda/files/*'' by default) directly on the HDA, using the terminal, or the Gnome file browser, for the shares for which you checked the ''Uses pool'' option in the Amahi dashboard. If you want to work with files on Greyhole shares on the HDA, you should [[Mount Shares Locally]].&amp;lt;br/&amp;gt;&lt;br /&gt;
You should be safe reading existing files directly, or adding new files directly, as long as don't care that your new files will only be moved into the storage pool during the next check, which runs automatically at midnight (or manually using ''greyhole --fsck''). Until then, your new files will be stored in your shared directories (normally ''/var/hda/files/share_name/'').&lt;br /&gt;
&lt;br /&gt;
Also, touching anything inside the '''gh''' directories that Greyhole creates at the root of your partitions is a recipe for disaster.&lt;br /&gt;
&lt;br /&gt;
We [[Greyhole not on root | strongly discourage you from using the root partition in a drive pool]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== First things first ==&lt;br /&gt;
&lt;br /&gt;
You need to go in the Settings tab, and enable '''Advanced Settings'''.&amp;lt;br/&amp;gt;&lt;br /&gt;
Without Advanced Settings enabled, you won't see the following page and options.&lt;br /&gt;
&lt;br /&gt;
== For Storage Pool (Partitions) ==&lt;br /&gt;
&lt;br /&gt;
[[File:Storage_Pool_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Select the drives you want available for your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Greyhole options ==&lt;br /&gt;
&lt;br /&gt;
The next step is to select the share you want to replicate across the pool.&lt;br /&gt;
&lt;br /&gt;
From the Shares tab, select the Shares sub-catagory. We chose the Pictures share for this tutorial.&lt;br /&gt;
&lt;br /&gt;
[[File:Greyhole_Options_1.png|600px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
Check the option for &amp;quot;Uses pool&amp;quot; and choose the number of drives to replicate this share. In this instance we have chosen to use all drives available to the greyhole pool.&lt;br /&gt;
&lt;br /&gt;
Note: Greyhole is not a backup solution. If a file is removed, all copies are removed.&lt;br /&gt;
&lt;br /&gt;
== Greyhole advanced options ==&lt;br /&gt;
&lt;br /&gt;
You can further configure Greyhole by manually editing the following file:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''/var/hda/platform/html/config/greyhole.yml'''&lt;br /&gt;
&lt;br /&gt;
To see what options are available, and what they do, refer to the [http://greyhole.googlecode.com/svn/trunk/greyhole.example.conf sample greyhole.conf] provided with Greyhole.&lt;br /&gt;
&lt;br /&gt;
greyhole.yml is in in YAML format. Most of it should be easy enough to modify. The only exception would be the sticky_files (and optional sticky_into) options.&amp;lt;br/&amp;gt;&lt;br /&gt;
Here's an example of how those should appear:&lt;br /&gt;
&lt;br /&gt;
To specify the following to Greyhole in greyhole.conf:&lt;br /&gt;
&lt;br /&gt;
 sticky_files = Music/&lt;br /&gt;
 sticky_files = Videos/Movies/&lt;br /&gt;
     stick_into = /mnt/hdd1/gh&lt;br /&gt;
     stick_into = /mnt/hdd5/gh&lt;br /&gt;
 sticky_files = Backups/CrashPlan/&lt;br /&gt;
     stick_into = /mnt/hdd0/gh&lt;br /&gt;
&lt;br /&gt;
one should specify this in the greyhole.yml file, where '''precise indentation matters''':&lt;br /&gt;
&lt;br /&gt;
 sticky_files: &lt;br /&gt;
 - - Music/&lt;br /&gt;
 - - Videos/Movies/&lt;br /&gt;
   - - /mnt/hdd1/gh&lt;br /&gt;
     - /mnt/hdd5/gh&lt;br /&gt;
 - - Backups/CrashPlan/&lt;br /&gt;
   - - /mnt/hdd0/gh&lt;br /&gt;
&lt;br /&gt;
For your changes to be effective, you'll need to force Amahi to regenerate the greyhole.conf file. You can do so by editing a share, clicking it's path, and just clicking the Save button without actually changing the path.&lt;br /&gt;
&lt;br /&gt;
== Copying your data into Greyhole shares the first time ==&lt;br /&gt;
&lt;br /&gt;
When you start using Greyhole, you might want to copy or move all your exiting files into your new shares that use the storage pool.&lt;br /&gt;
&lt;br /&gt;
Note: This is not necessary if your files are already in Amahi shares. If they are there, and you enable the ''Uses pool'' option in the Amahi dashboard, the files will start getting moved around into the drives in your storage pool during the night (starting at midnight), when the nightly storage pool check starts.&amp;lt;br/&amp;gt;&lt;br /&gt;
The instructions below are for users who have more data to copy into the Greyhole shares than their currently free space in the /var/hda/files/ folder.&lt;br /&gt;
&lt;br /&gt;
One way to do that is to mount the shares that use the Greyhole storage pool, either on the HDA itself, or on a client computer on your local network, and copy your data from their existing location into the mounted shares.&lt;br /&gt;
This can be time consuming, but it is the safest way to use Greyhole.&lt;br /&gt;
&lt;br /&gt;
Another way to move your files from their current location into the storage pool is to share their current location using an Amahi share that ''Uses pool'', then let Greyhole nightly check move the files from there into the pool.&lt;br /&gt;
&lt;br /&gt;
Here's a more detailed walkthrough for this method:&lt;br /&gt;
&lt;br /&gt;
# Setup the Greyhole Storage Pool in the Amahi dashboard, Shares &amp;gt; Storage Pool page.&lt;br /&gt;
# Go in the Shares &amp;gt; Shares page. In there, make sure you have an existing share for each share you have data for. Create new ones if you need, remove the ones you don't need.&lt;br /&gt;
# Edit the ''path'' of each of those shares, and enter the current location of your existing data. For example, the Movies share could have a path = ''/media/External Drive/Movies''&lt;br /&gt;
# Enable the ''Uses pool'' option for each of your shares, and select the number of extra copies you'd like, if any.&lt;br /&gt;
# Now, you either need to wait for Greyhole'S nightly check to start, or you can start it manually from a terminal, as root, using this command: greyhole --fsck&lt;br /&gt;
# Monitor /var/log/greyhole.log to see when the ''fsck'' operation is done.&lt;br /&gt;
# Once ''fsck'' is done, your data has now been moved into the Greyhole storage pool (in the drives you selected in Shares &amp;gt; Storage Pool). All that should be left in the previous location of your data (''/media/External Drive/Movies'' from the previous example) should be symbolic links pointing to the new file copies. If the previous location is just empty directories (no symlinks), do not panic. This is normal if your previous location is an NTFS or FAT partition (drive).&lt;br /&gt;
# Move all those directories / symlinks from there into the correct folders in /var/hda/files/share_name&lt;br /&gt;
# Back in the Amahi dashboard, edit the path of the shares once again, and put back ''/var/hda/files/share_name'' (i.e. the folders where you moved the symbolic links).&lt;br /&gt;
# If you used an NTFS or FAT partition for the previous location, you'll need another fsck to create the symlinks where they should be. Either wait for midnight, or launch it manually, from a command line, as root: ''greyhole --fsck''&lt;br /&gt;
&lt;br /&gt;
You're done. All your existing data is now stored in the various drives included in your storage pool, and are accessible via the Samba shares you have defined in the Amahi dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding a new drive to your HDA and storage pool ==&lt;br /&gt;
This wiki page discusses how to add a new drive to your HDA and to your greyhole storage pool&lt;br /&gt;
[[Adding_a_second_hard_drive_to_your_HDA]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== /media ==&lt;br /&gt;
Including any drive mounted as /media/Something in your storage pool is usually a bad idea.&amp;lt;br/&amp;gt;&lt;br /&gt;
Those mounts are created by the ''gnome-automounter'', which requires you to be logged in into X (Gnome) to become available.&amp;lt;br/&amp;gt;&lt;br /&gt;
This will create issues with Greyhole, which expects drives to always be available, and will take action when some of them are missing.&lt;br /&gt;
&lt;br /&gt;
Follow this guide to [[Adding a second hard drive to your HDA|permanently mount your drives]], before you include them in your storage pool.&lt;br /&gt;
&lt;br /&gt;
== Monitoring Greyhole ==&lt;br /&gt;
Sometimes you might want to monitor what Greyhole is doing, for example when writing data to your greyhole shares for the first time. Here are a few commands you can type in a terminal to follow along.&lt;br /&gt;
&lt;br /&gt;
'''Scrolling view of total Greyhole operations queue:'''&lt;br /&gt;
 while [ 1 == 1 ]; do greyhole --view-queue | grep Total; sleep 60; done&lt;br /&gt;
&lt;br /&gt;
'''Scrolling log of what files Greyhole is working on right now:'''&lt;br /&gt;
 tail -f /var/log/greyhole.log&lt;br /&gt;
&lt;br /&gt;
== Convert Greyhole from SQLite to MySQL ==&lt;br /&gt;
Greyhole is at the time of writing using SQLite as the default database for queueing up tasks on Amahi. This is unqie to Amahi as Greyhole was originally designed to use MySQL for this task.&lt;br /&gt;
&lt;br /&gt;
There are some major performance benefits to using MySQL over SQLite when writing large amounts of files. Switching can be especially useful when moving data to greyhole shares for the first time. For now there is a script you can run if you want to switch over. This script has been tested to be safe while greyhole is working but should be used with discresion.&lt;br /&gt;
&lt;br /&gt;
''To Convert to MySQL, run as root:''&lt;br /&gt;
&lt;br /&gt;
   /usr/share/greyhole/db_migration-sqlite2mysql.sh&lt;br /&gt;
&lt;br /&gt;
To see what DB engine is Greyhole using, do this:&lt;br /&gt;
&lt;br /&gt;
    grep db_engine /etc/greyhole.conf&lt;br /&gt;
&lt;br /&gt;
== Disable Greyhole ==&lt;br /&gt;
For those who do not use Greyhole, you can disable it.  This is based on the fact you never have used it by enabling 'Uses pool' on any share.  Recommend using extreme caution as this could have unpredictable results.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps as user '''root''':&lt;br /&gt;
&lt;br /&gt;
 chkconfig greyhole off&lt;br /&gt;
 rm /etc/monit.d/greyhole.conf&lt;br /&gt;
 service monit restart&lt;br /&gt;
 service greyhole stop&lt;br /&gt;
&lt;br /&gt;
'''DO NOT''' attempt to remove the Greyhole package as it is a dependency of the HDA software.  Doing so will break your HDA.&lt;br /&gt;
&lt;br /&gt;
= Testing and Reliability =&lt;br /&gt;
&lt;br /&gt;
Check out the [[Greyhole grinder]] to help make Greyhole rock solid.&lt;br /&gt;
&lt;br /&gt;
= Reconnect the Greyhole storage pool after re-install of Fedora / Amahi =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--After re-install, recreate all your shares exacty as they were.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the shares to the storage pool.&amp;lt;br&amp;gt;&lt;br /&gt;
As root, run greyhole --fsck.&amp;lt;br&amp;gt;&lt;br /&gt;
This  will recreate the symlinks in the landing zone /var/hda/files.&amp;lt;br&amp;gt;--&amp;gt;&lt;br /&gt;
* Disconnect all data drives before you reinstall. This will prevent you from destroying them by mistake during the Fedora/Amahi install!&lt;br /&gt;
* Install Amahi per the regular instructions.&lt;br /&gt;
* Connect the data drives, and use hda-diskmount to remount all of them.&lt;br /&gt;
Note that if you can, it would be faster if you can re-mount the drives in the same paths they used to have.&lt;br /&gt;
&lt;br /&gt;
'''Example:''' If you have one 1TB and one 2TB, and the 1TB was mounted as /var/hda/files/drives/drive1, and the 2TB was mounted as /var/hda/files/drives/drive2, it would be better to re-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.&lt;br /&gt;
* Select the drives in the Amahi Dashboard: Setup &amp;gt; Shares &amp;gt; Storage Pool&lt;br /&gt;
* Re-create your shares in the Amahi Dashboard: Setup &amp;gt; Shares.&lt;br /&gt;
Make sure to select 'Use Pool', and select the correct number of extra copies.&lt;br /&gt;
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!&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
 ls -1 /var/hda/files/drives/*/gh/ | grep -v : | sort -u&lt;br /&gt;
&lt;br /&gt;
* Launch a fsck to have Greyhole rebuild your shares.&lt;br /&gt;
 greyhole --fsck&lt;br /&gt;
&lt;br /&gt;
Until this completes, some of your files will be missing from your shares.&lt;br /&gt;
&lt;br /&gt;
= Greyhole Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Page: [[Greyhole troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
= Landing Zone Considerations =&lt;br /&gt;
&lt;br /&gt;
The landing zone or LZ is the area where files arrive first before being distributed to their final destination. See details in the [[Greyhole landing zone]] page.&lt;br /&gt;
&lt;br /&gt;
= Manually updating Greyhole for Amahi =&lt;br /&gt;
Page: [[Greyhole updating]]&lt;br /&gt;
&lt;br /&gt;
= Reference =&lt;br /&gt;
Good [http://revxatlarge.blogspot.com/2011/04/restoring-deleted-files-in-greyhole-and.html article] on Greyhole with terms explained.&lt;/div&gt;</summary>
		<author><name>Ccondrup</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Greyhole_updating&amp;diff=46057</id>
		<title>Greyhole updating</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Greyhole_updating&amp;diff=46057"/>
		<updated>2011-08-31T13:14:56Z</updated>

		<summary type="html">&lt;p&gt;Ccondrup: Created page with &amp;quot;== Disclaimer == Amahi releases new versions of Greyhole (GH) after they've been tested. If you follow this guide to update your GH install manually you do so on your own risk. I...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Disclaimer ==&lt;br /&gt;
Amahi releases new versions of Greyhole (GH) after they've been tested. If you follow this guide to update your GH install manually you do so on your own risk. If it breaks, it's on you.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
1. Find current version:&lt;br /&gt;
 rpm -q hda-greyhole&lt;br /&gt;
&lt;br /&gt;
2. Is there a new version?&lt;br /&gt;
http://www.greyhole.net/download/&lt;br /&gt;
&lt;br /&gt;
3. Browse the archive and copy the link for the latest hda-greyhole (Amahi needs hda-greyhole, the regular greyhole will conflict)&lt;br /&gt;
http://www.greyhole.net/download/archives.html&lt;br /&gt;
: Unsure whether you have i386 or x86_64? Run in terminal:&lt;br /&gt;
:  uname -i&lt;br /&gt;
&lt;br /&gt;
4. Back to terminal, make sure you are root (su). Example update command:&lt;br /&gt;
 rpm -Uvh http://www.greyhole.net/releases/hda-greyhole-0.9.10-1.i386.rpm&lt;br /&gt;
&lt;br /&gt;
5. Check the GH log for any errors occured the last minutes&lt;br /&gt;
 nano /var/log/greyhole.log&lt;br /&gt;
&lt;br /&gt;
6. Recheck version of your newly updated Greyhole install and enjoy!&lt;br /&gt;
 rpm -q hda-greyhole&lt;/div&gt;</summary>
		<author><name>Ccondrup</name></author>
		
	</entry>
</feed>