LVM and ext3 FS labels not playing nice?
Von Essen, John
Jvonessen at glog.com
Wed Jan 26 15:55:00 UTC 2005
I too have had this problem when upgrading some older RHES 2.1 systems that use LABEL. It has prevented me from running the latest kernel. So I would be interested in seeing the resolution.
John Von Essen
Hosting Systems Administrator
Global Logistics, Inc.
(610) 491-3369
________________________________
From: redhat-sysadmin-list-bounces at redhat.com on behalf of Matt Brodeur
Sent: Tue 1/25/2005 7:45 PM
To: redhat-sysadmin-list at redhat.com
Subject: Re: LVM and ext3 FS labels not playing nice?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Jan 25, 2005 at 11:38:00AM -0600, James Puellmann wrote:
> So it seems that using LABEL entries for logical volumes in fstab causes
> mkinitrd to create a broken img file (though it doesn't error out).
> Replacing the LABEL entries with /dev/vg##/lvol## and rerunning mkinitrd
> fixes this problem.
First, as an alternate solution, I just give my LVs meaningful
names. /usr would be in /dev/${HOSTNAME}VG/usr, etc. It's helped my
sanity greatly.
However, I think you've found a really odd bug. Looking at
mkinitrd (it's just a shell script), it looks like the problem starts
around line 438:
438 # check if the root fs is on a logical volume
439 elif ! echo $rootdev | cut -c1-6 |grep -q "LABEL=" ; then
(load LVM modules into initrd)
A few lines back it gleans $rootdev from fstab. So, if the first
six characters of the root FS line in fstab are "LABEL=", it doesn't
load the LVM modules.
It's getting late, and I didn't spend much time testing, but I
think this is it. Check for yourself, then file a bug with RH. Feel
free to include any/all of this message when you do.
- --
Matt Brodeur RHCE
MBrodeur at NextTime.com http://www.NextTime.com
The one good thing about repeating your mistakes is that you know when
to cringe.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFB9ug8c8/WFSz+GKMRAhC6AJ99z7LLQST5y8f3HRh5vt9t45U1MgCcC6p0
45Rvrj0KAkd5okxqMI6m0Wg=
=l1iQ
-----END PGP SIGNATURE-----
--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com
http://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 6049 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20050126/477ea87d/attachment.bin>
More information about the redhat-sysadmin-list
mailing list