2010/3/9 Tor Houghton <t...@bogus.net>: > List, > > If one wanted to increase the size of an existing device configured with > vnconfig, I presume that one could use disklabel and growfs on this > partition. To do so, however, one would need to increase the size of the > file which vnconfig uses as the device (I presume). > > What is the best way of increasing the size of this "container" file? > > Create the "extension" using dd and then 'cat extension >> containerfile'? > > Or by using dd directly with a (skip? seek?)? > > I understand that "best" is rather subjective; any and all suggestions > appreciated. Many thanks!
I had a script once that did the 'cat >>' version. I don't have it anymore but the steps were: unconfig vnd copy diskfile to diskfile.bak dd if=/dev/zero size=<some size> | cat >> diskfile config vnd growfs vnd fsck vnd mount vnd and if any of the last five step fails, revert to diskfile.bak Apart from that I don't think you will have an 'official' or even 'recommended' way to do this (apart from the backup steps). Arnaud > Tor