Enterprise Software

DIY: Deploy network storage with ease using Openfiler

The Openfiler OS helps administrators set up scalable and reliable network storage. This tutorial shows how to deploy network storage using Openfiler.

Network storage can be one of the more challenging and costly deployments. If a simple shared network drive won't work, I suggest you take advantage of Openfiler, a network storage operating system that has an incredibly easy to use web-based front-end. If you want to virtualize your storage, there are virtual appliances that can be used (in conjunction with a tool like VMware Player) so you can have the network attached storage up even faster. The virtual appliances will be quite limited (especially in storage capacity), so you should use those primarily for testing purposes.

Let's have a look at how network storage can easily be deployed with Openfiler. In my walk-through, I will demonstrate how to use the virtual appliance.

Features

The feature list for Openfiler is impressive:

  • Can be used on any x86/64 hardware
  • Up and running in as little as 15 minutes
  • File-based storage support for CIFS and NFS
  • Client support for Windows, Linux, and UNIX
  • Fibre channel and iSCSI support
  • Easy to read dashboard
  • Quota controls
  • Windows domain control and LDAP support
  • Easy volume and share configuration

After installation is complete (or you've fired up the virtual appliance), point your web browser to https://ADDRESS_TO_OPENFILER_SERVER:446 (note the https address). At the login screen, the default credentials are:

  • Username: openfiler
  • Password: password
Once you log in, you will be on the Openflier main page (Figure A). Figure A

Everything you need to do for your network storage is now done here.

Now change the admin password by going to Accounts | Admin Password. You'll need to enter the current password in order to make the change.

User authentication

After the password is created, you must choose the method for user authentication from these three types: LDAP, Windows Domain, and Local user. The easiest to use is the Local user. For that type of authentication, you'll need to get into the command-line OS, log in as the root user (it has no password by default, so give it one now), and issue the command:

useradd -m USERNAME

where USERNAME is the name of the user to be added. After that command is issued, give the user a password with the command:

passwd USERNAME

where USERNAME is the name of the user you just created.

Run the above commands for every user needed on the system. If you have a lot of users, or you're already on a Domain or use LDAP authentication, you can set those up by going to Accounts | Authentication. In this new window (Figure B), you can select either LDAP or Domain based authentication. Figure B

Once you make these changes, give Openfiler approximately one minute to restart the service so the changes will apply.

Volumes and shares

The next step is to create the shares for storage. Before shares can be created, you must set up a new volume by clicking the Create New Physical Volumes link in the Volumes section. On the new page (Figure C), click the link to the correct disk in the Edit Disk column. Figure C

I created a new virtual drive.
After you select the correct disk, scroll down to the Create A Partition section (Figure D) and create the new partition for the device. Figure D

You can break your partition up any way you like for more flexible storage needs.
Now you should create a Volume (Share) by clicking the Volumes tab, clicking Add Volume, selecting the Volume Group the new share should belong to, and clicking the Change button. When the new window appears, scroll down to the Create Volume section (Figure E), enter the necessary information, and click Create. Figure E

Make sure to be accurate when you adjust the size of the new volume, or you'll wind up with a share that's too small to use.

Conclusion

Once all of the shares are complete and authentication is set up, your new network storage solution is ready to use. Make sure the services you want are running (go to Services and then enable all you of the services you need).

Congratulations! You now have network storage for only the cost of hardware, which you probably had sitting around.

About

Jack Wallen is an award-winning writer for TechRepublic and Linux.com. He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website getjackd.net.

3 comments
chrisbedford
chrisbedford

...which at the time it came up on this blog, I thought was a bit "meh". My biggest issue on Linux-based NAS solutions (and I've looked at a few but by no means a lot) is the user security - severely limited. What frustrated me - case sensitive user names - passwords limited to 8 characters - allocation of rights worse than basic - read only, or read/write. That's it! - and in at least one case the r.o. or r/w capability is set at the share level, not user, so you have to create most shares twice, - AND the share name is system-allocated so you can't give it a name that indicates whether it's r.o. or r/w - user groups almost useless. e.g. one user can't belong to more than one group (what's the point!) A decent NAS solution would be able to join a Windows domain, but I see this one has the next-best: use LDAP. I think I'll spend the weekend playing^h^h^h^h^h^h^hexperimenting with this one...

popova71
popova71

Quote: ...In this new window (Figure B), you can select either LDAP or Domain based authentication.

Editor's Picks