|
Posts Tagged ‘ubuntu’
Tuesday, February 5th, 2008
My hard drive on the old server were almost full. The postgres database grew to be almost 100GBytes, and I had to do something otherwise an anticipated server crash is on the way. The solution I had in mind is to use the old server, which already has two 150GB hard drives. Making one volume using the two drives can be accomplished in several ways, the easiest way is to create a logical volume out of the two. The other way is to make a software RAID 0 array. In RAID 0, the kernel stripes the data across the hard drives, so a sector gets stored half on each drive. This in theory should lead to twice the throughput, however SATA and IDE are serial devices so the bottle neck will be how fast is your SATA or IDE device.
So it took me a while to set up the RAID 0 array on the box using UBUNTU and the reason is that we have to use the server installation CD. The GUI desktop CD does not have the RAID option - or at least I wasn’t able to figure out where to find it. On the server CD, the easiest way is first to create two identical partitions on the two hard drives, and select the partition types as RAID. An option will then appear that says something like “Create a software RAID device”. You can use that to include both partitions in the RAID device. Remember that you must have a small /boot ext3 may be 100MB, and swap partitions.
There was an obvious increase in performance over a single drive, although I did not measure before and after but from what I see the intensive hard disk operations that used to saturate the drives when monitored by atop no longer does that. My interpretation is because the peak bandwidth of the SATA controller is larger than any hard disk by itself plus we have buffers in every hard disk, so effectively we’re using twice as much buffers.
Moving the database and websites took almost all the night, I started pg_dump on one machine over ssh, piping on the other side in a psql process. I stayed two hours after I started it, then I gave up and went to sleep. In the same time I had processes running to sync the files and my subversion repository.
Technorati Tags: ubuntu, raid, server
Tags: raid, server, ubuntu Posted in Linux | No Comments »
Thursday, January 17th, 2008
As usual, I saw the update icon in Ubuntu’s taskbar so I ran apt-get update and apt-get dist-upgrade, and as I read I found an update for freenx. When dpkg was installing the newer version it said that the configuration file node.conf is different. I pressed D to run diff on them to see whether the old problems were solved or not. I believe this package should be bug free almost for every one.
The package sources I’m using are:
deb http://www.datakeylive.com/ubuntu gutsy main
deb-src http://www.datakeylive.com/ubuntu gutsy main
Technorati Tags: linux, ubuntu, gusty, freenx
Tags: freenx, gusty, Linux, ubuntu Posted in Linux | No Comments »
Friday, January 11th, 2008
Ok… I was trying to do this in my home network, and for the very first moment any one trying to do this will think about using a samba share. There’s another way, which is much simpler.
Set up the cups server and allow internet printing from your cups server. Go to your windows, add a printer and use http://IP-address-of-linux:631/printers/<PrinterNameInCups>
That’s it ! choose the correct printer driver from the windows drivers, mine was HP1100 LaserJet. It worked flawlessly with on troubles.
On the windows side I’m using XP and the linux side is ubuntu gusty.
Technorati Tags: printer, ubuntu, gusty, printer, share, windows
Tags: gusty, printer, share, ubuntu, windows Posted in Linux, Microsoft | No Comments »
Thursday, November 1st, 2007
Yesterday we had a power surge at home. I noticed around 10 am when the website was not responding. When I went back home, I found both the webserver and my gateway machine both having errors and ubuntu halting at “run fsck manually”. Luckily, I was able to fix the webserver without a re-install. I have keep daily backups from both my postgres and mysql databases by dumping them around 4:00 am daily. The dump is stored on a separate hardrive, which gets unmounted after the dump completes.
I had to re-install the gateway machine. On the good side I got to re-install gutsy instead my older feisty installation. No data lost, as I keep my /home always on a separate partition, I only had to re-install the OS.
To prevent future damages and save time, I bought a UPS 900KVA , which should be fully charged when I go back today. Also, I got a KVM switch, instead to moving the monitor, keyboard and mouse connections over the four machines.
Technorati Tags: feisty, ups, apc, gutsy, ubuntu, linux, reformat
Tags: apc, feisty, gutsy, Linux, ubuntu, ups Posted in Linux | 6 Comments »
|
|