[Greyhole] Files disappear after copying them into shares

thierryamahi
Posts: 9
Joined: Sat Mar 19, 2011 1:52 pm

[Greyhole] Files disappear after copying them into shares

Postby thierryamahi » Fri Mar 25, 2011 3:55 pm

Hi !

Fresh install of Fedora 14 and Amahi 6.

From my Mac, I move some files to my shares. The folders stay there but the big files disappear after a few seconds. Small files (.srt files and Thumbs.db stay there).

For what it's worth, files are copied from a user named macmini, who is not an admin.

1/ version of Fedora, Samba & Greyhole

Code: Select all

2.6.35.11-83.fc14.x86_64 samba-3.5.8-74.fc14.x86_64 hda-greyhole-0.9.2-1.x86_64
2/ content of the /etc/samba/smb.conf & /etc/greyhole.conf files
http://fpaste.org/cbeo/
http://fpaste.org/N9s4/

3/ greyhole stats

Code: Select all

/dev/mapper/vg_amahiserver-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/sda1 on /boot type ext4 (rw) /dev/mapper/vg_amahiserver-lv_home on /home type ext4 (rw) /dev/sdb1 on /var/hda/files type ext4 (rw) /dev/sdc1 on /var/hda/files/drives/drive1 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) fusectl on /sys/fs/fuse/connections type fusectl (rw) gvfs-fuse-daemon on /home/thierry/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=thierry) //127.0.0.1/Books on /mnt/samba/Books type cifs (rw) //127.0.0.1/Docs on /mnt/samba/Docs type cifs (rw) //127.0.0.1/Movies on /mnt/samba/Movies type cifs (rw) //127.0.0.1/Music on /mnt/samba/Music type cifs (rw) //127.0.0.1/Pictures on /mnt/samba/Pictures type cifs (rw) //127.0.0.1/Thierry on /mnt/samba/Thierry type cifs (rw) //127.0.0.1/TV Shows on /mnt/samba/TV Shows type cifs (rw) Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders, total 117210240 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 identifier: 0x0009f2f2 Device Boot Start End Blocks Id System /dev/sda1 * 2048 1026047 512000 83 Linux /dev/sda2 1026048 117209087 58091520 8e Linux LVM Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 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 identifier: 0x000d0904 Device Boot Start End Blocks Id System /dev/sdb1 2048 3907028991 1953513472 83 Linux Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 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 identifier: 0x00023a43 Device Boot Start End Blocks Id System /dev/sdc1 63 3907024064 1953512001 83 Linux Disk /dev/dm-0: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 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 identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table Disk /dev/dm-1: 29.9 GB, 29896998912 bytes 255 heads, 63 sectors/track, 3634 cylinders, total 58392576 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 identifier: 0x00000000 Disk /dev/dm-1 doesn't contain a valid partition table Disk /dev/dm-2: 21.0 GB, 20971520000 bytes 255 heads, 63 sectors/track, 2549 cylinders, total 40960000 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 identifier: 0x00000000 Disk /dev/dm-2 doesn't contain a valid partition table Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_amahiserver-lv_root 28G 3.9G 23G 15% / tmpfs 2.0G 272K 2.0G 1% /dev/shm /dev/sda1 485M 48M 412M 11% /boot /dev/mapper/vg_amahiserver-lv_home 20G 228M 19G 2% /home /dev/sdb1 1.8T 5.8G 1.7T 1% /var/hda/files /dev/sdc1 1.8T 7.2G 1.7T 1% /var/hda/files/drives/drive1 //127.0.0.1/Books 3.6T 200G 3.4T 6% /mnt/samba/Books //127.0.0.1/Docs 3.6T 200G 3.4T 6% /mnt/samba/Docs //127.0.0.1/Movies 3.6T 200G 3.4T 6% /mnt/samba/Movies //127.0.0.1/Music 3.6T 200G 3.4T 6% /mnt/samba/Music //127.0.0.1/Pictures 3.6T 200G 3.4T 6% /mnt/samba/Pictures //127.0.0.1/Thierry 3.6T 200G 3.4T 6% /mnt/samba/Thierry //127.0.0.1/TV Shows 3.6T 200G 3.4T 6% /mnt/samba/TV Shows Greyhole Statistics =================== Storage Pool Total - Used = Free + Attic = Possible /var/hda/files/gh: 1834G - 6G = 1735G + 0G = 1735G /var/hda/files/drives/drive1/gh: 1834G - 7G = 1734G + 0G = 1734G ========================================== Total: 3668G - 13G = 3468G + 0G = 3468G
4/ list drives in your storage pool (per Amahi platform)

Code: Select all

