Solaris Volume Manager Administration Guide

ProcedureHow to Cancel a Volume Resynchronization Process

  1. Assume the Primary Administrator role, or become superuser.

    The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Use the metastat command to view the status of the RAID-1 volume and associated submirrors.


    # metastat mirror-name
    

    or


    metastat -a
    
  3. Use the metasync -c volume command to cancel the resynchronization process.


Example 11–17 Canceling a Volume Resynchronization Process

The following example illustrates how to cancel the resynchronization process on a volume that is part of the disk set blue. Notice that the submirrors are in the “Resync cancelled” state after running the metasync command.


# metastat -a


blue/d10: Mirror
    Submirror 0: blue/d1
      State: Resyncing
    Submirror 1: blue/d2
      State: Okay
    Resync in progress: 0 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 10485760 blocks (5.0 GB)

blue/d1: Submirror of blue/d10
    State: Resyncing
    Size: 10485760 blocks (5.0 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc
 Hot Spare
        /dev/dsk/c3t50020F230000FA57d0s0          0     No            Okay   Yes




blue/d2: Submirror of blue/d10
    State: Okay
    Size: 10485760 blocks (5.0 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc
 Hot Spare
        /dev/dsk/c3t50020F230000FA57d0s1          0     No            Okay   Yes



Device Relocation Information:
Device                           Reloc  Device ID
/dev/dsk/c3t50020F230000FA57d0   Yes    id1,ssd@n60020f200000fa574033661f000c641
4

# metasync -s blue -c d10
Mar  1 12:46:18 SunSystem1 md_mirror: WARNING: md: blue/d10: Resync cancelled

# metastat -a


blue/d10: Mirror
    Submirror 0: blue/d1
      State: Resync cancelled
    Submirror 1: blue/d2
      State: Okay
    Resync cancelled: 3 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 10485760 blocks (5.0 GB)

blue/d1: Submirror of blue/d10
    State: Resync cancelled
    Invoke: metasync blue/d10
    Size: 10485760 blocks (5.0 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc
 Hot Spare
        /dev/dsk/c3t50020F230000FA57d0s0          0     No            Okay   Yes


blue/d2: Submirror of blue/d10
    State: Okay
    Size: 10485760 blocks (5.0 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc
 Hot Spare
        /dev/dsk/c3t50020F230000FA57d0s1          0     No            Okay   Yes



Device Relocation Information:
Device                           Reloc  Device ID
/dev/dsk/c3t50020F230000FA57d0   Yes    id1,ssd@n60020f200000fa574033661f000c641
4