* [linux-lvm] Migration to lvm on a new HDD @ 2003-10-07 8:00 Jean-Luc Coulon (f5ibh) 2003-10-07 8:44 ` Heinz J . Mauelshagen 0 siblings, 1 reply; 3+ messages in thread From: Jean-Luc Coulon (f5ibh) @ 2003-10-07 8:00 UTC (permalink / raw) To: linux-lvm 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Migration to lvm on a new HDD 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 2003-10-07 14:05 ` Re : " Jean-Luc Coulon (f5ibh) 0 siblings, 1 reply; 3+ messages in thread From: Heinz J . Mauelshagen @ 2003-10-07 8:44 UTC (permalink / raw) To: linux-lvm 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re : [linux-lvm] Migration to lvm on a new HDD 2003-10-07 8:44 ` Heinz J . Mauelshagen @ 2003-10-07 14:05 ` Jean-Luc Coulon (f5ibh) 0 siblings, 0 replies; 3+ messages in thread From: Jean-Luc Coulon (f5ibh) @ 2003-10-07 14:05 UTC (permalink / raw) To: linux-lvm; +Cc: Mauelshagen Heinz, Thanks for the reply. In fact, I'm migrating from non LVM HDD to a bigger LVM one. I've created the vg and the needed lv's. I've copied all the files from the old disk to the right lv on the new hdd. I've updated the /etc/fstab on the new hdd to reflect the new 'partionning' scheme. I've built the initrd and setup a grub entry for booting the new hdd (still as slave). Here is the grub block used: title Debian 3.0, GNU/Linux 2.4.22 - LVM root (hd1,1) kernel (hd1,0)/vmlinuz-2.4.22 root=/dev/vg00/root_lv reboot=warm initrd (hd1,0)/initrd-lvm-2.4.22.gz The system begin to boot with the message: vgscan -- reading all physical volumes vgscan -- found inactive volume group vg00 vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created. vgchange -- volume group "vg00" successfully activated then: cannot open root device "vg00/root_lv" or 00:00 please append a correct "root=" boot option. and kernel panic .. Any idea? --- Regards Jean-Luc Le 07.10.2003 15:30, Heinz J . Mauelshagen a �crit�: > > 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 > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > =-=-=-=-=- > > _______________________________________________ > 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/ > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-07 14:05 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2003-10-07 14:05 ` Re : " Jean-Luc Coulon (f5ibh)
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.