Files missing from samba shares

Stryck
Posts: 4
Joined: Sun Sep 11, 2011 5:29 pm

Files missing from samba shares

Postby Stryck » Sun Sep 11, 2011 5:54 pm

Hi All,
I recently had one of my hard drives in my pool fail, and it has been replaced with two more drives. But now the files that were moved to the new drives aren't in my shares. Any help is appreciated

A short summary: I lost one drive (drive3), added two new drives (drive5, drive6), ran a --fsck after everything was installed, then balanced. This resulted in many files being moved to the new drives. Now it seems as if those files that were moved are not available from my local mount_shares_locally or remotely. However, everything appears correctly in the landing directories. Anything on the old drives does appear correctly.

For example, this file is available:
Landing Pad: /var/hda/files/drives/drive2/TV/The League/Season 02/The League s02e01 Vegas Draft.nfo
Linked File: /var/hda/files/drives/drive4/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.nfo
Mounted File: /mnt/samba/TV/The League/Season 02/The League s02e01 Vegas Draft.nfo

But this file is missing:
Landing Pad: /var/hda/files/drives/drive2/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Linked File: /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Mounted File: MISSING

Things I have tried:
- Rebooting
- Checking permissions / ownership (ran chown on all drives / files)
- Sopping / restarting samba
- Stopping / restarting mount_shares_locally
- Ran --fsck -find_orphaned_files

Here are my vitals:
2.6.35.13-92.fc14.x86_64
samba-3.5.8-76.fc14.x86_64
hda-greyhole-0.9.2-1.x86_64

Smb.conf
http://fpaste.org/1Db5/

Greyhole.conf
http://fpaste.org/84s2/

Mount:
[root@Amahi ~]# mount
/dev/sda1 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/sda3 on /boot type ext2 (rw)
/dev/sda4 on /var/hda/files/drives/drive2 type ext4 (rw)
/dev/sdd1 on /var/hda/files/drives/drive5 type ext4 (rw)
/dev/sdc1 on /var/hda/files/drives/drive6 type ext4 (rw)
/dev/sdb1 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)
//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/Other on /mnt/samba/Other type cifs (rw)
//127.0.0.1/Pictures on /mnt/samba/Pictures type cifs (rw)
//127.0.0.1/TV on /mnt/samba/TV type cifs (rw)
//127.0.0.1/Unsorted on /mnt/samba/Unsorted type cifs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
gvfs-fuse-daemon on /home/Chance/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=Chance)

FDisk -l
Disk /dev/sda: 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: 0x000aeac1

Device Boot Start End Blocks Id System
/dev/sda1 2048 20482047 10240000 83 Linux
/dev/sda2 20482048 40962047 10240000 82 Linux swap / Solaris
/dev/sda3 * 40962048 41166847 102400 83 Linux
/dev/sda4 41174595 3907024064 1932924735 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x000ca6e8

Device Boot Start End Blocks Id System
/dev/sdb1 63 1953520064 976760001 83 Linux

Disk /dev/sdd: 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: 0x00023fd3

Device Boot Start End Blocks Id System
/dev/sdd1 63 3907024064 1953512001 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: 0x00042def

Device Boot Start End Blocks Id System
/dev/sdc1 63 3907024064 1953512001 83 Linux


DF -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.7G 5.8G 3.4G 63% /
tmpfs 2.0G 448K 2.0G 1% /dev/shm
/dev/sda3 97M 59M 34M 64% /boot
/dev/sda4 1.8T 1.2T 554G 68% /var/hda/files/drives/drive2
/dev/sdd1 1.8T 1.2T 552G 69% /var/hda/files/drives/drive5
/dev/sdc1 1.8T 1.2T 553G 69% /var/hda/files/drives/drive6
/dev/sdb1 917G 314G 558G 36% /var/hda/files/drives/drive4
//127.0.0.1/Docs 6.3T 4.1T 2.2T 66% /mnt/samba/Docs
//127.0.0.1/Movies 6.3T 4.1T 2.2T 66% /mnt/samba/Movies
//127.0.0.1/Music 6.3T 4.1T 2.2T 66% /mnt/samba/Music
//127.0.0.1/Other 6.3T 4.1T 2.2T 66% /mnt/samba/Other
//127.0.0.1/Pictures 6.3T 4.1T 2.2T 66% /mnt/samba/Pictures
//127.0.0.1/TV 6.3T 4.1T 2.2T 66% /mnt/samba/TV
//127.0.0.1/Unsorted 1.8T 1.3T 554G 70% /mnt/samba/Unsorted

Greyhole Statistics
===================

Storage Pool
Total - Used = Free + Attic = Possible
/var/hda/files/drives/drive2/gh: 1814G - 1169G = 553G + 0G = 553G
/var/hda/files/drives/drive4/gh: 917G - 313G = 557G + 0G = 557G
/var/hda/files/drives/drive6/gh: 1834G - 1188G = 553G + 0G = 553G
/var/hda/files/drives/drive5/gh: 1834G - 1189G = 552G + 0G = 552G
==========================================
Total: 6399G - 3859G = 2215G + 0G = 2215G

[root@Amahi ~]# mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
+----+------------------------------+--------------+---------------------+---------------------+
| id | path | minimum_free | created_at | updated_at |
+----+------------------------------+--------------+---------------------+---------------------+
| 2 | /var/hda/files/drives/drive2 | 10 | 2011-03-27 07:25:07 | 2011-03-27 07:25:07 |
| 4 | /var/hda/files/drives/drive4 | 10 | 2011-03-27 18:26:11 | 2011-03-27 18:26:11 |
| 5 | /var/hda/files/drives/drive6 | 10 | 2011-09-10 02:24:07 | 2011-09-10 02:24:07 |
| 6 | /var/hda/files/drives/drive5 | 10 | 2011-09-10 02:24:09 | 2011-09-10 02:24:09 |
+----+------------------------------+--------------+---------------------+---------------------+

[root@Amahi ~]# mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste
Uploading (3.1KiB)...
http://fpaste.org/efPw/

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

This table gives you the number of pending operations queued for the Greyhole daemon, per share.

Write Delete Rename
Docs 0 0 0
Movies 0 0 0
Music 0 0 0
Other 0 0 0
Pictures 0 0 0
TV 0 0 0
TV2 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

And finally here is a --debug paste from one of the missing files:
Debugging file operations for file named "/The League s02e01 Vegas Draft.mkv"

From DB
=======
[2011-07-24 03:54:44] Task ID 122809: write TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
[2011-09-05 22:21:08] Task ID 683772: fsck_file TV/The League/Season 02/The League s02e01 Vegas Draft.mkv

