Friday, August 2, 2013

Install Adaptec Storage Manager (ASM) For Adaptec 2420SA Card On Ubuntu System

Adaptec 2420SA is actually quite an old card and therefore when you check this link, there is no available package for Ubuntu system (i not sure whether latest ASM can use for old Adaptec card or not, if you have the information, please comment below).

So i downloaded the rpm package into my Ubuntu system and use alien to convert it into deb package.

sudo alien asm_linux_x64_v5_20_17414.rpm

sudo dpkg -i storman_5.20-1_amd64.deb

After finish installing, i change the arcconf permission to make it executable.
sudo chmod 744 arcconf

To check the card information, i run the following command
sudo /usr/StorMan/arcconf getconfig 1

If you encounter the following error when run the arrconf command, you need to install libstdc++5
/usr/StorMan/arcconf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Install libstdc++5
sudo apt-get install libstdc++5

Format Faster on Linux Drive (ext4)

This is actually not really a problem for most of the users as they only format filesystem once and use it afterwards. But for users who need to do repeated testing on multiple drives, this could be really helpful as it can save you a lot of time.

One way to make format faster is to modify the bytes-per-inode value. By specifying higher value for this parameter, less inode will be created. As such, this is probably not suitable for all the situation but it is suitable if your filesystem only need to store virtual machine image which each file is big in size but the number of files in the filesystem is less.

bytes-per-inode Time Free inode
16384 (default) 1m29.712s 30490613
32768 48.809s 15245301
65536 23.675s 7622645
131072 14.793s 3811317

As you can see, the lesser inode need to be created, your format can be done faster. Command to do this:

mkfs -t ext4 -i 131072 /dev/sdb1

Another way is to use lazy_itable_init when formatting filesystem. This is actually the fastest way because inode table is not fully initialized when you do the formatting, instead, it is initialized when it is mounted. So this again might not be suitable if you are doing some IO test as you never know how this initialization process will affect your real IO performance. So the time taken is -- only 3.785s.

Command to do this

mkfs -t ext4 -E lazy_itable_init=1 /dev/sdb1

Notes:

time command was used to capture the elpased time
Disk size is 500GB