LSI Raid

Allikas: Kuutõrvaja
Redaktsioon seisuga 20. juuni 2014, kell 14:17 kasutajalt Jj (arutelu | kaastöö) (Dell Perc FreeBSD)

Hp serverite raid kontroller

FreeBSD

Seda kas draiver laetud saab kontrollida dmesgist

mpt0: <LSILogic SAS/SATA Adapter>

Utiliit info vaatamiseks on juba süsteemiga kaasas

# 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

Gentoo

# emerge sys-block/megacli,
* Upstream has implement a mandatory clickthrough EULA for distfile download
* Please visit http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.02.21_MegaCLI.zip
* And place 8.02.21_MegaCLI.zip in /usr/portage/distfiles
# /opt/bin/MegaCli -PDList -aALL | grep Error


FreeBSD

Kui dmesgis on aga ciss draiver

ciss0: <HP Smart Array E200>

Smartmontooliga

# smartctl -iH -d cciss,0 /dev/ciss0

Viimase 2013 augusti alguse seisuga.

===>  hpacucli-7.50_3 is marked as broken: currently does not work on amd64 (see PR ports/128288).
*** Error code 1

Gentoo

# cciss_vol_status /dev/cciss/c0d0
/dev/cciss/c0d0: (Smart Array E200) RAID 1 Volume 0 status: OK.

Rohkem infot

# cciss_vol_status -s -V /dev/cciss/c0d0
Controller: Smart Array E200
  Board ID: 0x3212103c
  Logical drives: 0
  Running firmware: 1.78
  ROM firmware: 1.78
/dev/cciss/c0d0: (Smart Array E200) RAID 1 Volume 0 status: OK.
  Physical drives: 4
         connector 1I box 1 bay 1                 HP DF0300B8053                          3QP0CGM2000099130AAD     HPD1 OK
         connector 1I box 1 bay 2                 SEAGATE ST3300657SS                          6SJ52A8C0000N2409BM5     0008 OK
         connector 1I box 1 bay 3                 HP DF0300B8053                          3QP0CFYM000099130C1T     HPD1 OK
         connector 1I box 1 bay 4                 HP DF0300B8053                          3QP0CH9E00009913142T     HPD1 OK

http://www.nico.schottelius.org/docs/freebsd-raid-monitoring/ palju väärt infot.

Dell Perc FreeBSD

mfi seade dmesgis

mfi0: <Dell PERC H700 Integrated> port 0xfc00-0xfcff mem 0xef0fc000-0xef0fffff,0xef040000-0xef07ffff irq 44 at device 0.0 on pci1

Kasutamiseks mfiutil

# mfiutil show drives
mfi0 Physical Drives:
 0 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z291CVH6> SCSI-6 E1:S0
 1 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z291CVN6> SCSI-6 E1:S1
 2 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z291CV7B> SCSI-6 E1:S2
 3 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z291CTYF> SCSI-6 E1:S3
 4 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z291CVM4> SCSI-6 E1:S4
 5 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z29182GP> SCSI-6 E1:S5
 6 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z291CVHG> SCSI-6 E1:S6
 7 ( 2795G) ONLINE <SEAGATE ST33000650SS RS0C serial=Z2918395> SCSI-6 E1:S7

Mfiutiliit lubab kuumvahetatavaid kettaid jooksvalt lisada raidi.

# mfiutil create raid10 E1:S2,E1:S3 E1:S4,E1:S5 E1:S6,E1:S7

Dmesgist saame vaadata, et kõik läks korrektselt ja seade tekkis

mfid1: <MFI Logical Disk> on mfi0
mfid1: 1715328MB (3512991744 sectors) RAID volume  is optimal

Või siis küsida staatust kontrollerist endast

# mfiutil show volumes 
mfi0 Volumes:
  Id     Size    Level   Stripe  State   Cache   Name
 mfid0 (  278G) RAID-1      64k OPTIMAL Disabled
 mfid1 ( 1675G) RAID-10     64k OPTIMAL Disabled

Progressi saab vaadata

# mfiutil show progress
volume mfid1 Background Init: 1.20% complete, after 2078s finished in 47:25:44

samas on tekitatud raid1 volume juba kättesaadav ja kasutatav.