Re: resize_ffs hangs on needbuf
t...@panix.com (Thor Lancelot Simon) writes: It looks rather counter-intuitive to resize the mounted root but that works. Immediate reboot seems advised since df does not report the new size after resize_ffs completes successfully. Indeed you may want reboot -n! Hopefully not necessary for a read-only root.
Re: resize_ffs hangs on needbuf
Thor Lancelot Simon t...@panix.com wrote: Indeed you may want reboot -n! Does it make a difference with just reboot (without -n) if the filesystem is mounted read-only? -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org
Re: resize_ffs hangs on needbuf
In article 20130828045548.ga5...@panix.com, Thor Lancelot Simon t...@panix.com wrote: On Wed, Aug 28, 2013 at 05:31:33AM +0200, Emmanuel Dreyfus wrote: Emmanuel Dreyfus m...@netbsd.org wrote: [resize_ffs on the vnd device from dom0 hangs] on needbuf] What is the way around this problem? resize_ffs appeat to work like a charm from within the domU. I did it in single user with read-only root and just swap activated, and rebooted immediatly upon completion. It looks rather counter-intuitive to resize the mounted root but that works. Immediate reboot seems advised since df does not report the new size after resize_ffs completes successfully. Indeed you may want reboot -n! And make sure it does not have WAPBL on it. christos
resize_ffs hangs on needbuf
Hi I am trying to grow a FFS filesystem from 10 Go to 20 Go on NetBSDD 6.0 (i386 Xen dom0). After running fsck -fy and updating the disklabel, I run resize_ffs. The command hangs, waiting on needbuf, and all the machine gets unusable until I kill it from ddb. I understand this is no RAM shortage since it has 1 Go of free memory (as reported by top, which is nice enough to keep running during the disaster).o needbuf is a condvar in src/sys/kern/vfs_bio.c, it guards the bufmem_valimit limit, which MD code can set it using buf_setvalimit(). That function does not seem to be called by i386/x86/xen code. What is the way around this problem? -- Emmanuel Dreyfus m...@netbsd.org