CLOSED: Configuring New A10 Install and Previous Greyhole Pool

BlueJacket1992
Posts: 12
Joined: Sun Feb 22, 2015 3:19 am

CLOSED: Configuring New A10 Install and Previous Greyhole Pool

Postby BlueJacket1992 » Thu Nov 09, 2017 8:00 am

Hello, Forum-mates! Need some help here...

Context:
I was running Amahi 8 with Greyhole pool and had no issues. Decided I wanted to install the new Amahi 10 due to added functionality and Apps. However, I DID NOT copy the greyhole.conf file from the previous A8 install! (I know, I know...)

Amahi 10 installed without a hitch; I had disconnected the greyhole-managed storage drives before doing so. Then, once the install was done, I reconnected the storage drives and realized I hadn't copied the greyhole.conf file. So used DiskWizard to re-mount the drives...

...and I'm stuck. I don't remember the exact syntax of the shares I had in the previous A8 build. And I'm at a loss for how to proceed. Your help would be greatly appreciated!

From the Greyhole Troubleshooting Wiki here are the data:
_____________________________________________________________________________________

[XXXXXXX@hda ~]$ uname -r; rpm -q samba amahi-greyhole
4.13.11-100.fc25.x86_64
samba-4.5.14-0.fc25.x86_64
amahi-greyhole-0.10.14-1.x86_64

[XXXXXXX@hda ~]$ yum -y install fpaste;
fpaste /etc/samba/smb.conf -> https://paste.fedoraproject.org/paste/V ... ncTXDSZdA/
fpaste /etc/greyhole.conf -> https://paste.fedoraproject.org/paste/2 ... nNc3Du5uA/

[XXXXXXX@hda ~]$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=32968440k,nr_inodes=8242110,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda3 on / type xfs (rw,relatime,attr2,inode64,noquota)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16972)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /home type xfs (rw,relatime,attr2,inode64,noquota)
none on /var/spool/greyhole/mem type tmpfs (rw,relatime,size=4096k)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=6595472k,mode=700,uid=1000,gid=1000)

[XXXXXXX@hda ~]$ fdisk -l
fdisk: cannot open /dev/sr0: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
fdisk: cannot open /dev/sdc: Permission denied
fdisk: cannot open /dev/sdd: Permission denied
fdisk: cannot open /dev/sde: Permission denied

[XXXXXXX@hda ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 1.2M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda3 50G 2.2G 48G 5% /
tmpfs 32G 20K 32G 1% /tmp
/dev/sda1 976M 86M 824M 10% /boot
/dev/sda5 151G 186M 150G 1% /home
none 4.0M 0 4.0M 0% /var/spool/greyhole/mem
tmpfs 6.3G 0 6.3G 0% /run/user/1000

[XXXXXXX@hda ~]$ greyhole --stats
[XXXXXXX@hda ~]$
NOTE: there was no return after execution of this command

[XXXXXXX@hda ~]$ mysql -u root -p -e "select * from disk_pool_partitions" hda_production
Enter password:
+----+---------------------------+--------------+---------------------+---------------------+
| id | path | minimum_free | created_at | updated_at |
+----+---------------------------+--------------+---------------------+---------------------+
| 1 | /var/hda/files/drives/sde | 10 | 2017-11-09 02:41:29 | 2017-11-09 02:41:29 |
| 2 | /var/hda/files/drives/sdd | 10 | 2017-11-09 02:41:30 | 2017-11-09 02:41:30 |
| 3 | /var/hda/files/drives/sdc | 10 | 2017-11-09 02:41:32 | 2017-11-09 02:41:32 |
| 4 | /var/hda/files/drives/sdb | 10 | 2017-11-09 02:41:33 | 2017-11-09 02:41:33 |
+----+---------------------------+--------------+---------------------+---------------------+

[XXXXXXX@hda ~]$ mysql -u root -p -e "select concat(path, '/gh') from disk_pool_partitions" \
> hda_production | grep -v 'concat(' | xargs ls -la | fpaste
Enter password:
Uploading (0.7KiB)...
https://da.gd/k6JA -> https://paste.fedoraproject.org/paste/T ... 0OnJ48kZg/

[XXXXXXX@hda ~]$ greyhole --view-queue
Greyhole Work Queue Statistics
==============================
This table gives you the number of pending operations queued for the Greyhole daemon, per share.
Write Delete Rename Check
[NameOfShare] 0 0 0 0
==============================================
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
______________________________________________________________________________________

In advance, thank you so much for helping me restore my storage drives. I can't think of what I'd do if I could retrieve the information.
Last edited by BlueJacket1992 on Sat Nov 11, 2017 10:42 am, edited 1 time in total.

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

Re: Configuring New A10 Install and Previous Greyhole Pool

Postby bigfoot65 » Thu Nov 09, 2017 8:09 am

If you look in the /gh folder, you should see the same of the shares.

You can recreate them via the dashboard.
ßîgƒσστ65
Applications Manager

BlueJacket1992
Posts: 12
Joined: Sun Feb 22, 2015 3:19 am

Re: Configuring New A10 Install and Previous Greyhole Pool

Postby BlueJacket1992 » Sat Nov 11, 2017 7:51 am

I've looked in the /gh directory of each of my mounted drives and they all return the same:
__________________________________________________________________________
[XXXXXXX@hda gh]$ cd -
/var/hda/files/drives/sd#
[XXXXXXX@hda sdd]$
[XXXXXXX@hda sdd]$ ls -l
total 0
drwxr-xr-x 2 root root 6 Nov 8 21:45 gh
[XXXXXXX@hda sdd]$ cd ../..
[XXXXXXX@hda files]$ ls -l
total 0
drwxr-xr-x 6 root root 50 Nov 8 21:40 drives
drwxrwxr-x 2 root root 6 Nov 8 21:44 XXXXXXXdata
drwxrwxr-x 2 root root 6 Nov 8 07:52 public
[XXXXXXX@hda files]$ cd drives
[XXXXXXX@hda drives]$ ls -l
total 0
drwxr-xrwx 3 root root 16 Nov 8 21:41 sdb
drwxr-xrwx 3 root root 16 Nov 8 21:41 sdc
drwxr-xrwx 3 root root 16 Nov 8 21:41 sdd
drwxr-xrwx 3 root root 16 Nov 8 21:41 sde
[XXXXXXX@hda drives]$ cd sde
[XXXXXXX@hda sde]$ cd gh
[XXXXXXX@hda gh]$ ls -l
total 0
[XXXXXXX@hda gh]$ cd ../..
[XXXXXXX@hda drives]$ cd ../..
[XXXXXXX@hda hda]$ cd ../..
[XXXXXXX@hda /]$ ls -l
total 16
lrwxrwxrwx. 1 root root 7 Feb 3 2016 bin -> usr/bin
dr-xr-xr-x. 4 root root 4096 Nov 7 21:35 boot
drwxr-xr-x 19 root root 4120 Nov 8 21:40 dev
drwxr-xr-x. 82 root root 8192 Nov 8 21:31 etc
drwxr-xr-x 2 root root 33 Nov 8 14:02 gh
drwxr-xr-x. 4 root root 28 Nov 8 14:02 home
lrwxrwxrwx. 1 root root 7 Feb 3 2016 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Feb 3 2016 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 Feb 3 2016 media
drwxr-xr-x. 2 root root 6 Feb 3 2016 mnt
drwxr-xr-x. 2 root root 6 Feb 3 2016 opt
dr-xr-xr-x 287 root root 0 Nov 8 21:17 proc
dr-xr-x---. 4 root root 256 Nov 8 07:39 root
drwxr-xr-x 33 root root 940 Nov 11 09:45 run
lrwxrwxrwx. 1 root root 8 Feb 3 2016 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 Feb 3 2016 srv
dr-xr-xr-x 13 root root 0 Nov 8 21:18 sys
drwxrwxrwt 10 root root 200 Nov 11 09:31 tmp
drwxr-xr-x. 12 root root 144 Nov 7 21:33 usr
drwxr-xr-x. 21 root root 287 Nov 8 07:32 var
[XXXXXXX@hda /]$ cd gh
[XXXXXXX@hda gh]$ ls -l
total 0
[XXXXXXX@hda gh]$
___________________________________________________________________________

I'm not sure what I'm missing...

P.s. - Another oddity is that the GH service will not stay running. Possibly related?

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

Re: Configuring New A10 Install and Previous Greyhole Pool

Postby bigfoot65 » Mon Nov 13, 2017 7:39 am

P.s. - Another oddity is that the GH service will not stay running. Possibly related?
Check /var/log/greyhole.log for errors or something that indicates why it won't run.

BTW, the wiki guidance indicates that the drives are added as storage_pool_directory. I noticed yours shows storage_pool_drive which may be why there are problems.
ßîgƒσστ65
Applications Manager

BlueJacket1992
Posts: 12
Joined: Sun Feb 22, 2015 3:19 am

Re: Configuring New A10 Install and Previous Greyhole Pool

Postby BlueJacket1992 » Tue Feb 06, 2018 2:26 pm

So after a very long fight with Acute Respiratory Failure (UGH!) I'm back trying to get our Amahi server going again. I completely reloaded the OS - from scratch - and have installed the Disk Wizard, Greyhole, and other apps. However, I HAVE mounted the drives via DiskWizard.

As I started and completed each of the mount points, I noticed the mount point was still /var/hda/files/drives/sdXX and am not sure how to proceed.

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

Re: Configuring New A10 Install and Previous Greyhole Pool

Postby bigfoot65 » Thu Feb 08, 2018 10:44 am

Please do not post multiple topics on the same issue.

viewtopic.php?f=39&t=7055

Will mark this one closed and continue with the new topic.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 1 guest