Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2013 16:45:07 +0200
From:      Adam Nowacki <nowakpl@platinum.linux.pl>
To:        freebsd-fs@freebsd.org
Subject:   Re: Tell me how to increase the virtual disk with ZFS?
Message-ID:  <518E5973.9090003@platinum.linux.pl>
In-Reply-To: <CAPJF9w=fzyzqpJThWYViK%2BoR9Ob48iDQndHNgWbR%2BXvceNz8_g@mail.gmail.com>
References:  <43529.1368277152.10278121996412321792@ffe11.ukr.net> <CAPJF9w=fzyzqpJThWYViK%2BoR9Ob48iDQndHNgWbR%2BXvceNz8_g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
# 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 <universite@ukr.net>
>
>>
>> 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"
>>
>
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?518E5973.9090003>