+----+------------------------------+--------------+---------------------+---------------------+ | id | path | minimum_free | created_at | updated_at | +----+------------------------------+--------------+---------------------+---------------------+ | 1 | /var/hda/files | 10 | 2011-03-24 02:31:26 | 2011-03-24 02:31:26 | | 2 | /var/hda/files/drives/drive1 | 10 | 2011-03-24 02:31:27 | 2011-03-24 02:31:27 | +----+------------------------------+--------------+---------------------+---------------------+
5/ list of the directories on the root of the drives included in your storage pool
http://fpaste.org/pBOy/

6/ Greyhole work queue

Code: Select all

Greyhole Work Queue Statistics ============================== This table gives you the number of pending operations queued for the Greyhole daemon, per share. Write Delete Rename Barbara 0 0 0 Books 0 0 0 Docs 0 0 0 Movies 0 0 0 Music 0 0 0 Pictures 0 0 0 Thierry 0 0 0 TV Shows 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
7/ example on one file which has disappeared: deliverance.avi

Code: Select all

Debugging file operations for file named "/deliverance.avi" From DB ======= [2011-03-25 18:22:23] Task ID 1386: write Movies/Deliverance/Deliverance.avi From logs ========= gzip: /var/log/greyhole.log*.gz: No such file or directory Mar 25 18:23:54 7 simplify_tasks: Simplifying pending tasks. Mar 25 18:23:54 7 write: Now working on task ID 1386: write Movies/Deliverance/Deliverance.avi Mar 25 18:23:54 6 write: File created: Movies/Deliverance/Deliverance.avi - 703MB Mar 25 18:23:54 7 write: Loading tombstones for Movies/Deliverance/Deliverance.avi... Got 0 tombstones. Mar 25 18:23:54 7 write: Drives with available space: /var/hda/files/drives/drive1/gh (1.68TB avail) - /var/hda/files/gh (1.68TB avail) Mar 25 18:23:54 7 write: Saving 1 tombstones for Movies/Deliverance/Deliverance.avi Mar 25 18:23:54 7 write: Saving tombstones in /var/hda/files/drives/drive1/gh/.gh_graveyard/Movies/Deliverance/Deliverance.avi Mar 25 18:23:54 7 write: Saving tombstones (backup) in /var/hda/files/gh/.gh_graveyard_backup/Movies/Deliverance/Deliverance.avi Mar 25 18:23:54 7 write: Copying file to /var/hda/files/drives/drive1/gh/Movies/Deliverance/Deliverance.avi Mar 25 18:24:00 7 write: Creating symlink in share pointing to the above file copy. Mar 25 18:24:00 7 write: Saving 1 tombstones for Movies/Deliverance/Deliverance.avi Mar 25 18:24:00 7 write: Saving tombstones in /var/hda/files/drives/drive1/gh/.gh_graveyard/Movies/Deliverance/Deliverance.avi Mar 25 18:24:00 7 read_smb_spool: Processing Samba spool... -- Mar 25 18:52:02 7 fsck: Entering /var/hda/files/movies/Deliverance Mar 25 18:52:02 7 fsck: Found /var/hda/files/drives/drive1/gh/Movies/Deliverance/Deliverance.avi Mar 25 18:52:02 7 fsck: Loading tombstones for Movies/Deliverance/Deliverance.avi... Got 1 tombstones. Mar 25 18:52:02 7 fsck: Found /var/hda/files/gh/Movies/Deliverance/Deliverance.srt From filesystem =============== Landing Zone: lrwxrwxrwx 1 root root 66 Mar 25 18:24 /var/hda/files/movies/Deliverance/Deliverance.avi -> /var/hda/files/drives/drive1/gh/Movies/Deliverance/Deliverance.avi Graveyard: -rw-rw-rw- 1 root root 155 Mar 25 18:24 /var/hda/files/drives/drive1/gh/.gh_graveyard/Movies/Deliverance/Deliverance.avi array ( 0 => stdClass::__set_state(array( 'path' => '/var/hda/files/drives/drive1/gh/Movies/Deliverance/Deliverance.avi', 'is_linked' => true, 'state' => 'OK', )), ) File copies: -rwxrw-r-- 1 macmini users 736956416 Jun 28 2009 /var/hda/files/drives/drive1/gh/Movies/Deliverance/Deliverance.avi
Thank you !

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

Re: [Greyhole] Files disappear after copying them into share

Postby gboudreau » Tue Mar 29, 2011 6:17 am

Maybe the problem comes from the ownership of the drive1 folder. Try this:

Code: Select all

chgrp users /var/hda/files/drives/drive1 chmod 775 /var/hda/files/drives/drive1
Still not working ?
Do you have other files in the same directory that do appear in the shares ?
If so:

Code: Select all

ls -la /var/hda/files/Movies/Deliverance/ ls -la /var/hda/files/drives/drive*/gh/Movies/Deliverance/
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 3 guests