Latest browsers not compatible with LSI 3ware 3dm2

On a windows7 desktop, none of the latest Internet Explorer, Firefox, or Chrome browsers provide access to the 3dm2 management pages.
Luckily I had a virtual with XP that has IE8 and that got me right in!
Are there any current browsers that work with 3dm web management?

Posted in Uncategorized | 3 Comments

SOLVED 421 Refused. The domain of your sender address has no mail exchanger (MX).

This is error is generated by receiving servers using the spamdyke filtering program
Seeing the subject error in the maillog on some new CentOS 5 systems that were trying to send administrative emails. To fix it I had to change the hostname from the firstname to the FQDN.
In other words, on CentOS 5 edit /etc/sysconfig/network and put in ‘HOSTNAME=hostname.mydomain.com’ rather than just ‘HOSTNAME=hostname’

Posted in Uncategorized | Leave a comment

configure: error: xml2-config not found. Please check your libxml2 installation.

On Centos 6.3 while installing PHP 5.4 I ran into the subject error.
This fixed it:
# yum install libxml2-devel
note: on other OS you should try to apt-get install libxml2-dev

Here is the configure command I’m trying to do:

'./configure' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-mysql' \
'--libdir=/usr/lib64' \
'--with-libdir=lib64' \
'--with-zlib' \
'--with-gettext' \
'--with-gdbm' \
'--with-gd' \
'--with-jpeg-dir=/usr' \
'--with-freetype-dir=/usr' \
'--with-mcrypt' \
'--with-openssl' \
"$@"

Next error: configure: error: DBA: Could not find necessary header file(s).
fixed it with:
# yum install gdbm-devel

Next: configure: error: jpeglib.h not found.
# yum install libjpeg-devel.x86_64
(that was a hard one to find!)

configure: error: freetype.h not found.
# yum install freetype-devel

configure: error: mcrypt.h not found. Please reinstall libmcrypt.
There does not seem to be any good / easy solution to this on CentOS 6.3.

UPDATE: This guy has the solution

rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
yum update
yum install libmcrypt-devel
yum install mcrypt-devel
yum install php-mcrypt

Configure worked!
it works now, yay

Posted in Uncategorized | 2 Comments

Configuring alerts with MegaRAID Storage Manager for LSI 9260-4i controller onESXi 5.0

This was a pain. If indeed the LSI 3ware 9750-xi is supported (and although not listed i believe it does work with ESXi 5), i STRONGLY recommend using that controller with 3dm2 vs this MegaRAID godzilla of the deep.
UPDATE: As of this writing, 9750 drivers are not supported on out-of-the-box ESXi 5.0 update 1, but they are available (currently listed under 9650SE driver on the lsi 9750 page) and need to be compiled into the ESXi installer. See ‘Customizing Installation Images’; good luck and let me know how it goes!

installed the 2 vib files into the ESXi host (after enabling ssh etc)
Turned on CIM server here: Configuration->Security Profile->Services->Properties
and opened the firewall for CIM Server and CIM Secure Server.

This post has some good information about how to do this. Especially the firewall process in this post was necessary: follow the instructions about opening the firewall ports by creating the file called LSI_MSM.xml in /etc/firewall
added an entry in rc.local to restore that firewall setting like this:
# set up firewall access for MegaRAID Storage Manager
/usr/bin/cp /vmfs/volumes/datastore2/LSI_MSM.xml /etc/vmware/firewall/
esxcli network firewall refresh

This article at the bottom was helpful for getting started http://tinkertry.com/lsi92658iesxi5/

finding the right MSM program at LSI’s website is tricky. First I downloaded version 9 but the option to connect to remote servers was grayed out. So I tried version 12 and it worked!

UPDATE: I set up the alerts and decided to test it by pulling out a drive.
A) I did not get an email alert, despite the “Test” working immediately beforehand
B) the server is beeping very loudly, even after putting the drive back in.
C) After putting the drive back in, it showed up as ‘Unconfigured Bad’ in the MSM
D) I chose the option to set it to ‘Unconfigured Good’ but nothing happened
E) I rebooted the host, the beeping started up again on boot.
F) I could not connect the MSM to the server after this reboot. I had to shut down again to look in the web bios utility.
G) After booting again, beeping persisted. The web bios says “Rebuild” next to this drive

