|
|
Subscribe / Log in / New account

Distributions

OpenMediaVault: a distribution for NAS boxes

By Jonathan Corbet
January 2, 2015

Free NAS distributions
The Linux community has no shortage of general-purpose distributions that can be made to serve almost any need. But many Linux deployments are not on general-purpose machines; often the owner has a more specific objective in mind. One such objective is to put together a network-attached storage (NAS) box. A general-purpose distribution can easily be used in such a setting, but there are also several specialized distributions that make the task easier. This article, the first in a series, will look at OpenMediaVault, a Debian-based NAS-oriented distribution.

Given that the market is full of Linux-based NAS products, one might well wonder whether building a NAS server from scratch is worthwhile. There are a few reasons for doing so beyond the obvious "because we can." Most of the commercial products are relatively closed devices, depriving the owner of much of the freedom that Linux offers. They may not offer the specific combination of features and services that a user wants. It's a rare commercial box that gets regular security updates, but security is important for a storage server system. There may be a system sitting around already that is well suited to the task and just needs the right operating system. Or, if nothing else, it is comforting to have root access on the storage server and to be able to manage it with familiar commands and interfaces.

Installation

One of the advantages of a specialized distribution is that it tends to lack a lot of the baggage found in other distributions; a full OpenMediaVault 1.0.20 installation image weighs in at under 400MB, and the installed image takes just over 1GB. Booting that image yields a fairly standard sequence of Debian text-oriented installation screens. One thing that jumped out early on is that OpenMediaVault insists on taking a full disk for its own installation; it cannot work from a smaller partition, and it cannot export any part of the system disk to the network. That, of course, turns a four-bay server into a three-bay device; it also means that OpenMediaVault does not play well with any other distributions one might want to install on the system. Given that the system itself is quite small, it would be nice if it could accept life in a small partition and leave the bulk of the system drive available for other uses.

It's amusing that a storage server operating system's installation sequence ends by recommending that the user remove any floppies before rebooting into the installed system.

OpenMediaVault is based on the Debian stable ("wheezy") distribution, so it runs that distribution's venerable 3.2 kernel. That kernel has been consistently maintained since its release, so it will be well debugged and stable — but it won't be the place to look for exciting new features. There is no graphical desktop included with the system (unsurprisingly); it is Debian underneath, though, and is set up to use Debian's repositories, so a desktop environment could be installed if that truly seemed like a good idea.

Administration

[Main
screen] One can log into the console as root and do all of the usual administrative tasks from the command line. But the real added value in OpenMediaVault is in its web-oriented administration interface. At the outset, though, there were a couple of things that caught your editor's eye: (1) the whole thing is implemented in PHP, and (2) by default, only port 80 (HTTP) is supported. Supporting HTTPS out of the box is hard, of course; somebody has to come up with a server certificate from somewhere. One could also argue that a NAS box should run in a friendly environment, well sheltered from the Internet, so higher security might just get in the way. But it still feels wrong to have only insecure access to an important administrative function.

The administrative screens provide access to most of the functionality that users will want. At the storage level, one can manage individual disks, including wiping them completely if desired. There is access to SMART monitoring, and, happily, an extensive set of power-management controls allowing disks to be configured to spin down when they are idle. One thing that is missing, again, is partitioning; OpenMediaVault really wants to work exclusively with whole drives.

There is a RAID management layer, providing access to the MD subsystem in the kernel. Assembling a RAID array is a simple matter of filling out the [RAID
management screen] forms. The experience could be a little smoother; did it really have to spend five hours synchronizing a simple two-disk mirror array that had no data on it? But, little glitches like that aside, the RAID setup and management interface works well enough.

The filesystem screen allows the creation and mounting of filesystems on the available physical devices. The system can manage ext4, JFS, and XFS filesystems; there is no support for filesystems like Btrfs. There is also no logical volume manager support, thus no ability to create pools of space to be divided across filesystems. There is a screen for the management of disk quotas.

There is another set of screens for user and group management. They work well enough for a small number of users, but the interface is clearly oriented toward the management of individual user accounts, one at a time, in a local database. There is an "import" functionality, but it has its own special format; one can't, thus, just paste the contents of a password file into it. There is no provision for obtaining user information from an LDAP or NIS database. One might be able to set that up at the command-line level, but the web-based interface clearly doesn't envision tying into a larger network.

Exporting of filesystems via CIFS, NFS, and FTP is easily managed via the appropriate screens. One can also turn on services like rsync. There is no access to some of the fancier aspects of the NFS server — user-ID mapping, for example — but the basics are all there. Users can be allowed to access the server via SSH, but only if (1) the service has been explicitly enabled, and (2) the user in question is in the [Load
average display] "ssh" group. Most of the time, one assumes, there will be no reason to allow ordinary users to log into a NAS box.

Screens exist to provide system information in a number of forms; there are nice plots for network bandwidth usage or the system load average, for example. Conspicuously missing is any kind of plot of I/O bandwidth usage — a parameter that might be of interest on a box dedicated to storage! There is no provision for monitoring an uninterruptible power supply, unfortunately.

Closing notes

