Saturday, January 16, 2016

How to detach and clear metadevices from metaset.


How to detach and clear metadevices from metaset.

metadetach -s nlnehvdcs1cl897-prod-ds01 d100 d101

metaset -s nlnehvdcs1cl897-prod-ds01 -d /dev/did/rdsk/d47 /dev/did/rdsk/d36 /dev/did/rdsk/d45  /dev/did/rdsk/d38

metaset -s nlnehvdcs1cl897-prod-ds01

metaclear -s nlnehvdcs1cl897-prod-ds01 d101


=========================================================================================

DID Device Name:                                /dev/did/rdsk/d47
  Full Device Path:                                nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602650533031433044d0
  Full Device Path:                                nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602650533031433044d0
  Replication:                                     none
  default_fencing:                                 global
  Disk ID:                                         60000970000292602650533031433044

DID Device Name:                                /dev/did/rdsk/d36
  Full Device Path:                                nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602650533034454442d0
  Full Device Path:                                nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602650533034454442d0
  Replication:                                     none
  default_fencing:                                 global
  Disk ID:                                         60000970000292602650533034454442
  Ascii Disk ID:                                   `
DID Device Name:                                /dev/did/rdsk/d45
  Full Device Path:                                nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602650533031464245d0
  Full Device Path:                                nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602650533031464245d0
  Replication:                                     none
  default_fencing:                                 global
  Disk ID:                                         60000970000292602650533031464245

DID Device Name:                                /dev/did/rdsk/d38
  Full Device Path:                                nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602650533033443243d0
  Full Device Path:                                nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602650533033443243d0
  Replication:                                     none
  default_fencing:                                 global
  Disk ID:                                         60000970000292602650533033443243
  Ascii Disk ID:                                   `

nlnehvdcs1sx896:a537069> metaset -s nlnehvdcs1cl897-prod-ds01

Set name = nlnehvdcs1cl897-prod-ds01, Set number = 1

Host                Owner
  nlnehvdcs1sx895
  nlnehvdcs1sx896    Yes

Mediator Host(s)    Aliases
  nlnehvdcs1sx895
  nlnehvdcs1sx896

Drive Dbase

d47   Yes

d36   Yes

d45   Yes

d38   Yes

d55   Yes

d35   No

d44   No

d37   No

d64   Yes

d62   Yes

d63   Yes



nlnehvdcs1cl897-prod-ds01/d100: Mirror
    Submirror 0: nlnehvdcs1cl897-prod-ds01/d101
      State: Okay
    Submirror 1: nlnehvdcs1cl897-prod-ds01/d102
      State: Okay
    Submirror 2: nlnehvdcs1cl897-prod-ds01/d107
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 738792960 blocks (352 GB)

nlnehvdcs1cl897-prod-ds01/d101: Submirror of nlnehvdcs1cl897-prod-ds01/d100
    State: Okay
    Size: 738792960 blocks (352 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d47s0           0     No            Okay   Yes
    Stripe 1:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d36s0           0     No            Okay   Yes
    Stripe 2:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d45s0           0     No            Okay   Yes
    Stripe 3:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d38s0           0     No            Okay   Yes




nlnehvdcs1sx896:a537069> metadetach -s nlnehvdcs1cl897-prod-ds01 d100 d101
nlnehvdcs1cl897-prod-ds01/d100: submirror nlnehvdcs1cl897-prod-ds01/d101 is detached
nlnehvdcs1sx896:a537069>


nlnehvdcs1sx896:a537069> metastat -s nlnehvdcs1cl897-prod-ds01 d100
nlnehvdcs1cl897-prod-ds01/d100: Mirror
    Submirror 0: nlnehvdcs1cl897-prod-ds01/d102
      State: Okay
    Submirror 1: nlnehvdcs1cl897-prod-ds01/d107
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 738792960 blocks (352 GB)

nlnehvdcs1cl897-prod-ds01/d102: Submirror of nlnehvdcs1cl897-prod-ds01/d100
    State: Okay
    Size: 738816000 blocks (352 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d55s0           0     No            Okay   Yes
    Stripe 1:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d35s0        1920     No            Okay   Yes
    Stripe 2:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d44s0        1920     No            Okay   Yes
    Stripe 3:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d37s0        3840     No            Okay   Yes


nlnehvdcs1cl897-prod-ds01/d107: Submirror of nlnehvdcs1cl897-prod-ds01/d100
    State: Okay
    Size: 755020800 blocks (360 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d64s0           0     No            Okay   Yes


Device Relocation Information:
Device   Reloc  Device ID
d55   Yes       id1,did@n60000970000292602650533031453145
d35   Yes       id1,did@n60000970000292602650533035303837
d44   Yes       id1,did@n60000970000292602650533032314141
d37   Yes       id1,did@n60000970000292602650533034303544
d64   Yes       id1,did@n60000970000292602762533032433435
nlnehvdcs1sx896:a537069>

No comments:

Post a Comment