August 14, 2007

jdk update

Category: Linux — Josh @ 7:15 pm

Not much today… I updated the version of the sun jdk installed on my server. I downloaded the last version of the sun jdk that is compatible with the etch make-jpkg build scripts. It happens to be jdk-1_5_0_11-linux-i586.bin. Making the debian package is as simple. Ensure that fakeroot, make-jpkg, and Java-common packages are installed, then issue the following command;

xxxxx@xxxxx:~$ fakeroot make-jpkg jdk-1_5_0_11-linux-i586.bin

Go through the license agreement and wait for the package to finish building. I purged out the old version of the jdk;

xxxxx@xxxxx:~$ sudo dpkg –purge sun-j2sdk1.5

After the package is completed install it.

xxxxx@xxxxx:~$ sudo dpkg –install sun-j2sdk1.5_1.5.0+update11_i386.deb

fin~

Updated the server

Category: Linux — Josh @ 6:09 am

I was importing some MP3’s into jinzora when one of the disks in the root filesystem mirrored disk array dropped out of the array. I was forced to to a hard reboot as i could not shutdown gracefully. Upon rebooting, I upgraded the kernel to the latest debian stable version which is 2.6.18+6, then added the disk back to the array by using the following commands

Use the –examine switch to check the status of the array on the drive (if mdadm can not print the contents of the md superblock in this partition we know it is badly broken.)

mdadm –examine /dev/hdg2

Use the following command to hot-add the partition back to the array.

mdadm /dev/md1 -a /dev/hdg2

Use the following command to check the status of the array rebuild.

cat /proc/mdstat

It took over an hour to rebuild the array, but it has been fine since. I will keep an eye on it.

I also did some tweaking on the OS based on the information in the following post from forums.debian.net

August 7, 2007

php5 updated

Category: Jinzora — Josh @ 9:18 pm

I updated debian on my server today. I have done an update for a few months. There was a new PHP5 package that agt-get installed which broke my apache install. I found that eaccelerator needed to be recompiled to make apache work again and to make eaccelerator work with the new version of php5. I ended up downloading the newest version of eaccelerator and recompiling. Jinzora now is running quickly again. during this process I also found that the /tmp/eaccelerator/ directory was missing (this causes eaccelerator to not run), Probably because of a previous update. I have noticed that jinzora has been slow lately. I am suprised that I just noticed that it was not running correctly today. Anyway, everything is back to the way it was before.