Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2003 21:50:32 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        hackers@FreeBSD.ORG
Subject:   Re: Resizing file-backed vnode disklabels
Message-ID:  <20030207215032.GA92670@happy-idiot-talk.infracaninophi>
In-Reply-To: <20030207213052.97188.qmail@web12804.mail.yahoo.com>
References:  <20030207213052.97188.qmail@web12804.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 07, 2003 at 01:30:52PM -0800, Hans Zaunere wrote:
> 
> Fairly straight forward question I suppose.  I'm creating several file-backed
> vnode devices on a single physical disklabel to support some jails.  If I
> start the file at 1gb is it possible to increase the file without losing the
> data within it?  Would growfs be safe to use?  Could I be so bold as to just
> tack on 100mb of null chars at the end of the file (I would doubt it,
> although it'd be nice).

That's doable.  You have to re-write the disklabel to correspond to
the new size of the backing store, and you need to make sure the
fsize, bsize and bps/cpg fields in the disklabel are set to reasonable
values in order for growfs(8) to do it's thing.

http://www.freebsd.org/cgi/getmsg.cgi?fetch=403393+411791+/usr/local/www/db/text/2002/freebsd-questions/20021006.freebsd-questions
 
	Cheers,

	Matthew

-- 
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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030207215032.GA92670>