Saturday, January 16, 2016

How to Grow Soft Partition which is on Mirroring


How to Grow Soft Partition which is on Mirroring

:a511627> metastat d140
d140: Mirror
    Submirror 0: d141
      State: Okay
    Submirror 1: d142
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 211050240 blocks (100 GB)

d141: Submirror of d140
    State: Okay
    Size: 211050240 blocks (100 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc Hot Spare
        /dev/dsk/c4t5000C5000C6AE163d0s4          0     No            Okay   Yes


d142: Submirror of d140
    State: Okay
    Size: 211050240 blocks (100 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc Hot Spare
        /dev/dsk/c4t5000C5000F4BED2Bd0s4          0     No            Okay   Yes


Device Relocation Information:
Device                           Reloc  Device ID
/dev/dsk/c4t5000C5000C6AE163d0   Yes    id1,sd@n5000c5000c6ae163
/dev/dsk/c4t5000C5000F4BED2Bd0   Yes    id1,sd@n5000c5000f4bed2b
nlnehvdcs1sx895:a511627>
nlnehvdcs1sx895:a511627>

<> <>


metattach d141 c1t2d0

metattach d142 c1t3do


now how to increase a soft partion which is created on mirrored volume


nlnehvdcs1sx895:a511627> metastat d145
d145: Soft Partition
    Device: d140
    State: Okay
    Size: 184835832 blocks (88 GB)
        Extent              Start Block              Block count
             0                        1                       30
             1                  1048609                       30
             2                  5242945                       30
             3                 26214497                184835742

d140: Mirror
    Submirror 0: d141
      State: Okay
    Submirror 1: d142
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 211050240 blocks (100 GB)

d141: Submirror of d140
    State: Okay
    Size: 211050240 blocks (100 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc Hot Spare
        /dev/dsk/c4t5000C5000C6AE163d0s4          0     No            Okay   Yes


d142: Submirror of d140
    State: Okay
    Size: 211050240 blocks (100 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc Hot Spare
        /dev/dsk/c4t5000C5000F4BED2Bd0s4          0     No            Okay   Yes


Device Relocation Information:
Device                           Reloc  Device ID
/dev/dsk/c4t5000C5000C6AE163d0   Yes    id1,sd@n5000c5000c6ae163
/dev/dsk/c4t5000C5000F4BED2Bd0   Yes    id1,sd@n5000c5000f4bed2b
nlnehvdcs1sx895:a511627>
nlnehvdcs1sx895:a511627>




nlnehvdcs1sx895:a511627> df -kh /volumes/v0
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d145        87G    82G   3.6G    96%    /volumes/v0
nlnehvdcs1sx895:a511627>


metattach d145 50g

growfs -M /volumes/v0  /dev/md/rdsk/d145

No comments:

Post a Comment