[[SUMMARY]] SVM/LVM growing Mirror by adding/removing slices

From: Martin Preßlaber <presslaber_at_ips.at>
Date: Tue Jan 12 2010 - 10:26:58 EST
hi,

first of all, many thanks to Roberto Wagner, Paul Kraus and Tim Bradshaw for
the fast answers.

the only thing you have to do; just invoke the "metattach <mirror>" command
again.

"""
root@vbox01 # metastat -c d0
d0               m  100MB d1
    d1           s  100MB c2t0d0s0
root@vbox01 # metattach d0 d2
d0: submirror d2 is attached
root@vbox01 # metastat -c d0
d0               m  100MB d1 d2
    d1           s  100MB c2t0d0s0
    d2           s  200MB c2t1d0s0
root@vbox01 # metadetach -f d0 d1
d0: submirror d1 is detached
root@vbox01 # metastat -c d0
d0               m  100MB d2
    d2           s  200MB c2t1d0s0
root@vbox01 # metattach d0
root@vbox01 # metastat -c d0
d0               m  200MB d2
    d2           s  200MB c2t1d0s0
root@vbox01 #
"""

-- it's also mentioned in the man page of metattach(1M)

""-snip-""

     This example tells the mirror to grow to  the  size  of  the
     underlying devices

       # metattach d11

""-snip-""

once again many thanks for your help and forgive me not reading the manual ;)

kind regards
 - martin / pressy


Von: Martin Pre_laber
Gesendet: Dienstag, 12. Jdnner 2010 13:23
An: sunmanagers@sunmanagers.org
Betreff: SVM/LVM growing Mirror by adding/removing slices

hi,

we want to migrate a SAN storage by mirroring the LUNs with SVM/LVM, Solaris
10 Update 6. in this step we are planning to mirror against bigger LUNs to
increase the possible space for our soft-partitions. it's no problem to build
a mirror with a small and a big slice, but the mirror doesn't detect
automatically that there would be bigger underlying slices to provide more
space when the smaller slice is removed until I reconfigure the configuration
by e.g. adding a new device...

Q: Is there a way to tell Solaris/SVM to refresh the mirror size? (live?)

Assuming I would have such a configuration:

root@vbox01 # metastat -c
d0               m  100MB d1
    d1           s  100MB c2t0d0s0
d2               s  200MB c2t1d0s0
root@vbox01 # metattach d0 d2
d0: submirror d2 is attached
root@vbox01 # metastat -c
d0               m  100MB d1 d2
    d1           s  100MB c2t0d0s0
    d2           s  200MB c2t1d0s0
root@vbox01 #

the mirror is as big as the smallest component. ok, now I remove the small
disk and the mirror holds the size information:

root@vbox01 # metastat -c d0
d0               m  100MB d2
    d2           s  200MB c2t1d0s0

root@vbox01 # metainit d3 -p d0 150m
metainit: vbox01: d3: not enough space available for request

but when I add a new slice, the mirror grows:
root@vbox01 # metattach d2 c2t1d0s1
d2: component is attached
root@vbox01 # metastat -c d0
d0               m  400MB d2
    d2           s  400MB c2t1d0s0 c2t1d0s1
root@vbox01 # metainit d3 -p d0 150m
d3: Soft Partition is setup
root@vbox01 # metastat -c
d3               p  150MB d0
    d0           m  400MB d2
        d2       s  400MB c2t1d0s0 c2t1d0s1
d1               s  100MB c2t0d0s0
root@vbox01 #

so, is there a possibility to tell the mirror to look at the slices to
recalculate the size without having to add a new slice?

thanks in advance & kind regards,
 - martin
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Jan 12 10:28:09 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:15 EST