# metastat d100
d100: Mirror
Submirror 0: d101
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 10261520 blocks
d101: Submirror of d100
State: Okay
Size: 10261520 blocks
Stripe 0: (interlace: 32 blocks)
Device Start Block Dbase State Hot Spare
c1t12d0s0 0 No Okay
c1t13d0s0 1520 No Okay
c1t14d0s0 1520 No Okay
c1t15d0s0 1520 No Okay
The next step is to create a new metadevice d102, which must be the same size as the submirror d101. For T3, you need a spare disk volume. For the RAID box, you need a set of spare disks.
# metainit d102 1 4 c0t11d0s0 c0t12d0s0 c0t13d0s0 c0t14d0s0
d82: Concat/Stripe is setup
# metastat d102
d102: Concat/Stripe
Size: 10261520 blocks
Stripe 0: (interlace: 32 blocks)
Device Start Block Dbase
c0t11d0s0 0 No
c0t12d0s0 1520 No
c0t13d0s0 1520 No
c0t14d0s0 1520 No
Then apply a set of new parameters by using the commands newfs, tunefs, and so on.
# metattach d100 d102
d100: submirror d102 is attached
# metastat d100
d100: Mirror
Submirror 0: d101
State: Okay
Submirror 1: d102
State: Resyncing
Resync in progress: 80 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 10261520 blocks
......
When the resynchronization is complete, you have two-way mirrors. One submirror has the old parameters, and the other has the new parameters.
# metadetach d100 d101
# metaclear d101
Now you've changed the file system with a set of new parameters dynamically.
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)