XFS file system and OS X compatability issue

I have a huge mess on my hands thanks to OS X not playing nicely with the XFS file system on my Buffalo TeraStation NAS.

I appreciate any file system experts who can give advice on cleaning this up!

I use my NAS for a large iTunes library. I attach to the NAS with afp and then mount the volume which shows up as "/volumes/media".

Sometimes, iTunes decides that it doesn't like lowercase media and it will mount the volume a second time as "/volumes/MEDIA-1".

THIS IS THE WIERD PART: the contents of /volumes/media, as far as I can tell, are a subset of /volumes/MEDIA-1 (e.g. /volumes/MEDIA-1/folderA may show up as /volumes/media/folderA but /volumes/MEDIA-1/folderB does not show up as /volumes/media/folderB - though I get "unexpected error" if I try to create a /volumes/MEDIA-1/folderB).

I have a large library (thus the Terabyte NAS) so I really don't want to backup to DVD and then restore but I am open to suggestions.

THANK YOU SO MUCH FOR YOUR HELP!

Mac OS X (10.4.9)

Posted on Mar 31, 2007 5:50 PM

Reply
6 replies

Apr 1, 2007 10:24 PM in response to amichalo

Hi Aaron,
This is essentially a discussion about the command line. It helps us greatly to see commands and their output copied into the post. For instance, when there's one of these extra directories around, it would help to see a long listing from the command

ls -AFlh /Volumes

It would also help to see their contents, listed with the following command:

