Date: Sat, 8 Dec 2001 00:10:34 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Garance A Drosihn <drosih@rpi.edu>, "Louis A. Mamakos" <louie@TransSys.COM>, Sheldon Hearn <sheldonh@starjuice.net>, Kirk McKusick <mckusick@beastie.mckusick.com>, freebsd-arch@FreeBSD.ORG Subject: Revised auto-sizing patch to sysinstall (for -current and -stable) w/ instructions for testing. Message-ID: <200112080810.fB88AYA01750@apollo.backplane.com> References: <31807.1007732134@axl.seasidesoftware.co.za> <200112072257.fB7MvjE95211@apollo.backplane.com> <200112072311.fB7NB2723789@whizzo.transsys.com> <p05101006b83737546907@[128.113.24.47]> <200112080349.fB83nWU00292@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
The revised auto-sizing patch for sysinstall is now available for both -stable and -current. I changed the /var and /var/tmp target sizes to 256MB each, and generated a separate patch against -current. The new target sizes seem to work better for smaller disks (it doesn't knock them down too as much as it would otherwise), and are obviously fine for larger disks. The -current patchset is a commit candidate, the -stable patchset is an MFC candidate. http://apollo.backplane.com/FreeBSD/ http://apollo.backplane.com/FreeBSD/sysinstall-401.diff (STABLE) http://apollo.backplane.com/FreeBSD/sysinstall-501.diff (CURRENT) ---- TESTING Testing with VN or MD requires a couple of hacks that are not part of the official patch set. In lib/libdisk/disk.c add "vn" to the device_list for -stable, "md" for -current. recompile and install. Remove the hacks in the source before continuing so you don't accidently commit it later. For -current, in usr.sbin/sysinstall/devices.c deviceGetAll() around line 442 there is an explicit check to weed out "md". Remove the check (#if 0 it out). Create a vnode-backed VN or MD device as appropriate (for MD devices you have to use /usr/bin/truncate to pre-create the file). As long as you don't actually do anything major with it you can create an arbitrarily sized vnode backing file on a small filesystem. sysinstall should then recognize an appropriately configured VN or MD device. Again, for testing only. Remember to remove the hacks when done so you don't accidently commit the hacks later. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112080810.fB88AYA01750>