Hi Bill,

This is hardware raid vs. software raid, and you need to understand and use the correct tool to administer each one.

Hardware raid uses a dedicated controller (managed via raidctl) which mirrors the disk and presents a single "disk" for the OS to use. The os must have a driver for the raid card, but otherwise does not have to care what the underlying device is (mirror, stripe, raid5, etc)

Software raid uses a kernel module to do the mirroring. You can still see the individual drives (c1t0d0 and c1t1d0 in your output below), but you access it using the top level metadevice d6. SVM will make sure any writes to d6 are written to both d16 and d26, and hence to c1t0d0s6 and c1t1d0s6.

The warning about "no databases" from metastat is the first clue that it is not using software raid. If raidctl produces output (other than an obvious error message), then you are probably using hardware raid.

Hope that helps,
Brian



Bill Ward wrote:
Good day,
We had one of ourv245 with raid1 mirroring appear to loose a drive. metastat 
returns the following :
bash-3.00# raidctl
No RAID volumes found
bash-3.00# metastat
d6: Mirror
    Submirror 0: d16
      State: Needs maintenance
    Submirror 1: d26
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 56894016 blocks (27 GB)

d16: Submirror of d6
    State: Needs maintenance
    Invoke: metareplace d6 c1t0d0s6 <new device>
    Size: 56894016 blocks (27 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s6          0     No     Maintenance   Yes


d26: Submirror of d6
    State: Okay
    Size: 56894016 blocks (27 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s6          0     No            Okay   Yes

[elided]

Device Relocation Information:
Device   Reloc  Device ID
c1t1d0   Yes    id1,s...@n500000e01579f140
c1t0d0   Yes    id1,s...@n500000e0157a12f0
bash-3.00# raidctl
No RAID volumes found

But as you can see, raidctl shows no RAID.

On our T2000 or T5220 that are setup with mirroring they do show raidctl but 
metastat returns an error that there are no existing databases.

Any reason why?
thanks

--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to