Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2008 08:21:47 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Joshua Isom <jrisom@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Adding a new hard drive, and using geom
Message-ID:  <20080706081907.J2917@wojtek.tensor.gdynia.pl>
In-Reply-To: <266e55c771cbec02a4039641cff631c7@gmail.com>
References:  <266e55c771cbec02a4039641cff631c7@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I bought a second hard drive for my computer since my /usr partition was 
> getting full.  I don't want to deal with hardware raid since I don't want to 
> be dependent on a certain hardware vendor or chipset,

you probably don't have RAID hardware to deal, unless you bough 300 or 
more $ card.

>  so I'm wanting to go with geom.  I'd prefer to not have to backup all my data(I know I should 
> anyway, but it's a 500gb hard drive, and drives are growing faster than 
> backup solutions).  Would it be possible to do a geom stripe to expand 
/usr > and keep all the data or would I just need to backup everything, and then put

gconcat will do. gstripe not.


if usr is on partition x, and you want to add partition y do:


unmount usr
dd if=/dev/zero of=y bs=1m (*)
gconcat label usr x y
growfs /dev/concat/usr
fsck_ffs /dev/concat/usr

now /dev/concat/usr is your /usr

make sure gconcat in kernel is available when booting.

* - only to make buggy growfs work without a mess




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