From owner-freebsd-questions Tue Jul 23 17:59:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AB1237B400 for ; Tue, 23 Jul 2002 17:59:51 -0700 (PDT) Received: from mail4.nc.rr.com (fe4.southeast.rr.com [24.93.67.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id E731143E5E for ; Tue, 23 Jul 2002 17:59:44 -0700 (PDT) (envelope-from bts@fake.com) Received: from this.is.fake.com ([66.26.254.93]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 23 Jul 2002 20:57:12 -0400 Received: by this.is.fake.com (Postfix, from userid 111) id CD6F7BA12; Tue, 23 Jul 2002 20:57:07 -0400 (EDT) Content-Type: text/plain; charset="windows-1252" From: "Brian T. Schellenberger" To: "Grant Peel" , Subject: Re: Missing Disk Space Date: Tue, 23 Jul 2002 20:57:07 -0400 User-Agent: KMail/1.4.2 References: <003a01c232a7$391b1a80$6501a8c0@grant> In-Reply-To: <003a01c232a7$391b1a80$6501a8c0@grant> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207232057.07141.bts@babbleon.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It looks like you could use disklabel to allocate cylinders 2872-3377 to partition d. (And then newfs it.) So just set up a partition d with an offset of 46129152 (that's 2097152 + 44032000) and a size of 8142848 (that's 54272000 - 46129152). I've done this on a "live" system before, though I believe that you must reboot before you can actually "newfs" the space. At any rate, I would strongly *recommend* rebooting after doing the disklabel and before doing the newfs, and doing a "sanity check" on the new disklabel before actually doing the newfs. For the sanity check, verify that nothing overlap--check both the comments *and* the actual size/offset values (dc is nice for this 'cause you can copy-and-paste the size and offset and then just add "+ p" instead of having to edit it into the middle of the string). Call me paranoid, but there's nothing worse than newfs'ing the wrong disk space and I got burned by a version of Linux once that permitted me to have two overlapping partitions on the disk. You can probably imagine the sort of chaos that *that* caused. Once you've got the partitions, newfs, add it to fstab and away you go! On Tuesday 23 July 2002 08:15 pm, Grant Peel wrote: | Hi all, | | I am reposting this assuming no one who knows the answer read the first | post. | | If anyone can assist, I would be greatful! | | Hi all, | | I have a 34 G RAID 5 array. (3 disks of 18 each). | | My current filesystems setup do not use all available space. By my | calculations I am wasting 7 GB of disk space that does not appear to be | used on any slice or filesystem. | | The machine that this is on is productive (quite live). | | My question is, how do I safely allocate this space to one or more of the | filesytems withour risking damage? | | FreeBSD 4.4 | | Here is the disklabel output: | | mybox# disklabel -r amrd0s1 | # /dev/amrd0s1c: | type: ESDI | disk: amrd0s1 | label: | flags: | bytes/sector: 512 | sectors/track: 63 | tracks/cylinder: 255 | sectors/cylinder: 16065 | cylinders: 4404 | sectors/unit: 70766262 | rpm: 3600 | interleave: 1 | trackskew: 0 | cylinderskew: 0 | headswitch: 0 # milliseconds | track-to-track seek: 0 # milliseconds | drivedata: 0 | | 8 partitions: | # size offset fstype [fsize bsize bps/cpg] | a: 1024000 0 4.2BSD 0 0 0 # (Cyl. 0 - 63*) | b: 2048000 1024000 swap # (Cyl. 63*- | 191*) c: 70766262 0 unused 0 0 # (Cyl. 0 - | 4404*) | e: 10240000 3072000 4.2BSD 0 0 0 # (Cyl. 191*- | 828*) f: 30720000 13312000 4.2BSD 0 0 0 # (Cyl. 828*- | 2740*) | g: 2097152 44032000 4.2BSD 0 0 0 # (Cyl. 2740*- | 2871*) | h: 16494262 54272000 4.2BSD 0 0 0 # (Cyl. 3378*- | 4404*) | mybox# | | -Grant | | Grant W. Peel | Server Administrator | The Net Now -- Expresshost | http://thenetnow.com | grant@thenetnow.com | | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-questions" in the body of the message -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message