From logs
=========
Sep 04 03:31:03 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e08 The Tie.nfo... Got 2 tombstones.
Sep 04 03:31:03 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 04 03:31:03 7 fsck: Found /var/hda/files/drives/drive3/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 04 03:31:03 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 04 03:31:03 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e10 High School Reunion.nfo
Sep 06 01:10:23 7 fsck_file: Saving tombstones (backup) in /var/hda/files/drives/drive3/gh/.gh_graveyard_backup/TV/The League/Season 02/The League s02e08 The Tie.nfo
Sep 06 01:10:23 7 fsck_file: Now working on task ID 683772: fsck_file TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 7 fsck_file: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 7 fsck_file: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 06 01:10:23 6 fsck_file: Missing file copies. Expected 2, got 1. Will create more copies using /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 4 fsck_file: Warning! All storage pool directories are over-capacity!
Sep 06 01:10:23 7 fsck_file: Drives full: /var/hda/files/drives/drive2/gh (0.00B free) - /var/hda/files/drives/drive4/gh (-1,024B free)
Sep 06 01:10:23 7 fsck_file: Updating symlink at /var/hda/files/drives/drive2/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv to point to /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 7 fsck_file: Saving 2 tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 7 fsck_file: Saving tombstones in /var/hda/files/drives/drive2/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 7 fsck_file: Saving tombstones (backup) in /var/hda/files/drives/drive3/gh/.gh_graveyard_backup/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 06 01:10:23 7 fsck_file: Now working on task ID 683773: fsck_file TV/The League/Season 02/The League s02e06 The Anniversary Party.nfo
Sep 10 00:48:13 7 fsck: Saving tombstones in /var/hda/files/drives/drive5/gh/.gh_graveyard/TV/The League/Season 02/The League s02e08 The Tie.nfo
Sep 10 00:48:13 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:13 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Found a tombstone pointing to a directory not defined in your storage pool: '/var/hda/files/drives/drive3/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv'. Will mark it as Gone.
Sep 10 00:48:13 7 fsck: Saving 2 tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:13 7 fsck: Saving tombstones in /var/hda/files/drives/drive2/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:13 7 fsck: Saving tombstones (backup) in /var/hda/files/drives/drive4/gh/.gh_graveyard_backup/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:13 7 fsck: Got 1 tombstones.
Sep 10 00:48:13 6 fsck: Missing file copies. Expected 2, got 1. Will create more copies using /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:13 7 fsck: Drives with available space: /var/hda/files/drives/drive5/gh (1.19TB avail) - /var/hda/files/drives/drive6/gh (1.19TB avail)
Sep 10 00:48:13 7 fsck: Drives full: /var/hda/files/drives/drive2/gh (0.00B free) - /var/hda/files/drives/drive4/gh (-1,024B free)
Sep 10 00:48:13 7 fsck: Copying file to /var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:24 7 fsck: Updating symlink at /var/hda/files/drives/drive2/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv to point to /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:24 7 fsck: Saving 2 tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:24 7 fsck: Saving tombstones in /var/hda/files/drives/drive2/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:24 7 fsck: Saving tombstones in /var/hda/files/drives/drive5/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 00:48:25 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e10 High School Reunion.nfo
Sep 10 13:32:25 7 balance: Balancing storage pool directory: /var/hda/files/drives/drive2/gh (395GB available, target: 548GB)
Sep 10 13:32:25 7 balance: Working on file: TV/The League/Season 02/The League s02e01 Vegas Draft.mkv (560MB)
Sep 10 13:32:25 7 balance: Drives with available space: /var/hda/files/drives/drive5/gh (820GB avail) - /var/hda/files/drives/drive6/gh (819GB avail) - /var/hda/files/drives/drive2/gh (394GB avail) - /var/hda/files/drives/drive4/gh (158GB avail)
--
Sep 10 13:32:25 7 balance: Moving file copy...
Sep 10 13:32:32 7 balance: Updating symlink at /var/hda/files/drives/drive2/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv to point to /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 13:32:32 7 balance: Saving 2 tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 13:32:32 7 balance: Saving tombstones in /var/hda/files/drives/drive6/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 13:32:32 7 balance: Saving tombstones in /var/hda/files/drives/drive5/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 13:32:32 7 balance: Balancing storage pool directory: /var/hda/files/drives/drive2/gh (395GB available, target: 548GB)
--
Sep 10 17:11:28 7 balance: Moving this file wouldn't help balancing available space. Skipping.
Sep 10 17:11:28 7 balance: Working on file: TV/The League/Season 02/The League s02e01 Vegas Draft.mkv (560MB)
Sep 10 17:11:28 7 balance: Drives with available space: /var/hda/files/drives/drive5/gh (548GB avail) - /var/hda/files/drives/drive2/gh (548GB avail) - /var/hda/files/drives/drive6/gh (548GB avail) - /var/hda/files/drives/drive4/gh (547GB avail)
--
Sep 10 17:17:13 7 balance: Moving this file wouldn't help balancing available space. Skipping.
Sep 10 17:17:13 7 balance: Working on file: TV/The League/Season 02/The League s02e01 Vegas Draft.mkv (560MB)
Sep 10 17:17:13 7 balance: Drives with available space: /var/hda/files/drives/drive5/gh (548GB avail) - /var/hda/files/drives/drive2/gh (548GB avail) - /var/hda/files/drives/drive6/gh (548GB avail) - /var/hda/files/drives/drive4/gh (547GB avail)
--
Sep 10 23:41:20 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e08 The Tie.nfo... Got 2 tombstones.
Sep 10 23:41:20 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:41:20 7 fsck: Found /var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:41:20 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 10 23:41:20 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e10 High School Reunion.nfo
--
Sep 10 23:55:03 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e08 The Tie.nfo... Got 2 tombstones.
Sep 10 23:55:03 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:55:03 7 fsck: Found /var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:55:03 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 10 23:55:03 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e10 High School Reunion.nfo
--
Sep 10 23:58:05 7 fsck: Entering /var/hda/files/drives/drive6/gh/TV/The League/Season 02
Sep 10 23:58:05 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:58:05 7 fsck: Found /var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:58:05 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 10 23:58:05 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e03 The White Knuckler.mkv
--
Sep 10 23:58:14 7 fsck: Entering /var/hda/files/drives/drive5/gh/TV/The League/Season 02
Sep 10 23:58:14 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:58:14 7 fsck: Found /var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 10 23:58:14 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 10 23:58:14 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e12 Kegel the Elf.mkv
Sep 11 03:56:58 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e08 The Tie.nfo... Got 2 tombstones.
Sep 11 03:56:58 7 fsck: Found /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 11 03:56:58 7 fsck: Found /var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
Sep 11 03:56:58 7 fsck: Loading tombstones for TV/The League/Season 02/The League s02e01 Vegas Draft.mkv... Got 2 tombstones.
Sep 11 03:56:58 7 fsck: Found /var/hda/files/drives/drive2/gh/TV/The League/Season 02/The League s02e10 High School Reunion.nfo

