1001

Install Openfiler On Usb Flash

Having played with a number of different flavours of NAS SAN software on my HP MicroServer one of the limiting factors I found with Openfiler was the fact you had to install it onto a fixed disk, for the most part this isn’t an issue but when you’re talking about the MicroServer and it’s 4 fixed SATA drives (actually 5 if you want to use the single SATA port designed for a CD DVD drive) then you can find yourself limited on disk usage if you need to dedicate one of the four drives for the Openfiler OS rather than using it as a RAID member. I started looking around at the possibility of installing Openfiler onto a USB drive, something that isn’t openly supported on 2.3 and managed to find enough information out there to put together a USB device that can be used for booting Openfiler. There are a few decisions that need to be made at the offset, mainly on the size USB flash drive to be used, using something too small will cause issues later on, using something too large will obviously just waste space. For my testing I used a 4GB which has been a great little device that’s already being used in my vSphere hosts successfully and it fits into the MicroServer very nicely. To start the installation process the first thing you need to do is disconnect your data drives, leaving just your CD DVD drive and USB flash drive connected.

On the MicroServer you have two options, simply pull the 4 drive carriers or disconnect the multilane connector from the board. This ensures that you’re only installing Openfiler to the USB drive and nothing else. Now boot up the Openfiler CD. Instead of using the default installation we need to run the expert one, as in the picture above type linux expert to start. Once you have chosen your keyboard configuration you need to choose Manually partition with Disk Druid, this will allow us to create the right sized partitions based on the size of the USB flash drive. We need to create four disk partitions for our USB installation.

Install and Boot Openfiler 2.99 from a USB Flash Drive. Select the root / partition to install Openfiler and click on Next. The default bootloader is fine. How to install OpenFiler ESA from USB Flash Drive.

• '/boot' is where the kernel will reside and the system will boot from and should be set to 100MB in size, also set it to be a primary partition • '/' is the system root partition where all system applications and libraries will be installed to, depending on the size of USB flash drive you’re using this can be sized from 1024 to 2048MB. • 'swap' is the swap partition for memory swapping to disk, again depending on the size of the drive you can use 1024 or 2048MB of space. • “/var/logs” is a separate partition which will house the log files, this protects the “/” partition from running out of space, I have set this to 512MB. Once you have completed the disk setup press Next. Here we are going to configure our Network settings, Openfiler can use both DHCP and Static IP entries, obviously you’re better off using a static address but the choice is yours. Akai Mpc Studio Serial Number. Once you enter the IP address you will also have to enter the Gateway and DNS settings on the first screenshot directly above. Choose your time zone settings and enter your Root password.

Click next and wait for the installation to finish, because you’re installing to a USB device you can expect the installation to take a while (between 40 – 50 minutes). Once the installation is complete reboot the server but DON’T remove the CD DVD media as we’re going to use it again. Once the server has rebooted into the boot menu you need to type Linux Rescue Choose the Language and Keyboard layout, choose no to loading the Network and Skip. Now comes the fun part as this is all CLI driven.

Once you’re at the CLI you’re going to have to create a couple of directories, type the following. Mkdir /mnt/system mkdir /tmp/1 You now need to mount both the “/” and “/boot” partitions. First we’re going to mount the / partition. Mount /dev/sda2 /mnt/system Next we’re going to mount the /boot partition. Mount /dev/sda1 /mnt/system/boot Next we’re going to change the system root to the /mnt/system directory, this will allow us to work from there as if it’s the root filesystem.

Chroot /mnt/system Next we’re going to extract the initrd image. Cp /boot/initrd-2.6* /tmp/initrd.gz && gunzip /tmp/initrd.gz Next change to the /tmp/1 directory cd /tmp/1 Next we’re going to extract the initrd files. Cpio -i /boot/usb-initrd.img Finally we’re going to edit the boot loader menu so that we use the new ramdisk img. Nano /boot/grub/menu. Pink Dear Mr President Download Mp3 more. lst (important to realise that the extension is an L not a 1).

Change the following entry. Initrd /vmlinux* to initrd /usb-initrd.img and exit (Ctrl X, Y and Enter to save using the same name).

Reboot and you’re good to go. ** Important thing to note, if you update your Openfiler installation on the USB key you’re going to have to re-do the CLI work again because it will overwrite the boot img.

For a current project at work, I've been stuck using local storage on a number of VMware 5.5 servers since we do not have any shared storage available. I decided to take things into my own hands and do the next best thing. Because we have an older HP ProLiant server available, I decided to load v2.99 onto it.

If you're wondering why I'm not using FreeNAS, the reason is simple, the HP server does not allow direct access to the drives, which is something that is needed to setup ZFS in FreeNAS. The server has 8 total drives; I setup a RAID1 array with 2 drives housing the installation/configuration of OpenFiler and then a RAID5 array with the remaining 6 drives, which will be used to setup the NFS share available to the VMware hosts. The first challenge came up when attempting to install OpenFiler from a USB drive. Using to transfer the installation ISO to a flash drive didn't work as intended, apparently you need to copy the ISO over to the flash drive as well. I am thankful for a couple of people that posted this info as it probably would have caused me to lose my sanity otherwise. For more information regarding how to properly create the bootable USB install drive, please see the blog. If you need additional visual representation of what the process looks like, some one was kind enough to post a video of that as well.

Thankfully after reading these instructions and watching the short video, the install went pretty smoothly. If you'd like to check out some instructions of how to setup OpenFiler NFS or iSCSI with a VMware host, Rob Bastiaansen posted a wonderful guide on the blog. If you'd like to use multiple NICs for redundancy and more bandwidth, you can setup link aggregation between the OpenFiler host and a switch. In my case, I'm using LACP on a Cisco switch. For more info, Conrad Jedynak has the following showing a sample configuration.