dcsimg

As Easy As Openfiler

Need an easy and powerful storage solution? Openfiler is one excellent option. Let's check it out.

Managing storage isn’t easy but Openfiler makes it less painful. You can create NFS and CIFS shares, iSCSI targets, web services, LDAP authentication, FTP services and Rsync services with Openfiler. You can setup quotas to limit those annoying space hogs and limit renegade connections with network security settings. For universal access to network attached storage, there may be no easier answer than Openfiler.

Openfiler is an appliance, which means that it has a single, specific function. When the system boots the first time, you receive a text-based welcome screen that directs you to use the web interface for Openfiler management.

The Basics

The quick method for the impatient is to download an ISO image from the Openfiler website, burn to a CD-R, boot from the CD image and install. This demonstration uses the Openfiler ISO x86 image. Use at least 512MB RAM* and any standard disk (1GB or larger) for Openfiler. Note: For a very efficient system, you can install Openfiler to a USB pendrive.

You can install Openfiler without a knowledge of Linux or storage systems. You’re only a few mouse clicks and a few minutes of patience away from a successful installation. Since Openfiler’s management interface is web-based, it’s conceivable that someone with no Linux skills could install and manage an Openfiler server. For example, Figure 1 shows the default primary disk setup provided by the Openfiler installation wizard.

Figure 1: Default Disk Layout for Openfiler
Figure 1: Default Disk Layout for Openfiler

Using Openfiler

Figure 2 shows you the initial boot screen directing you to the web-based interface. It’s possible to manage the system from the command line but it’s not recommended for most users.

Figure 2: The Openfiler Console Screen
Figure 2: The Openfiler Console Screen

The first thing you need to do is point a browser to the IP Address and port (446) displayed on the Openfiler screen. Next, select the System tab and select the Launch system update link. Figure 3 shows the System Update page that opens for you to list the updates needed to bring your Openfiler system up to date. Select Update All Packages, Background Update and click the Install Updates button to update the system.

Figure 3: Openfiler's System Update Application
Figure 3: Openfiler’s System Update Application

After your system update completes, it’s time to setup your storage volume(s). To begin this process, select the Volumes tab and click the create new physical volumes link provided. You’re directed to the Block Device Management screen as shown in Figure 4.

Figure 4: Block Device Management - Volume Setup Step One
Figure 4: Block Device Management – Volume Setup Step One

Select a volume, by device name, /dev/sdb1, for example. On the next screen, create any partitions that you want and return to the Block Device Management screen, when finished. These screens are basically web-based fdisk and have nothing to do with presenting storage yet.

Create a new Volume Group by clicking the Volume Groups link in the right-hand pane. Name your new Volume Group, select the physical volume(s) to add and click the Add volume group button as shown in Figure 5.

Figure 5: Creating the Volume Group - Volume Setup Step Two
Figure 5: Creating the Volume Group – Volume Setup Step Two

Now you need to add a Volume to the Volume Group you just created. Select the Add Volume link, select your Volume Group from the dropdown menu, scroll down until you see your selected Volume Group. Name the Volume, enter a Volume Description, use the slider, or manually enter a number (1024), to select an amount of space you wish to allocate to that Volume, select the filesystem type from the dropdown (XFS, ext3, iSCSI) and click the Create button to create the new Volume, Files1 in the Files Volume Group. See Figure 6.

Figure 6: Creating the Volume - Volume Setup Step Three
Figure 6: Creating the Volume – Volume Setup Step Three

Figure 7 shows you the results of the Files1 Volume creation and the current status of the Files Volume Group.

Figure 7: The Finished Volume Status
Figure 7: The Finished Volume Status

Your volumes aren’t ready to use by remote systems quite yet. You need to setup the services that make them available to remote systems and users. To do so, select the Services tab and click the NFS server Enable link to start the NFS service.

Click the Shares tab, select the User Files link and create a new subfolder (Users1) that the system will share via NFS. Select the Users1 link created and click the Make Share button. When you’re redirected to the Users1 share page, scroll down to set access modes, user permissions, host access configurations and click the Update button.

You will now see an entry similar to the following in /etc/exports.

/mnt/files/files1/Users1 192.168.1.0/255.255.255.0(rw,anonid=96,anongid=96,secure,root_squash,wdelay,sync)

Your users may now connect via NFS to the Users1 share.

Advanced Openfiler

To change the root password, you’ll have to boot up in single user mode, change the password and reboot again. To change the root password using this method, boot the system and when you see the boot menu, press the space bar to stop the countdown. Press the ‘a’ key on your keyboard to append a command to the boot parameters. The grub append prompt looks like the following.

grub append> ro root=LABEL=/  quiet

To enter the command, press your SPACE bar once and enter the word “single” without the quotes as shown below.

grub append> ro root=LABEL=/  quiet single

Press the ENTER key to accept and continue booting the system. After a minimal startup, you’ll drop to a single user root prompt.

sh-3.00#

Use the passwd command to change the root password to something you know. Type init 3 at the prompt to continue booting the system into multi-user mode. You can now login at the login prompt as root or via the web console (System tab->Secure Console).

Your Volume Groups are actually directories under the /mnt directory and the Volumes you create exist under that directory. For example, for this demonstration, the Volume Group and Volume are: /mnt/files/files1. Any shares you create are under this directory tree. Keep this in mind when using Openfiler and creating new Volumes and shares.

This very abbreviated introduction to Openfiler will get you started but is by no means complete or exhaustive. There is a user manual available for a small fee. You can also purchase commercial support for Openfiler through the website.

Openfiler is a free solution for small to medium-sized businesses or for personal use. It solves the problem of a higher-end storage solution with good security and an easy-to-use web interface. I strongly recommend purchasing commercial support for business use. Anything this easy to use is also just as easy to put you into an accidentally-induced disaster that might prove difficult to recover from.

Comments on "As Easy As Openfiler"

rigbyjh

“Installation requires that you know nothing of Linux or storage systems.”

I suspect you meant: “… does not require that you know anything of …”. Otherwise installing Openfiler is going to be a bit of a no-no for experienced Linux sysadmins.

Reply
khess

You’re right on both counts. ;-)

Corrected. Thanks.

Reply
hrudy

Why did Openfiler use conary as their package manager? What is wrong with rpm or .deb? This was enough to disqualify them for me. I went back to FreeNAS even though I am less familiar with FreeBSD these days.

Reply
tarax

Hi and thank you for this article.

@hrudy seconded about package management choice but, AFAIC, I still haven’t made my decision yet…

But the thing that makes me the more nervous about investing time and brain in OpenFiler is that the project seems DEAD or so ! Many forum users have asked about the roadmap and future releases schedule without obtaining any answer (at least that I could find).

On the other hand FreeNAS seems very active, but as previously mentioned, based on FreeBSD (didn’t they plan to migrate to Linux ? I have to verify this again…)

Finaly, on OpenSolaris land, Nexenta seems to be a nice option too.

The only other Linux based storage appliances I could find are OpenMediaVault but the project seems to be quite young and small (one man), and the Gluster Storage Platform which I need to investigate further.

In the end, as always, after hours of googling and reading, it’s maybe time to go back to my requirements (SAN/NAS, HA, Virtualization…) to realy evaluate if one match and may be end by building my home brewed debian/ubuntu storage boxes.

Bests

Reply
brenno

Freenas has a (debian) linux fork: OpenMediaVault (http://www.openmediavault.org).
This project is still under development and hasn’t been released yet.
But it looks promising!

Regards.

Reply
hansbkk

@hrudy – conary is a great package manager, just not as mainstream as the others for end users. It gives the appliance developer a lot of fine-grained control over version dependencies, helping to ensure stability as updates are rolled out.

As a side benefit, it makes it more difficult for people that don’t know what they’re doing to add extraneous stuff to their appliance. OF is designed to what it does well, not be a general-purpose server.

@tarax – OF is very far from dead, AFAICT it’s way ahead of FreeNAS in the enterprise space, competing very well with Netfiler et al. If you look at the source repo you’ll see constant updates and enhancements since the last major release, all of which come down immediately after install by clicking on the System Update link in the web GUI, or issuing “conary updateall” from the OF CLI.

Reply
    mrojas73

    I have been using OF for at least 3 years on production virtual environments without any issues. It’s very easy to setup and it just runs for ever, I only use it for iscsi targets though.

    Reply

I appreciate, lead to I found exactly what I was taking a look for. You’ve ended my four day lengthy hunt! God Bless you man. Have a nice day. Bye

Reply

Great blog article. Cool.

Reply

Hi, Neat post. There’s a problem with your web site in internet explorer, would test this… IE still is the market leader and a big portion of people will miss your fantastic writing because of this problem.

Reply

Thanks for a marvelous posting! I actually enjoyed reading it, you’re
a great author.I will always bookmark your blog and
may come back at some point. I want to encourage you to definitely continue
your great job, have a nice morning!

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>