[Gllug] migrating install to larger hd
Bruce Richardson
itsbruce at uklinux.net
Wed Jun 2 11:49:23 UTC 2004
On Wed, Jun 02, 2004 at 10:42:19AM +0100, Ben wrote:
> Hi,
>
> I'd like to get lvm going on the target so I can resize
> partitions more easily in the future to make the most of
> the disk space. I assume I'll need initrd with lvm modules.
> Then I guess I just set myself up some logical volumes and
> copy the files across.
It's a shame you didn't already have LVM on the current set-up. The
pvmove tool lets you say that all the data stored on one physical volume
should be moved to other physical volumes within the volume group. The
data is moved without any disruption to the higher-level filesystem.
>
> Is there a way to use dd (or anything but cp) to move files
> from partition type 83 to partition type 8e? cp -a takes *ages*.
There's dump and restore. You can pipe the contents of dump through
restore, if you're feeling confident. For example, you could move var
by mounting the destinaton partition on /mnt, cd-ing to /mnt and then
doing
dump -0 -j 0 -f - /var | restore -f -
Is there any urgent reason to replace the existing disk, though? Would
you be prepared to just add the second disk as extra capacity in the
short term? If you are, then LVM will make it much easier to do a
migration if you do want to remove the original disk altogether in the
long term.
--
Bruce
It is impolite to tell a man who is carrying you on his shoulders that
his head smells.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20040602/bf42d07e/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list