I recently had to build gcc 4.6.3 on CentOS 5.5 so I put together this script to do all of the work. It is released in text mode so that you can cut-n-paste it from the web page. The shell version is also available: http://projects.joelinoff.com/gcc-4.6.3/bld.sh if you want to download it directly using a tool like wget.
The full installation of gcc-4.6.3 and boost-1.49 requires about 4GB of disk space. After the build is complete you can delete the archives, bld and src directory trees to reclaim about 3.4GB of disk space.
Continue reading Bash script to download, build and install gcc 4.6.3 and boost 1.49
My colleagues and I recently built a filer using OI 151a/ZFS and wanted to increase the throughput by aggregating multiple NICs to a common IP address that is dedicated for data. We did it by physically adding a card with 4 NICs, aggregating the ports on server and then updating the switch to enable link aggregation (port trunking) on the 2 connections.
Continue reading OpenIndiana 151a NIC Aggregation
I recently tried to log into a filer using napp-it where I forgot the operator password. To fix it, I reset the value_operatorpw password field at line 9 in
napp-it.cfg to an empty value, like this:
Continue reading How I fixed my napp-it operator password
I have written a RAID configuration analysis tool to help me configure filers. It reports the mean time to data loss (MTTDL), the amount of storage available in a JBOD, the number of possible spares and a other useful information. I am releasing it on the hope that other folks that are trying to figure out how many disks to bundle in a RAID configuration (vdev) will find it useful.
||Python source code
Continue reading RAID Configuration Analysis Tool in Python
I have created a FreeDOS 1.1 bootable USB that allows you to flash IT mode for LSI SAS 92100-8i and 9200-8e controllers.
To use it, download the lsifw.img archive, unpack it and flash to your USB. Then flash the controller using the LSI\SAS\9211_8i\flash.bat file or the LSI\SAS\9200_8e\flash.bat file.
||tar jxf lsifw.tar.bz2
On linux you can flash it to your USB using this command:
dd if=lsifw.img of=/dev/ bs=1M.
I used it to flash the SAS/SATA controller on a Dell PowerEdge R610 that is used as the head server for a ZFS filer that I am building with a colleague because I wanted to upgrade to a newer version of the firmware.
The flash.bat script assumes that the sasaddhi address is 500605B so before executing it, run
sas2flsh -o -listsasadd as specified in the readme.txt file. If the address is different, edit the flash.bat file and insert the new address.
Here is what the flash.bat file looks like for the 9211-8i controller:
sas2flsh -o -e 7
sas2flsh -f 9211_8i.fw
sas2flsh -b mptsas2.rom
sas2flsh -o -sasaddhi 500605B
Here are the basic steps.
Continue reading Bootable USB to Flash IT Mode for LSI SAS 9211-8i and 9200-8e Controllers
I have created a USB image for SuperMicro SAS firmware updates to help me with converting SAS controllers to I/T (Initiator/Target) mode instead of the default IR (Integrated RAID) mode. This USB contains all of the SAS firmware downloads available from SuperMicro.
See this post for details about how to flash a USB.
||tar jvxf flshfw10.tar.bz2
||tar zvxf flshfw10.tar.gz
Continue reading USB Image for SuperMicro SAS Firmware Updates
Here is the FreeDOS image file. It can be used to create a bootable USB. At the end of this post I describe, in detail, how I created the image file from the FreeDOS ISO.
Here are the download options.
||tar jvxf fdos11.tar.bz2
||tar zvxf fdos11.tar.gz
Once you have downloaded and unzipped it, you need to flash it to your USB.
Continue reading FreeDOS 1.1 Bootable USB Image