Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Mar 2011 14:40:13 +0200
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        "Mark Felder" <feld@feld.me>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: HAST and volume sizes
Message-ID:  <861v2pzoeq.fsf@in138.ua3>
In-Reply-To: <op.vrowgzhr34t2sn@tech304> (Mark Felder's message of "Tue, 01 Mar 2011 18:18:26 -0600")
References:  <op.vrowgzhr34t2sn@tech304>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 01 Mar 2011 18:18:26 -0600 Mark Felder wrote:

 MF> Hi all,

 MF> There doesn't seem to be any documentation on the effects of having
 MF> differing volume sizes for HAST. What happens if my MASTER is 1TB and
 MF> the  BACKUP is 1.5TB for example? Does it simply only care about the
 MF> first 1TB  of that volume because that's all the MASTER has? Would it
 MF> make things  easier when we replaced the MASTER's disk with a larger
 MF> disk? Or will it  just resync because HAST would be fresh (like I
 MF> expect).

In hastctl(8) for create command:

             -m mediasize   Size of the smaller provider used as backend stor-
                            age on both nodes.  This option can be omitted if
                            node providers have the same size on both sides.


So if you have disks of different sizes you have to specify the smallest size
on the resource creation.

It won't automagically resize when you replace the disk with larger one. The
way i see is (if you have A(1Tb), B(1.5Tb) and are replacing A with 1.5Tb):

1) B: start as primary, mount FS;
2) A: after replacing the disk recreate the resource, newfs, mount;
3) copy data form B:/mount to A:/mount manually;
4) B: change role to init, recreate device, switch to secondary.

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861v2pzoeq.fsf>