Optimal DIY NAS with Rockstor Linux


The ProLiant server initially has an unusually long initialization phase. However, this ensures that all components are doing what they are supposed to be doing. To address the mass storage devices installed in the computer properly using Rockstor, you need to configure the SATA controller built in to the server before installing the operating system.

Pressing F9 during the initialization phase runs the graphical setup, in which you select the first entry, System Options, by pressing the Enter key. Next, select SATA Controller Options, then open the Embedded SATA Configuration dialog by pressing the Enter key.

In the new window, select the option Enable SATA AHCI Support. This turns off the B120i RAID controller, and the mass storage is now under the control of the Intel SATA controller. Now quit the BIOS by pressing Esc several times, until all the dialogs are closed. To save the new settings before rebooting, press F10.

This procedure is required to install Rockstor onto mass storage. Because controlling the RAID controller requires a proprietary driver from Hewlett Packard, which is missing from the standard Rockstor, the system would not cooperate with the controller. The driver available from Hewlett Packard for the B120i RAID controller in the network is certified for SUSE Enterprise Server and Red Hat, but that doesn't mean it automatically supports all CentOS- or Fedora-based systems: Although Rockstor let me install the HP driver, it did not work properly.

After customizing the BIOS and restarting, you end up in a simple GRUB boot manager, which has an option for installing the operating system directly or after testing the medium. The third option, Troubleshooting, takes you to a submenu where you can repair a damaged system or install the system with a general-purpose graphics driver.

Because the NAS system will not have partitions – just complete mass storage devices – you should install the operating system on a USB stick if you are only using two hard disk drives or SSDs, so you can add both internal media to the storage pool.

In most cases, the default installation should work fine: Server systems rarely use extremely exotic video cards, which largely prevents problems with the modules. After selecting one of the options, the Anaconda graphical installer launches.

In the first dialog, you select the locale and set the time zone. Next, you define the disks on which to install the system; the routine will already have selected some sensible defaults. For the root filesystem, Rockstor Linux exclusively supports Btrfs; you also set the parameters for the network interface in this dialog.

The routine detects only wired access. In the case of the server, it is possible to address one of the two Ethernet ports. The software ignores WiFi hardware; as a result, the dialog offers no way to configure it. During the subsequent installation, you create a user account for the operating system administrator. The installer copies the system to the mass storage device in parallel.

After completing the installation and rebooting, the system tells you before you log in that you can access the graphical configuration of the server, if required, from a web browser on any computer on your intranet by typing the URL https://<IP address>. Calling the address in a browser branches to a simply designed page (Figure 1). Here, you first create the Hostname of the server, as well as an account for the administrator of the management interface.

Figure 1: Rockstor Linux initially expects you to create an account for the administrator.

Now, you are taken to a dashboard, which provides a wealth of information summarized in groups (Figure 2). Among other things, it displays the status of the CPU, memory, mass storage, and network interface, even showing the throughput. A horizontal menubar at the top gives you access to more settings.

Figure 2: The dashboard lists all the important activities and the status of the system.

Getting Started

To use Rockstor Linux, you first need to create a pool and shares. The menu item Storage | Pools | Create Pool in the dashboard takes you to a dialog where you can define new pools, for which you also set the appropriate RAID level (Figure 3). If only one mass storage device is available, just set the Raid configuration box to Single. If you have several disks, choose a RAID level of 0, 1, 10, 5, or 6.

Figure 3: With just a few clicks of the mouse, you can create a pool quickly via the web interface of the specialist distribution for NAS systems.

Clicking Submit completes the process, and the system displays a corresponding entry in the table. Then you can use the Storage | Shares | Create Share dialog to set up shared directories, while defining compression for the respective shares. After clicking Submit, the shares are available.

To use the shares, you need to publish them on your intranet. You have several options for doing this depending on the client operating systems: In addition to NFS shares, it makes sense to enable Samba shares for Windows machines. The Rockstor system is also capable of supporting SFTP or AFP for Apple environments.

All of these options can be reached in the Storage | File Sharing menu. First, you need to enable some of the services, such as NFS and SMB, in the corresponding dialogs by flipping a virtual switch; without this feature, you would have to install the software.

The individual network filesystems' options also let you define the permissions and specify which hosts or subnets have access. You can then start using the NAS system as a drive in the file manager of your workstation (Figure 4).

Figure 4: Using the desktop file manager, you can mount the NAS on the client.

The System | Identity menu, with the subgroups Users and Groups, have dialogs structured similarly to the Storage option, giving you granular control of access privileges. Here, you create and manage your user accounts and groups.


Much like the dedicated NAS systems with proprietary operating systems, Rockstor Linux lets you integrate additional modules, which come as Docker containers. To install these modules, go to the System | Services menu and enable the Rock-on service by clicking the slider to ON (Figure 5). The system prompts you to release a share specifically for the additional components and then enables the service. On the dashboard, you will now see the available applications in the Rock-ons menu. Although the selection is not as extensive as with a dedicated NAS, it extends from file-sharing services, to the free ownCloud solution, to media servers and databases.

Figure 5: An additional service manages the extensions that reside in Docker containers and for which you need a dedicated share.

Installing the desired application is just a matter of pressing the Install button; the system creates a basic configuration before installing, depending on the service, that integrates the respective daemon (Figure 6). In the same menu, you can turn off existing applications and, if necessary, uninstall them. To do so, go to the Installed tab and push the slider to OFF; then, click on the Uninstall button.

Figure 6: Rock-ons are integrated into your system automatically with a few clicks of the mouse.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • PCIe SSDs

    A PCIe SSD can accelerate your system considerably, but you need to do your homework and choose the right product for your computer.

  • Desktop RAID

    Linux offers several options for fulfilling the RAID promise of fast hard disk access and data security.

  • CeBIT 2010: RaidSonic Shows Icy Boxes

    The NAS 5220 and its brothers NAS 6210 and 6220 provide Linux-based network-attached storage into the home for under $275.

  • FAI

    FAI helps you automate the process of installing and configuring new Debian systems.

  • Linux on Old Hardware

    Corporations and organizations don't need to buy new computers every two or three years because the old ones are no longer serviceable. We look at which tasks these hardware seniors can handle.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95