Is it rebuilding? How long will it take for a 2TB drive with no data? Why can’t MSM connect to the server in the meanwhile?
I’ve confirmed the ESXi firewall is good with
esxcli network firewall ruleset rule list | grep LSI_MSM

UPDATE: I found (thanks to this post) that CIM Server didn’t start as it should have. Go in manually under Configuration->Security Profile->Services->Properties and start it.

MSM still wouldn’t connect when I configured it with the host’s distinct ip address in the favorite list. So I tried letting it search the local network and it found the server!
It shows the drive rebuilding progress, 20% with 2 hr 52 min left to go. I hope the beeping stops after that!

And this guy (just yesterday) explains why we’re having trouble finding our server with MSM and a fix.

So now my questions are;
i) why didn’t the email alert get sent when a drive was pulled, even though the test worked?
ii) how do i acknowledge the failure to stop the beeping?
iii) Why doesn’t CIM server start with ESXi as it is configured to do?

Well I don’t know if it’s the right answer to (ii) but this stopped the beeping:
MegaCli -AdpSetProp -AlarmSilence -aALL

Of course first I had to get MegaCLI working on this box.

UPDATE: Seeing how well MegaCLI works, I have a plan to use that for RAID monitoring that will be more reliable than this MSM alert setup. It won’t rely on CIM server and it won’t rely on MSM’s alerts and so addresses (i) and (iii)

Posted in Uncategorized | 1 Comment

VMWare ESXi: Could not find a trusted signer

While connected to the ESXi host via SSH to install the LSI MegaRAID vib, saw the error “Could not find a trusted signer”

# esxcli software vib install -v /vmware-esx-provider-lsiprovider.vib
[InstallationError]
('LSI_bootbank_lsiprovider_500.04.V0.30-3000000', 'Could not find a trusted signer.')
vibs = LSI_bootbank_lsiprovider_500.04.V0.30-3000000
Please refer to the log file for more details.

just add '--no-sig-check' to the end of the install command – problem solved!

# esxcli software vib install -v /vmware-esx-provider-lsiprovider.vib --no-sig-check
Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: LSI_bootbank_lsiprovider_500.04.V0.30-3000000
VIBs Removed:
VIBs Skipped:

Thanks to this guy

Posted in Uncategorized | 9 Comments

ReadyNAS default password

Depends on the version, here are possibilities i’ve seen
admin infrant1
admin netgear1
admin admin

Posted in Uncategorized | Leave a comment

Verify integrity of MySQL slaves

Using this tool http://www.maatkit.org/doc/mk-table-checksum.html

Download the program to the master db server:
wget http://www.maatkit.org/get/mk-table-checksum

Create the needed table in your DB;
CREATE TABLE checksum (
db char(64) NOT NULL,
tbl char(64) NOT NULL,
chunk int NOT NULL,
boundaries char(100) NOT NULL,
this_crc char(40) NOT NULL,
this_cnt int NOT NULL,
master_crc char(40) NULL,
master_cnt int NULL,
ts timestamp NOT NULL,
PRIMARY KEY (db, tbl, chunk)
);

Make the program executable and run it;
chmod +x mk-table-checksum
./mk-table-checksum --replicate=MY_DATABASE.checksum h=localhost,u=USER,p=PASS --replicate-database=MY_DATABASE --databases=MY_DATABASE

On the slaves, look at any inconsistencies:
SELECT * FROM checksum WHERE this_crc != master_crc;

Posted in Uncategorized | Leave a comment

MegaRAID Storage Manager headaches with headless

I’m trying to set up a brand new system on Ubuntu server 12.04 with an LSI MegaRAID 9260-4i controller. Everything was going great until I tried to set up the RAID management software aka “MegaRAID storage manager”.
First I read that 64-bit Debian and Ubuntu Linux are not currently supported.
But I found some intrepid folks willing to share their secrets on google plus

I tried following these and others, and eventually realized this is not going to work on a headless Ubuntu server. I’ve used 3ware controllers for years and am very familiar with the 3dm software. I thought when I was buying LSI I was buying 3ware but apparently not.

