Configuration du RAID Hardware sur un T2000

Exemple: T2000 fourni avec 2 disques 73Go, on va les mettre en miroir (RAID1)

Le RAID HW se configure avant que l’OS ne soit installé sur le disque. On boote en single-user, soit depuis le CDROM, soit sur le net, si un serveur Jumpstart est disponible.

# # # raidctl
No RAID volumes found
# format   
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@0,0
       1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@1,0
Specify disk (enter its number): ^C
# raidctl -c c0t0d0 c0t1d0
Creating RAID volume c0t0d0 will destroy all data on member disks, proceed (yes/no)? yes
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Physical disk 0 created.
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Physical disk 1 created.
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Volume 0 created.
Volume 'c0t0d0' created
# WARNING: /pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Volume 0 is degraded

/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Volume 0 is |enabled||optimal|
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Volume 0 is |enabled||optimal|
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Physical disk 1 (target 1) is |out of sync||online|
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Volume 0 is |enabled||degraded|
/pci@780/pci@0/pci@9/scsi@0 (mpt0):
        Volume 0 is |enabled||resyncing||degraded|


# raidctl -l
RAID    Volume  RAID            RAID            Disk
Volume  Type    Status          Disk            Status
------------------------------------------------------
c0t0d0  IM      RESYNCING       c0t0d0          OK
                                c0t1d0          OK

A partir de là, et comme l’explique le document 85320, il faut re-”labeler” le disque avec la commande format, sinon ce message apparaitra:

WARNING: /pci@780/pci@0/pci@9/scsi@0/sd@0,0 (sd1):
        Corrupt label - bad geometry

        Label says 143359488 blocks; Drive says 143112591 blocks
# format
Searching for disks...done

c0t0d0: configured with capacity of 68.00GB


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 136>
          /pci@780/pci@0/pci@9/scsi@0/sd@0,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Disk not labeled.  Label it now? y


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> t


AVAILABLE DRIVE TYPES:
        0. Auto configure
        1. Quantum ProDrive 80S
        2. Quantum ProDrive 105S
        3. CDC Wren IV 94171-344
        4. SUN0104
        5. SUN0207
        6. SUN0327
        7. SUN0340
        8. SUN0424
        9. SUN0535
        10. SUN0669
        11. SUN1.0G
        12. SUN1.05
        13. SUN1.3G
        14. SUN2.1G
        15. SUN2.9G
        16. Zip 100
        17. Zip 250
        18. Peerless 10GB
        19. LSILOGIC-LogicalVolume-3000
        20. other
Specify disk type (enter its number)[19]: 0
c0t0d0: configured with capacity of 68.00GB
<LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 136>
selecting c0t0d0
[disk formatted]
format> l
Ready to label disk, continue? y

format> di


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 136>
          /pci@780/pci@0/pci@9/scsi@0/sd@0,0
Specify disk (enter its number)[0]: ^C
format> 

Remarques

Si vous utilisez Jumpstart, et avez oublié de re-labele le disque, le client Jumpstart va s’arrêter et vous aurez la main pour lancer la commande format. Ensuite, plutôt que de redémarrer la machine et recommencer le jumpstart depuis le début, taper simplement:

# install-solaris

Une fois que l’OS a été installé, on peut vérifier que le RAID est toujours actif:

t2000-root% raidctl -l
RAID    Volume  RAID            RAID            Disk
Volume  Type    Status          Disk            Status
------------------------------------------------------
c0t0d0  IM      OK              c0t0d0          OK
                                c0t1d0          OK
 
docs/serveur/t2000/raid_hardware.txt · Dernière modification: 03/01/2007 09:55 par ghenry