lvm
Patrick Dupre
pd520 at york.ac.uk
Mon Nov 24 22:19:19 UTC 2008
> Patrick Dupre wrote:
>> Hello,
>>
>> I duplicate an hard drive to another one with logical partition.
>> I kept the / on a standard partition, put the /usr on /dev/VG1/usr, etc...
>> When I mount the logical partitions I do experience any problem but when
>> I boot the machine on the logical partition I get an error from the
>> /etc/fstab.
>>
> How did you duplicate the drive?
cp -a
(I used to do it that way).
>
>> fsck complains
>> The superblock could not be read or does not describe a correct ext2
>> filesystem. If the device is valid and it really contains an ext2
>> filesystem (and not swap or ufs or something else), then the superblock
>> is corrupt, and you might try running e2fsck with an alternate superblock:
>> e2fsck -b 8193 <device>
>>
>> I am using grub,
>>
>> In the fstab I put:
>> /dev/VG1/usr /usr
>>
> Please post your entire /etc/fstab.
/dev/sdc5 / ext3 defaults 1 1
/dev/mapper/VG1-usr /usr ext3 defaults 1 2
/dev/VG1/usr_lib /usr/lib ext3 defaults 1 2
/dev/VG1/usr_local /usr/local ext3 defaults 1 2
/dev/VG1/usr_src /usr/src ext3 defaults 1 2
/dev/VG1/tmp /tmp ext3 defaults 1 2
/dev/VG1/home /home ext3 defaults 1 2
#/dev/VG1/backup /backup ext3 defaults 1 2
/dev/VG1/iso_image /iso-image ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sdc1 swap swap defaults 0 0
/dev/fd0 /mnt/floppy msdos,auto noauto,user,umask=0 0 0
I did try /dev/VG1 and /dev/mapper with the same result.
>> I looks like that the logical partitions are not recognize by fsck, but it
>> works fine when I do the same from a properly boot disk.
>>
> fsck works find with LVM. I suspect that you may may have the wrong
> LV and/or VG name. You may want to run lvscan to display the names.
>
ACTIVE '/dev/VG1/usr' [7.00 GB] inherit
ACTIVE '/dev/VG1/usr_lib' [6.00 GB] inherit
ACTIVE '/dev/VG1/usr_local' [5.00 GB] inherit
ACTIVE '/dev/VG1/usr_src' [5.00 GB] inherit
ACTIVE '/dev/VG1/tmp' [2.00 GB] inherit
ACTIVE '/dev/VG1/home' [9.00 GB] inherit
ACTIVE '/dev/VG1/backup' [9.00 GB] inherit
ACTIVE '/dev/VG1/iso_image' [10.00 GB] inherit
When I boot from the working disk.
Some ideas ?
Regards
--
---
==========================================================================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: pd520 at york.ac.uk
==========================================================================
More information about the fedora-list
mailing list