Greyhole Install on Amahi 7 Fresh install

barron
Posts: 21
Joined: Fri Feb 28, 2014 10:44 am

Greyhole Install on Amahi 7 Fresh install

Postby barron » Fri Feb 28, 2014 10:34 pm

I have just reinstalled Amahi on my server and wanted to setup Greyhole before getting too far in. I am not great at Linux but I'm learning.

Here is my system http://sprunge.us/FXaO

I am not understanding fully how to mount the drives properly and thus edit the greyhole.conf file.

my fdisk -l output looks nothing like others and it is confusing me quite a bit. Amahi set up a 1.7TB partition to mount on / which I want as part of the pooled storage and set up my second 2TB HD to mount on /home. should I change these to something more like the conventional /var/hda/files/drives/drive1/gh?
If so, How?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole Install on Amahi 7 Fresh install

Postby bigfoot65 » Sat Mar 01, 2014 7:10 am

When you install Fedora 19 and Amahi, only connect 1 drive that will be used for the OS. The other drives you want to use for Greyhole will be connected after Amahi is up and running.

Follow the wiki guidance for adding a second hard drive and to set up Greyhole.

https://wiki.amahi.org/index.php/Adding ... o_your_HDA

https://wiki.amahi.org/index.php/Amahi_ ... hole_Setup
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

barron
Posts: 21
Joined: Fri Feb 28, 2014 10:44 am

Re: Greyhole Install on Amahi 7 Fresh install

Postby barron » Sat Mar 01, 2014 12:02 pm

Thanks bigfoot.
Next questions is, I have about 2TB of data on a USB 3.0 external 3TB HDD (NTFS) that needs to be transferred into the pooled storage. I know trying to push that through the LAN will be incredibly slow compared to actual USB or even installing the drive.
Is there a more efficient way to transfer the data or add it to the pooled storage rather than transfer?

-barron

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole Install on Amahi 7 Fresh install

Postby bigfoot65 » Sat Mar 01, 2014 12:13 pm

You could connect the drive to the HDA directly and copy files over that way. Before you do so, recommend you install mount_shares_locally for Greyhole.
https://wiki.amahi.org/index.php/Mount_Shares_Locally

Another option, and probably what I would do, is turn off Greyhole, copy the files over to the shares, and then turn it back on. Do this via the dashboard and ensure you uncheck the watchdog option which will prevent automatic restart.

To do so by command line, as root user do:

Code: Select all

systemctl stop amahi-greyhole.service systemctl disable greyhole.service
Then to turn it back on, just change to start and enable in the above commands.

Greyhole should then kick in and start coping files. Ensure before starting Greyhole that you verify all your files are owned by 1st admin user:users too.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

barron
Posts: 21
Joined: Fri Feb 28, 2014 10:44 am

Re: Greyhole Install on Amahi 7 Fresh install

Postby barron » Sat Mar 01, 2014 12:52 pm

I will go with the second route as well.
Turn off Greyhole and watchdog,
Then send files over LAN to shares from a separate computer.

Just verifying I understood that right.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole Install on Amahi 7 Fresh install

Postby bigfoot65 » Sat Mar 01, 2014 12:56 pm

Yes or you can connect the drive via USB and do it. Not sure, but it may automount. If not, you could use hda-diskmount.

No need to add it to the /etc/fstab, just have it temporarily mounted to copy files.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

barron
Posts: 21
Joined: Fri Feb 28, 2014 10:44 am

Re: Greyhole Install on Amahi 7 Fresh install

Postby barron » Sat Mar 01, 2014 6:57 pm

Not trying to be dense, I appreciate your help.

You mentioned if I connect it directly, to go ahead and install the mount_shares_locally.
If I do hda-diskmount it should mount the disk temporarily after which I can do a cp command from the external source to the appropriate share, say /var/hda/files/docs, Is that correct?

If I do hda-diskmount I do not have to perform the mount_shares_locally.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole Install on Amahi 7 Fresh install

Postby bigfoot65 » Sat Mar 01, 2014 7:05 pm

Yes that is correct mostly. You don't need mount shares locally if you turn Greyhole off. That script is only for it and when you move files without going through Samba.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

barron
Posts: 21
Joined: Fri Feb 28, 2014 10:44 am

Re: Greyhole Install on Amahi 7 Fresh install

Postby barron » Sat Mar 01, 2014 8:21 pm

I mounted the drive and it shows up as /dev/sdc1 mounted as /var/hda/files/drives/drive2
It shows mount: unknown filesystem type 'ntfs-3g'

I cant find the directory so that I can cp them to the shares folders

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole Install on Amahi 7 Fresh install

Postby bigfoot65 » Sat Mar 01, 2014 8:24 pm

It needs the nice dependency installed. Check the wiki guidance for adding an additional drive for package name.

https://wiki.amahi.org/index.php/Adding ... o_your_HDA

EDIT:
Install these packages:

Code: Select all

yum install pmount fuse fuse-libs ntfs-3g util-linux-ng
You may have to unmount the drive, then remount using hda-diskmount after installing them.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 55 guests