Page 1 of 1

[SOLVED] Old Greyhole drives in New Amahi 7 Server???

Posted: Mon Apr 07, 2014 5:36 am
by lassenloop
I just wiped my OS drive and installed Amahi 7. I have setup greyhole and added the drives to my fstab. The drives show up on the dashboard. I can browse to the drives from the cli, but the old data is not showing up in the shares.

I should note that greyhole found a gh_settings.bak file and tried restoring my settings from that, which caused problems, since the drive numbers were no longer the same.
  • 1. What version of Fedora, Samba & Greyhole are you running?

    Code: Select all

    3.10.5-201.fc19.x86_64 samba-4.0.8-1.fc19.x86_64 amahi-greyhole-0.9.44-2.x86_64
    2. The content of the /etc/samba/smb.conf & /etc/greyhole.conf files (provide paste URLs):

    Code: Select all

    [root@localhost]# fpaste /etc/samba/smb.conf Uploading (4.7KiB)... http://ur1.ca/h0phm -> http://paste.fedoraproject.org/92232/87375213 [root@localhost]# fpaste /etc/greyhole.conf Uploading (12.7KiB)... http://ur1.ca/h0pho -> http://paste.fedoraproject.org/92233/96873768
    3. The result of the following commands

    Code: Select all

    [root@localhost]# mount proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,size=3921144k,nr_inodes=980286,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 (rw,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/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) /dev/sda6 on / type ext4 (rw,relatime,data=ordered) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=39,pgrp=1,timeout=300,minproto=5,maxproto=5,direct) configfs on /sys/kernel/config type configfs (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) tmpfs on /tmp type tmpfs (rw) debugfs on /sys/kernel/debug type debugfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) /dev/sdb1 on /var/hda/files/drives/drive1 type ext4 (rw,relatime,data=ordered) /dev/sdd1 on /var/hda/files/drives/drive3 type ext4 (rw,relatime,data=ordered) /dev/sdc1 on /var/hda/files/drives/drive2 type ext4 (rw,relatime,data=ordered) /dev/sda1 on /boot type ext4 (rw,relatime,stripe=4,data=ordered) /dev/sda2 on /home type ext4 (rw,relatime,data=ordered) [root@localhost]# fdisk -l Disk /dev/sda: 750.2 GB, 750156374016 bytes, 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x000f1baa Device Boot Start End Blocks Id System /dev/sda1 * 2048 411647 204800 83 Linux /dev/sda2 411648 1343911935 671750144 83 Linux /dev/sda3 1343911936 1359673343 7880704 82 Linux swap / Solaris /dev/sda4 1359673344 1465149167 52737912 5 Extended /dev/sda5 1359675392 1375436799 7880704 82 Linux swap / Solaris /dev/sda6 1375438848 1465147391 44854272 83 Linux Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. Disk /dev/sdc: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x000d22b6 Device Boot Start End Blocks Id System /dev/sdd1 2048 3907029167 1953513560 83 Linux [root@localhost]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda6 42G 1.9G 39G 5% / devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.8G 4.0K 3.8G 1% /dev/shm tmpfs 3.8G 648K 3.8G 1% /run tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup tmpfs 3.8G 20K 3.8G 1% /tmp /dev/sdb1 2.7T 2.0T 661G 75% /var/hda/files/drives/drive1 /dev/sdd1 1.8T 1.1T 662G 62% /var/hda/files/drives/drive3 /dev/sdc1 3.6T 2.8T 663G 81% /var/hda/files/drives/drive2 /dev/sda1 190M 61M 116M 35% /boot /dev/sda2 631G 70M 599G 1% /home [root@localhost]# greyhole --stats Greyhole Statistics =================== Storage Pool Total - Used = Free + Trash = Possible /var/hda/files/drives/drive1/gh: 2751G - 1950G = 661G + 90G = 750G /var/hda/files/drives/drive2/gh: 3667G - 2819G = 662G + 129G = 791G /var/hda/files/drives/drive3/gh: 1834G - 1079G = 662G + 15G = 677G ========================================== Total: 8252G - 5848G = 1985G + 233G = 2218G
    4. The list drives in your storage pool (per Amahi platform):

    Code: Select all

    [root@localhost]# mysql -u root -phda -e "select * from disk_pool_partitions" hda_production ERROR 1146 (42S02) at line 1: Table 'hda_production.disk_pool_partitions' doesn't exist
    5. A list of the directories on the root of the drives included in your storage pool, obtained with the following command (provide a paste URL):

    Code: Select all

    [root@localhost ]# mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste ERROR 1146 (42S02) at line 1: Table 'hda_production.disk_pool_partitions' doesn't exist Uploading (0.5KiB)... http://ur1.ca/h0pid -> http://paste.fedoraproject.org/92234/68739691
    6. The Greyhole work queue:

    Code: Select all

    [root@localhost]# 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 Books 0 0 0 0 Docs 0 0 0 0 Downloads 0 0 0 0 Movies 0 0 0 0 Newsgroups 0 0 0 0 Pictures 0 0 0 0 TV 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

Re: Old Greyhole drives in New Amahi 7 Server???

Posted: Mon Apr 07, 2014 7:01 am
by lassenloop
Fixed with a uninstall/reinstall.

Re: [SOLVED] Old Greyhole drives in New Amahi 7 Server???

Posted: Mon Apr 07, 2014 7:41 am
by bigfoot65
What did you uninstall and reinstall?

Re: [SOLVED] Old Greyhole drives in New Amahi 7 Server???

Posted: Mon Apr 07, 2014 7:49 pm
by lassenloop
Greyhole

Re: [SOLVED] Old Greyhole drives in New Amahi 7 Server???

Posted: Tue Apr 08, 2014 5:26 am
by bigfoot65
Odd that method it fixed it. Oh well, as long as it's working I guess it doesn't matter.