Code: Select all
lrwxrwxrwx 1 matt users 112 2011-01-09 02:24 P1010113.JPG -> /var/hda/files/drives/drive1/gh/Pictures/Family photo album/Home + Family/Our family/2007/200701Jan/P1010113.JPG
The other day I was trying to get a squeezebox app working and may have changed some permissions on the files, I suspect this is what messed it up but I am not sure what to do to fix it.
Following the troubleshooting guide:
Code: Select all
[root@desktop 200701Jan]# uname -r; rpm -q samba hda-greyhole
2.6.32.26-175.fc12.x86_64
samba-3.4.9-60.fc12.x86_64
hda-greyhole-0.7.5-1.x86_64
http://fpaste.org/Fudb/
greyhole.conf
http://fpaste.org/NeLV/
Code: Select all
[root@desktop 200701Jan]# mount; fdisk -l; df -h; greyhole --stats
/dev/sda3 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)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda4 on /var/hda/files type ext4 (rw)
/dev/sdb1 on /var/hda/files/drives/drive1 type ext4 (rw)
/dev/sdc1 on /var/hda/files/drives/drive3 type ext4 (rw)
/dev/sdd1 on /var/hda/files/drives/drive4 type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /home/matt/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=matt)
//127.0.0.1/archivemusic on /mnt/samba/archivemusic type cifs (rw,mand)
//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/Downloads on /mnt/samba/Downloads type cifs (rw,mand)
//127.0.0.1/Movies on /mnt/samba/Movies type cifs (rw,mand)
//127.0.0.1/music on /mnt/samba/music 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/Torrents on /mnt/samba/Torrents type cifs (rw,mand)
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000442c8
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813+ 83 Linux
/dev/sda2 27 287 2096482+ 82 Linux swap / Solaris
/dev/sda3 288 2212 15462562+ 83 Linux
/dev/sda4 2213 60801 470616142+ 83 Linux
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x29f4fcca
Device Boot Start End Blocks Id System
/dev/sdb1 1 121602 976760832 83 Linux
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000064fa
Device Boot Start End Blocks Id System
/dev/sdc1 1 243202 1953513472 83 Linux
Disk /dev/sdd: 2000.4 GB, 2000396746752 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0018f92d
Device Boot Start End Blocks Id System
/dev/sdd1 1 243202 1953511424 83 Linux
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 5.3G 8.6G 38% /
tmpfs 1005M 392K 1005M 1% /dev/shm
/dev/sda1 198M 41M 148M 22% /boot
/dev/sda4 442G 180G 240G 43% /var/hda/files
/dev/sdb1 917G 399G 472G 46% /var/hda/files/drives/drive1
/dev/sdc1 1.8T 277G 1.5T 16% /var/hda/files/drives/drive3
/dev/sdd1 1.8T 416G 1.3T 24% /var/hda/files/drives/drive4
//127.0.0.1/archivemusic
442G 202G 240G 46% /mnt/samba/archivemusic
//127.0.0.1/Books 3.2T 1017G 2.2T 32% /mnt/samba/Books
//127.0.0.1/Docs 3.2T 1017G 2.2T 32% /mnt/samba/Docs
//127.0.0.1/Downloads
3.2T 1017G 2.2T 32% /mnt/samba/Downloads
//127.0.0.1/Movies 3.2T 1017G 2.2T 32% /mnt/samba/Movies
//127.0.0.1/music 3.2T 1017G 2.2T 32% /mnt/samba/music
//127.0.0.1/Music 3.2T 1017G 2.2T 32% /mnt/samba/Music
//127.0.0.1/Pictures 3.2T 1017G 2.2T 32% /mnt/samba/Pictures
//127.0.0.1/Torrents 3.2T 1017G 2.2T 32% /mnt/samba/Torrents
Greyhole Statistics
===================
Storage Pool
Total - Used = Free + Attic = Possible
/var/hda/files/gh: 442G - 179G = 240G + 0G = 240G
/var/hda/files/drives/drive1/gh: 917G - 398G = 472G + 71G = 543G
/var/hda/files/drives/drive3/gh: 1834G - 276G = 1464G + 0G = 1464G
Code: Select all
[root@desktop 200701Jan]# mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
+----+------------------------------+--------------+---------------------+---------------------+
| id | path | minimum_free | created_at | updated_at |
+----+------------------------------+--------------+---------------------+---------------------+
| 1 | /var/hda/files | 10 | 2011-01-07 05:51:22 | 2011-01-07 05:51:22 |
| 2 | /var/hda/files/drives/drive1 | 10 | 2011-01-07 05:51:23 | 2011-01-07 05:51:23 |
| 3 | /var/hda/files/drives/drive3 | 10 | 2011-04-26 00:19:38 | 2011-04-26 00:19:38 |
+----+------------------------------+--------------+---------------------+---------------------+
Code: Select all
[root@desktop 200701Jan]# mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
Uploading (1.4K)...
Code: Select all
[root@desktop 200701Jan]# 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
Can't find # of writes in tasks table: no such table: tasks
Code: Select all
[matt@desktop ~]$ tail /var/log/greyhole.log
Oct 8 14:19:15 2 daemon: Can't query settings for 'graveyard_backup_directory': no such table: settings
Oct 8 14:20:45 6 daemon: Greyhole (version 0.7.5) daemon started.
Oct 8 14:20:45 7 daemon: Loading graveyard backup directories...
Oct 8 14:20:45 2 daemon: Can't query settings for 'graveyard_backup_directory': no such table: settings
Oct 8 14:21:46 6 daemon: Greyhole (version 0.7.5) daemon started.
Oct 8 14:21:46 7 daemon: Loading graveyard backup directories...
Oct 8 14:21:46 2 daemon: Can't query settings for 'graveyard_backup_directory': no such table: settings
Oct 8 15:16:09 6 daemon: Greyhole (version 0.7.5) daemon started.
Oct 8 15:16:09 7 daemon: Loading graveyard backup directories...
Oct 8 15:16:09 2 daemon: Can't query settings for 'graveyard_backup_directory': no such table: settings