Reference from vmware:
http://www.vmware.com/support/ws5/doc/ws_net_advanced_linux_vadapter_promiscuous.html
change permissions on /dev/vmnet[018] to specific group or all
before:
[root@euler ~]# ls -ltr /dev/vm*
crw------- 1 root root 10, 165 Jul 20 13:38 /dev/vmmon
crw------- 1 root root 119, 0 Jul 20 13:38 /dev/vmnet0
crw------- 1 root root 119, 1 Jul 20 13:38 /dev/vmnet1
crw------- 1 root root 119, 8 Jul 20 13:38 /dev/vmnet8
after:
[root@euler ~]# chmod go+rw /dev/vmnet[018]
[root@euler ~]# ls -ltr /dev/vm*
crw------- 1 root root 10, 165 Jul 20 13:38 /dev/vmmon
crw-rw-rw- 1 root root 119, 0 Jul 20 13:38 /dev/vmnet0
crw-rw-rw- 1 root root 119, 1 Jul 20 13:38 /dev/vmnet1
crw-rw-rw- 1 root root 119, 8 Jul 20 13:38 /dev/vmnet8
and back:
[root@euler ~]# chmod go-rw /dev/vmnet[018]
[root@euler ~]# ls -ltr /dev/vm*
crw------- 1 root root 10, 165 Jul 20 13:38 /dev/vmmon
crw------- 1 root root 119, 0 Jul 20 13:38 /dev/vmnet0
crw------- 1 root root 119, 1 Jul 20 13:38 /dev/vmnet1
crw------- 1 root root 119, 8 Jul 20 13:38 /dev/vmnet8
2007-07-24
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:
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
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 dagVMWare: got version 5.5.4: 6.0 soon...
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
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:
Just grep'ed history on blade02: 192.168.3.114
on filer1: 192.168.3.62:
chkconfig --add iscsi-targetand on blade02:192.168.3.114 service was aloready set to run..
chkconfig --level 345 iscsi-target on
chkconfig --list iscsi-target
chkconfig --list iscsi
Just grep'ed history on blade02: 192.168.3.114
iscsiadm -m discoveryand on filer1: 192.168.3.62
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
/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:
Installing the Gigabit Ethernet Controller under RHEL5 was without issue, and produced the following /etc/modprobe.conf:
[root@cantor ~]# more /etc/modprobe.confThis is what lspci had to say:
alias eth0 r8169
alias eth1 forcedeth
...
[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
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
2007-05-19
iperf setup and results
Link to iperf home page http://dast.nlanr.net/Projects/Iperf/
Server side: ./iperf -s
Client side: ./iperf -c
Explicit:
./iperf -s -P 0 -i 1 -p 5001 -l 8K -f m -t 10
./iperf -c
aria has a linksys EG1032
lascala has an onboard NVidia nForce Gbe
cantor has a Trendnet TEG-PCITXR (RTL-8169)
piaget has a D-Link DGE-530T
Results (lascala was busy.. redo, and add openfiler)
cantor-lascala: 418 Mbits/sec
lascala-lascala: 594 Mbits/sec
cantor-cantor: 2.25 Gbits/sec
aria-aria: 637 Mbits/sec
lascala-aria: 251 Mbits/sec
aria-cantor: 453 Mbits/sec
cantor-aria: 538 Mbits/sec
- Linux: download iperf-1.7.0-linux-2.3.tar.gz ; glibc-2.3 executable, untar, and run
- Windows: download iperf-1.7.0-win32.exe ; windows self-extracting zip, unzip and run
Server side: ./iperf -s
Client side: ./iperf -c
Explicit:
./iperf -s -P 0 -i 1 -p 5001 -l 8K -f m -t 10
./iperf -c
aria has a linksys EG1032
lascala has an onboard NVidia nForce Gbe
cantor has a Trendnet TEG-PCITXR (RTL-8169)
piaget has a D-Link DGE-530T
cantor-lascala: 418 Mbits/sec
lascala-lascala: 594 Mbits/sec
cantor-cantor: 2.25 Gbits/sec
aria-aria: 637 Mbits/sec
lascala-aria: 251 Mbits/sec
aria-cantor: 453 Mbits/sec
cantor-aria: 538 Mbits/sec
2007-05-13
transcode re-encode mp3 with lame
Doin this to shrink collection for Sylvie'e iPod.
yum install lame
yum install id3lib
# make parallel directory structure
find -type d -exec mkdir ../mp3_128/{} \;
# do actual transcoding
find -type f -name \*mp3 -exec lame -b 128 --mp3input {} ../mp3_128/{} \;
# and now id3cp -1 -2 (necessaru caus lame does not bring over id3 tags
find -type f -name \*mp3 -exec id3cp -1 -2 {} ../mp3_128/{} \;
-=-= dual Core 2 = 4 cores ::
To accelerate on dual core 2 machines, manually split into 4(5) source directories, all of which encode to same mp3_128 target dfirectory.
yum install lame
yum install id3lib
# make parallel directory structure
find -type d -exec mkdir ../mp3_128/{} \;
# do actual transcoding
find -type f -name \*mp3 -exec lame -b 128 --mp3input {} ../mp3_128/{} \;
# and now id3cp -1 -2 (necessaru caus lame does not bring over id3 tags
find -type f -name \*mp3 -exec id3cp -1 -2 {} ../mp3_128/{} \;
-=-= dual Core 2 = 4 cores ::
To accelerate on dual core 2 machines, manually split into 4(5) source directories, all of which encode to same mp3_128 target dfirectory.
Subscribe to:
Posts (Atom)