ls -AFlh /Volumes/*

If there's really a lot, I don't think we have to see much of it but it would probably help to see at least a few lines of each.

I've had a similar problem with disks. In my case, the directory whose name ends end with -1, or heaven forbid another number, was created by the Finder when asked to mount a volume when a directory by that name already existed in /Volumes. The case of automounting a network share is probably different as the shares are mounted in /private/Network/Servers and symlinks are created to them. Unfortunately how you mounted the share is something else you've left out so we can only guess at what might have happened.

I would guess that one of two things happened. One possibility is that you've had a dirty shutdown and the automounter didn't get the opportunity to remove a directory or symlink it created in presenting the share. The other is that you have mounted the share twice. The fact that you can see content in both suggests that this is the case but there isn't sufficient information to know why this might have occurred or even if it has. You might try running the following command as you're accessing a share:

sudo lsof -i

That command lists network connections but I think those are closed after the information has been transmitted so timing would be critical. If this were NFS I would suggest running showmount but I don't know if there's a comparable command for AFP. It is possible to determine this from the logs of the server version of OS X but I assume that the "Buffalo TaraStation NAS" isn't running OS X. Does that server at least have logs?
--
Gary
~~~~
Say it with flowers,
Or say it with mink,
But whatever you do,
Don't say it with ink!
-- Jimmie Durante

Apr 6, 2007 8:02 PM in response to Gary Kerbaugh

Okay, I am really stretching my technical file system knowledge, but I will try to provide complete details here.

- I mount the volume from the NAS using Finder -> Go -> afp://[ip address] and when prompted, I select the volume "media" (lower case) and it opens a finder window so I can navigate the share.

- I have my iTunes set with shortcuts to this share for the iTunes Library file, as well as XML library file and iTunes directory.

- When I go to the command line, cd to /Volumes and I see a few volumes including:
drwxrwxrwx 8 aaron aaron 264 Apr 6 21:46 media

- When I go into iTunes and select a track with the bang ⚠ and I right click and Get Info, I see in finder there is a new volume "MEDIA" (upper case) along with the previous lower case "media" and from the command line, ls -l now gives me the following volumes:
drwx------ 1 aaron admin 16384 Apr 6 07:46 MEDIA-1
drwxrwxrwx 8 aaron aaron 264 Apr 6 21:46 media

- the ls -AFIh /Volumes/* returns the following relevant info:
/Volumes/MEDIA-1:
601738212 .DS_Store* 2606916304 iPhoto Library.zip*
2059019717 .Trashes/ 1769946818 iTunes Library/
2206609983 iPhoto Library/ 1879366728 iTunes Music Backup/
3550757939 iPhoto Library (old)/ 1834278932 trashbox/

/Volumes/media:
1520 iPhoto Library/ 10090 iTunes Music Backup/
19 iPhoto Library (old)/ 10090 iTunes Music Backup/
18 iTunes Library/ 17 trashbox/

- What I really want, is for iTunes and the Finder to pick one - either one but the finder seems to really like "media" - and stick with that. iTunes reads the majority of my library from "media" not "MEDIA" but this inconsistancy makes me question the integrity of my backups.

I hope this detail helps. The NAS does not have logs that I know of and is not running OS X. I do have a /private dir but not a /private/Network. Lastly, I didn't really understand the showmount comment. Please continue to work with me to resolve this!

Apr 7, 2007 7:02 AM in response to Jeff Breitner

JEFF - THANKS! that was an unexpected result -

So when I connect SMB://[ip address] it mounts the "MEDIA" (caps) and I can see all the items with long file names, etc. This is what I want!

I think from here I need to move all my itunes music references from "media" to "MEDIA" and I will be good to go. I do have a couple questions I hope you will take a moment to answer:
(1) If the NAS is XFS, why is it that when I connect via SMB it support long file names, etc like EXT2?
(2) Why does SMB ("MEDIA") connect the EXT2 way but AFS ("media") connects with file name limitations of XFS?
(3) With rumors of Leopard having a new file system to support Time Machine, do you have any suggestions to enure compatability?

THANK YOU AGAIN!

Apr 7, 2007 4:46 PM in response to amichalo

Hi Aaron,
I asked for a (long) listing with the -l (lower case "el") option, not the -I (upper case "eye") option. All you had to do was copy-and-paste. However, I don't know if it would have helped. We may be able to tell you something about the client that will help you figure out what the server is doing but we can't tell you about the server because it's not an Apple implementation of an AFP server.

I gather that you told iTunes that to open a music library on an AFP share. It's nice that iTunes is robust enough to mount the share but it appears to not know when the share is already mounted. One possible reason is the difference is case. HFS+ is case-insensitive but is case-preserving so if a process inquires as to what is mounted in /Volumes, the name of this share is given as "media." If iTunes is looking for "MEDIA" and compares in a case-sensitive fashion, it will think it's not there. Thus, if you could get the cases to match, maybe iTunes wouldn't mount the share again.

In mounting AFP shares, the Finder is case-sensitive. If I specify the share in the URL and spell it with the wrong case, the Finder reports that it cannot find the share. If I select it from the menu, it's already spelled with the correct case so I don't see how it's possible to get the case wrong with the Finder. Of course I'm mounting the share of an OS X server and your evidence suggests that the "Buffalo TaraStation NAS" behaves differently.

I don't know how iTunes deals with libraries that are on a remote share but I hold out hope that you can convince it that the share name is media. I think there's a chance that it will use the already mounted share if the names match in case.

On the other hand, it doesn't seem to be an error to mount an AFP share twice and the Finder's method of adding "-1" to the name should work to make UNIX paths unique. I cannot explain the discrepancy in the two listings though. There is another mistake in the /Volumes/media listing; the "iTunes Music Backup" directory is listed twice and the inodes match. Thus there clearly an error; it would be interesting to sniff packets and see if the error occurs on the server or the client but I'm betting on the server.

According to the one long listing we have, both shares were mounted with the authority of the user aaron. However, the groups are different and that really surprises me. This may take an AFP expert to resolve but it was my impression that the group owner of a share was determined by the server. That suggests that these are actually two different shares. Does this server share a directory that contains the "media" share? Can you think of any way that these could be two different AFP shares with the same share name?

I also want to second Jeff's — Oh, you just posted that you like Jeff's solution. That's just as well. Tiger puts resource forks in files on such filesystems and the Finder presents them as it would an Appledouble file. Also, it supports Windoze permissions, which are quite elaborate. Finally, to answer your last question, it shouldn't be possible to have a problem with samba shares on Leopard if they really stood behind their claims and froze the kernel API in Tiger.
--
Gary
~~~~
"Out of register space (ugh)"
-- vi

Apr 8, 2007 7:50 AM in response to amichalo

XFS and EXT2/3 have pretty much the same file naming restrictions. XFS is what you want to use for storing media because the file size limitation is on the order of millions of terabytes. But as I mentioned in my previous post, it's not the file system that is at fault because you're talking to it through a layer of software through the network, and that's where the problem lies.

My take on this is that Linux implementation of AFS that Buffalo uses to control the RAID isn't completely up to what OS X expects of it. Therefore, your OS X computer does the best it can with it.

I'm betting that if you used something like Automount Maker and set the name to MEDIA, it would behave as you want under AFS. The link is http://jm.marino.free.fr/index.php?switch=main_

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

XFS file system and OS X compatability issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.