Reconnecting greyhole to upgraded server...baby steps

ddogg777
Posts: 19
Joined: Tue Nov 24, 2015 12:24 pm

Reconnecting greyhole to upgraded server...baby steps

Postby ddogg777 » Tue Jul 24, 2018 9:37 am

So I upgraded the server from fedora 23-25 and installed Amahi 10 from scratch, I then reattached my two HGST 4tb drives that I was using for greyhole but I could not locate the stab and greyhole.conf that I had saved until last night...However I tried to mount my drives and run fsck but all I see from the network are the folders, no files. I think (I know) I screwed up the mounting because I found my stab/greyhol.conf but now I don't know how to follow the "hint": copy and paste the lines that have mount points in /var/hda/files/drives/

Here is my fpaste /etc/samba/smb.conf

https://paste.fedoraproject.org/paste/7 ... p6JEQsBCg/

my current greyhole.conf:
# This file is automatically generated by Amahi on 2018-07-20 01:15:38 -0700
# 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_drive = /var/hda/files/drives/drive1/gh, min_free: 10gb
storage_pool_drive = /var/hda/files/drives/drive2/gh, min_free: 10gb
num_copies[Pictures] = 2
And now my saved greyhole.conf that I found:
# This file is automatically generated by Amahi on 2017-07-30 17:53:35 -0700
# 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_drive = /var/hda/files/drives/HGST2/gh, min_free: 10gb
storage_pool_drive = /var/hda/files/drives/HGST1/gh, min_free: 10gb
num_copies[Books] = 1
num_copies[Docs] = 2
num_copies[Movies] = 1
num_copies[Music] = 1
num_copies[Pictures] = 2
num_copies[Private] = 1
num_copies[Public] = 1
num_copies[Shoots] = 1
num_copies[TV] = 1
num_copies[Videos] = 1

My current stab
#
# /etc/fstab
# Created by anaconda on Thu Jul 19 18:18:14 2018
#
# 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=cd3b6352-0354-4d04-9639-71da0cbb1d1a / xfs defaults 0 0
UUID=474e23af-0c89-4f13-8cfc-a951c4e6d942 /boot ext4 defaults 1 2
UUID=853E-6242 /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=38b1626b-d3b3-45b0-b1bd-2cb77117e4f7 swap swap defaults 0 0
What it should be from my saved fstab:
# /etc/fstab
# Created by anaconda on Mon Apr 18 19:27:39 2016
#
# 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=81cc38b1-3369-4753-89c5-e8a1c79ad13a / ext4 defaults 1 1
UUID=15e65efa-9d51-44e1-a1a9-517b39c12e67 /boot ext4 defaults 1 2
UUID=78B6-A9FF /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=a5ecd950-5d2b-4197-b56f-ccf5fcb9962e swap swap defaults 0 0
UUID=bc15ca80-57fe-4f03-b368-caf8ef42a8a3 /var/hda/files/drives/HGST1 auto auto,rw,exec 0 0
UUID=9d453025-8488-49a8-8b07-37fade96eab1 /var/hda/files/drives/HGST2 auto auto,rw,exec 0 0
I'm not skilled in CLI so I kinda need baby steps...

ddogg777
Posts: 19
Joined: Tue Nov 24, 2015 12:24 pm

Re: Reconnecting greyhole to upgraded server...baby steps

Postby ddogg777 » Tue Jul 24, 2018 11:17 am

Do I just edit the current fstab to reflect the old one? It doesn't say to do that in the wiki so I wasn't sure.

edit: Ok so I edited /etc/fstab/ with "sudo vim fstab" and then did "mount -a" after I pasted the two UUID lines from my old fstab. I now show the following when I do "ll /var/hda/files/drives":

total 0
drwxr-xr-x 2 root root 6 Jul 20 00:55 drive1
drwxr-xr-x 2 root root 6 Jul 20 00:55 drive2
drwxr-xr-x 2 root root 6 Jul 23 21:22 HGST1
drwxr-xr-x 2 root root 6 Jul 23 21:22 HGST2

I'm not sure if drive1 and drive2 should be there because they were created the day I tried to mount the two drives without my original FSTAB.
Last edited by ddogg777 on Tue Jul 24, 2018 11:36 am, edited 1 time in total.

ddogg777
Posts: 19
Joined: Tue Nov 24, 2015 12:24 pm

Re: Reconnecting greyhole to upgraded server...baby steps

Postby ddogg777 » Tue Jul 24, 2018 11:29 am

Also, how do I check ownership?
Warning: Before you continue, you should check the ownership of the files and folders in /var/hda/files to ensure that it belongs to
1stadminuser:users

ddogg777
Posts: 19
Joined: Tue Nov 24, 2015 12:24 pm

Re: Reconnecting greyhole to upgraded server...baby steps

Postby ddogg777 » Tue Jul 24, 2018 11:49 am

I followed the rest of the instructions to add those HGST drives to the pool and then added my shares, I then ran fsck so we'll see what happens.

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

Re: Reconnecting greyhole to upgraded server...baby steps

Postby bigfoot65 » Wed Jul 25, 2018 2:15 pm

Hopefully that fixed your issue.

In future you might want to follow the HDA OS Migration Guide. This will make transferring settings and such easier to a new install.

Is this resolved?
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 3 guests