Page 1 of 2
SOLVED: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 9:51 am
by phreaq
I'm not sure how this has happened, but here's my issue.
I use Headphones, and it seems for some recent folders I'm not seeing the files in their folders.
For example, the following folder is empty when viewed from a Windows client computer:
\\HDA\Music\Re-tagged Music\Yeasayer\Fragrant World\
also, from the HDA, this folder is empty
/mnt/samba/Music/Re-tagged Music/Yeasayer/Fragrant World
however, there are files here:
/var/hda/files/drives/drive4/gh/Music/Re-tagged Music/Yeasayer/Fragrant World
As I say, I don't know how this occurred, but it's not for all folders, just 'recent' ones. Any thoughts?
Anyway to fix this?
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 11:27 am
by bigfoot65
There won't be files in /mnt/samba unless you are using Mount Shares Locally. If you are, then try restarting the service.
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 12:00 pm
by phreaq
a manual restart of the service, and then a reboot of the server did not resolve it.
If I check headphones, it is listing the /mnt/ location correctly for the files in that folder, so it was there a one point.
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 12:46 pm
by bigfoot65
Could be a permissions issue. You could try as root user:
Code: Select all
service mount_shares_locally stop
rm -rf /mnt/samba/*
service mount_shares_locally start
Also verify the missing files have the correct ownership and file system permissions.
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 12:49 pm
by phreaq
In my set up, drive 4 and drive 5 are part of my storage pool.
If I look at /var/hda/files/drives/drive4/gh I can see my folder structure.
But /var/hda/files/drives/drive5/gh is empty.
Is that normal for greyhole?
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 12:57 pm
by phreaq
manual stop start didn't help.
If I check a file in /var/hda/files/drives/drive4/gh/Music/Re-tagged Music/Yeasayer/Fragrant World, it's permission is 0664.
Which directory show I chmod it recursively from, the /mnt or the /drive?
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 1:02 pm
by bigfoot65
Ok, if a drive is not populated, then you might have missed something. Are you doing this via command line or using the
Greyhole UI app?
DO NOT mess with files in the gh folders. That is a good way to mess things up. Check permissions in /var/hda/files/share only. There might be some help in
Mount Shares Locally wiki page.
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 1:09 pm
by phreaq
I've been running gh for about 2 months now, following the wiki, and the UI. It's fine for other music files in the same parent folder, it's just an issue in some recent items.
I always go thru the /mnt/ folder. I'm only looking into the /drive folder to see what's happening.
The properties for the folder /mnt/samba/Music/Re-tagged Music/Yeasayer/Fragrant World is 770. There's no files inside to check
/var/hda/files is 755.
I'm using WinSCP to check all of this, and Windows 8 to view the folders.
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 2:42 pm
by bigfoot65
Check to see that the files are owned by 1st admin user:users in /var/hda/files/share and /mnt/samba. The 1st admin user is the one you created when you initially installed Amahi.
Re: Files found in /drives but not /mnt/samba
Posted: Wed Oct 29, 2014 6:26 pm
by phreaq
I checked the greyhole log, and it was full of entries that looked like this
Code: Select all
Oct 29 17:49:34 DEBUG fsck: Loading metafiles for Music/Music Collection/Orchestra/More Broadway Musical/Metadata/Orchestra - More Broadway Musical - 12 - Sound Of Music - The Sound of Music.jpg ...
Oct 29 17:49:34 DEBUG fsck: Got 2 metadata files.
Oct 29 17:49:34 INFO fsck: Missing file copies. Expected 2, got 1. Will create more copies using /var/hda/files/drives/drive4/gh/Music/Music Collection/Orchestra/More Broadway Musical/Metadata/Orchestra - More Broadway Musical - 12 - Sound Of Music - The Sound of Music.jpg
Oct 29 17:49:34 DEBUG fsck: Drives with available space: /var/hda/files/drives/drive4/gh (976GB avail) - /var/hda/files/drives/drive5/gh (973GB avail)
Oct 29 17:49:34 DEBUG fsck: Reordered drives, per sticky_files config: /var/hda/files/drives/drive4/gh - /var/hda/files/drives/drive5/gh
Oct 29 17:49:34 WARN fsck: Failed to create directory /var/hda/files/drives/drive5/gh/Music
It looks like there was an issue with Drive 5, so I shut down the server, pull the drive out, re-seated it, and rebooted.
All my files are back!!!!
Thanks for your help