An example:
\\HDA\Music\Add to iTunes\Dave Matthews Band\Big Whiskey And The GrooGrux King (Super\1-13 You & Me.mp3
renamed (from an explorer window on a W7 client)
\\HDA\Music\Add to iTunes\Dave Matthews Band\Big Whiskey And The GrooGrux King (Super\13 You & Me.mp3
This was done with tracks 1~13 and they are all missing. Please note this is NOT the "Automatically Add to iTunes" directory. It is a pile of music that I need to add to iTunes. I should also note this isn't a big deal...as it turns out I had a higher bitrate copy of these tracks that I added so I really don't need these files but I would like to get to the bottom of this. It makes me a little nervous as I am about to pull the drives from my old WHS and add them to this server for folder duplication so I won't have anything to fall back on if something happens to "disappear into the greyhole". LOL
EDIT: I have renamed several files in other directories since and haven't had any issue. In looking more in what I see below (though I really don't know what I'm looking at) I think there is a good possibility this happened as a result of the directory name. The directory name was truncated at some point in time so that it now includes an "(" but not an ")"
EDIT: I'm not sure how accurate that assessment is...please see the next post.
Code: Select all
# greyhole --debug "13 You & Me.mp3"
Debugging file operations for file named "/13 You & Me.mp3"
From DB
=======
[2011-01-09 09:34:53] Task ID 885984: rename Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/1-13 You & Me.mp3 -> Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3
[2011-01-09 09:34:53] Task ID 885985: write Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3
[2011-01-09 09:34:55] Task ID 885988: rename Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/1-13 You & Me.mp3 -> Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3
From logs
=========
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
gzip: stdout: Broken pipe
grep: Unmatched ( or \(
From filesystem
===============
Landing Zone:
lrwxrwxrwx 1 root root 127 2011-01-09 10:26 /var/hda/files/music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3 -> /var/hda/files/drives/drive3/gh/Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3
Graveyard:
-rw-rw-rw- 1 root root 349 2011-01-09 10:26 /var/hda/files/drives/drive3/gh/.gh_graveyard/Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3
array (
'/var/hda/files/drives/drive3/gh/Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3' =>
stdClass::__set_state(array(
'path' => '/var/hda/files/drives/drive3/gh/Music/Add to iTunes/Dave Matthews Band/Big Whiskey And The GrooGrux King (Super/13 You & Me.mp3',
'is_linked' => true,
'state' => 'OK',
)),
)
File copies:
Code: Select all
# 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.8.3-2.x86_64
Code: Select all
# fpaste /etc/samba/smb.conf; fpaste /etc/greyhole.conf
Uploading (4.4K)...
http://fpaste.org/JzC1/
Uploading (1.5K)...
http://fpaste.org/yT9Z/
Code: Select all
# mount; fdisk -l; df -h; greyhole --stats
/dev/mapper/vg_xavier-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)
/dev/sdb1 on /boot type ext4 (rw)
/dev/sde1 on /var/hda/files/drives/drive1 type ext4 (rw)
/dev/sdc1 on /var/hda/files/drives/drive2 type ext4 (rw)
/dev/sda1 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/bigdaddy/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bigdaddy)
Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e7bc0
Device Boot Start End Blocks Id System
/dev/sda1 1 182402 1465137152 83 Linux
Disk /dev/sdc: 1000.2 GB, 1000200658432 bytes
255 heads, 63 sectors/track, 121600 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9d994cdf
Device Boot Start End Blocks Id System
/dev/sdc1 1 121601 976756736 83 Linux
Disk /dev/sdb: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcb8bc459
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 26 38913 312363841 8e Linux LVM
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002c68f
Device Boot Start End Blocks Id System
/dev/sdd1 1 243202 1953513472 83 Linux
Disk /dev/sde: 1500.3 GB, 1500297682432 bytes
255 heads, 63 sectors/track, 182400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006196a
Device Boot Start End Blocks Id System
/dev/sde1 1 182401 1465133056 83 Linux
Disk /dev/dm-0: 311.4 GB, 311435460608 bytes
255 heads, 63 sectors/track, 37863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 8422 MB, 8422162432 bytes
255 heads, 63 sectors/track, 1023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_xavier-lv_root
286G 53G 219G 20% /
tmpfs 3.0G 888K 3.0G 1% /dev/shm
/dev/sdb1 194M 40M 144M 22% /boot
/dev/sde1 1.4T 1.2T 126G 91% /var/hda/files/drives/drive1
/dev/sdc1 917G 774G 98G 89% /var/hda/files/drives/drive2
/dev/sda1 1.4T 1.2T 112G 92% /var/hda/files/drives/drive3
/dev/sdd1 1.8T 1.5T 304G 83% /var/hda/files/drives/drive4
Greyhole Statistics
===================
Storage Pool
Total - Used = Free + Attic = Possible
/var/hda/files/drives/drive1/gh: 1375G - 1180G = 125G + 7G = 132G
/var/hda/files/drives/drive2/gh: 917G - 773G = 97G + 6G = 103G
/var/hda/files/drives/drive3/gh: 1375G - 1194G = 111G + 10G = 121G
/var/hda/files/drives/drive4/gh: 1834G - 1437G = 303G + 12G = 315G
Code: Select all
# mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
+----+------------------------------+--------------+---------------------+---------------------+
| id | path | minimum_free | created_at | updated_at |
+----+------------------------------+--------------+---------------------+---------------------+
| 1 | /var/hda/files/drives/drive1 | 10 | 2010-12-27 00:16:44 | 2010-12-27 00:16:44 |
| 2 | /var/hda/files/drives/drive2 | 10 | 2010-12-27 21:49:01 | 2010-12-27 21:49:01 |
| 3 | /var/hda/files/drives/drive3 | 10 | 2010-12-27 23:03:52 | 2010-12-27 23:03:52 |
| 4 | /var/hda/files/drives/drive4 | 10 | 2011-01-06 01:31:42 | 2011-01-06 01:31:42 |
+----+------------------------------+--------------+---------------------+---------------------+
Code: Select all
# mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
Uploading (2.8K)...
http://fpaste.org/aifn/
Code: Select all
# 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
Bluray 0 0 0
Documents 0 0 0
DVD 0 0 0
Music 0 0 0
Pictures 0 0 0
Software 0 0 0
TV 0 0 0
Videos 0 0 0
=========
Total 0 + 0 + 0 = 0
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