
Knowledge Base - FAQ
How can I setup MegaCli on my 64-bit Ubuntu 11.04 or 12.04?
A lot of Dell servers PERC raid cards are really LSI MegaRaid controllers, thus to gain insight into your Dell raid array, the LSI MegaCLI tool is usually the tool of choice. We've tested this procedure on Ubuntu 11.04 and Ubuntu 12.04.
First you need to sudo to root and change to the /tmp directory:
Then you can download and extract the latest MegaCLI. As of this writing, the latest is 8.02.21. If this link is broken, you may have to navigate the site to find the download. (path: support -> support downloads by product -> megaraid sas -> management software and tools)
Then you cd into the Linux directory:
Then you can use alien to convert the RPM's to DEB packages. (apt-get install alien if you do not have it)
Install some required packages:
Then install the MegaCLI packages:
Test it out...
If you get Controller Count: 1 (or larger) GREAT! You're good to go. (Google MegaCli for how to use it.)
If you get Controller Count: 0, try doing a "uname -a". If your kernel is not a 2.6.x kernel, then you may need to use setarch to get it to work:
Since you probably don't want to have to run all that every time, you can setup a wrapper script. Use your favorite editor (vi, nano, etc) to create a new file, /usr/sbin/megacli, with the following content:
Save the file, then chmod it to mode 0755:
Now you should be able to run it like so:
Excellent! Now you can do some googling to figure out how to use MegaCli. Quick start...

First you need to sudo to root and change to the /tmp directory:
# sudo -i
# cd /tmp
Then you can download and extract the latest MegaCLI. As of this writing, the latest is 8.02.21. If this link is broken, you may have to navigate the site to find the download. (path: support -> support downloads by product -> megaraid sas -> management software and tools)
# wget http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.02.21_MegaCLI.zip
# unzip 8.02.21_MegaCLI.zipThen you cd into the Linux directory:
# cd 8.02.21_Linux_MegaCLIThen you can use alien to convert the RPM's to DEB packages. (apt-get install alien if you do not have it)
# alien *.rpmInstall some required packages:
# apt-get install lib32gcc1 lib32ncurses5 libc6-i386 lib32stdc++6 lib32tinfo5Then install the MegaCLI packages:
# dpkg -i *.debTest it out...
# /opt/MegaRAID/MegaCli/MegaCli64 -adpCountIf you get Controller Count: 1 (or larger) GREAT! You're good to go. (Google MegaCli for how to use it.)
If you get Controller Count: 0, try doing a "uname -a". If your kernel is not a 2.6.x kernel, then you may need to use setarch to get it to work:
# setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 -adpCountSince you probably don't want to have to run all that every time, you can setup a wrapper script. Use your favorite editor (vi, nano, etc) to create a new file, /usr/sbin/megacli, with the following content:
#!/bin/sh
setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 $@Save the file, then chmod it to mode 0755:
# chmod 0755 /usr/sbin/megacliNow you should be able to run it like so:
# megacli -adpCount
Controller Count: 0.
Exit Code: 0x00Excellent! Now you can do some googling to figure out how to use MegaCli. Quick start...
# megacli -AdpAllInfo -aALLHow do I upgrade the packages on my Slackware server?
You can do a cat /etc/slackware-version to figure out what version of slackware you are running.
For Slackware 8.1 and 10.0:
From there you can either upgrade all
of the packages using the ./upgrade-packages script or you
can upgrade individual packages by doing an upgradepkg --install-new
<package-name>.tgz.
Kattare routinely updates the packages available in that directory as new software is released and bugfixes come out. If you would like to be notified whenever a new package is available, send an email to support@kattare.com and we'll add your address to our mail list. Note that this can be fairly frequent.
For Slackware 13.0 and 13.37:
On the command line, as root, run kattare-upgrade. It will ask you what you want to upgrade.
Kattare routinely updates the packages available in that directory as new software is released and bugfixes come out. If you would like to be notified whenever a new package is available, send an email to support@kattare.com and we'll add your address to our mail list. Note that this can be fairly frequent.
Setting up custom Apache error documents.
Shared Accounts:
Go into the Domain Management area of the Kattare Members Section. In there you can select the domain you wish to edit. Once you have selected the domain you wish to edit, you can plug in custom error document settings for your domain. Don't forget to hit "Save" when you are done!
Dedicated Servers:
ErrorDocument 400 /errors/badreq.html
ErrorDocument 401 /errors/noauth.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/missing.html
ErrorDocument 500 /errors/conferr.html
You can also redirect people off of your site using an external URL.
ErrorDocument 403 http://www.kattare.com/
Do not forget to restart apache after changing the config with an 'apachectl restart'.
[Submit a Question]
You are at: Kattare Hosting: Knowledge Base: Dedicated Servers
Comments or feedback? Email: support@kattare.com
Legal: Terms of Service | Privacy Policy | DMCA Procedure | Trademarks
Comments or feedback? Email: support@kattare.com
Legal: Terms of Service | Privacy Policy | DMCA Procedure | Trademarks



