Performance testing RAID

November 11th, 2009 Arthur Gressick No comments

So after I setup the big RAID I ran some tests on the storage. Here are some commands, make sure you have at least 17GB space available for testing this. Once you run the command look at the time and throughput.

WRITE FILE

dd if=/dev/zero of=/mnt/<mount point>/testfile bs=4194304 count=4096

READ FILE

dd of=/dev/null if=/mnt/<mount point>/testfile bs=4194304 count=4096

Categories: Ubuntu 9.x Server Tags: , ,

linux parted formatting

November 11th, 2009 Arthur Gressick No comments

I am using a very large disk for data and fdisk doesn’t work for anything over 2TB in size. This is where parted is need. Here are the command I used to get it partitioned and formatted.

I first ran fdisk -l to figure out the device name. In my case it was sdb

fdisk -l

Then once I got the device name I ran:

parted /dev/sdb

In the parted controls

(parted) mklabel
New disk label type? gpt

Then I ran:

(parted) mkpart                                                           
Partition name?  []?                                                      
File system type?  [ext2]? ext3                                           
Start? 0                                                                  
End? 5997.9GB

Then I exited:

(parted) quit

Now I formatted the new RAID device:

mkfs.ext3 -b 4096 /dev/sdb1

That is all, it takes a while to format large devices, have fun

php5-ffmpeg

November 9th, 2009 Arthur Gressick No comments

If your like me and want some really good tools for processing some videos using php take a look at this website:

http://ffmpeg-php.sourceforge.net/

If you have Linux (I use Ubuntu Server) then run this to install the software

apt-get install php5-ffmpeg