From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 4 21:33:44 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 557251065673; Thu, 4 Mar 2010 21:33:44 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 0578F8FC23; Thu, 4 Mar 2010 21:33:43 +0000 (UTC) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id o24LXTWe064611; Thu, 4 Mar 2010 13:33:29 -0800 (PST) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.3/Submit) id o24LXTlw064610; Thu, 4 Mar 2010 13:33:29 -0800 (PST) (envelope-from david) Date: Thu, 4 Mar 2010 13:33:29 -0800 From: David Wolfskill To: hackers@freebsd.org Message-ID: <20100304213329.GJ57205@bunrab.catwhisker.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="72k7VsmfIboquFwl" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: randi@freebsd.org Subject: Scripting sysinstall(8) to create & use multiple slices on a disk? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 21:33:44 -0000 --72k7VsmfIboquFwl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable For reasons that may well be idiosyncratic, I like to set up FreeBSD machines to have at least 2 bootable slices -- e.g., one can act as a fallback if an attempted software upgrade proves to have been ill-timed. In the past, I've done this manually; while a bit tedious & fairly "target-rich" with opportunities for human error, it's something that is typically done infrequently (i.e., once) in the life of a machine (or at least its boot drive). At work, the IT folks use a scripted sysinstall(8) to set machines up; to increase the probability that I'll be able to get 3 "special" machines set up the way I want, I'm trying to set up a sysinstall config file to make this as painless as possible. I managed to get a copy of the config script IT uses, so I had a starting-point ... but they were setting the machines up with partition=3Dexclusive which doesn't seem like a good choice for what I'm doing. :-} After my first attempt failed, I poked around on the Net & found , (dated 18-11-08, 10:40 PM ), in which Peter Steele describes something similar to what I was about to try next, and writes: | My intent here is to create three slices-one 6GB in size, another 1GB in | size, and the third sized to consume the remaining free space. When I | run this through sysinstall, it complains that it can't find the space | for the partitions. It even complains that it can't find any free space. | Because the slices don't get created, the subsequent label assignments | fail as well. What is the proper commands for creating multiple slices | in install.cfg? In a foillowup, he writes: | After a lot of experimenting, my impression is that sysinstall simply | doesn't support multiple slice installations. It works to a point, but I | get some unexpected errors, e.g. | | Unable to make device node for /dev/ad0s1a in /dev which doesn't seem very encouraging. Would someone please either confirm the limitation or provide a suitable excerpt from a sysinstall config script to demonstrate that it is actually possible? (Or show me where it's spelled out in the man page....) (I'm using 7.x sysinstall, if that matters.) Thanks! Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --72k7VsmfIboquFwl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkuQJygACgkQmprOCmdXAD3lSgCfQBTc7/1gHroX1GywHwixnMaj GeIAoIHMZv2ne0VqrTIMEWhBOGZ/Ejzx =P/oG -----END PGP SIGNATURE----- --72k7VsmfIboquFwl--