Wednesday, March 27, 2013

I tried to execute a dladm set-linkprop command on a Nexenta RSF-1 HA cluster and received a "link busy" error. Took a minute for me to remember that the Solaris family requires you to unplumb and interface before you administer its persistent properties.

The example below shows how to change the MTU settings using plumb and dladm commands. This allows the RSF-1 controlled interfaces and VIPs to use jumbo frames.

ifconfig ixgbe1 unplumb
ifconfig ixgbe0 unplumb
dladm set-linkprop -p mtu=9000 ixgbe0
dladm set-linkprop -p mtu=9000 ixgbe1
ifconfig ixgbe0 plumb
ifconfig ixgbe1 plumb

Thursday, March 21, 2013

Dell PowerConnect Serial Console on Linux

Here's how to setup minicom on Linux to talk to a Dell PowerConnect.

Install minicom

sudo apt-get install minicom

Get your host's serial port.

dmesg | grep --color ttyS

Example output:

dmesg | grep --color ttyS
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

If you don't see anything listed, check your BIOS and make sure the serial port is enabled.

Now configure minicom.

minicom -s

Select "Serial port setup" and configure your settings as follows:

    | A -    Serial Device      : /dev/ttyS0                                |
    | B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 9600 8N1                                  |
    | F - Hardware Flow Control : No                                        |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |

Now you can either save these as dfl (default ) or something like dell_powerconnect.

Use your Dell setup like this.

minicom dell_powerconnect

I have a alot of servers that have padded numerics in their names. Here's a quick way to issue SSH commands to all of them. The key is to use good old printf

for i in {1..10}; do ssh cloud-host-$(printf "%02d" $i) iscsiadm -m node -T -u; done
The ccze utility is your friend for reading squid proxy logs. It's a nice colorizer and performs timestamp conversions with the -C argument.

sudo tail -f /var/log/squid-deb-proxy/access.log|ccze -CA