SOLVED: Multiple drives cause partition conflict + pooling not working

grimcabana
Posts: 6
Joined: Thu Dec 17, 2015 12:47 pm

SOLVED: Multiple drives cause partition conflict + pooling not working

Postby grimcabana » Thu Dec 17, 2015 1:32 pm

It's two issues but I'm posting both in case they're related. Running f21/Amahi 8. Searched the forums for possible solutions, but didn't find any.

Partition conflict:
I have 4 drives I'm using for Amahi - a boot/root drive and 3 additional I want to use for Greyhole (1x2TB, 2x1TB). These were partitoned (automatically), formatted (ex4) and mounted in the dashboard.
If only one drive is selected for pooling, ghlog shows no errors. BUT selecting more than one drive generates

Code: Select all

CRITICAL daemon: ERROR: The following storage pool drives are on the same partition: /var/hda/files/drives/WD2TB/gh, /var/hda/files/drives/WD1TB/gh, /var/hda/files/drives/SAMSUNG1TB/gh. The Greyhole daemon will now stop.

I should note that in my first Amahi install (sort of a test run, I got a new router for this 2nd attempt) with the same hardware I didn't have this issue.
Selecting only one works fine, except for...

GH not pooling:
I tested uploading with a 1GB video file, which worked fine. The problem is that based on Dashboard's space free %, the file is on the root drive (/var/tmp), not on the drive I checkmarked to use for pooling.
"Videos" shares is marked for pooling; the location (LZ?) is /var/hda/files/videos.
Also, dashboard's Drive Pooling tab shows the root with a warning icon and link to a 'Greyhole not on root' page. The language is confusing - not sure if this is meant as cautionary advice or if it's telling me Greyhole is currently on the root and should be changed.

So the questions, put short:
- How can I resolve the partition error?
- How can I get GH pooling to the desired drive(s) instead of the root?

Thanks

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

Re: Multiple drives cause partition conflict + pooling not working

Postby bigfoot65 » Thu Dec 17, 2015 6:13 pm

Please provide the URL for the following command:

Code: Select all

fpaste --sysinfo
Also when you add files to the HDA, the go to the LZ first. Then when the Greyhole fsck is run, it will move the file accordingly. You can force that as well, but important your LZ is large enough to handle the files.
Also, dashboard's Drive Pooling tab shows the root with a warning icon and link to a 'Greyhole not on root' page. The language is confusing - not sure if this is meant as cautionary advice or if it's telling me Greyhole is currently on the root and should be changed.
That is telling you that it is discouraged adding that partition to the pool as it's the root drive and can fill up quick. You should not have that box selected for best results.
ßîgƒσστ65
Applications Manager

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

grimcabana
Posts: 6
Joined: Thu Dec 17, 2015 12:47 pm

Re: Multiple drives cause partition conflict + pooling not working

Postby grimcabana » Thu Dec 17, 2015 7:55 pm

Thanks for the timely response

fpaste as requested:

http://ur1.ca/ocmet -> http://paste.fedoraproject.org/302545/14504071

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

Re: Multiple drives cause partition conflict + pooling not working

Postby bigfoot65 » Fri Dec 18, 2015 12:41 pm

Can you also post the contents of /etc/fstab?

Few more questions:

A. Did you install Greyhole manually or use the Amahi Greyhole UI application?

B. How did you mount the drives, manually or using Amahi Disk Wizard?

C. Have you checked to see if you can access files or directories on the drives?
ßîgƒσστ65
Applications Manager

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

grimcabana
Posts: 6
Joined: Thu Dec 17, 2015 12:47 pm

Re: Multiple drives cause partition conflict + pooling not working

Postby grimcabana » Mon Dec 21, 2015 2:06 pm

fstab:

Code: Select all

# # /etc/fstab # Created by anaconda on Wed Dec 16 17:35:47 2015 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=95ba1917-8f1b-412e-8664-9d415488089e / ext4 defaults 1 1 UUID=1611c080-e298-4c5b-9dac-e02196030b9a /boot ext4 defaults 1 2 UUID=15ff346e-5291-4abc-abe1-6b1747921f26 /home ext4 defaults 1 2 UUID=1be64836-74db-4f52-b895-d56e4693ceff swap swap defaults 0 0 UUID=47805977-a0f2-4e8a-9d18-4859d4954fe6 /var/hda/files/drives/SAMSUNG1TB auto auto,rw,exec 0 0 UUID=28452ebd-7271-469c-afbe-a4811d46ca2d /var/hda/files/drives/WD2TB auto auto,rw,exec 0 0 UUID=db1b3e35-9b82-4dd4-89ad-93d2bfb6b970 /var/hda/files/drives/WD1TB auto auto,rw,exec 0 0
Q&A:
A. Did you install Greyhole manually or use the Amahi Greyhole UI application?

