Reset TopSpin Infiniband Switch Password

To reset the password on a TopSpin Inifiband switch you’ll need to boot the system in the single user mode.

To do this:

Connect a console to the serial port and stop the booting at ppcboot.   Do the following:

1) at the “Hit any key to stop autoboot:” prompt, press a key quickly ( <5sec )

2) type in (without quotes, press enter): “setenv bootargs $(bootargs) -s”

3) type in (without quotes, press enter): “bootd”

4) you are now running linux in single user mode – on the recovery area readonly filesystem; load the Disk On Chip driver, type in (without quotes, press enter): “/sbin/insmod /sbin/doc.o”

5) mount the /topspin Disk On Chip filesystem, found on /dev/msys/fla2, on an available directory (such as /tmp), type in (without quotes, press enter):   “mount -t ext3 /dev/msys/fla2 /tmp”

6) the actual config file, config:startup-config, will now be accessible at the path /tmp/config/runtime/startup-config – either remove this file (if there is no other config data to worry about), or vi the file to remove the password spec for user “super” – remove the line with syntax similar to “username super password {integer} {encrypted password}”, sync and reboot; the super user password will revert to the default value “super”.

 

See below for an example:

 

 

PPCBoot 1.1.6 (TopspinOS 2.5.0-BETA releng #273 08/26/2004 16:56:57) (Aug 26 2004 – 20:05:19)

Board: Topspin 270 Fabric Switch Card

 

• VCO: 800 MHz CPU: 400 MHz PLB: 133 MHz OPB: 66 MHz EPB: 33 MHz Drive Anafa2 #1 and #2 reset low… POST: FPGA Rev:0xad : PASSED HW Slot 0. I’m a core. The other core is NOT master. Request mastership. I am master. Hit any key to stop autoboot: 0 => setenv bootargs $(bootargs) -s => bootd Releasing Anafa 1 from reset… Releasing Anafa 2 from reset…

ENET Speed is 100 Mbps – FULL duplex connection

 

Boot Regular Image from Disk Partition 0: boot sig=0x0 Loading:

++++++++++++++++++++++++++++++++++++++++[ 1272K]

 

• ++++++++++++++++++++++++++++++++++++++++[ 2552K]

++++++++++++++++++++++++++++++++++++++++[ 3832K] [ 5112K] [ 6392K] [

++++++++++++++++++++++++++++++++++++++++7672K] ++++++++++++++++++ [ Done

]

 

• Verifying Checksum … OK Uncompressing Multi-File Image … OK Linux version 2.4.19-rc3 (releng@borg(TopspinOS 2.5.0-BETA releng #273

08/26/2004 16:56:57)) (gcc version 2.95.3 20010315 (release)) #23 Thu Aug

26 20:05:59 PDT 2004 Topspin 270 Fabric Switch Card Installing knfsd (copyright (C) 1996 okir@monad.swb.de). iic_ibmocp_init: IBM on-chip iic adapter module 802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem) readonly.

 

BusyBox v0.60.5 (2004.08.08-19:40+0000) Built-in shell (ash) Enter ‘help’

for a list of built-in commands.

 

# /sbin/insmod /sbin/doc.o Partition check: fla: fla1 fla2 flb: flb1 # mount -t ext3 /dev/msys/fla2 /tmp EXT3-fs warning: maximal mount count reached, running e2fsck is recommended EXT3-fs: recovery complete. # rm /tmp/config/runtime/startup-config

 

• –OR–

# vi /tmp/config/runtime/startup-config

 

[remove the line with syntax similar to “username super password {integer} {encrypted password}”, sync and reboot; password will revert to the default value “super”.]

 

CentOS / RHEL horrible disk performance with SSD

noop, is essentially a first-in first-out (FIFO) queue with no extra logic.

Each virtual machine can stop worrying about the disk, instead passing I/O requests along to the hypervisor to make a better decision about overall performance.

Add “elevator=noop” to the kernel parameters in your boot loader’s configuration in /etc/grub.conf

`echo noop > /sys/block/${DEVICE}/queue/scheduler`.

Set the default in your kernel config for all VM kernels you roll, with `CONFIG_DEFAULT_IOSCHED=”anticipatory”`.