Cleanup Postfix mail queue

You were messing with your cluster on a closed, separate VLAN, but now hundreds of error messages wait in the Postfix queue, ready to ship when your server regain access to the network.

What to do?

You can clean up your Postfix mail queue with postsuper:

# postsuper -d ALL
postsuper: Deleted: 4789 messages

As usual, check the man page for more info and the caveats.

Advertisements

Monitoring LSI Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS on CentOS 5.x

You need mpt-status, get it from this repo.

$ mpt-status
ioc0 vol_id 0 type IM, 2 phy, 465 GB, state DEGRADED, flags ENABLED
ioc0 phy 1 scsi_id 9 ATA      ST3500320NS      MA08, 465 GB, state ONLINE, flags NONE
ioc0 phy 0 scsi_id 1   , 465 GB, state MISSING, flags OUT_OF_SYNC

(yes, I have a failed disk on that server :( )

If you want to manage the controller, you’ll need lsiutil (I found the URL thanks to this Gentoo ebuild).

$ ./bin/lsiutil.x86_64 

LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1068E B3     105      00192f00     0

Select a device:  [1-1 or 0 to quit] 1

 1.  Identify firmware, BIOS, and/or FCode
 2.  Download firmware (update the FLASH)
 4.  Download/erase BIOS and/or FCode (update the FLASH)
 8.  Scan for devices
10.  Change IOC settings (interrupt coalescing)
13.  Change SAS IO Unit settings
16.  Display attached devices
20.  Diagnostics
21.  RAID actions
22.  Reset bus
23.  Reset target
42.  Display operating system names for devices
45.  Concatenate SAS firmware and NVDATA files
59.  Dump PCI config space
60.  Show non-default settings
61.  Restore default settings
66.  Show SAS discovery errors
69.  Show board manufacturing information
97.  Reset SAS link, HARD RESET
98.  Reset SAS link
99.  Reset port
 e   Enable expert mode in menus
 p   Enable paged mode
 w   Enable logging

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 16

SAS1068E's links are 3.0 G, 3.0 G, down, down, down, down, down, down

 B___T     SASAddress     PhyNum  Handle  Parent  Type
        50026b902c1f2a00           0001           SAS Initiator
        50026b902c1f2a01           0002           SAS Initiator
        50026b902c1f2a02           0003           SAS Initiator
        50026b902c1f2a03           0004           SAS Initiator
        50026b902c1f2a04           0005           SAS Initiator
        50026b902c1f2a05           0006           SAS Initiator
        50026b902c1f2a06           0007           SAS Initiator
        50026b902c1f2a07           0008           SAS Initiator
 0   8  510260902c1f2a00     8     0009    0005   SAS Initiator
 0   9  1221000000000000     0     000a    0001   SATA Target
 0   1  1221000001000000     1     000b    0002   SATA Target

Type      NumPhys    PhyNum  Handle     PhyNum  Handle  Port  Speed
Adapter      8          0     0001  -->    0     000a     0    3.0
                        1     0002  -->    0     000b     1    3.0

Enclosure Handle   Slots       SASAddress       B___T (SEP)
           0001      9      50026b902c1f2a00

Additional resources: