Technology-Leadership FAQ
June 8, 2010 Fix syslogd write permission denied on SE Linux targeted enforcing RHL 5.3

Under RedHat SE Linux targeted enforcing mode, init.d scripts do not have the correct context to read all files in the /etc directory. This apparently breaks various capabilities of syslogd, including ability to write log messages to files other than /var/log/messages.

To fix it, change context with:
chcon -c system_u:object_r:etc_t /etc/init.d/syslog

July 22, 2009 Laptop trouble-shooting

Laptops have (at least) 2 features that will make you think it’s broke:
1) The key combination of function button and F5 key together redirects screen output from your laptop lcd to the vga port (usually next to the PS2 and serial port on the rear, left and/or right edge) on a laptop. You can easily and accidently press that key combo while handling it, and effectively ‘break’ your laptop – BUT – simply do the key sequence again to bring the output back to the lcd. The feature allows a laptop to connect to an overhead projector but also disables the lcd screen and this will happen from time to time.

2) Another feature is when you close the lcd, the screen presses a little button to turn off the lcd. If the button gets sticky, and it often does, it won’t pop out again the next time you lift open the lcd. Verify the button is out when the lid is open. The button is usually placed on the laptop top near the left or right hinge under the lcd.

This tech write up for tlc/faq was posted via email to support@xxx (domain hidden to stop spam).

April 24, 2009 Creating and resizing file systems on RedHat Release 5.2

First,  always use logical volume manager.  You must create a filesystem before resizing it.  Since most advanced servers have hardware RAID, there is really no reason to have extra fault tolerance at the file system level.  Thus, do not create the journaling file system unless you are on a device with no hardware and firmware controlled RAID and/or have only 1 physical disk installed.  I use HP servers that come with Compaq’s advance disk controllers and at minimum, two physical disks.  Always use built-in RAID 1 unless you absolutely need the extra disk space (and have more than 3 disks), in which case use RAID 5.  Create and ext3 file system.

Create the files system using commands in this order: pvcreate, vgcreate, lvcreate, mkfs.ext3 and finally fsck.ext3.   You can use the man page for each command to get the syntax and arguments you’ll need.  However, for those who just need it real simple, on a HP Compaq server with built-in RAID controller, to create a new volume group called “vg00″, and a 4 Gb logical volume called “usr”, log in as root and type:

# pvcreate -f /dev/cciss/c0d1

# vgcreate -f vg00 /dev/cciss/c0d1

# lvcreate -L 4000 vg00 -n lusr

# mkfs.ext3 /dev/vg00/lusr

# fsck.ext3 /dev/vg00/lusr

Now, if you didn’t size /usr properly and want to make it 8Gb, type:

# lvcreate -L 8000 vg00 -n lusr

# resize2fs /dev/vg00/lusr