From filesystem
===============
Landing Zone:
lrwxrwxrwx 1 Chance users 89 Sep 10 13:32 /var/hda/files/drives/drive2/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv -> /var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv

Graveyard:
-rw-rw-rw- 1 Chance users 443 Sep 10 13:32 /var/hda/files/drives/drive6/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
array (
0 =>
stdClass::__set_state(array(
'path' => '/var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv',
'is_linked' => false,
'state' => 'OK',
)),
'/var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv' =>
stdClass::__set_state(array(
'path' => '/var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv',
'is_linked' => true,
'state' => 'OK',
)),
)
-rw-rw-rw- 1 Chance users 443 Sep 10 13:32 /var/hda/files/drives/drive5/gh/.gh_graveyard/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv
array (
0 =>
stdClass::__set_state(array(
'path' => '/var/hda/files/drives/drive5/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv',
'is_linked' => false,
'state' => 'OK',
)),
'/var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv' =>
stdClass::__set_state(array(
'path' => '/var/hda/files/drives/drive6/gh/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv',
'is_linked' => true,
'state' => 'OK',
)),
)

Any help is appreciated. Not sure what to do at this point.

Stryck
Posts: 4
Joined: Sun Sep 11, 2011 5:29 pm

Re: Files missing from samba shares

Postby Stryck » Tue Sep 13, 2011 9:21 pm

So, here is an update:

I decided to get rough with the server and manually re-copy the file into the mount share. When I tried it, I get this error even though the destination directory does not appear to have my file.

http://imageshack.us/photo/my-images/70 ... hotauy.png

It looks like some kind of null file stub that may be causing my problems. Anyone have any clue how to get rid of it. It isn't listed via ls in the terminal.

If I attempt to replace it I get this error:
Error opening file '/mnt/samba/TV/The League/Season 02/The League s02e01 Vegas Draft.mkv': Permission denied

Thanks,

Update:
Now I am suspecting it has mostly to do with my hard drive configuration.
Any symlinks in my landing pad pointing to either of my two new drives (drive5, drive6) fail to appear in my samba share. If the file appears on a valid drive (drive2, drive4), I can create a link to that file and replace the "broken" link with it and it immediately appears in my local /mnt/samba/ share. I have no idea what might cause this kind of problem.

Stryck
Posts: 4
Joined: Sun Sep 11, 2011 5:29 pm

Re: Files missing from samba shares

Postby Stryck » Wed Sep 14, 2011 10:15 pm

Finally found the problem. It was a permissions issue all along, as all my problems with Amahi seem to have been.

The issue was that Amahi, when it mounts the drives, does not set permissions for users, only root.

Thus, my /var/hda/files/drives/drive6 permissions were drwx------. Which caused failure all the way down to individual files even though those files had the correct permissions set. Perhaps there is a bug in Amahi when it sets up the mounts for those drives?

Hope this helps anyone else having similar issues!

User avatar
nalleju
Posts: 26
Joined: Mon Sep 12, 2011 1:18 am
Location: Esbo, Finland, EU
Contact:

Re: Files missing from samba shares

Postby nalleju » Sat Sep 17, 2011 10:37 am

If you mount as root you end up as described.

You need to loxin with putty and mount with the parameters you need.
See http://linux.about.com/od/commands/l/blcmdl8_mount.htm

As you see the quick guid to this command is pages long = powerfull and complicated command.

If you want more flex GUI use Webmin. Create the mount and go to File Manager and set parameters.

Who is online

Users browsing this forum: No registered users and 19 guests