Question : submirror too small to attach

We replaced a disk and now when trying to attach the submirror to the mirror we get :  submirror too small to attach error...

There are two submirrors in this disk... one is supposed to be of 109M and the other of 136G.  I try to do the metattach and I am getting errors I believe it is because they are not the same size but do not know how to fix this...

d50: Mirror
    Submirror 0: d51
      State: Resyncing    
    Submirror 1: d52
      State: Okay        
    Resync in progress: 38 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 223872 blocks (109 MB)

d51: Submirror of d50
    State: Resyncing    
    Size: 33560448 blocks (16 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t4d0s0          0     No            Okay   Yes


d52: Submirror of d50
    State: Okay        
    Size: 223872 blocks (109 MB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t5d0s0          0     No            Okay   Yes

d55: Mirror
    Submirror 1: d57
      State: Okay        
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 286393344 blocks (136 GB)

d57: Submirror of d55
    State: Okay        
    Size: 286393344 blocks (136 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t5d0s1          0     No            Okay   Yes

d56: Concat/Stripe
    Size: 253056768 blocks (120 GB)
    Stripe 0:
        Device     Start Block  Dbase   Reloc
        c1t4d0s1          0     No      Yes

# metareplace -e d55 c1t4d0s1
metareplace: serverjv-1: d55: c1t4d0s1: can't find component in unit

# metainit d56 1 1 c1t4d0s1
d56: Concat/Stripe is setup
# metareplace -e d55 c1t4d0s1
metareplace: serverjv-1: d55: c1t4d0s1: can't find component in unit

# metattach d55 d56
metattach: serverjv-1: d56: submirror too small to attach

# metainit d51 1 1 c1t4d0s0
d51: Concat/Stripe is setup
# metattach d50 d51
d50: submirror d51 is attached

Please can somebody help me???

Answer : submirror too small to attach

You need to make sure the size of the disks/slices to be mirrored are the same (at least the same amount of blocks ), please read the following pages:

http://www.sunmanagers.org/pipermail/summaries/2003-March/003437.html

http://filibeto.org/sun/lib/hardware/storedge/software/sds_mirroring_howto.txt

Random Solutions  
 
programming4us programming4us