We have a two server cluster connected via a gigE crossover cable for Heartbeat and DRBD traffic. One of the nodes has developed a problem where the on-board ethernet interface is not available to the system after a crash....
One day one of the nodes crashed and didn't seem to come back. Dead? Not sure. It certainly was not reachable. I was at home and unable to go to the server a timely manner. Upon looking at the crossover traffic on the working node I saw the "dead" one ARPing for the default gateway(10.1.1.1). That meant that for some reason what was eth1 was now eth0 on the problematic machine. How do I get into the machine when one machine's interface(192.168.1.0/24) was connected to the other was on a different(10.1.1.10/24) subnet?
To get to the messed up server(10.1.1.132) I created a script:
ifconfig eth1:20 10.1.1.1 netmask 255.255.255.0 ip rou add 10.1.1.132/32 dev eth1 arp -d 10.1.1.1 ssh firstname.lastname@example.org ip rou del 10.1.1.132/32 dev eth1 ifconfig eth1:20 down
Run it, log in and issue "sudo reboot". Wait. Be happy. The only problem was that this may have interrupted any traffic that was going to/from the server via the default gateway.
I recently upgraded the backup server at work. I was running Etch with BackupPC 3.1.0 from Backports.org. It is now running Lenny with BackupPC 3.1.0 from the Debian Lenny repository.
We do a daily dump of a number of backups to an external eSATA disk for sending off site. The backups are created using BackupPC_archiveHost wrapped in a script I wrote. The backups are written gzip compressed and encrypted with GnuPG.
Ever since the upgrade the writing of the off site backups has been taking up to 50% longer with a very noticeable increase in system load. Something has become inefficient as a result of the upgrade.
* Booted the box on the previous Etch kernel. No change. Must be in userspace.
* Tested the performance of current and Etch versions of gzip and gpg. not much difference
echo suspend >/sys/bus/usb/devices/5-2/power/level echo auto >/sys/bus/usb/devices/5-2/power/levelThis did not work for me. This did:
echo 0 > /sys/bus/usb/devices/5-2/authorized echo 1 > /sys/bus/usb/devices/5-2/authorized
I am looking for some feedback from people running Linux on HP Proliant hardware, specifically the ML110 G3. I have heard from Wouter V.( http://grep.be ) that he has installed Debian on ML100 servers using the kernel provided at http://kmuto.jp/debian/d-i/ . This was required for full SATA support.
On my IBM T42 work laptop running Ubuntu "Drake"(FGLRX drivers from the xorg-driver-fglrx package) I found that the GPU temperature was at 120F when idle. First, I did not like that the fan was running all the time(now that it is summer) just to cool an idle chip. Second, I did not like this additional drain on the batteries.
Using info gleaned from here[thinkwiki.org] I did the following:
ATICONFIG=/usr/bin/aticonfig if [ -x $ATICONFIG ] ; then getXconsole su $user -c "($ATICONFIG --set-powerstate=2)" fiAnd /etc/acpi/battery.d/fglrx-powersave.sh
ATICONFIG=/usr/bin/aticonfig if [ -x $ATICONFIG ] ; then getXconsole su $user -c "($ATICONFIG --set-powerstate=1)" fiIt helps somewhat. The fan still runs continuously but now the GPU only runs at 115F when idle. There is always Rovclock[thinkwiki.org]. Maybe I'll try that later.(it seems to me that a "powernowd" for the GPU is what we need. How would one gauge the load on the GPU though?)
So I found myself with the results a bad choice: "Hey, THAT bleeding edge package update will suit my needs perfectly!" Well it did not. So I downgraded:
$ sudo $EDITOR /etc/apt/sources.list [ disable the repository that I got the package from] $ sudo apt-get update $ sudo dpkg -P --force-depends the-package [insert various warnings here] $sudo apt-get install the-package
Carefull here. Note the '-P' switch meaning 'PURGE config'. Backup your valued configs first! I needed to purge the configs because I knew that they may not have been compatible between versions.
Ok, now what about the numerous dependencies that I did not pay any attention to during the upgrade? I want to make sure they are back to their original versions also. What I really wanted was a way to list all installed packages that have version numbers greater that what is in the APT cache(in the repository). Enter 'apt-show-versions'.
$ sudo apt-get install apt-show-versions $ apt-show-versions | grep ' newer ' lib-the-package 3.1415-9 newer than version in archive ...
Excellent. Now just remove and reinstall.
A quick little script to automatically enable Firestarter when Network Manager enables an interface. This is for Ubuntu/Breezy or bleeding edge Debian. Put it in /etc/NetworkManager/dispatcher.d
#!/bin/sh source /etc/firestarter/configuration 2>&1 # Check to see if the interface that changed is the one currently # protected by firestarter. If not, quit. [ "$1" != "$IF" ] && exit # Check the current status of Firestarter [ -e /var/lock/subsys/firestarter -o -e /var/lock/firestarter ] fs_status=$? case "$2" in up) [ "$fs_status" -gt 0 ] && /etc/init.d/firestarter start ;; down) ## Uncomment the following line to allow this script to ## turn off the firewall when the interface goes down. #[ "$fs_status" -eq 0 ] && /etc/init.d/firestarter stop ;; esac
By default it does not disable the firewall when the interface goes down because I prefer to do that myself.  http://packages.debian.org/stable/source/firestarter, http://fs-security.com/
 http://packages.debian.org/unstable/virtual/network-manager , http://www.gnome.org/projects/NetworkManager/
INITRD_OK=yes make-kpkg \ --initrd \ --revision=1 \ kernel_imageyet no initrd image is created in the package. There is no indication that it is even trying. Of course I can create one manually, but I would prefer to have it in the same package for our internal package repository.