Date: Tue, 23 Jul 2002 20:57:07 -0400 From: "Brian T. Schellenberger" <bts@babbleon.org> To: "Grant Peel" <grant@thenetnow.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Missing Disk Space Message-ID: <200207232057.07141.bts@babbleon.org> In-Reply-To: <003a01c232a7$391b1a80$6501a8c0@grant> References: <003a01c232a7$391b1a80$6501a8c0@grant>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207232057.07141.bts>