SuperMicro Server – How to Open-E JovianDSS Raid tools

noted ไว้หน่อยละกัน ช่วงนี้กำลังหลง SuperMicro (เป็นเอามาก หุหุ)

Implement RAID solutions for VMware ESXi

Group 0:  RAID 1 for system

dirve port [0]
dirve port [1]

Group 1:  RAID 5 for /datastore

dirve port [2]
dirve port [3]
dirve port [4]
dirve port [5]

Hot Spare
dirve port [6]
dirve port [7]

SuperMicro Server – How to Open-E JovianDSS Raid tools

ssh <IP Address> -p 22222 -l admin

LIFE CTRL + LIFE ALT +R

จะเข้าสู่โปรแกรม Raid Manager มีเครื่องมือเป็น application ให้เลือกใช้งานอยู่ 3 ตัว เป็น Command Line

1  MegaCLI SAS RAID management tool
2  StorCLI SAS RAID management tool
3  LSI diagnostic logs

ตัวอย่าง : View information about virtual disks Useful for checking RAID level, stripe size, cache policy and RAID state:

Megaraid CLI> MegaCli -LDInfo -Lall -aALL

RAID Level          : Primary-5, Secondary-0, RAID Level Qualifier-3
Size                : 6.364 TB
Sector Size         : 512
Is VD emulated      : No
Parity Size         : 931.0 GB
State               : Optimal
Strip Size          : 256 KB
Number Of Drives    : 8
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Enabled
Encryption Type     : None
PI type: No PI
Is VD Cached: Yes
Cache Cade Type : Read Only

Exit Code: 0x00

Megaraid CLI> MegaCli exit
ออกจากโปรแกรม

ระบบปฏิบัติการ Linux

cd /usr/local/MegaRAID\ Storage\ Manager/StorCLI

./storcli64 -LDInfo -Lall -aALL

[1] View information about the RAID adapter

For checking the firmware version, battery back-up unit presence, installed cache memory and the capabilities of the adapter:
# storcli64 -AdpAllInfo -aAll

[2] View information about the battery backup-up unit state
# storcli64 -AdpBbuCmd -aAll

[3] View information about virtual disks
Useful for checking RAID level, stripe size, cache policy and RAID state:
# storcli64 -LDInfo -Lall -aALL

[4] View information about physical drives
# storcli64 -PDList -aALL

[5] Patrol read
Patrol read is a feature which tries to discover disk error before it is too late and data is lost. By default it is done automatically (with a delay of 168 hours between different patrol reads) and will take up to 30% of IO resources.
To see information about the patrol read state and the delay between patrol read runs:
# storcli64 -AdpPR -Info -aALL

[6] To find out the current patrol read rate, execute
# storcli64 -AdpGetProp PatrolReadRate -aALL

[7] To reduce patrol read resource usage to 2% in order to minimize the performance impact:
# storcli64 -AdpSetProp PatrolReadRate 2 -aALL

[8] To disable automatic patrol read:
# storcli64 -AdpPR -Dsbl -aALL

[9] To start a manual patrol read scan:
# storcli64 -AdpPR -Start -aALL

[10] To stop a patrol read scan:
# storcli64 -AdpPR -Stop -aALL

You could use the above commands to run patrol read in off-peak times.
Migrate from one RAID level to another

In this example, I migrate the virtual disk 0 from RAID level 6 to RAID 5, so that the disk space of one additional disk becomes available.
The second command is used to make Linux detect the new size of the RAID disk.

# /usr/local/sbin/MegaCli64 -LDRecon -Start -r5 -L0 -a0
# echo 1 > /sys/block/sda/device/rescan
Extending an existing RAID array with a new disk

./storcli64 -LDRecon -Start -r5 -Add -PhysDrv[32:3] -L0 -a0
Create a new RAID 5 virtual disk from a set of new hard drives

First we need to now the enclosure and slot number of the hard drives we want to use for the new RAID disk. You can find them out by the first command. Then I add a virtual disk using RAID level 5, followed by the list of drives I want to use, specified by enclosure:slot syntax.

# storcli64 -PDList -aALL | egrep ‘Adapter|Enclosure|Slot|Inquiry’
# storcli64 -CfgLdAdd -r5′[252:5,252:6,252:7]’ -a0
Extending an existing RAID array with a new disk

First check the enclosure device ID and the slot number of the newly added disk with the command above. Then we reconstruct the logical drive, adding the new drive. For a RAID 5 array this command is used:

# storcli64 -LDRecon -Start -r5 -Add -PhysDrv[32:3] -L0 -a0
View reconstruction progress

When reconstructing a RAID array, you can check its progress with this command.
# storcli64 -LDRecon ShowProg L0 -a0

(replace L0 by L1 for the second virtual disk, and so on)
Configure write-cache to be disabled when battery is broken

# storcli64 -LDSetProp NoCachedBadBBU -LALL -aALL
Change physical disk cache policy

If your system is not connected to a UPS, you should disable the physical disk cache in order to prevent data loss.

# storcli64 -LDGetProp -DskCache -LAll -aALL

To enable it (only do this if you have a UPS and redundant power supplies):

# storcli64 -LDGetProp -DskCache -LAll -aALL

Leave a Reply

Your email address will not be published. Required fields are marked *

Please validate : * Time limit is exhausted. Please reload CAPTCHA.