
Greyhole on Amahi 7
-
- Posts: 31
- Joined: Tue Feb 15, 2011 5:41 pm
Re: Greyhole on Amahi 7
@Bigfoot - running that script you mentioned corrected the error - all up and running - 8.2 TB pool full fsck took around 70mins - much quicker than before so am judging it a success 

Re: Greyhole on Amahi 7
cool!
that is good news
that is good news
Re: Greyhole on Amahi 7
Awesome! That can be something easily added to the install script I would think. Will have to ask cpg.
We can modify the app I built to do it.
We can modify the app I built to do it.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Greyhole on Amahi 7
good news over here too so far:
but the greyhole service is sleeping and telling me it has nothing to do? so what do I do next?[jochen@localhost ~]$ greyhole -s
Greyhole Statistics
===================
Storage Pool
Total - Used = Free + Trash = Possible
/var/hda/files/drives/drive1/gh: 688G - 639G = 13G + 17G = 31G
/var/hda/files/drives/drive2/gh: 886G - 825G = 15G + 28G = 43G
==========================================
Total: 1573G - 1465G = 28G + 45G = 74G
[jochen@localhost ~]$ greyhole -S
Currently idle.
Recent log entries:
Aug 11 22:16:10 7 sleep: Nothing to do... Sleeping.
Aug 11 22:16:20 7 sleep: Nothing to do... Sleeping.
Aug 11 22:16:30 7 sleep: Nothing to do... Sleeping.
Aug 11 22:17:01 6 daemon: Greyhole (version 0.9.33) daemon started.
Aug 11 22:17:01 6 daemon: Optimizing MySQL tables...
Aug 11 22:17:02 7 daemon: Loading metadata store backup directories...
Aug 11 22:17:02 7 daemon: Found 2 directories in the settings table.
Aug 11 22:17:02 7 simplify_tasks: Simplifying pending tasks.
Aug 11 22:17:02 7 sleep: Nothing to do... Sleeping.
Aug 11 22:17:33 7 sleep: Nothing to do... Sleeping.
Last logged action: sleep
on 2013-08-11 22:17:33 (2s ago)
[jochen@localhost ~]$ greyhole -q
Greyhole Work Queue Statistics
==============================
This table gives you the number of pending operations queued for the Greyhole daemon, per share.
Write Delete Rename Check
===========================================
Total 0 0 0 0
Write Delete Rename Check
The following is the number of pending operations that the Greyhole daemon still needs to parse.
Until it does, the nature of those operations is unknown.
Spooled operations that have been parsed will be listed above and disappear from the count below.
Spooled 0
Re: Greyhole on Amahi 7
I think its a folder permissions problem
could that be the problem?
I can see the shares.
I can also acces from my laptop (Windows7)
but there are no files there
drive1
drive 2 was in the old /etc/fstab as:
drive2 has different permissions from drive1[jochen@localhost drives]$ ls -al
total 20
drwxr-xr-x 5 root root 4096 Aug 11 21:44 .
drwxr-xr-x. 12 root root 4096 Aug 11 21:42 ..
drwxr-xr-x 4 root root 4096 Sep 11 2011 drive1
drwxr-xr-x. 16 root root 4096 Aug 5 12:41 drive2
could that be the problem?
I can see the shares.
I can also acces from my laptop (Windows7)
but there are no files there
drive1
drive 2[jochen@localhost drive1]$ ls -al
total 28
drwxr-xr-x 4 root root 4096 Sep 11 2011 .
drwxr-xr-x 5 root root 4096 Aug 11 21:44 ..
drwxr-xr-x 12 root root 4096 May 30 09:05 gh
drwx------ 2 root root 16384 Sep 11 2011 lost+found
I have changed something in the proces to clean things up a little.[jochen@localhost drive2]$ ls -al
total 104
drwxr-xr-x. 16 root root 4096 Aug 5 12:41 .
drwxr-xr-x 5 root root 4096 Aug 11 21:44 ..
lrwxrwxrwx 1 root root 12 Aug 5 12:41 Disks -> /var/hda/vol
drwxrwxr-x. 15 500 users 4096 Sep 30 2012 docs
drwxrwxr-x 3 500 users 4096 Nov 11 2012 Downloads
drwxr-xr-x 7 root root 4096 Aug 16 2012 drives
drwxr-xr-x 13 root root 4096 May 31 16:04 gh
drwxrwxr-x 7 500 users 4096 Aug 6 21:05 Greyhole Trash
drwxrwxr-x. 2 500 users 16384 Jul 31 2011 lost+found
drwxrwxrwx. 7 500 users 4096 Jul 13 21:40 movies
drwxrwxr-x. 12 500 users 4096 Aug 8 20:45 music
drwxrwxrwx 4 500 users 4096 Jul 13 17:32 newsgroups
drwxrwxr-x. 32 500 users 4096 Jun 11 11:40 pictures
drwxrwxr-x 131 500 users 12288 Jul 6 13:50 Software
drwxrwxrwx 4 500 users 4096 Nov 22 2011 Torrentflux-b4rt
drwxrwxr-x 5 492 users 20480 Aug 8 12:34 torrents
drwx------ 5 500 users 4096 Aug 1 2011 .Trash-500
drive 2 was in the old /etc/fstab as:
and now it is in the /etc/fstab as:UUID=485db5c1-4dce-4b5d-b270-60b05a87659d /var/hda/files ext4 defaults 1 2
UUID=485db5c1-4dce-4b5d-b270-60b05a87659d /var/hda/files/drives/drive2 ext4 defaults 1 2
-
- Posts: 31
- Joined: Tue Feb 15, 2011 5:41 pm
Re: Greyhole on Amahi 7
What I have is to run a fsck as soon as you reconnect all of your drives. Once that is finished I then do a fsck on just my individual directories.
e.g
That way I find immediately any files somehow missed the first time around and secondly things like permissons tend to emerge. If you are still missing files rerun using the -o switch instead of the -f and that should pickup any files without metadata and recreate symlinks.
Probably not the most gracious way of doing things but it works for me.
e.g
Code: Select all
$ greyhole -f --dir=/var/hda/files/music
Probably not the most gracious way of doing things but it works for me.
Re: Greyhole on Amahi 7
Yes permissions can be an issue. I typically set all folders in the /var/hda/files to my first admin user:users recursively.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Greyhole on Amahi 7
okay guys,
late last night 0:05h I was able to get greyholestoragepool up and running on both drives and files are accesible.
I have found why it didnt the way I tried.
In the old setup the two drives (partitions) were mounted like this
https://wiki.amahi.org/index.php/Adding ... o_your_HDA
notice how for some reason the second harddrive got mounted "inside the storage partition" of the first drive that also holds the OS.
I wanted to clean up things, so I added a seperate drive (a 40GB SSD I bought) to hold only the OS and wanted to mount the two storage drives (partitions) like this:
that where I thought "well, might as well just try to mount it, like it was". Because that is what is told in this wiki:
https://wiki.amahi.org/index.php/Reconn ... orage_pool
files are back online now,so I am a happy camper.
But I would really like to clean my setup up.
What should be done to put the files and shares at my desired mount points like I described?
----------------------------------------------
a note to the AMAHI team:
if you use hda-diskmount on AMAHI7 for a second drive, do you then also run the risk of mounting it at the same point as I did? in another previous mounted share?
late last night 0:05h I was able to get greyholestoragepool up and running on both drives and files are accesible.
I have found why it didnt the way I tried.
In the old setup the two drives (partitions) were mounted like this
I added the second drive to my old setup, not thinking, and just going by whay the wiki told me:#first disk including OS
UUID=485db5c1-4dce-4b5d-b270-60b05a87659d /var/hda/files ext4 defaults 1 2
#second disk added later, just one storage partition on this drive
UUID=667bd417-70f4-4524-ab03-501113edf499 /var/hda/files/drives/drive1 ext4 defaults 1 2
https://wiki.amahi.org/index.php/Adding ... o_your_HDA
notice how for some reason the second harddrive got mounted "inside the storage partition" of the first drive that also holds the OS.
I wanted to clean up things, so I added a seperate drive (a 40GB SSD I bought) to hold only the OS and wanted to mount the two storage drives (partitions) like this:
since this doesnt match the "old setup" greyhole recognized the two drives, but went to sleep, doing nothing and didnt show any files in my samba shares. funny thing is I didnt see any errors either.#first disk including OS
UUID=485db5c1-4dce-4b5d-b270-60b05a87659d /var/hda/files/drives/drive2 ext4 defaults 1 2
#second disk added later, just one storage partition on this drive
UUID=667bd417-70f4-4524-ab03-501113edf499 /var/hda/files/drives/drive1 ext4 defaults 1 2
that where I thought "well, might as well just try to mount it, like it was". Because that is what is told in this wiki:
https://wiki.amahi.org/index.php/Reconn ... orage_pool
files are back online now,so I am a happy camper.
But I would really like to clean my setup up.
What should be done to put the files and shares at my desired mount points like I described?
----------------------------------------------
a note to the AMAHI team:
if you use hda-diskmount on AMAHI7 for a second drive, do you then also run the risk of mounting it at the same point as I did? in another previous mounted share?
Re: Greyhole on Amahi 7
By design, the drives mount in the drives folder located in /var/hda/files. Since you made your first drive mount in that location that is why it's in the storage pool.
You can mount drives pretty much anywhere you want. The only requirement is that the mount point exist, i.e. folder before you mount. So if you want to mount your drives as /var/hda/files/drives/drive1 and drive2 then the folders must exist there and have the correct permissions.
By default, the hda-diskmount script on ALL Amahi versions mount drives in those locations. You can manually change it of course, but must unmount the drives the remount in the desired locations as you indicate in /etc/fstab.
The wiki has a lot of good guidance, but it does not tell you to mount as /var/hda/files. It states you can and describes how, so it's your decision where you mount the drives. Having it mounted in the storage pool is not a big deal in my opinion, but I am no expert. If doing so causes a problem, then I would like to know the reason.
If you don't want drives mounted in /var/hda/files/drives location, then I suggest you pick a different location. Just remember that the Greyhole LZ needs to be in a location with sufficient space. I myself have a 200GB partition assigned as /var/hda/files and that serves as my LZ as well. In my case, it's sufficient. May not be for yours.
You can mount drives pretty much anywhere you want. The only requirement is that the mount point exist, i.e. folder before you mount. So if you want to mount your drives as /var/hda/files/drives/drive1 and drive2 then the folders must exist there and have the correct permissions.
By default, the hda-diskmount script on ALL Amahi versions mount drives in those locations. You can manually change it of course, but must unmount the drives the remount in the desired locations as you indicate in /etc/fstab.
The wiki has a lot of good guidance, but it does not tell you to mount as /var/hda/files. It states you can and describes how, so it's your decision where you mount the drives. Having it mounted in the storage pool is not a big deal in my opinion, but I am no expert. If doing so causes a problem, then I would like to know the reason.
If you don't want drives mounted in /var/hda/files/drives location, then I suggest you pick a different location. Just remember that the Greyhole LZ needs to be in a location with sufficient space. I myself have a 200GB partition assigned as /var/hda/files and that serves as my LZ as well. In my case, it's sufficient. May not be for yours.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Greyhole on Amahi 7
I got some errors on the WORKGROUP in the /var/log/messages
so I checked the smb.conf file and found that all my settings were removed again.
so I checked the smb.conf file and found that all my settings were removed again.
what routine overwrites this smb.conf file? so where should I make my changes?# This file is automatically generated for WORKGROUP setup.
# Any manual changes MAY BE OVERWRITTEN
# Amahi configuration, generated on 2013-08-12 11:24:33 +0200
Who is online
Users browsing this forum: No registered users and 23 guests