On Tue, Sep 06, 2005 at 07:12:21PM +0100, David wrote:
> Drew Zerdecki wrote:
> > xfs. I believe I have done everything correctly, but it has been
> > almost an hour after I executed the xfs_growfs command. Is this
> > normal? Does it take a long time to grow 200GB? I didnt think it
> > would since no data is being moved. Thanks for your input.
>
> What excactly are you attempting?
> You can't grow an xfs filesystem from 1 drive to another.
> You need to have an lvm2 layer in between. Then you add the 2nd drive to
> the lvm and grow the xfs on top.
>
> As Jake said, it's almost instant.
It sure is.
I just did this the other day on my sis's box. The process was,
roughly, this:
1) Unplug DVD-R (hdd), plug in new Seagate 400GB
2) Boot up, fdisk new hdd1 as LVM (8e) with same parameters as
hdc1 we want to move from the 200GB to the 400GB (only 2.5
drive bays in case)
3) dd if=/dev/hdc1 of-/dev/hdd1 bs=10MB (this took about 12 hours
for 187GB; I'd use 100MB and a double buffering dd if I had it
to do again).
4) Shut down and swap back to DVD-R hdd and 400GB hdc.
5) Boot up, go into YaST (this is SuSE 9.0), and make sure hdc1
shows up as part of the VG (it did).
6) Ran lvm's option to check the integrity of the VG (forget name;
was ok).
7) Create new /dev/hdc2 filling disk
8) Add hdc2 to VG
9) Distribute the new free space to the Logivcal Volumes in the
VG.
10) Run xfs_growfs -d on each of the mount points.
11) df shows new space
The important part is that you have to make the underlying partition
larger before you can run growfs; the easiest way to do that without
cheating (I consider changing the partition table entry for a physical
disk partition with an active filesystem on it "cheating") is to put
that filesystem on an LVM logical volume instead.
Cheers,
-- jra
--
Jay R. Ashworth [EMAIL PROTECTED]
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
"NPR has a lot in common with Nascar... we both turn to the left."
- Peter Sagal, on Wait Wait, Don't Tell Me!
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users