I recently came across Menu Meters while reading the OS X discussion forums on apple.com. This is a nifty addition to the OS X menu bar, and allows you to get CPU, disk, memory and network utilization metrics with a simple click of the mouse (or a quick squint of the eyes). I wish I would have found this sooner!

Posted by matty, filed under Apple. Date: October 31, 2005, 12:28 am | No Comments »

I came across a cool article that shows the bandwidth savings that can be achieved by using Apache’s mod_deflate module. Since people are still using 56k modems to connect to the Internet, compressing content can decrease the time it takes to render pages on dial-up connections.

Posted by matty, filed under Apache. Date: October 29, 2005, 10:46 pm | No Comments »

While perusing Radio Wazee today, I came across the section of their main page with new band and song reviews. If you are into alternative music and sick of the main stream music we get on FM radio, I would highly recommend zipping over to radio wazee and giving them a listen.

Posted by matty, filed under Music. Date: October 29, 2005, 8:11 pm | 1 Comment »

I was working on a shell script last week and wanted to grab just the CPU section from the Solaris prtdiag(1m) output. I was able to perform this operation with awk by checking $0 for one or more “=” characters, and then setting a variable named SECTION to the value contained in the second position variable. If this variable was equal to the string CPUs, all subsequent lines would be printed up until the next block of “=” characters were detected. The awk script looked similar to the following:

$ prtdiag -v | awk ‘ $1 ~ /^\=+$/ {SECTION=$2} { if (SECTION == “CPUs”) print }’

==================================== CPUs ====================================
               E$          CPU                  CPU
CPU  Freq      Size        Implementation       Mask    Status      Location
---  --------  ----------  -------------------  -----   ------      --------
  0   502 MHz  256KB       SUNW,UltraSPARC-IIe   1.4    on-line     +-board/cpu0

I really dig awk!

Posted by matty, filed under UNIX Shell. Date: October 29, 2005, 8:01 pm | No Comments »

One of the cool and often overlooked features in Veritas Volume Manager is the failure notification mechanism. This facility provides automated notifications when problems are detected with Veritas managed disks, plexes, subdisks and volumes. These notifications are active by default, and will generate an e-mail to the user root each time a failure is detected. These e-mail notifications take the following form:

To: root@tigger
Subject: Volume Manager failures on host tigger
Content-Length: 240

Failures have been detected by the VERITAS Volume Manager:

failed disks:
 c1t6d0

failed plexes:
raid5vol-P08

Since e-mails will be sent to the root user by default, it is often beneficial to create a root alias in the /etc/aliases file:

$ grep “^root” /etc/aliases
root: admins@prefetch.net

If you would like messages to be sent to a user other than root, you can add additional users to the line that starts vxrelocd in the vxvm-recover init script:

$ grep vxrelocd /etc/init.d/S95vxvm-recover
vxrelocd root alerts &

I have been using this facility for years to get advanced notifications, which has helped me avoid disaster on more than one occassion.

Posted by matty, filed under Veritas Volume Manager. Date: October 29, 2005, 11:42 am | No Comments »

I have always liked Trent Reznor and the Nine Inch Nails, and wanted to see how they were live. I finally got my chance last night, and can report back that the concert was incredible. The lighting was awesome, the setlist was arranged perfectly, and the crowd was definitely into the show! If I had to pick a favorite moment from last night, it would either be when Trent came onstage alone to play “Hurt,” or when they closed with “Head like a Hole!” What an awesome show!!!!

Posted by matty, filed under Music. Date: October 28, 2005, 5:13 pm | No Comments »

I recently encountered a VxFS file system that didn’t support largefiles. This issue was causing one of our Oracle databases to complain, which was preventing us from using datafiles optimized for our application access patterns. Since the file system was a Veritas File System (VxFS), I was able to fix this problem with the fsadm utility:

$ /usr/lib/fs/vxfs/fsadm -F vxfs -o largefiles /u01

$ mount -p | grep u01
/dev/vx/dsk/oradg/oravol01 - /u01 vxfs - no rw,suid,delaylog,largefiles,ioerror=mwdisable

This operation can be run against mounted live file systems, which is great for production environments.

Posted by matty, filed under Veritas File System. Date: October 27, 2005, 12:52 pm | No Comments »

I finally got around to writing an article on dealing with expired certificates. The article is titled Proactively Handling Certificate Expiration with ssl-cert-check, and is available on the prefetch.net web server.

Posted by matty, filed under Articles, Presentations and Certifications. Date: October 26, 2005, 9:26 pm | No Comments »

« Previous Entries