Archive for July, 2006

End of Life times (Fedora Core 1, 2, Red Hat Linux 7.3, 9)

Wednesday, July 26th, 2006

https://www.redhat.com/archives/fedora-legacy-list/2006-July/msg00028.html

The Fedora legacy project has announced that they will discontinue errata updates starting in October. I have a few clients with servers still running 7.3 and 9. RHEL or CentOS is the currently the obvious choice to replace these old Red Hat installs.

Red Hat will provide errata for RHEL4 until February 2010 and RHEL3 is covered until October of 2008. Red Hat has stated they will support each RHEL release for 5 years.

I determined the following release dates from the RHEL listing on http://www.distrowatch.com

RHEL3: 2003/10/22
RHEL4: 2005/02/15

Subversion and keyword substitution

Monday, July 24th, 2006

Last year I migrated a large CVS repository over to Subversion. One of the issues I missed during the migration was that unlike CVS, Subversion did not automatically set new files to expand keywords such as $Id$ to the very useful string:

$Id: MySpecialClass.java 12234 2004-05-21 00:23:08Z derek $

I did some research into the problem and unfortunately there wasn’t anything on the server side I could do to force this setting on all files as they are added and checked in to the SVN repository. To automatically enable keyword substitution you must do two things.

First, uncomment the enable-auto-props = yes line in ~/.subversion/config in each users home directory.

### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes

Then you must configure the file types to which you will apply keyword substitution:

### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
###   file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?').  All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
*.c = svn:eol-style=native;svn:keywords=Date Author Id Revision HeadURL

I appended ;svn:keywords=Date Author Id Revision HeadURL to the entry for .c files in ~/.subversion/config. Uncomment other file types in the file and adjust them as needed. Feel free to add new lines to the file for other source files such as .php and .java. These settings will take effect for all new files that you add to the repository.

If you happen to have existing files in the repository that need to have the keyword property set you can set it by running the svn propset svn:keywords “Author Date Id Revision HeadURL command.

svn:keyword documentation

Faster software RAID reconstruction

Sunday, July 23rd, 2006

When creating or reconstructing a Linux software RAID there is a default reconstruction rate at which the RAID will be created. On RHEL the default max speed at which it will reconstruct the array is 10000 KB/sec. This setting can easily be adjusted for the impatient among us.

echo -n 500000 > /proc/sys/dev/raid/speed_limit_max

The above command will set the max reconstruction speed to 500000 KB/sec (which will essentially max out at the speed of your drives, usually in the 50MB/sec zone from my experience).

Bumping the value up will tax the disk subsystem more than the default but often it’s worth it to get that warm fuzzy of having a consistent RAID.

Mac OS X System Startup

Friday, July 7th, 2006

http://www.kernelthread.com/mac/osx/arch_startup.html

This page briefly describes the sequence of events that happen when Mac OS X boots.