From owner-freebsd-database@FreeBSD.ORG Thu Apr 8 08:23:48 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8978516A4CF for ; Thu, 8 Apr 2004 08:23:48 -0700 (PDT) Received: from web25003.mail.ukl.yahoo.com (web25003.mail.ukl.yahoo.com [217.12.10.39]) by mx1.FreeBSD.org (Postfix) with SMTP id B525943D31 for ; Thu, 8 Apr 2004 08:23:47 -0700 (PDT) (envelope-from keshav_tadimeti@yahoo.co.uk) Message-ID: <20040408152347.24355.qmail@web25003.mail.ukl.yahoo.com> Received: from [147.60.1.195] by web25003.mail.ukl.yahoo.com via HTTP; Thu, 08 Apr 2004 16:23:47 BST Date: Thu, 8 Apr 2004 16:23:47 +0100 (BST) From: =?iso-8859-1?q?Tadimeti=20Keshav?= To: freebsd-questions@freebsd.org, freebsd-database@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: partition deletion and creation X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 15:23:48 -0000 Hi list, I have freeBSD installed on my 40 GB HDD with the foll. layout: / = 512MB swap=1GB /var=512MB /tmp=512MB /usr=8GB /home=26GB (It should roughly total to the max available ~37GB) I want to have /home resized to 20GB and then create 4 mount points /u01=3GB,/u02=2GB,/u03=512MB,/u04=512MB. I have 2 options: 1. using /stand/sysinstall-->fdisk to delete /home, create the new partitions, and then mount the mount-points. Q=will this format all older partitions (/usr,/...), forcing me to reinstall FreeBSD again? Clearly I don't want this. I have spent quite a while to get the setup running. 2. create links to /home/u01 from /u01, /home/u02 from /u02.. ln -s /home/u01 /u01 Can I install Oracle this way? Since the second Q borders on DB and FreeBSD, I am sending this to both lists. Thanks in advance... Tk ____________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html From owner-freebsd-database@FreeBSD.ORG Thu Apr 8 08:41:06 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B41216A4CE; Thu, 8 Apr 2004 08:41:06 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2772C43D3F; Thu, 8 Apr 2004 08:41:05 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i38Ff2v10700; Thu, 8 Apr 2004 11:41:02 -0400 (EDT) From: Jerry McAllister Message-Id: <200404081541.i38Ff2v10700@clunix.cl.msu.edu> To: keshav_tadimeti@yahoo.co.uk (=?iso-8859-1?q?Tadimeti=20Keshav?=) Date: Thu, 8 Apr 2004 11:41:01 -0400 (EDT) In-Reply-To: <20040408152347.24355.qmail@web25003.mail.ukl.yahoo.com> from "=?iso-8859-1?q?Tadimeti=20Keshav?=" at Apr 08, 2004 04:23:47 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-database@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: partition deletion and creation X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 15:41:06 -0000 > > Hi list, > I have freeBSD installed on my 40 GB HDD with the > foll. layout: > / = 512MB > swap=1GB > /var=512MB > /tmp=512MB > /usr=8GB > /home=26GB > (It should roughly total to the max available ~37GB) > I want to have /home resized to 20GB and then create 4 > mount points /u01=3GB,/u02=2GB,/u03=512MB,/u04=512MB. > > I have 2 options: > 1. using /stand/sysinstall-->fdisk to delete /home, > create the new partitions, and then mount the > mount-points. Q=will this format all older partitions > (/usr,/...), forcing me to reinstall FreeBSD again? > Clearly I don't want this. I have spent quite a while > to get the setup running. I believe that /stand/sysinstall treats the whole disk as new and will build file systems on all partitions rather than just partitions that have been tinkered with. I could well be wrong and /stand/sysinstall could be more sophisticated than I think, but I wouldn't bank on it short of going through the code. ////jerry > > 2. create links to /home/u01 from /u01, /home/u02 from > /u02.. > ln -s /home/u01 /u01 > Can I install Oracle this way? > > Since the second Q borders on DB and FreeBSD, I am > sending this to both lists. > > Thanks in advance... > Tk > > > > > > ____________________________________________________________ > Yahoo! Messenger - Communicate instantly..."Ping" > your friends today! Download Messenger Now > http://uk.messenger.yahoo.com/download/index.html > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-database@FreeBSD.ORG Thu Apr 8 09:30:19 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBC8C16A4CE; Thu, 8 Apr 2004 09:30:19 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6318343D3F; Thu, 8 Apr 2004 09:30:18 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i38GU5gP026673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Apr 2004 17:30:05 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i38GU5HS026672; Thu, 8 Apr 2004 17:30:05 +0100 (BST) (envelope-from matthew) Date: Thu, 8 Apr 2004 17:30:05 +0100 From: Matthew Seaman To: Tadimeti Keshav Message-ID: <20040408163005.GB26470@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Tadimeti Keshav , freebsd-questions@freebsd.org, freebsd-database@freebsd.org References: <20040408152347.24355.qmail@web25003.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline In-Reply-To: <20040408152347.24355.qmail@web25003.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a cc: freebsd-database@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: partition deletion and creation X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 16:30:20 -0000 --qcHopEYAB45HaUaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 08, 2004 at 04:23:47PM +0100, Tadimeti Keshav wrote: > Hi list, > I have freeBSD installed on my 40 GB HDD with the > foll. layout: > / =3D 512MB > swap=3D1GB > /var=3D512MB > /tmp=3D512MB > /usr=3D8GB > /home=3D26GB > (It should roughly total to the max available ~37GB) > I want to have /home resized to 20GB and then create 4 > mount points /u01=3D3GB,/u02=3D2GB,/u03=3D512MB,/u04=3D512MB. That's feasible, except you can only have 8 partitions per slice. Actually 7, since the 'c' partition is special and you shouldn't use it to put filesystems on. =20 > I have 2 options: > 1. using /stand/sysinstall-->fdisk to delete /home, > create the new partitions, and then mount the > mount-points. Q=3Dwill this format all older partitions > (/usr,/...), forcing me to reinstall FreeBSD again? > Clearly I don't want this. I have spent quite a while > to get the setup running. Don't use /stand/sysinstall to do this: use disklabel(8) [if you're running 4.x] or bsdlabel(8) [if you're running 5.x]. Run whichever of those commands with the '-e' flag, and it will put you in an editor window with the partition table data that you can modify to your hearts content. Remember to unmount any partitions you're going to modify before starting. Any partition you create, or change the size of will need a new filesystem created on it (newfs(8)) and will end up empty. The partitions you don't modify will be left alone. However, this question is academic given that you need more partitions than you can have in a single slice. =20 > 2. create links to /home/u01 from /u01, /home/u02 from > /u02.. > ln -s /home/u01 /u01 > Can I install Oracle this way? Sounds like a plan. It's certainly worth trying. If Oracle insists on having real filesystems then there's several other possibilities you might want to consider: * mount_null(8) -- you can create a loopback mount of some other directory on your filesystem. Despite the awful warnings in the man page, this actually works fairly well although it would be safer to use it for data that is mostly read-only. * vnconfig(8) [4.x] or mdconfig(8) [5.x] -- Create a filesystem image on a vnode device backed by a file, and mount that wherever you need to. Works pretty smoothly Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --qcHopEYAB45HaUaB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAdX4NdtESqEQa7a0RAlWoAJ4pI5dczxdPeOgyAQY+0TGiqcIkPwCfW0TQ lFnX1xRPMok0QwOlO+TyENU= =G5HM -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB--