Cant Metadetach

Hi, all i want to metadetach

but get the below error

# metadetach d6 d62
metadetach: CNORACLE2: d6: resync in progress
d6: Mirror
    Submirror 0: d61
      State: Okay
    Submirror 1: d62
      State: Resyncing
    Resync in progress: 6 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 286573248 blocks (136 GB)

d61: Submirror of d6
    State: Okay
    Size: 286573248 blocks (136 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s6          0     No            Okay   Yes


d62: Submirror of d6
    State: Resyncing
    Size: 286573248 blocks (136 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s6          0     No            Okay   Yes


Device Relocation Information:
Device   Reloc  Device ID
c0t1d0   Yes    id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800UKV
c1t1d0   Yes    id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800UJY

any idea on it?
how to success to metadetach?

wait until the resync is complete or use the "-f" option on metadetach.

i had use metadetach -f d6 d62,
but still get the same error.

is it got other way to force detach or clear this mirror?

you can "metaclear" the submirror...

the error is below

# metaclear d62
metaclear: CNORACLE2: d62: metadevice in use

# metaclear d6
metaclear: CNORACLE2: d6: metadevice is open

# metaclear d61
metaclear: CNORACLE2: d61: metadevice in use

any idea?

tried the "-f" option?

yes, get the same error

as far as i remember this works for me... can't try it yet.

hello, i faced same problem before. Just be patient and wait for sync to complete before you try anything.

ok.
after this
do the step as below before format the disk

#metadetach d62
#metaclear -r d6
#metaclear d62

is it correct?

ya.. finally settle it. Really need to be patient and wait for the sync finish.

once you do metaclear -r , it will automatically remove the submirrors d62 as well, thus no need to repeat metaclear d62 :slight_smile: