[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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 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-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]