fbpx

Pre-Provision Force10 Stack

On your current stack, ssh in and at the config prompt, enter:

stack unit 2 provision S50V

stack-unit 3 provision S50V

the number is the number of the switch you’re introducing, and the S50V is the model of the switch, you can use S25N, S25P, S25V, S50N, and S50V.

On your new switch make sure you renumber the thing at the enable prompt like this:

stack-unit 0 renumber 2

stack-unit 1 renumber 3

 

Make sure you write out your config file!

Enable Internal SMTP Relay Exchange 2010

Open up the Exchange Management Console, go down to Server Configuration, select Hub Transport.

Click New Receive Connector fill out all the important name values and network values.

Create NEW RX

Double check your work,

Ensure that Anonymous users has a check box:

Make Anonymous

Ensure that only your local network has access to the Exchange Server.

new recieve connector

Fix Software RAID Windows 2k3

If you’ve intentionally – or unintentionally lost your primary drive in Windows 2003 Software RAID, here’s how you’d get it back.

Load up the 2k3 Install disk

Press “r” for recovery mode

Select your installation

Enter your password

chkdsk /p

bootcfg /rebuild

VMware image customization is in progress at every reboot

VMware image customization is in progress … at every reboot

When rebooting a virtual machine (server 2008 R2 x64 in this example) in vSphere 5 you see the following:

loading:

loading

followed by:

in-progress

To resolve this open regedit and browse to HKLM, System, CurrentControlSet, Control, Session Manager:

session-manager

Open the BootExecute key:

bootexecute

Change the BootExecute key from this:

before

to this:

after

Reboot.

Adding Disk to Centos LVM

While you can just create a pv out of raw block device I normally try to avoid it as it can cause confusion as to what the block device is being used for. It may also break some of the auto discover routines that LVM can use if it’s missing it’s configuration files.

Here’s an example of using parted to create a GPT with 1 partition that is the whole drive and set the partition flag to be lvm. The mkpart requires that you specify a file system but it doesn’t create the file system. Seems to be a long standing bug in parted. Also the start offset of 1M is to ensure that you get proper alignment.

parted /dev/sdb
mklabel GPT
mkpart primary ext2 1M 100%
set 1 lvm on
quit
pvcreate /dev/sdb1
pvdisplay
vgcreate vg_*name* /dev/sdb1 /dev/sdc1 /dev/sdd1
vgdisplay
lvcreate –extents 100%FREE -n lv_*name* vg_*name*
lvdisplay
mkfs.xfs -f /dev/mapper/vg_*name*-lv_*name*
df -ah

Putty Timeout After Idle Time

Check if your system is setting the environment variable TMOUT. To check this you can just do:

env | grep TMOUT

or

echo $TMOUT

If it is set, you could change it or unset it. To change the value:

export TMOUT=3600

Where the number is the number of seconds until you get logged out. Otherwise unset it to turn off the feature:

unset TMOUT

Note, it may be that your system administrator has set this for security reasons. So if you are not the system administrator you may want to check this before changing anything yourself.

Nagios Password Change on Windows Boxes

In the NSC*.ini file you will find a password parameter and you need to put your SNMP community string. Mine seemed to need it here.

NSC*.ini excerpt

; ;# PASSWORD ; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly. password=public ;

Fiberchannel “Round and Round”

So yet another issue with HBAs this time with an older QLogic qle2462 and a set of 12TB Promise Arrays. Save your self some trouble and download the driver from VMware, qla2xxx-934.5.4.0 and inject it into your Update Manager…