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 […]
In: Linux, Veritas · Tagged with: Linux, mkinitrd, VxVM
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 […]
In: Linux · Tagged with: cron, pam
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 […]
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 […]