I used Greyhole UI. Haven't changed the default share paths or anything else.
B. How did you mount the drives, manually or using Amahi Disk Wizard?
Mounted, formatted and partitioned with Disk Wizard
C. Have you checked to see if you can access files or directories on the drives?
Something odd here. When I was working on this last Friday, I could access the test video file via OS X Finder. But coming back to it after the weekend, the file isn't shown in OS X. HDA Dashboard still shows the drive space being used, and checking /var/hda/files/videos in ssh shows two copies of the file, I think. I'm a beginner, so tell me if I'm just reading this wrong:

Code: Select all

. ._ .. ._Louis_CK_Beacon_1280x720.mp4 Louis_CK_Beacon_1280x720.mp4 ._.VolumeIcon.icns .VolumeIcon.icns

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

Re: Multiple drives cause partition conflict + pooling not working

Postby bigfoot65 » Mon Dec 21, 2015 2:35 pm

That is odd.

Linux does not play well with UPPER CASE names, but that should not be causing the issue.

Please provide the /etc/greyhole.conf file. Also does each drive have a folder labeled gh?
ßîgƒσστ65
Applications Manager

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

grimcabana
Posts: 6
Joined: Thu Dec 17, 2015 12:47 pm

Re: Multiple drives cause partition conflict + pooling not working

Postby grimcabana » Wed Dec 23, 2015 12:00 pm

greyhole.conf:

Code: Select all

# This file is automatically generated by Amahi on 2015-12-17 20:30:41 -0500 # Any manual changes WILL BE OVERWRITTEN! # Set the defaults (carefully) in /var/hda/platform/html/config/greyhole.yml db_engine = mysql db_host = localhost db_user = greyhole db_pass = greyhole db_name = greyhole sticky_files = Music/ # add any group of other settings # here in multiple lines delete_moves_to_trash = yes modified_moves_to_trash = no email_to = root drive_selection_algorithm = most_available_space greyhole_log_file = /var/log/greyhole.log df_cache_time = 15 log_memory_usage = no check_for_open_files = yes ignored_files = (\..*\.[0-9a-zA-Z]{6}|[0-9A-F]{8}\.tmp|\.cprestoretmp.*) ignored_folders = .*/_UNPACK_.* log_level = INFO storage_pool_directory = /var/hda/files/drives/WD2TB/gh, min_free: 10gb num_copies[Videos] = 2
The drives do not have a gh folder, just 'lost+found'. Should I try creating 'gh' using the storage_pool_directory path?

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

Re: Multiple drives cause partition conflict + pooling not working

Postby bigfoot65 » Wed Dec 23, 2015 2:52 pm

The drives do not have a gh folder, just 'lost+found'. Should I try creating 'gh' using the storage_pool_directory path?
Yes.

I also see only one drive listed in /etc/greyhole.conf. Once you get the folder created on the other drives, check to ensure they are enabled in the file. This may require a restart of Greyhole as well.
ßîgƒσστ65
Applications Manager

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

grimcabana
Posts: 6
Joined: Thu Dec 17, 2015 12:47 pm

Re: Multiple drives cause partition conflict + pooling not working

Postby grimcabana » Tue Dec 29, 2015 3:09 pm

Created gh subdirectories in all drives and enabled them in dashboard Drive Pooling. Rebooted server, and all appear in greyhole.conf. The 'same partition' error is gone, but now ghlog tells me:

Code: Select all

WARN daemon: Warning! It seems the partition UUID of /var/hda/files/drives/WD2TB/gh changed. This probably means this mount is currently unmounted, or that you replaced this drive and didn't use 'greyhole --replace'. Because of that, Greyhole will NOT use this drive at this time.
Only for the one drive; there aren't any warnings for the other two.

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

Re: Multiple drives cause partition conflict + pooling not working

Postby bigfoot65 » Tue Dec 29, 2015 4:32 pm

That is progress.

Recommend you execute the command as indicated and it should clear up your issues.
ßî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 25 guests