Tell me how to increase the virtual disk with ZFS?

Vladislav Prodan universite at ukr.net
Sat May 11 15:11:55 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
> 

Can repeat resize the flag [-s size], so it was clearly indicate the amount of increase in partition?
Can you putting a pair small files in /md1p1?
And compare md5 and sha256 these files before and after the resize md1?

Thank you in advance.





-- 
Vladislav V. Prodan            
System & Network Administrator 
http://support.od.ua           
+380 67 4584408, +380 99 4060508
VVP88-RIPE



More information about the freebsd-fs mailing list