November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

How to add a new LUN using EMC powerpath

How to add a new LUN using EMC Navisphere and powerpath Overview:

create a new LUN on an EMC Clariion CX3-40 via Navisphere assign LUN to proper Storage Group use powermt to bring LUN in and configure it rescan scsi bus on Linux server for new LUN bring new LUN under LVM control and create […]

Resizing an Online Multipath Device

Resizing an Online Multipath Device

If you need to resize an online multipath device, use the following procedure:

1. Resize your physical device

2. Use the following command to find the paths to the LUN:

# multipath -l 3. Resize your paths. FOr SCSI devices, writing a 1 to the rescan file for the device […]

sed one liners

sed one liners Insert character at beginning of line

Example: comment out all nfs entries in /etc/fstab

sed -i ‘/nfs/s/^/#/’ /etc/fstab

Uncomment out all nfs entries in /etc/fstab

sed -i ‘/nfs/s/^#//g’ /etc/fstab

Make a copy of a file, then substitue a string in the original

perl -i.orig2 -p -e ‘s/10.49.5.61/10.49.5.62/g’ /etc/fstab

Print contents of a […]

EXT3-fs warning Directory index full!

At times, I come across the following message in syslog: kernel: EXT3-fs warning (device dm-3): ext3_dx_add_entry: Directory index full!

On systems in which this is being constantly logged to syslog, this can become rather annoying, but it is not a bug. It’s informing the user that somewhere within the system, a directory has more than […]

How To create a local mirror of latest Red Hat Enterprise Linux without using Satellite server

How To create your own local Red Hat Enterprise Linux yum repository server

To begin, build a virutal machine or stand alone system installing the same OS version of Red Hat you wish to serve as the yum repository. At the time of this writing, my base OS plus mirror data consumed 14G of disk […]

How to find dead links and delete them

Sometimes, after performing VPS migrations, the soft links in /etc/vz/conf may not be removed. Over time, the dead links may build up and cause many ‘No such file or directory’ messages when trying to look for common settings amonst all conf files (ie cat /etc/vz/conf/*.conf | grep whatever). Quick easy way to delete these dead […]

udev assigns incorrect number to eth device

eth interface number changes and is not what is expected

During a recent exercise where I created a RedHat 6.3 virtual machine, clones of that virtual machine each had different numbers assigned to their respective eth device(s). I’ve run into this booger before in the past and remembered that udev creates a persistent rule in […]

passwd: Authentication token manipulation error

Check if /etc/shadow exists. If it doesn’t, run the command ‘pwconv’ then try changing the user password again.

How to check if Large File Size (LFS) is enabled

To check if a file system supports the LFS standard, you can use the getconf command. If the result is 64, LFS is supported. getconf FILESIZEBITS /

In the example above, the root file system was checked. If /var for example, is a separate file system, specify /var in its place. You may also use […]

How to disable cron based mail alerts

How to disable cron based mail alerts The easiest way to disable cron based email alerts is to append the following to the specified command within the users crontab:

>/dev/null 2>&1

Example:

# m h dom mon dow command 59 23 * * * /root/scripts/hotfixes/vzagentdb.sh >/dev/null 2>&1 CRONDARGS=’-m off’ in /etc/sysconfig/crond may also be specified […]