Best file system for media server? [closed]

Solution 1:

Given all access to the filesystem from non-Linux systems will be through an abstraction layer, pick whatever you want! I'd suggest your distro's default (ext3 probably). Media storage has no special needs in terms of speed or reliability, so you'll just add unnecessary complexity picking an exotic filesystem. In terms of the specific use cases you mentioned:

  • Vista includes an NFS client, and of course you can share the drive via Samba too. If you mean direct physical access to the drive, I would change my recommendation for the filesystem to NTFS, as it has the best cross platform compatibility between Windows and Linux.
  • Any filesystem works here - Samba abstracts that away from what the client sees.
  • Just don't pick FAT32!
  • Any current, non-exotic filesystem will be fine here. Even the 'exotic' filesystems like XFS/JFS will be supported in the kernel for years to come.

Solution 2:

I use XFS on my MythTV server, and it works very well. I've also shared out certain directories by way of Samba so my Windows workstations can get access to it. I have a script that transcodes shows into a format usable on my iriver clix2, which dumps to a directory I map to from my Windows laptop and transfer to the media player. One of the nicer things about using XFS for a media server is that XFS has a defragger, as keeping those very large files sequential on that undoubtedly SATA drive is a good idea.

A suggestion that helped me out, is use the "allocsize=256m" mount option for XFS. This tells the kernel to allocate 256MB hunks of space when writing a file. As SD shows are taking 2.2GB/hour on my rig, this reduces frag significantly. The few HD shows I've managed to record are on the order of 15GB/hour, and my file-system hasn't blinked at it. It'd blink even less if I were running 64-bit.

XFS support is relatively new in the land of Linux, but by 2.6.30 it has been in there a long time. I haven't had any corruption problems with it at home or at work. It isn't so hot for massively random I/O on SATA drives, such as the load VMWare Workstation puts on (ahem), but for sequential access it smokes.

I'm actively in the planning stages of setting up another media server in the back room to supplement the storage on the encoder box. This will also be XFS, but shared out over NFS to the MythTV box for minimal network overhead. It might go ext4, but I haven't done anything with that FS yet.

Solution 3:

XFS is best for storing video because it's very stable and has excellent large file support. It's not even exotic anymore.

Sharing (with another computer) is unrelated to the filesystem.

Basically, if you're sharing with windows - choose Samba because it's easiest.

While Samba works fine, if XBMC is your focus you might also like to consider UPNP (DLNA).

DLNA is designed EXACTLY for sharing media across a network, there are several choices for linux - like mediatomb or ushare.

mediatomb.cc

ushare.geexbox.org

Summary: Use XFS for the media partition, and Samba or DLNA for sharing.

/ Richy