LSI Raid

Allikas: Kuutõrvaja
Redaktsioon seisuga 21. juuni 2013, kell 10:59 kasutajalt Jj (arutelu | kaastöö) (Uus lehekülg: ''''Hp serverite raid kontroller''' ===FreeBSD=== mpt0: <LSILogic SAS/SATA Adapter> # mptutil show config mpt0 Configuration: 1 volumes, 2 drives volume 0 (136G) RAID-0 64...')
(erin) ←Vanem redaktsioon | Viimane redaktsiooni (erin) | Uuem redaktsioon→ (erin)

Hp serverite raid kontroller

FreeBSD

mpt0: <LSILogic SAS/SATA Adapter>
# mptutil show config
mpt0 Configuration: 1 volumes, 2 drives
    volume 0 (136G) RAID-0 64k OPTIMAL spans:
        drive 1 (68G) ONLINE <SEAGATE ST973401LSUN72G 0556> SAS
        drive 0 (68G) ONLINE <SEAGATE ST973401LSUN72G 0556> SAS
        spare pools: 0

Või raid 1

# mptutil show config
mpt0 Configuration: 1 volumes, 2 drives
    volume 0 (68G) RAID-1 OPTIMAL spans:
        drive 1 (68G) ONLINE <SEAGATE ST973401LSUN72G 0556> SAS
        drive 0 (68G) ONLINE <SEAGATE ST973401LSUN72G 0556> SAS
        spare pools: 0

vaatame kettaid

# mptutil show drives
mpt0 Physical Drives:
   0 (   68G) ONLINE <SEAGATE ST973401LSUN72G 0556> SAS bus 0 id 3
   1 (   68G) ONLINE <SEAGATE ST973401LSUN72G 0556> SAS bus 0 id 4

testime

root@testikas:/usr/home/jj # mptutil show volumes
mpt0 Volumes:
  Id     Size    Level   Stripe  State  Write-Cache  Name
     0 (  136G) RAID-0      64k OPTIMAL   Disabled  


Debian

Kõigepealt mõned vajalikud sõltuvused

# aptitude install lib32gcc1 lib32stdc++6

Seejärel vaja tõmmata hp saidilt hpaccucli käsutööriista pakk

http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/Debian/pool/non-free/

Ning see paigaldada

# dpkg -i hpacucli_8.70-8.0.2-2_amd64.deb

kasutamine

# hpacucli ctrl all show config
Smart Array E200 in Slot 1                (sn: PA6C90P9SWN211)

   array A (SAS, Unused Space: 0 MB)
 

      logicaldrive 1 (68.5 GB, RAID 0, OK)

      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 73.5 GB, OK)

   array B (SAS, Unused Space: 0 MB)


      logicaldrive 2 (558.7 GB, RAID 5, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)

Staatus

# hpacucli ctrl all show status

Smart Array E200 in Slot 1
   Controller Status: OK
   Cache Status: OK
   Battery/Capacitor Status: OK
hpacucli> ctrl slot=0 pd 2:3 modify led=on            ## To enable or Disable the LED
hpacucli> ctrl slot=0 pd 2:3 modify led=off

Create LogicalDrive with RAID 5 using five drives:

hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14,1:15,1:16,1:17 raid=5
hpacucli> ctrl slot=0 ld 4 delete                                   ## To Delete LogicalDrives