Archive for the ‘Linux’ Category

Do vxinitrd after kernel upgrade

Just a quick reminder. If you have your root disk on a Linux box encapsulated then don’t forget to recreate initrd image after the kernel has been updated. /usr/lib/vxvm/bin/vxinitrd /boot/VxVM_initrd.img ‘uname -r’ Otherwise you’ll end up being welcomed by the following message once you reboot. Kernel panic – not syncing: Attempted to kill init! Have […]

Posted on September 8, 2009 at 2:42 pm by sergeyt · Permalink · Leave a comment
In: Linux, Veritas · Tagged with: , ,

Failed to open PAM security session

If one day you notice that your super-duper script doesn’t work when executed from cron and crond itself is whining about: CRON (username) ERROR: failed to open PAM security session: Success CRON (username) ERROR: cannot set security context Then the most obvious step from here is to take a look at /etc/pam.d/crond and /var/log/secure (if […]

Posted on September 7, 2009 at 12:38 pm by sergeyt · Permalink · 7 Comments
In: Linux · Tagged with: ,

Migrating from RAID0 -> RAID1 with mdadm

Because of a stupid mistake made during a hectic installation of RHEL /var partition was configured as RAID0 instead of RAID1. Thankfully, it could be easily fixed though with a short downtime. Here is how I did it: Stopped all processes that were using /var. In my case they were sendmail and named. Backed up […]

Posted on September 2, 2009 at 5:39 pm by sergeyt · Permalink · Leave a comment
In: Linux

Identifying a broken disk in HP DL360

Since I don’t have great level of experience with HP DL series I was puzzled for a bit when I found out that one of the disk was broken. How I did that? Easy, by gazing at the “Faulty Led” that went steadily on. Not bad but I wanted to be able to grab more […]

Posted on June 10, 2009 at 1:06 pm by sergeyt · Permalink · Leave a comment
In: Linux