Configure the lsi sas raid card in esxi 5.0

Source: Internet
Author: User
Tags dedicated server

The company has several servers installed on esxi5.0 virtual machines. They used to use common desktops, now we have purchased a dedicated server and installed the LSI 8708 sas raid card (the server's onboard RAID card esxi is not supported). Now we need to migrate the virtual machine.

The best method would have been to mount the array. Now the virtual machine is moved to the array and then to the new server. However, the company's array is full and there is not enough space for migration. Therefore, we decided to use the most stupid method: the new server's three hard disk groups RAID5 (after the migration is completed, it will be extended to 4 hard disk RAID5), the desktop hard disk is inserted in the three-digit group single disk raid0, then copy the file from a single machine.

The solution is okay, but it is too painful to restart the server every time you change the hard disk, configure raid in the Web bios, and then restart the server to exsi. After a long time in the evening, find the perfect method as follows:

1. Let exsi5.0 see the lsi raid card status preparation

Esxi5.0 currently does not support raid cards by default. Because all unnecessary providers are removed, you must manually install the corresponding VIB driver. I am a driver on the LSI Official Website: 00_37_v0_04_smis_vmware_installer.zip. Next, Putty (Other SSH software is also available), and megacli, which I found on the IBM website.

Install the vib File

Decompress 00_37_v0_04_smis_vmware_installer.zip and megacli, open the vsphere client, and copy the vib file corresponding to esxi 5.0 to the VM memory (my name is datastore. What is your name ?). Then open the SSH service in "configuration-> Software-> Security Configuration File-> service.

Open putty and use SSH to log on to the server (IP address, user name, and password do not need to be written). Next, execute the command line operation (just like this ).

The CP Command copies two files to the tmp directory:

CP/vmfs/volumes/xxxx (Do you remember the name of your storage ?) /*. VIB/tmp/

Then install:

CD/usr/binesxcli software VIB install-V/tmp/xxxxxxxxxx (remember the file name, but the tab key is usable ). VIB -- no-sig-check // This will be executed twice, because we have two files to install.

The successful execution is similar to this:

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.39-0006 VIBs Removed: VIBs Skipped:

We can see that succ and true are basically installed. Then restart the esxi server.

After the restart, you should be able to see the memory status, including hard disk and battery, in "configuration-> hardware-> health status.

2. How to change the hard disk online

What is megacli from IBM? I wanted to manage it with MSM, but I couldn't find the server after installation, so I gave up. Switch to megacli command line management. After the VIB is installed, it will generate an executable file under/opt/LSI/megacli, but sometimes it cannot be executed. In this case, just give it a permission (continue putty SSH ):

chmode -x MegaCli

Insert the new hard disk to the third digit and run the following command:

CD/opt/LSI/megacli-pdlist-A0 // all disk Information

The output information mainly shows the value of enclosure device ID.

Then let's look at our new hard drive ():

Megacli-pdinfo-physdrv [E0: S0]-A0 // E0 is the ID we noted down in the previous step. S0 is the disk space and starts from 0.

We can see that unconfigure good is okay. Then create R0 online:

MegaCli -cfgldadd -r0 [E0:S0] -wb -ra -cached -cachedbadbbu -force -a0

In the last step, return to the vsphere client, re-scan the storage adapter, and then you will be able to see your new VD and reload the storage. Start copying happily.

Repeat the above process when changing a hard disk.

3. References

How to Use megaraid Storage Manager to control the disk quota column of the VMware Host

Megacli command Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.