For the most part, the user interface works well. It does, though, have an annoying habit of requiring a click to save configuration changes, then another (at a distant location on screen) to confirm that the changes should really be saved. It might prevent a novice user from tripping, but it gets tiresome quickly. Also tiresome are the "do you really want to leave this page?" dialogs that pop up when the user does, indeed, want to leave an OpenMediaVault page.

One other little nit: there is a five-minute idle timeout by default; after that, the browser puts up this rather disconcerting image:

[session expired]

One does not normally want to hear about "software failures" on a storage box. In this case, the only failure is putting up a hair-raising warning when all that has happened is that the session has timed out.

For somebody wanting to set up a simple storage box for a home or a small office, OpenMediaVault might well be an attractive option. It takes away all of the fiddly details of setting up network services and, for the most part, things Just Work. Users wanting more advanced features or integration into a corporate network, instead, might find OpenMediaVault to be a bit more limiting than they would like. That is fine; those users do not appear to be the ones the project is targeting at this point. In the end, your editor is tempted to keep this distribution on the test server, but there are others to try out first; stay tuned.

Comments (35 posted)

Brief items

Distribution quotes of the week

After the release is before the release. The only difference is the release name!
-- Bernd Zeimetz (Debian BSP in April)

Since most of us don't have the time to completely build a self-contained Linux distro on our own, we're left with the apparently-unenviable task of working with other people to accomplish this. I'm all for making this as painless as possible, but I'm not entirely convinced that going along with pleas like "do I HAVE to read mailing lists" or "do I HAVE to let somebody co-maintain MY package or join MY team" or "why CAN'T I get into a revert-war with somebody who wants to add a feature to MY package that I don't personally use" is really going to lead to the sort of distro that any of us actually want to use.

If dealing with this kind of stuff seems unpleasant to you, take some comfort in the fact that it isn't any more pleasant for the rest of us. :)

-- Rich Freeman

Comments (none posted)

CyanogenMod CM12 nightly builds available

For those of you who have been waiting for a CyanogenMod release based on Android "Lollipop," the first nightly builds are now available. "We would like to note that at this point we consider ourselves 85% complete for our initial CM12 M release. We’ll spend the remainder of this month bringing up additional devices and finishing up the features you’ve come to love from CM11 – implementing them into the new Material UI."

Comments (none posted)

Distribution News

Debian GNU/Linux

Debian Bug Squashing Party in Salzburg

There will be a Bug Squashing Party in Salzburg, Austria, April 17-19. "Even if you are not a Debian Developer or Contributor yet, but interested in fixing bugs and helping Debian, don't hesitate to come! There will be enough people around to sponsor your uploads."

Full Story (comments: none)

Fedora

Fedora 19 End of Life

Fedora 19 reached its end of life for updates and support on January 6. Users of F19 are encouraged to upgrade to Fedora 20.

Full Story (comments: none)

Newsletters and articles of interest

Distribution newsletters

Comments (none posted)

Cuthbertson: NixOS and Stateless Deployment

Here is a lengthy post from Tim Cuthbertson on the virtues of building servers with NixOS. "It should hopefully be obvious at this point why NixOS is better than puppet: Both are declarative, but puppet is impure and non-exhaustive - when you apply a config, puppet compares everything specified against the current state of the system. Everything not specified is left alone, which means you’re only specifying a very tiny subset of your system. With NixOS, if something is not specified, it is not present."

Comments (37 posted)

McIntyre: Bootstrapping arm64 in Debian

Steve McIntyre provides a progress report on the status of the arm64 port for Debian 8 "Jessie". "arm64 is officially a release architecture for Jessie, aka Debian version 8. That's taken a lot of manual porting and development effort over the last couple of years, and it's also taken a lot of CPU time - there are ~21,000 source packages in Debian Jessie! As is often the case for a brand new architecture like arm64 (or AArch64, to use ARM's own terminology), hardware can be really difficult to get hold of. In time this will cease to be an issue as hardware becomes more commoditised, but in Debian we really struggled to get hold of equipment for a very long time during the early part of the port."

Comments (20 posted)

The building blocks of a distribution with Linux from Scratch (Opensource.com)

Opensource.com takes a look at Linux from Scratch, and it's variants. "Linux from Scratch creates a very basic system, but there are two variants you can choose from—one uses sysvinit and the other uses systemd. The package list for each of these is almost identical, except for the init system and a few supporting packages. The other packages in both variants are the same, so pick the version with the init system you prefer and then move on to Beyond Linux from Scratch to further customize your system to your liking."

Comments (10 posted)

Hands-on with Makulu Linux Xfce 7.0 (ZDNet)

Over at ZDNet, Jamie A. Watson reviews the latest release of Makulu Linux. "The Release Announcement / Release Notes give some interesting insight into the background and development of this release, as well as the major features of this release. As always with Makulu Linux, aesthetics was a major focus, and it includes loads of beautiful wallpapers, themes, icons, and fonts. The other major focus was speed, thus the choice of Xfce for the desktop, and Firefox rather than Chrome, the synapse launcher rather than slingscold, and the inclusion or omission of various other packages."

Comments (none posted)

Page editor: Rebecca Sobol
Next page: Development>>


Copyright © 2015, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds