CLOSED: Configuring New A10 Install and Previous Greyhole Pool
Posted: 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.
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.