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

[Xen-users] pygrub lvm partition & grub.cfg question


  • To: Xen users mailing list <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Bruce Edge <bruce.edge@xxxxxxxxx>
  • Date: Sat, 10 Jul 2010 16:41:23 -0700
  • Delivery-date: Sat, 10 Jul 2010 16:42:43 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=phIdzDOnY31IQsqiKFS9Sd825tRGDxp9L/qjocFpBRYq1BS3AmCos8viHOeQAbRsm5 AoAvdNdIaqw3iU5Ay2+ioF8IExGpt+egRnWVvuys9RqTZEC9jfQSxqQodmbqumKTFXhd EZsSCQ59TZIpn7eBqMlTe+FDY1Ffy/tVQw7V0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I install a domU using:Â

disk    Â= [ 'phy:system/dpm_0,xvda:sda,w', 'file:/lucid.iso,xvdc:cdrom,r' ]

During the install I see the partition map as:

~ # sfdisk -d /dev/sda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start= Â Â 2048, size= Â9226240, Id=83
/dev/sda2 : start= Â9230334, size= Â 532482, Id= 5
/dev/sda3 : start= Â Â Â Â0, size= Â Â Â Â0, Id= 0
/dev/sda4 : start= Â Â Â Â0, size= Â Â Â Â0, Id= 0
/dev/sda5 : start= Â9230336, size= Â 532480, Id=82

sda1 = /
sda5 = swap

so far so good.

After running partprobe, I see the embedded partitions:

brw-rw---- 1 root disk 250, Â4 Jul 10 12:06 system-dpm_0
brw-rw---- 1 root disk 250, Â8 Jul 10 09:25 system-dpm_0p1
brw-rw---- 1 root disk 250, Â9 Jul 10 09:25 system-dpm_0p2
brw-rw---- 1 root disk 250, 10 Jul 10 09:25 system-dpm_0p5

Still OK.

Now it gets weird. I mount the domU / to edit grub.cfg:

# mount /dev/mapper/system-dpm_0p1 /mnt/dpm
# vi /mnt/dpm/boot/grub/grub.cfg
-- add a new boot entry --
# umount /mnt/dpm

pygrub /dev/mapper/dpm_0:


ÂÂ ÂpyGRUB Âversion 0.6
Ââââââââââââââââââââââââââ
Ââ dpm-domu , with Linux 2.6.32.16 Â Â Â ÂÂ

The 2nd boot entry is missing - why is it not seeing the embedded partition?

But if I run

pygrub /dev/mapper/dpm_0p1, I see the new boot entry::

ÂÂ ÂpyGRUB Âversion 0.6
Ââââââââââââââââââââââââââ
Ââ dpm-domu , with Linux 2.6.32.16Â
Ââ dpm-domu , with Linux 2.6.32 Â Â Â

Shouldn't pygrub see the 2nd boot entry when pointed at the lvm partition /dev/mapper/system-dpm_0Â
as opposed to the embedded partitionÂpygrub /dev/mapper/dpm_0p1 ?

Where is the second copy of the grub.cfg?
I thought there was no boot sector grub.cfg anymore.

Is that not the case?

-Bruce
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.