From owner-freebsd-questions@FreeBSD.ORG Sat May 11 13:23:13 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0102F101 for ; Sat, 11 May 2013 13:23:12 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx1.freebsd.org (Postfix) with ESMTP id B7392856 for ; Sat, 11 May 2013 13:23:12 +0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id kw10so744077vcb.0 for ; Sat, 11 May 2013 06:23:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:mime-version:content-type:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=i9ouDoo6+89kKzCGOLN68qAWiedLLI5PI4sC/0gtPmA=; b=VHvQiMU4LCU0pDTIztYow36Blj03mx2De30xflZbtODYgwWEvX1F65WdYQrlL8TaxE p4nFSdHIsu1mcUEjQM9IUFRSkfEJ/4Y7EMc7u6T+iKEoWB41U/OV9uXxpOd9N9lVAXgy fRwg85yvlf8S/gDGNwIkFckyH9T8LpAU0x5t76NQ51ektCs/lSApH5+K3OtYmUnd3nIA 36sFIz1LiJXH0sYHUZgs6huD6CkAU1hAdwYO+5o+Rh3eaTJGYXbSioZCsOTgclmossNl CNpYBIq7hxStT9fmzWN7nDu1Qw1gDcnduV7aav7YOkilskN7E6mHaz6I9VA+joi0RMB3 vSBA== X-Received: by 10.52.88.239 with SMTP id bj15mr11867276vdb.68.1368278586247; Sat, 11 May 2013 06:23:06 -0700 (PDT) Received: from [192.168.2.99] ([96.236.21.119]) by mx.google.com with ESMTPSA id y20sm5870496vds.7.2013.05.11.06.23.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 11 May 2013 06:23:05 -0700 (PDT) Subject: Re: Tell me how to increase the virtual disk with ZFS? Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii From: Paul Kraus In-Reply-To: <43529.1368277152.10278121996412321792@ffe11.ukr.net> Date: Sat, 11 May 2013 09:23:04 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <5C2B4C2B-BAF2-49C1-8554-319EB5FE6C3B@kraus-haus.org> References: <43529.1368277152.10278121996412321792@ffe11.ukr.net> To: "Vladislav Prodan" X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQnSUmCkZWfoUJD2GMI0PmuLoKbF2MlQDj3nLCEHbrdFs/4cPpdkXjq5m2z3DvCeUYAxWbX0 Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 13:23:13 -0000 On May 11, 2013, at 8:59 AM, "Vladislav Prodan" = wrote: > Add another virtual disk and do a RAID0 - not an option. It is not = clear how to distribute the data from the old virtual disk to the new = virtual disk. When you add an additional "disk" to a zpool (to create a STRIPE), the = ZFS code automatically stripes new writes across all top level vdevs = (drinks in this case). You will see a performance penalty until the data = distribution evens out. One way to force that (if you do NOT have = snapshots) is to just copy everything. The new copy will be striped = across all top level vdevs. The other option would be to add an additional disk that is as large as = you want to the VM, attach it to the zpool as a mirror. The mirror vdev = will only be as large as the original device, but once the mirror = completes resilvering, you can remove the old device and grow the = remaining device to full size (it may do that anyway based on the = setting of the auto expand property of the zpool. The default under 9.1 = is NOT to autoexpand: root@FreeBSD2:/root # zpool get autoexpand rootpool NAME PROPERTY VALUE SOURCE rootpool autoexpand off default root@FreeBSD2:/root #=20 -- Paul Kraus Deputy Technical Director, LoneStarCon 3 Sound Coordinator, Schenectady Light Opera Company