LVM configuration on Openfiler 2.3

OpenfilerOpenfiler is one of two free and open source NAS/SAN applications in active development (the other one is FreeNAS). By default, Openfiler is installed to hard disk using the traditional Linux disk partitioning system. Linux Logical Volume Manager (LVM) adds a layer of flexibility to disk space configuration and management that is not possible with the traditional method of disk partitioning. Fedora, Debian and Mandriva have installers with automatic LVM partitioning features. With Openfiler, however, your only option is by manual configuration. This tutorial offers a step-by-step guide to installing Openfiler on disk using LVM.

By default, Openfiler creates the following partitions – the sizes are in parenthesis:

  • /boot (101 MB)
  • swap (1020 MB)
  • / (the rest of the disk space is allocated to the /, the main system partition)


Once installed, a default installation of Openfiler takes up just about 630 MB and 8.4 MB of the available space on the root and boot partitions respectively. That is less than 1.0 GB for a default installation. Knowing this, we can now tailor our LVM configuration to use just the disk space needed to get the system up and running.

Note that this is not a complete installation guide for Openfiler. We are only dealing with the disk partitioning aspect of the installation process. As such, this tutorial starts at the point in the installation process where disk partitioning begins.

By default the installer will automatically partition the disk. We want to select “Manual partition with Disk Druid.” Select and click “Next.”

automatic partition
By default the installer will automatically partition the disk. We want to select manual partitioning.

With manual partitioning selected, click “Next.”

Manual partitioning
Manual partitioning selected.

This is where the fun starts. For this tutorial, our test machine has a disk drive of about 50 GB. The first step is to create a non-LVM partition for the boot partition. Select the drive and click the “New” button.

Main partition screen
This screen shows the main disk partitioning window. All the disk available for installation will be visible on this screen.

We only need to allocate about 100 MB. Recall that by default, Openfiler allocates 101 MB. Make the selections as shown in the screenshot below and click “Ok.”

Create boot partition
Creating the boot partition.

With the /boot created, the next steps are all concerned with LVM configuration. The first step of that is to create a Physical Volume (PV), that is, to initialize the rest of the disk space for use by LVM. Next is to create a Volume Group (VG) and assign the PV to the VG. Finally, Logical Volumes (LVs) are created. LVs are LVM equivalents of disk partitions. Select the free space on the disk and click “New.”

Create PV
The boot partition has been created. Now is the time to create the physical volume.

To create the PV, select “physical volume (LVM)” for File System Type, and click on the radio button next to Fill to maximum allowable size. “Ok.”

Create the PV
Creating the Physical Volume

With the PV created, the next step is to create a VG. Click on the “LVM” button.

Create VG
First step towards creating a Volume Group

All you need to do to create a VG here is to give it a name. You may leave the default name or choose one that suits you. Now that that is done, click on the “Add” button to start creating the LVs.

Creating the VG
This steps involves creating the VG and assiging the PV to the VG

Related Posts

ROSA Desktop Fresh R1: For advanced users, but even better for new users Summary: This article is about ROSA Desktop Fresh R1, a "new" Linux desktop edition from ROSA Laboratory, a Linux software provider based in Moscow, R...
Running Node.js on Linux with systemd The Node.js community has embraced process monitoring tools such as PM2, Nodemon, and Forever, which is understandable. For example, in addition to pr...
How to install Software on Kali Linux Kali Linux is the next-generation edition of BackTrack. It is BackTrack reborn. If you've been using BackTrack, or you're are thinking about using Bac...
The first thing to do after installing Linux Mint Debian 201204 Linux Mint Debian is a line of desktop distribution based on Debian, developed by the same group responsible for Linux Mint, a desktop distribution ba...
How to setup Wuala secure cloud storage in Ubuntu 11.10 and Linux Mint 12 Wuala is a cloud storage service offered by LaCie, a computer storage and display outfit. Wuala is supported on all major operating system platforms, ...
How to install Java Runtime on Zenwalk 6.2 Zenwalk is a Slackware-based, Linux operating system. Version 6.2, the latest release, does not come with Java Runtime Environment (jre) installed. W...

We Recommend These Vendors and Free Offers

ContainerizeThis 2016 is a free, 2-day conference for all things containers and big data. Featured, will be presentations and free, hands-on workshops. Learn more at ContainerizeThis.com

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


6 Comments

  1. My apologies..there are 2 – 1.5Tb drives in each of the 8 servers. We are only worrying about one server right now just to get the thing up and running. After setting up the kernal and the swap partition I was able to get the remaining space on the primary drive into a volume group but was unable to get the space (the whole 1.5Tb) on the secondary drive to merge so that under the Volumes tab it would show that there was almost 3Tb available as storage.

  2. Finid…I am a student working on school project in the school lab. Trying to turn 8 servers into one huge SAN. I am referencing your instructions along with the directions from the OF website. Since each of these servers have 2-3Tb drives (no RAID), do I need to name each of the LVM’s with the same name or can they be different to reflect the individual drive?

    • Need some clarification: Are you saying that each server has 1 drive of about 2-3 Tb or multiple, 1 Tb drives? Keep in mind that you do not name LVM, but volume groups and logical volumes. So clarify the first point for me and then I can attempt to answer your question.

  3. It would be nice to mention what version you are using because I downloaded OF on April 20 because i saw no windows to make the LVM group like that shown in your pictures. I had to do it through the web GUI.

    • According to the title, it’s version 2.3. Btw, this is about installing Openfiler using an LVM-based partitioning scheme. If you are doing it through the admin interface, then you are not touching the disk or disk partitions on which Openfiler is installed.

  4. Pingback: Links 10/2/2010: KDE SC 4.4.0 and OpenOffice.org 3.2.0 Released | Boycott Novell

Leave a Comment

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

*