Re: Root on LVM bug

2007-08-23 Thread maximilian attems
On Wed, Aug 22, 2007 at 08:35:08PM -0400, Adam C Powell IV wrote:
 I recently installed etch on an amd64 box which previously had Fedora.
 It had a small ext2 /boot and large LVM, so I shrunk Fedora's volume and
 made a new one for Debian, where I installed everything.  I included the
 LVM modules in /etc/initramfs-tools/modules .  Then I added the
 following section to /boot/grub/menu.lst :
 
 title Debian
   root (hd0,0)
   kernel /vmlinuz-2.6.18-4-amd64 root=/dev/VolGroup00/LogVol02
   initrd /initrd.img-2.6.18-4-amd64

known bug see #378332, #402931;
 
 When I booted, it sat at Begin: Waiting for root file system... but
 the Fedora 2.6.11 kernel started right up with otherwise identical
 options (except that it couldn't load the Fedora modules in Debian).
 
 After a few hours of messing around, on a whim I tried changing the
 root= parameter to /dev/mapper/VolGroup00-LogVol02 , which worked!

this is the real root dev
 
 So I believe something is wrong with either mount or udev used in the
 initramfs, such that it either doesn't create the /dev/groupname
 entries, or can't mount them.  I did a ton of searching and couldn't
 find anything, so I don't think this is a known issue.

no it is not an udev trouble.
so the root arg you were passing is a symlink, it is only created
after vgchange run.
it is an chicken egg trouble, once you pass root=/dev/mapper/vg-lv
it is certain to be an lvm2. unlinke to mdadm we can't enable all
vg as lvm2 is prone to data corruption with empty vg.

-- 
maks
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Root on LVM bug

2007-08-23 Thread Adam C Powell IV
On Thu, 2007-08-23 at 11:41 +0200, maximilian attems wrote:
 On Wed, Aug 22, 2007 at 08:35:08PM -0400, Adam C Powell IV wrote:
  I recently installed etch on an amd64 box which previously had Fedora.
  It had a small ext2 /boot and large LVM, so I shrunk Fedora's volume and
  made a new one for Debian, where I installed everything.  I included the
  LVM modules in /etc/initramfs-tools/modules .  Then I added the
  following section to /boot/grub/menu.lst :
  
  title Debian
  root (hd0,0)
  kernel /vmlinuz-2.6.18-4-amd64 root=/dev/VolGroup00/LogVol02
  initrd /initrd.img-2.6.18-4-amd64
 
 known bug see #378332, #402931;

I see.  Sorry I didn't see these bugs in my search.  Thank you for the
detailed explanation.

-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe!
http://www.take6.com/albums/greatesthits.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Root on LVM bug

2007-08-23 Thread Alexander E. Patrakov

maximilian attems wrote:


lvm2 is prone to data corruption with empty vg.


Is this recorded in the BTS?

--
Alexander E. Patrakov


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Root on LVM bug

2007-08-22 Thread Adam C Powell IV
Greetings,

I recently installed etch on an amd64 box which previously had Fedora.
It had a small ext2 /boot and large LVM, so I shrunk Fedora's volume and
made a new one for Debian, where I installed everything.  I included the
LVM modules in /etc/initramfs-tools/modules .  Then I added the
following section to /boot/grub/menu.lst :

title Debian
root (hd0,0)
kernel /vmlinuz-2.6.18-4-amd64 root=/dev/VolGroup00/LogVol02
initrd /initrd.img-2.6.18-4-amd64

When I booted, it sat at Begin: Waiting for root file system... but
the Fedora 2.6.11 kernel started right up with otherwise identical
options (except that it couldn't load the Fedora modules in Debian).

After a few hours of messing around, on a whim I tried changing the
root= parameter to /dev/mapper/VolGroup00-LogVol02 , which worked!

So I believe something is wrong with either mount or udev used in the
initramfs, such that it either doesn't create the /dev/groupname
entries, or can't mount them.  I did a ton of searching and couldn't
find anything, so I don't think this is a known issue.

Given that installed Debian and other distros can use both /dev/mapper
and /dev/groupname, shouldn't this be supported in the root= parameter
in grub?  Where is the bug, and has it been fixed already in lenny?  If
not, how can I help?

[Please cc me in replies]

Thanks,
-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe!
http://www.take6.com/albums/greatesthits.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]