Migrated system drive, shares not populating...

jbmia
Posts: 67
Joined: Sun Nov 07, 2010 11:59 am

Migrated system drive, shares not populating...

Postby jbmia » Sat Feb 26, 2011 1:24 pm

Hi guys,

I just replaced my system drive and I'm having a bit of an issue getting share data to display... I've notice the following in the greyhole.log and can only assume it's related. I can see //hda.9745.com/movies as a share, but I cannot see content in //hda.9745.com/pictures.. or for that matter any of the other shares.. beyond that, I've also mounted the shares locally and of course they don't show there either...Any insight would be greatly appreciated...

Greyhole.log:

Code: Select all

"[john@hda Music]$ tail /var/log/greyhole.log Feb 26 15:06:16 4 check_pool: PHP Warning [2]: mysql_query(): Unable to save result set in /usr/bin/greyhole on line 488 Feb 26 15:06:16 2 check_pool: Can't query tasks: Got error 134 from storage engine Feb 26 15:07:16 6 daemon: Greyhole (version 0.7.5) daemon started. Feb 26 15:07:16 7 daemon: Loading graveyard backup directories... Feb 26 15:07:16 7 daemon: Found 2 directories in the settings table. Feb 26 15:07:16 7 daemon: More than 90000 tasks queued... Won't queue any more at this time. Feb 26 15:07:16 7 simplify_tasks: Simplifying pending tasks. Feb 26 15:07:16 7 simplify_tasks: More than 90000 tasks queued... Won't queue any more at this time. Feb 26 15:07:16 4 check_pool: PHP Warning [2]: mysql_query(): Unable to save result set in /usr/bin/greyhole on line 488 Feb 26 15:07:16 2 check_pool: Can't query tasks: Got error 134 from storage engine "
Here's my vital statistics:
1. What version of Fedora, Samba & Greyhole are you running?

Code: Select all

2.6.31.5-127.fc12.i686.PAE samba-3.4.2-47.fc12.i686 hda-greyhole-0.7.5-1.i386
2. The content of the /etc/samba/smb.conf & /etc/greyhole.conf files (provide paste URLs):

http://fpaste.org/jSCz/
http://fpaste.org/4HKe/

3. The result of the following commands:

Code: Select all

[john@hda Music]$ mount; fdisk -l; df -h; greyhole --stats /dev/mapper/vg_hda-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sdh1 on /boot type ext4 (rw) /dev/sda1 on /var/hda/files/drives/drive1 type ext4 (rw) /dev/sdb1 on /var/hda/files/drives/drive2 type ext4 (rw) /dev/sdc1 on /var/hda/files/drives/drive3 type ext4 (rw) /dev/sdf1 on /var/hda/files/drives/drive4 type ext4 (rw) /dev/sdd1 on /var/hda/files/drives/drive6 type ext4 (rw) /dev/sde1 on /var/hda/files/drives/drive7 type ext4 (rw) //127.0.0.1/Books on /mnt/samba/Books type cifs (rw,mand) //127.0.0.1/Docs on /mnt/samba/Docs type cifs (rw,mand) //127.0.0.1/movies on /mnt/samba/movies type cifs (rw,mand) //127.0.0.1/Movies on /mnt/samba/Movies type cifs (rw,mand) //127.0.0.1/Movies_Home on /mnt/samba/Movies_Home type cifs (rw,mand) //127.0.0.1/Music on /mnt/samba/Music type cifs (rw,mand) //127.0.0.1/Pictures on /mnt/samba/Pictures type cifs (rw,mand) //127.0.0.1/Public on /mnt/samba/Public type cifs (rw,mand) //127.0.0.1/Software on /mnt/samba/Software type cifs (rw,mand) //127.0.0.1/Videos on /mnt/samba/Videos type cifs (rw,mand) Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_hda-lv_root 454G 14G 417G 4% / tmpfs 1.9G 88K 1.9G 1% /dev/shm /dev/sdh1 194M 22M 163M 12% /boot /dev/sda1 917G 714G 157G 83% /var/hda/files/drives/drive1 /dev/sdb1 917G 748G 123G 86% /var/hda/files/drives/drive2 /dev/sdc1 917G 750G 121G 87% /var/hda/files/drives/drive3 /dev/sdf1 276G 190G 73G 73% /var/hda/files/drives/drive4 /dev/sdd1 1.8T 1.6T 130G 93% /var/hda/files/drives/drive6 /dev/sde1 1.4T 1.2T 112G 92% /var/hda/files/drives/drive7 //127.0.0.1/Books 6.1T 5.4T 713G 89% /mnt/samba/Books //127.0.0.1/Docs 6.1T 5.4T 713G 89% /mnt/samba/Docs //127.0.0.1/movies 6.1T 5.4T 713G 89% /mnt/samba/movies //127.0.0.1/Movies 6.1T 5.4T 713G 89% /mnt/samba/Movies //127.0.0.1/Movies_Home 6.1T 5.4T 713G 89% /mnt/samba/Movies_Home //127.0.0.1/Music 6.1T 5.4T 713G 89% /mnt/samba/Music //127.0.0.1/Pictures 6.1T 5.4T 713G 89% /mnt/samba/Pictures //127.0.0.1/Public 6.1T 5.4T 713G 89% /mnt/samba/Public //127.0.0.1/Software 6.1T 5.4T 713G 89% /mnt/samba/Software //127.0.0.1/Videos 6.1T 5.4T 713G 89% /mnt/samba/Videos Greyhole Statistics =================== Storage Pool Total - Used = Free + Attic = Possible /var/hda/files/drives/drive1/gh: 917G - 714G = 156G + 31G = 188G /var/hda/files/drives/drive2/gh: 917G - 748G = 122G + 13G = 135G /var/hda/files/drives/drive3/gh: 917G - 750G = 121G + 19G = 140G /var/hda/files/drives/drive4/gh: 275G - 189G = 72G + 0G = 72G /var/hda/files/drives/drive6/gh: 1834G - 1611G = 129G + 44G = 173G /var/hda/files/drives/drive7/gh: 1375G - 1194G = 112G + 36G = 148G
4. The list drives in your storage pool (per Amahi platform):

