Tell me how to increase the virtual disk with ZFS?

Adam Nowacki nowakpl at platinum.linux.pl
Sat May 11 14:55:24 UTC 2013


# 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 at 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>>
>
>
>



More information about the freebsd-fs mailing list