I called LSI support and the nice fellow informed me that that the 9260-4i does not work on headless systems but the 3ware controller 9750SA-4i uses the exact same hardware with the 3ware firmware and hence supports 3dm, which allows for entirely remote headless management of the raid controller. He did say in a few months the Megaraid might be updated to allow the setup I’m looking for, but I don’t want to wait that long. So I am sending this 9260-4i back for one of those 9750s.

I have another one of these 9260-4i’s with the intention to use it on a brand new ESXi 5 server; I wonder if the management software will work in that environment…? I will find out as soon as I get the cable I need for that particular setup… Mini SAS 36pin (SFF-8087) Male to Mini SAS 36pin (SFF-8087) Male Cable. Just ordered from a seller on amazon. Please be a good seller and send my cable fast!

Posted in Uncategorized | Leave a comment

DVD ROM woes on Ubuntu 12: mount /dev/sr0 no medium found

I recently upgraded from Ubuntu 10.04 to 12.04 on a server used for ripping and encoding DVDs. About a week after doing so, the server started acting up with errors about /dev/sr0 no medium found and failing to mount the DVDs. Thinking the CDROM was bad, i swapped it with another. Same problem. I removed /etc/udev/rules/70-persistent-cd.rules and then it worked! one time… then back to the errors. Rebooting seemed to allow it to work, one time. But even that is no longer working. Searching around, it seems a lot of people have had this problem with recent versions of Ubuntu.
I may need to try another DVD ROM, maybe both of these are bad?
Or else I will try reverting to 10.04

Posted in Uncategorized | 2 Comments

Manage Intel RS2BL040 on ESXi 5

Setting up a server with one of these RAID Controllers and trying to figure out if there is a management utility. This RoarkH guy has excellent instructions. Too bad VMWare communities don’t leave a way for me to thank him with a follow-up question:

Is there a web-based (or vSphere-based) utility that can somehow connect to this CLI?

This looks promising: VMware ESXi 5.0 Installation and RWC2 Tips and Tricks This document introduces the details of how to install VMware ESXi 5.0 Operating System onto an IntelĀ® RAID controller and how to use IntelĀ® RAID Web Console 2 on a client machine to manage the RAID controller remotely. (March, 2012)
I’ve tried following the instructions, but they reference a vib from intel that doesn’t exist; they must mean to get the vib from LSI? After all this, I can see the raid through vSphere but the RWC2 never finds the server.

I’m going to copy RoarkH’s instructions here, just in case:

1. Jan 25, 2012 4:31 PM in response to: RoarkH
Re: How To Monitor Drive Health on an Intel RS2BL040 RAID Controller
I have solved this myself, I'm posting what I did in case it helps someone else.

The RS2BL040 is actually a rebranded LSI card, these instructions will probably work for most LSI RAID cards, Intel RAID cards and at least some Dell cards including apparently the Perc 5i.

First you need the LSI MegaCLI Utility for vmware, it can be found at this link...

http://www.lsi.com/Search/Pages/downloads.aspx?k=megacli&r=os%3D%22AQZWTVdhcmUCb3MBAV4BJA%3D%3D%22

I downloaded the newest one, "VMware - 4.6 - CV" which includes version 8.00.46 of the MegaCli software. There are two files in the zip archive, a text file with some instructions and the MegaCli file which I uploaded to a folder on my datastore, I then used ssh to log into the ESXi host and changed to the directory I uploaded the file to. The file will need to be made executable ("chmod 755 MegaCli").

The command to check the status of the card is as follows...

./MegaCli -AdpAllInfo -aALL

Unfortunately, this failed complaining about a missing library, libstorelib.so.

Some more searching brought me to this page...

http://vmsysadmin.wordpress.com/2011/12/09/using-perc-5i-with-esxi-5-2/

In that page there is a link to a place you can download the missing file from which I am including here for convenience...

http://db.tt/aEYFL6CQ

I uploaded that file into the same folder containing MegaCli and ran the above command again, everything works as expected, the command spits out a bunch of information about the card. Look for the section labeled "Device Present" to see if there have been any drive failures and the Error Counters section for reported errors.

Thanks RoarkH!

Posted in Uncategorized | Leave a comment