From owner-freebsd-fs@FreeBSD.ORG Sat May 11 14:55:24 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5C2B04B7 for ; Sat, 11 May 2013 14:55:24 +0000 (UTC) (envelope-from nowakpl@platinum.linux.pl) Received: from platinum.linux.pl (platinum.edu.pl [81.161.192.4]) by mx1.freebsd.org (Postfix) with ESMTP id 20973B62 for ; Sat, 11 May 2013 14:55:23 +0000 (UTC) Received: by platinum.linux.pl (Postfix, from userid 87) id C632147E1A; Sat, 11 May 2013 16:45:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on platinum.linux.pl X-Spam-Level: X-Spam-Status: No, score=-1.3 required=3.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.3.2 Received: from [10.255.0.2] (unknown [83.151.38.73]) by platinum.linux.pl (Postfix) with ESMTPA id 8315647DE6 for ; Sat, 11 May 2013 16:45:28 +0200 (CEST) Message-ID: <518E5973.9090003@platinum.linux.pl> Date: Sat, 11 May 2013 16:45:07 +0200 From: Adam Nowacki User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: Tell me how to increase the virtual disk with ZFS? References: <43529.1368277152.10278121996412321792@ffe11.ukr.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 14:55:24 -0000 # zfs list md1p1 NAME USED AVAIL REFER MOUNTPOINT md1p1 126K 1.96G 31K /md1p1 -- on-line resize partition to occupy added disk space # sysctl kern.geom.debugflags=16 kern.geom.debugflags: 0 -> 16 # gpart recover md1 md1 recovered # gpart resize -i 1 md1 md1p1 resized # sysctl kern.geom.debugflags=0 kern.geom.debugflags: 16 -> 0 -- tell zfs about it # zpool online -e md1p1 md1p1 -- done # zfs list md1p1 NAME USED AVAIL REFER MOUNTPOINT md1p1 136K 9.84G 31K /md1p1 On 2013-05-11 16:03, Alexander Yerenkow wrote: > There's no mature (or flexible, or "can do what I want" ) way to > increase/decrease disk sizes in FreeBSD for now {ZFS,UFS}. > Best and quickest way - to have twice spare space, copy data, create new > sufficient disk and copy back. > > > > 2013/5/11 Vladislav Prodan > >> >> I have a Debian server virtual ok with Proxmox. >> In one of the virtual machines is FreeBSD 9.1 ZFS with one disk to 100G. >> Free space is not enough, how to extend the virtual disk without losing >> data? >> >> 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. >> >> The manual of the Proxmox http://pve.proxmox.com/wiki/Resizing_disksFreeBSD is not mentioned :( >> >> You may have to do a Native ZFS for Linux on Proxmox and it will be easier >> to resize the virtual disk for the virtual machines? >> >> -- >> Vladislav V. Prodan >> System & Network Administrator >> http://support.od.ua >> +380 67 4584408, +380 99 4060508 >> VVP88-RIPE >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> > > >