2007-06-29

Restoring Cantor after disk failure

Well, after much effort, (spinrite 6.0) could not repair the failed system disk for cantor; Conclusion use raid1 for /boot and put / on raid5 volume!
The plan is to do that when cantor is moved the the new Core2 box.

-Gbe went smoothly under CentOS-5.0 for the DLink DGE-530T
-restoring the VG1 LVM volume (raid5) went smoothly after I vgscann'ed, pvscann'ed my way home, to enable the volumes however I had to lvchange -ay /dev/VG1/LVx for x in 0,1,2,3.

now for basic software installs; rpmforge:
google'd for rpmforge-release dag
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
VMWare: got version 5.5.4: 6.0 soon...
Java:
installed from rhes5 supplementary, by loop mounting iso:
mount -o loop /archive/iso/rhes5/rhel-5-server-supplementary-i386-disc1.iso /mnt/coco
adding keys, then yum localinstall jaba*ibm*rpm
This setsup plugina appropriately: config with alternatives --config libjavaplugin.so
also installed jdk 1.5, and 1.6 from sun.
for java6: turned off magical execution with:
chkconfig --level 0123456 jexec off
Acrobat: installed from rhel5 suppl.: yum localinstall acroread-*.rpm
Flash: installed from rhel5 suppl.: rpm -Uvh flash-plugin-*.rpm
Groovy: already had groovy .tar.gz in downloads.
Grails: groovy home 0.4 already in /home/daniel/grails-0.4

iSCSI on axial blades/filers

Just added these for autostart..
on filer1: 192.168.3.62:
chkconfig --add iscsi-target
chkconfig --level 345 iscsi-target on
chkconfig --list iscsi-target
and on blade02:192.168.3.114 service was aloready set to run..
chkconfig --list iscsi

Just grep'ed history on blade02: 192.168.3.114
iscsiadm -m discovery
iscsiadm -m discovery -p 192.168.3.62
iscsiadm -m discovery -t st -p 192.168.3.62
/etc/init.d/iscsi restart
fdisk -l /dev/sdb
mke2fs /dev/sdb1
/etc/init.d/vmware stop
mv vmware vmware.local.old
time scp -rp ../../vmware.local.old/Virtual\ Machines/c44-64 .
time scp -rp ../../vmware.local.old/Virtual\ Machines/w2k3-ent-x64 .
mount /dev/sdb1 /var/lib/vmware
/etc/init.d/vmware start
and on filer1: 192.168.3.62
/etc/init.d/iscsi-target restart
config in /etc/ietd.conf

2007-06-28

Gigabit Ethernet on Cantor: D-Link DGE-530T

Under Centos4.4 my notes indicate that the SKGE module was the right one...

Installing the Gigabit Ethernet Controller under RHEL5 was without issue, and produced the following /etc/modprobe.conf:
[root@cantor ~]# more /etc/modprobe.conf
alias eth0 r8169
alias eth1 forcedeth
...
This is what lspci had to say:
[root@cantor ~]# lspci
01:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)

2007-06-16

convert flac to mp3

This is the gem that I found:
flac -d -o - "$filename" | lame -b 320 -h - > "${filename:0:${#filename}-5}".mp3

So using this trick for filenames with spaces: (while read does not break on spaces as for does !)

find -type f -name \*flac | while read f; do
echo "-=-= $f =-=-";
flac -d -o - "$f" | lame -b 320 -h - > "${f:0:${#f}-5}".mp3
done

Don't thimk this will do id3 tags though....Music Brainz...And done