Re: Moving LVM partition from /dev/hda2 to /dev/sda2



Michael D. Setzer II wrote:
On 20 Feb 2006 at 23:33, Paul Howarth wrote:


Does your SATA drive need some driver module to be loaded?
This might come from the ramdisk in rescue mode (and hence work), whilst
not being present in the ramdisk created at kernel install time for the
regular IDE drive (and hence not work). A possibility perhaps.



I can mount the other partitions from old drive. So, I don't think it needs any
special driver. I can mount /dev/sda1 to /boot2, which is the boot partition,
and I formated the extra space on the drive as /dev/sda3 as /data.

When I remove the old drive, and boot from the SATA drive it gets to the
grub menu, and seems to load the kernel, but then doesn't find the LVM
partition.

When I run lvm command after booting from the old drive, one of the
commands will list the duplicate volumes found, and also that the one is
using /dev/sda2 instead of /dev/hda2.

One comment I got said it might be using something other than hd0 for the
SATA drive, but it also might be that the LVM volumn has something in it
that links it to /dev/hda2.

Thanks for the info.

That is a good indication that the initrd.img on the SATA drive does
not have the correct modules for the SATA drive in it. Because it
can not access the SATA drive, it can not load the modules needed to
access it. This is not a problem with the IDE drive, because the
modules are in the initrd.img. After the root file system is
mounted, the kernel can load the module for the SATA drive, and
mount the LVM partition from the SATA drive. So you will need to
build a new initrd.img for the SATA drive.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • When LVM Goes Bad
    ... I believe LVM is the default on Fedora partitioning now, at least I didn't love it that much that I would have selected it, and it is on all my boxes now. ... However LVM makes less sense on, say, a laptop which has and will only ever have a single 2.5" HDD for storage that is permanently available with the laptop. ... The resulting symptom was that the partition contents were no longer recognized as containing a logical volume or a volume group, nor pvscan, although pvdisplay could see it was a physical volume if pointed directly at the partition. ... Whether this explained the loss of LVMness or a subsequent logical brain damage that happened elsewhere did it I don't know. ...
    (Fedora)
  • Re: Hosed Grub with the push of a button
    ... occupies part of the LVM. ... I don't think the developers of the program counted on some crazy button changing the partition table with one touch. ... Did it write over that portion of the disk or did it actually format the portion and place information from some storage chip on the mother board. ... My guess would be that the motherboard has a chip inside that has a compressed image of what was originally installed on the computer, like what a install CD would have. ...
    (Fedora)
  • Re: What are the advantages of LVM?
    ... If you want to learn more about LVM these two web sites can get you ... PartitionMagic or whatever) to split the disk up into partitions. ... or from another partition and run cfdisk or fdisk to set the ... Unfortunately, once I did partition the hard disk, I forgot to mark / as ...
    (Ubuntu)
  • RE: lvm on RH8 _ SOLVED_
    ... Apparently, the lvm module wasn't getting initialised at boot, so I ... Using fdisk, change the partition usage to 0x8e (free space, logical ... Next the filesystem needs to be created in the logical volumes. ...
    (RedHat)
  • Re: USB memory keys -- the plot thickens
    ... and that those all require a hard-disk type partition of some ... Partitioning a USB memory key works only if LVM sees the correct ... in the Drives folder, and no drive F: would appear in LVM's logical view. ...
    (comp.os.os2.bugs)