Re: Resizing Stripe-Pro Volumes (Solaris 8 & VxVm 3.1)

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 02/02/04


Date: Mon, 02 Feb 2004 22:31:42 GMT

pfalpha <pfalpha@nospamfores.plus.com> wrote:
> have the following questions.
>
> A mirrored Volume VOL99 which is 20Gb (on disks DISKA and DISKB), I want to increase it by 30Gb (total 50Gb) using 2 new disks (DISKC & DISKD) ; is the command:
>
> vxresize -g rootdg VOL99 50g DISKA DISKB DISKC DISKD
>
> or
>
> vxresize -g rootdg VOL99 50g DISKC DISKD
>
> I only want the extra mirrored 30g on DISKC & DISKD.

This is a case where I might use vxassist explicitly, because I'm more
familiar with it's syntax.

vxassist -g rootdg growby VOL99 50g diskc diskd

Then the easy way to resize the filesystem is to grab the current size
of the volume...

vxprint -F '%len' VOL99

Then feed that into vxresize

vxresize -x VOL99 <size>

You should be able to do everything with vxresize in one step, I'm just
a little less familiar with it being able to do all the layout
constraints that vxassist can do.

> Using the answer from above.. I also have a 200g Mirrored Striped-Pro (MSP01), made of 3 x 66.7Gb mirrored sub volumes (MSP-SV1, MSP-SV2, MSP-SV3), each sub volume has 2 mirrors (MSV-SV1-PL1, MSV-SV1-PL2...etc, etc). each plex has one sub disk (MSV-SV1-PL1-SD1)
>
> If I want to extend the strip-pro volume upto 600Gb, do I:
>
> 1) Increase each of the 3 sub volumes, by adding sub disks to each plex in the 3 mirrors.
>
> vxresize -g rootdg MSP-SV1 200g NEW-DISK1 NEWDISK2
> vxresize -g rootdg MSP-SV2 200g NEW-DISK3 NEWDISK4
> vxresize -g rootdg MSP-SV3 200g NEW-DISK5 NEWDISK6

No. Don't do that.

> 2) Add 6 new sub disks to the Striped-Pro volume (i.e. one sub disk per plex of the 3 sub volumes)
>
> vxresize -g rootdg MSP01 600g NEW-DISK1 NEW-DISK2 \
NEWDISK3 NEWDISK4 NEWDISK5 NEW-DISK5

yes, that's basically it. You can ask for the maximum size that it can
use on those disks with 'vxassist' also.

> Will this ensure that each sub disk is the same size, i.e around 66.7g each.

Yes.

> Finally, is it better to use vxresize over vxassist, or vice-versa.

Vxassist appears to have a little better documentation for strange
cases, but really vxresize should be using the equivalent of vxassist to
change the volume, then it will attempt to change the filesystem to
match.

-- 
Darren Dunham                                           ddunham@taos.com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >