I'm running Ubuntu 12.04/Precise with the 3.5.0-47-generic kernel as a home file server. Last week I swapped the 7 year old Celeron system in it for a new Intel Atom, keeping the same drives and OS install. Everything worked fine on boot, other than the network interface (Realtek 8101), which didn't seem to have a driver in the existing kernel. I downloaded and compiled that from the Realtek site, per advice I found in a different ubuntuforums thread, and everything seemed fine. But now I'm realizing that there's something wrong with the file sharing setup.
I have both NFS and AFP configured - I use AFP to allow this system to act like a Time Capsule for my MacOS laptops to back up to. I use NFS to share MP3s and video from the file server to my Macs and an Apple TV. The first thing I noticed was that my Apple TV started having problems playing MP3s from the file server. It could list the files, but playback either didn't work, or had lots of skips and other decoding artifacts. I mounted the share on my Mac laptop, and discovered that if I ran 'file *' on a folder of MP3s, some would show up as MP3s, while others would show up as 'ASCII text, with very long lines, with no line terminators.' The same files all list fine when I check them on the server side. I also had the same playback issues on the Mac. As a further test, I tried sharing the media files over AFP instead of NFS, and encountered essentially the same issues. Although running 'file' on the MP3s gave valid file data, I still couldn't play them back either on the Mac or the Apple TV. All of this worked for several years prior to the motherboard swap.
This is all over a local wired/wireless LAN, and I am seeing latencies of less than 5ms and no packet loss between the file server and clients. I have confirmed that the files are not corrupted by looking at them on the file server itself. And strangely enough, I can even scp multi-gigabyte files from the file server to a client, and they come across fine. There's no packet loss and only slightly increased latency to the system during a copy like this.
So there's my weird problem. I'm a generally competent Linux admin but this has me stumped. I don't even see anything in the logs that would give a hint, although maybe I need to increase logging somewhere. Feel free to tell me to run tcpdump, but only if you're willing to help me dissect the output - lower-level networking is not one of my strong suits. Thanks in advance
Bookmarks