Code: Select all

+----+------------------------------+--------------+---------------------+---------------------+ | id | path | minimum_free | created_at | updated_at | +----+------------------------------+--------------+---------------------+---------------------+ | 1 | /var/hda/files/drives/drive1 | 10 | 2011-02-25 20:12:01 | 2011-02-25 20:12:01 | | 2 | /var/hda/files/drives/drive2 | 10 | 2011-02-25 20:12:01 | 2011-02-25 20:12:01 | | 3 | /var/hda/files/drives/drive3 | 10 | 2011-02-25 20:12:02 | 2011-02-25 20:12:02 | | 4 | /var/hda/files/drives/drive4 | 10 | 2011-02-25 20:12:03 | 2011-02-25 20:12:03 | | 6 | /var/hda/files/drives/drive6 | 10 | 2011-02-25 20:12:04 | 2011-02-25 20:12:04 | | 7 | /var/hda/files/drives/drive7 | 10 | 2011-02-25 20:12:06 | 2011-02-25 20:12:06 | +----+------------------------------+--------------+---------------------+---------------------+
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):

http://fpaste.org/AkpG/

6. The Greyhole work queue:

Greyhole Work Queue Statistics
==============================

Code: Select all

This table gives you the number of pending operations queued for the Greyhole daemon, per share. Write Delete Rename Books 0 0 0 Docs 0 0 0 Movies 0 0 0 Movies_Home 0 0 0 Music 0 0 0 Pictures 0 0 0 Public 0 0 0 Software 0 0 0 Videos 0 0 0 =========== Total 0 + 0 + 0 = 0
Note that drive 5 has been commented out in fstab due to instability it was creating in my SageTV instance... I was using it mounted as /var/media/* for PVR purposes... (Just in case that may come up as a question...)

So, again, to be clear, I've replaced my system drive, remounted my drives, added them to storage pool... I can see /hda.9745.com/movies as a share, but I cannot see content in //hda.9745.com/pictures.. or for that matter any of the other shares.. beyond that I've also mounted the shares locally and of course they don't show there either...

Any assistance would be greatly appreciated.

jbmia

User avatar
NeverSimple
Posts: 114
Joined: Sat Aug 21, 2010 4:26 pm
Location: The Netherlands

Re: Migrated system drive, shares not populating...

Postby NeverSimple » Sat Feb 26, 2011 2:29 pm

Hello,

You are using an rather old version of hda-greyhole that does have problems. If you are sure that your automatic updates are working correct, it could be that amahi 5 (fc12) stopped auto updating at that version. Not sure about that, but read about it on this forum.

Just found a post that includes a way how to update:

http://forums.amahi.org/viewtopic.php?f=39&t=2508


HTH,

Richard

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Migrated system drive, shares not populating...

Postby gboudreau » Sun Feb 27, 2011 6:00 pm

You'll need to update your Samba first (Greyhole requires 3.4.3 or later).
Then upgrade your Greyhole.

But even then, I'm pretty sure Greyhole will still have issues.
The problem seems to be that the MySQL tables that Greyhole uses have become corrupted somehow.
Did you maybe try to restore them from the previous installation ?
The files are in /var/lib/mysql/greyhole/*
And MySQL complains about "Got error 134 from storage engine".
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 25 guests