From owner-freebsd-fs@FreeBSD.ORG Wed Mar 2 12:40:17 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC5DF106566B for ; Wed, 2 Mar 2011 12:40:17 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7656C8FC08 for ; Wed, 2 Mar 2011 12:40:17 +0000 (UTC) Received: by bwz12 with SMTP id 12so106239bwz.13 for ; Wed, 02 Mar 2011 04:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=nfuS/UOvoaxsJYMl8MzHXhth9jwpz3McE+LpRwHY3BU=; b=GH7e7jb/lzY1nRI/Q5SodXaepj0v0ONJHc9RvzjDCQEMfTOT4cTCbjhwuHpdOCPlOI PLr9mZouYUzcVh3VcBUI9m9PR7R/JLhULqI9cFgc4fb3/MTphFA7plV9R1aWDUfKBeUK dnpZ6ShpT4QhHQrzHV9nl86XIjZqJS6rmoWEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=NZ3JQn/c4hfNUgFwHHEOLCfA7B3JJ2JpGUNMlCghwpvEEVXZlaOFn9i1+Pa2FAkk8h wfi24YOrhb1nzWa8DkSnxvH3EdgRzrmHYngC0T/rT91Sr3jrgkN2TS5Y+SUx3PGcH+Kr 9gY3wjiuY70o7zH+iXNIB7rPmBCtEmd5oDK6g= Received: by 10.204.33.5 with SMTP id f5mr4330342bkd.103.1299069616248; Wed, 02 Mar 2011 04:40:16 -0800 (PST) Received: from localhost ([94.27.39.186]) by mx.google.com with ESMTPS id a15sm38360faw.3.2011.03.02.04.40.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Mar 2011 04:40:14 -0800 (PST) From: Mikolaj Golub To: "Mark Felder" Organization: TOA Ukraine References: Date: Wed, 02 Mar 2011 14:40:13 +0200 In-Reply-To: (Mark Felder's message of "Tue, 01 Mar 2011 18:18:26 -0600") Message-ID: <861v2pzoeq.fsf@in138.ua3> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@freebsd.org Subject: Re: HAST and volume sizes X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2011 12:40:18 -0000 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