From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Migration to lvm on a new HDD
Date: Tue Oct 7 08:44:01 2003 [thread overview]
Message-ID: <20031007153045.A25676@sistina.com> (raw)
In-Reply-To: <20031007125916.GA3999@tangerine.coulon.evette>; from jean-luc.coulon@wanadoo.fr on Tue, Oct 07, 2003 at 02:59:16PM +0200
Jean-Luc,
if you essentially want to replace your old disk with the new one (which might be
bigger as well ?), you need to "pvcreate /dev/hdb2", vgextend the existing vg00
with it (vgextend vg00 /dev/hdb2) and move all LVM data over using
"pvmove /dev/hda2". After that you remove your hda from the system
("vgreduce vg00 /dev/hda2" before you shutdown), make the new disk the master
and boot. In your bootscript, vgscan should already get started and that
takes care of the changing device nodes for you.
Don't forget to have a backup of your data in case something goes wrong.
Regards,
Heinz -- The LVM Guy --
On Tue, Oct 07, 2003 at 02:59:16PM +0200, Jean-Luc Coulon (f5ibh) wrote:
> Hi,
>
> I've a new HDD it is mounted as slave.
> I plan to use it with LVM and use it as the master device.
>
> Today, I boot linux from /dev/hda
> The new disk has a linux /boot partition as /dev/hdb1 and a lvm
> partition as /dev/hdb2.
>
> I've created the volume group called vg00 and the logical volumes I
> need (var, home, root...) on /dev/hda2.
>
> When I will move the disk from slave to master, it will change its
> partition name from hdb to hda but the devices in /dev (/dev/vg00/
> something) are hosted by the old disk.
>
> Do I've to copy the /dev/vg00 so well?
>
> Do I've to edit something else than the /tc/fstab to have a bootable
> system on the new disk?
>
> ---
> Regards
> - Jean-Luc
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2003-10-07 8:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 8:00 [linux-lvm] Migration to lvm on a new HDD Jean-Luc Coulon (f5ibh)
2003-10-07 8:44 ` Heinz J . Mauelshagen [this message]
2003-10-07 14:05 ` Re : " Jean-Luc Coulon (f5ibh)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031007153045.A25676@sistina.com \
--to=mauelshagen@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.