Hi Everyone, I''m trying to convert my Ubuntu PV Guest from image based disk to LVM. It uses pygrub. What I did, was I created a new LV and used dd to copy the contents of the image over to the LV. I then changed the domU config file to use phy:/ Now, when I start the DomU, the kernel boots, however it can''t seem to mount root properly. It says that /dev/sda1 doesn''t exist. What is strange is that in the Dom0, I mounted the LV and changed the root= parameter of the kernel line to point to /dev/hda1, however the previous error still shows Any ideas? Thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
By changing the config from xvda to sda, it work normal. However I wish to use xvda as I think it''s te "standard" for the future.. So clearly there is some setting in my Ubuntu that is still making it look for sda1 instead of hda1. It''s as if it''s ignoring the "root=" argument in pygrub... On 26/06/10 19:09, Jonathan Tripathy wrote:> Hi Everyone, > > I''m trying to convert my Ubuntu PV Guest from image based disk to LVM. > It uses pygrub. > > What I did, was I created a new LV and used dd to copy the contents of > the image over to the LV. I then changed the domU config file to use phy:/ > > Now, when I start the DomU, the kernel boots, however it can''t seem to > mount root properly. It says that /dev/sda1 doesn''t exist. What is > strange is that in the Dom0, I mounted the LV and changed the root= > parameter of the kernel line to point to /dev/hda1, however the > previous error still shows > > Any ideas? > > Thanks > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I also changed /etc/fstab to point to hda1 to no avail On 26/06/10 19:16, Jonathan Tripathy wrote:> By changing the config from xvda to sda, it work normal. However I > wish to use xvda as I think it''s te "standard" for the future.. > > So clearly there is some setting in my Ubuntu that is still making it > look for sda1 instead of hda1. It''s as if it''s ignoring the "root=" > argument in pygrub... > On 26/06/10 19:09, Jonathan Tripathy wrote: >> Hi Everyone, >> >> I''m trying to convert my Ubuntu PV Guest from image based disk to >> LVM. It uses pygrub. >> >> What I did, was I created a new LV and used dd to copy the contents >> of the image over to the LV. I then changed the domU config file to >> use phy:/ >> >> Now, when I start the DomU, the kernel boots, however it can''t seem >> to mount root properly. It says that /dev/sda1 doesn''t exist. What is >> strange is that in the Dom0, I mounted the LV and changed the root= >> parameter of the kernel line to point to /dev/hda1, however the >> previous error still shows >> >> Any ideas? >> >> Thanks >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The root= parameter in pygrub should rather point to /dev/xvda1 than to /dev/hda1 if you use PV domains. Am 26.06.2010 20:16, schrieb Jonathan Tripathy:> By changing the config from xvda to sda, it work normal. However I > wish to use xvda as I think it''s te "standard" for the future.. > > So clearly there is some setting in my Ubuntu that is still making it > look for sda1 instead of hda1. It''s as if it''s ignoring the "root=" > argument in pygrub... > On 26/06/10 19:09, Jonathan Tripathy wrote: >> Hi Everyone, >> >> I''m trying to convert my Ubuntu PV Guest from image based disk to >> LVM. It uses pygrub. >> >> What I did, was I created a new LV and used dd to copy the contents >> of the image over to the LV. I then changed the domU config file to >> use phy:/ >> >> Now, when I start the DomU, the kernel boots, however it can''t seem >> to mount root properly. It says that /dev/sda1 doesn''t exist. What is >> strange is that in the Dom0, I mounted the LV and changed the root>> parameter of the kernel line to point to /dev/hda1, however the >> previous error still shows >> >> Any ideas? >> >> Thanks >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Still doing the same thing. I''ve change root=/dev/xvda1 in menu.lst, and I''ve changed it to /dev/xvda1 in /etc/fstab and /etc/mtab, however it still can''t mount root. it says "ALERT! /dev/sda1 doesn''t exist". Maybe there another file I need to change somewhere in Ubuntu? On 26/06/10 19:29, Felix Kuperjans wrote:> Should be the /dev/xvdaX devices, too. > > Am 26.06.2010 20:27, schrieb Jonathan Tripathy: >> Thanks Felix, >> >> What should fstab and mtab point to? >> >> On 26/06/10 19:23, Felix Kuperjans wrote: >>> The root= parameter in pygrub should rather point to /dev/xvda1 than >>> to /dev/hda1 if you use PV domains. >>> >>> Am 26.06.2010 20:16, schrieb Jonathan Tripathy: >>>> By changing the config from xvda to sda, it work normal. However I >>>> wish to use xvda as I think it''s te "standard" for the future.. >>>> >>>> So clearly there is some setting in my Ubuntu that is still making >>>> it look for sda1 instead of hda1. It''s as if it''s ignoring the >>>> "root=" argument in pygrub... >>>> On 26/06/10 19:09, Jonathan Tripathy wrote: >>>>> Hi Everyone, >>>>> >>>>> I''m trying to convert my Ubuntu PV Guest from image based disk to >>>>> LVM. It uses pygrub. >>>>> >>>>> What I did, was I created a new LV and used dd to copy the >>>>> contents of the image over to the LV. I then changed the domU >>>>> config file to use phy:/ >>>>> >>>>> Now, when I start the DomU, the kernel boots, however it can''t >>>>> seem to mount root properly. It says that /dev/sda1 doesn''t exist. >>>>> What is strange is that in the Dom0, I mounted the LV and changed >>>>> the root= parameter of the kernel line to point to /dev/hda1, >>>>> however the previous error still shows >>>>> >>>>> Any ideas? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xen-users mailing list >>>>> Xen-users@lists.xensource.com >>>>> http://lists.xensource.com/xen-users >>>> >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com >>>> http://lists.xensource.com/xen-users >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Where and when exactly does this message appear? From what you''ve told I guess it is during init, so it would be interesting which messages precede that alert. Am 26.06.2010 20:41, schrieb Jonathan Tripathy:> Still doing the same thing. I''ve change root=/dev/xvda1 in menu.lst, > and I''ve changed it to /dev/xvda1 in /etc/fstab and /etc/mtab, however > it still can''t mount root. it says "ALERT! /dev/sda1 doesn''t exist". > > Maybe there another file I need to change somewhere in Ubuntu? > > On 26/06/10 19:29, Felix Kuperjans wrote: >> Should be the /dev/xvdaX devices, too. >> >> Am 26.06.2010 20:27, schrieb Jonathan Tripathy: >>> Thanks Felix, >>> >>> What should fstab and mtab point to? >>> >>> On 26/06/10 19:23, Felix Kuperjans wrote: >>>> The root= parameter in pygrub should rather point to /dev/xvda1 >>>> than to /dev/hda1 if you use PV domains. >>>> >>>> Am 26.06.2010 20:16, schrieb Jonathan Tripathy: >>>>> By changing the config from xvda to sda, it work normal. However I >>>>> wish to use xvda as I think it''s te "standard" for the future.. >>>>> >>>>> So clearly there is some setting in my Ubuntu that is still making >>>>> it look for sda1 instead of hda1. It''s as if it''s ignoring the >>>>> "root=" argument in pygrub... >>>>> On 26/06/10 19:09, Jonathan Tripathy wrote: >>>>>> Hi Everyone, >>>>>> >>>>>> I''m trying to convert my Ubuntu PV Guest from image based disk to >>>>>> LVM. It uses pygrub. >>>>>> >>>>>> What I did, was I created a new LV and used dd to copy the >>>>>> contents of the image over to the LV. I then changed the domU >>>>>> config file to use phy:/ >>>>>> >>>>>> Now, when I start the DomU, the kernel boots, however it can''t >>>>>> seem to mount root properly. It says that /dev/sda1 doesn''t >>>>>> exist. What is strange is that in the Dom0, I mounted the LV and >>>>>> changed the root= parameter of the kernel line to point to >>>>>> /dev/hda1, however the previous error still shows >>>>>> >>>>>> Any ideas? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Xen-users mailing list >>>>>> Xen-users@lists.xensource.com >>>>>> http://lists.xensource.com/xen-users >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xen-users mailing list >>>>> Xen-users@lists.xensource.com >>>>> http://lists.xensource.com/xen-users >>>> >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com >>>> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Have you tried using root=UUID=... instead? Use partprobe to discover the embedded lvm partitions so you can get their UUIDs. -Bruce On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy <jonnyt@abpni.co.uk>wrote:> By changing the config from xvda to sda, it work normal. However I wish to > use xvda as I think it''s te "standard" for the future.. > > So clearly there is some setting in my Ubuntu that is still making it look > for sda1 instead of hda1. It''s as if it''s ignoring the "root=" argument in > pygrub... > > On 26/06/10 19:09, Jonathan Tripathy wrote: > > Hi Everyone, > > I''m trying to convert my Ubuntu PV Guest from image based disk to LVM. It > uses pygrub. > > What I did, was I created a new LV and used dd to copy the contents of the > image over to the LV. I then changed the domU config file to use phy:/ > > Now, when I start the DomU, the kernel boots, however it can''t seem to > mount root properly. It says that /dev/sda1 doesn''t exist. What is strange > is that in the Dom0, I mounted the LV and changed the root= parameter of the > kernel line to point to /dev/hda1, however the previous error still shows > > Any ideas? > > Thanks > > > _______________________________________________ > Xen-users mailing listXen-users@lists.xensource.comhttp://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Here is a link to the errors: http://pastebin.com/Jsgf3A2Q Cheers On 26/06/10 19:47, Felix Kuperjans wrote:> Where and when exactly does this message appear? From what you''ve told > I guess it is during init, so it would be interesting which messages > precede that alert. > > Am 26.06.2010 20:41, schrieb Jonathan Tripathy: >> Still doing the same thing. I''ve change root=/dev/xvda1 in menu.lst, >> and I''ve changed it to /dev/xvda1 in /etc/fstab and /etc/mtab, >> however it still can''t mount root. it says "ALERT! /dev/sda1 doesn''t >> exist". >> >> Maybe there another file I need to change somewhere in Ubuntu? >> >> On 26/06/10 19:29, Felix Kuperjans wrote: >>> Should be the /dev/xvdaX devices, too. >>> >>> Am 26.06.2010 20:27, schrieb Jonathan Tripathy: >>>> Thanks Felix, >>>> >>>> What should fstab and mtab point to? >>>> >>>> On 26/06/10 19:23, Felix Kuperjans wrote: >>>>> The root= parameter in pygrub should rather point to /dev/xvda1 >>>>> than to /dev/hda1 if you use PV domains. >>>>> >>>>> Am 26.06.2010 20:16, schrieb Jonathan Tripathy: >>>>>> By changing the config from xvda to sda, it work normal. However >>>>>> I wish to use xvda as I think it''s te "standard" for the future.. >>>>>> >>>>>> So clearly there is some setting in my Ubuntu that is still >>>>>> making it look for sda1 instead of hda1. It''s as if it''s ignoring >>>>>> the "root=" argument in pygrub... >>>>>> On 26/06/10 19:09, Jonathan Tripathy wrote: >>>>>>> Hi Everyone, >>>>>>> >>>>>>> I''m trying to convert my Ubuntu PV Guest from image based disk >>>>>>> to LVM. It uses pygrub. >>>>>>> >>>>>>> What I did, was I created a new LV and used dd to copy the >>>>>>> contents of the image over to the LV. I then changed the domU >>>>>>> config file to use phy:/ >>>>>>> >>>>>>> Now, when I start the DomU, the kernel boots, however it can''t >>>>>>> seem to mount root properly. It says that /dev/sda1 doesn''t >>>>>>> exist. What is strange is that in the Dom0, I mounted the LV and >>>>>>> changed the root= parameter of the kernel line to point to >>>>>>> /dev/hda1, however the previous error still shows >>>>>>> >>>>>>> Any ideas? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Xen-users mailing list >>>>>>> Xen-users@lists.xensource.com >>>>>>> http://lists.xensource.com/xen-users >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Xen-users mailing list >>>>>> Xen-users@lists.xensource.com >>>>>> http://lists.xensource.com/xen-users >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xen-users mailing list >>>>> Xen-users@lists.xensource.com >>>>> http://lists.xensource.com/xen-users >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
How do I use partprobe with LVM? Thanks On 26/06/10 20:06, Bruce Edge wrote:> Have you tried using root=UUID=... instead? > > Use partprobe to discover the embedded lvm partitions so you can get > their UUIDs. > > -Bruce > > > On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy > <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: > > By changing the config from xvda to sda, it work normal. However I > wish to use xvda as I think it''s te "standard" for the future.. > > So clearly there is some setting in my Ubuntu that is still making > it look for sda1 instead of hda1. It''s as if it''s ignoring the > "root=" argument in pygrub... > > On 26/06/10 19:09, Jonathan Tripathy wrote: >> Hi Everyone, >> >> I''m trying to convert my Ubuntu PV Guest from image based disk to >> LVM. It uses pygrub. >> >> What I did, was I created a new LV and used dd to copy the >> contents of the image over to the LV. I then changed the domU >> config file to use phy:/ >> >> Now, when I start the DomU, the kernel boots, however it can''t >> seem to mount root properly. It says that /dev/sda1 doesn''t >> exist. What is strange is that in the Dom0, I mounted the LV and >> changed the root= parameter of the kernel line to point to >> /dev/hda1, however the previous error still shows >> >> Any ideas? >> >> Thanks >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >> http://lists.xensource.com/xen-users > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Also, what is very strange is that if I do cat /proc/cmsline from the busybox promt, the output i get is: console=hvc0 root=/dev/xvda1 ro root=/dev/sda1 fastboot Very strange why 2 roots are appearing... On 26/06/10 19:47, Felix Kuperjans wrote:> Where and when exactly does this message appear? From what you''ve told > I guess it is during init, so it would be interesting which messages > precede that alert. > > Am 26.06.2010 20:41, schrieb Jonathan Tripathy: >> Still doing the same thing. I''ve change root=/dev/xvda1 in menu.lst, >> and I''ve changed it to /dev/xvda1 in /etc/fstab and /etc/mtab, >> however it still can''t mount root. it says "ALERT! /dev/sda1 doesn''t >> exist". >> >> Maybe there another file I need to change somewhere in Ubuntu? >> >> On 26/06/10 19:29, Felix Kuperjans wrote: >>> Should be the /dev/xvdaX devices, too. >>> >>> Am 26.06.2010 20:27, schrieb Jonathan Tripathy: >>>> Thanks Felix, >>>> >>>> What should fstab and mtab point to? >>>> >>>> On 26/06/10 19:23, Felix Kuperjans wrote: >>>>> The root= parameter in pygrub should rather point to /dev/xvda1 >>>>> than to /dev/hda1 if you use PV domains. >>>>> >>>>> Am 26.06.2010 20:16, schrieb Jonathan Tripathy: >>>>>> By changing the config from xvda to sda, it work normal. However >>>>>> I wish to use xvda as I think it''s te "standard" for the future.. >>>>>> >>>>>> So clearly there is some setting in my Ubuntu that is still >>>>>> making it look for sda1 instead of hda1. It''s as if it''s ignoring >>>>>> the "root=" argument in pygrub... >>>>>> On 26/06/10 19:09, Jonathan Tripathy wrote: >>>>>>> Hi Everyone, >>>>>>> >>>>>>> I''m trying to convert my Ubuntu PV Guest from image based disk >>>>>>> to LVM. It uses pygrub. >>>>>>> >>>>>>> What I did, was I created a new LV and used dd to copy the >>>>>>> contents of the image over to the LV. I then changed the domU >>>>>>> config file to use phy:/ >>>>>>> >>>>>>> Now, when I start the DomU, the kernel boots, however it can''t >>>>>>> seem to mount root properly. It says that /dev/sda1 doesn''t >>>>>>> exist. What is strange is that in the Dom0, I mounted the LV and >>>>>>> changed the root= parameter of the kernel line to point to >>>>>>> /dev/hda1, however the previous error still shows >>>>>>> >>>>>>> Any ideas? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Xen-users mailing list >>>>>>> Xen-users@lists.xensource.com >>>>>>> http://lists.xensource.com/xen-users >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Xen-users mailing list >>>>>> Xen-users@lists.xensource.com >>>>>> http://lists.xensource.com/xen-users >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xen-users mailing list >>>>> Xen-users@lists.xensource.com >>>>> http://lists.xensource.com/xen-users >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Ubuntu you''ll need to install the parted package Just run parted on dom0 and you''ll see the embedded partitions show up under /dev/mapper. eg: 0 kaan-22 ~ #> ls -l /dev/mapper total 0 brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 0 kaan-22 ~ #> partprobe 0 kaan-22 ~ #> ls -l /dev/mapper total 0 brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 brw-rw---- 1 root disk 251, 11 Jun 26 13:01 system-dpm_0p1 brw-rw---- 1 root disk 251, 12 Jun 26 13:01 system-dpm_0p2 brw-rw---- 1 root disk 251, 13 Jun 26 13:01 system-dpm_0p5 You can mount these as regular partitions now. -Bruce On Sat, Jun 26, 2010 at 12:09 PM, Jonathan Tripathy <jonnyt@abpni.co.uk>wrote:> How do I use partprobe with LVM? > > Thanks > > > On 26/06/10 20:06, Bruce Edge wrote: > > Have you tried using root=UUID=... instead? > > Use partprobe to discover the embedded lvm partitions so you can get > their UUIDs. > > -Bruce > > > On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy <jonnyt@abpni.co.uk>wrote: > >> By changing the config from xvda to sda, it work normal. However I wish to >> use xvda as I think it''s te "standard" for the future.. >> >> So clearly there is some setting in my Ubuntu that is still making it look >> for sda1 instead of hda1. It''s as if it''s ignoring the "root=" argument in >> pygrub... >> >> On 26/06/10 19:09, Jonathan Tripathy wrote: >> >> Hi Everyone, >> >> I''m trying to convert my Ubuntu PV Guest from image based disk to LVM. It >> uses pygrub. >> >> What I did, was I created a new LV and used dd to copy the contents of the >> image over to the LV. I then changed the domU config file to use phy:/ >> >> Now, when I start the DomU, the kernel boots, however it can''t seem to >> mount root properly. It says that /dev/sda1 doesn''t exist. What is strange >> is that in the Dom0, I mounted the LV and changed the root= parameter of the >> kernel line to point to /dev/hda1, however the previous error still shows >> >> Any ideas? >> >> Thanks >> >> >> _______________________________________________ >> Xen-users mailing listXen-users@lists.xensource.comhttp://lists.xensource.com/xen-users >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Using the UUID didn''t help. The error changed to can''t find /init This is very strange... It all works ok if I use sda instead f xvda in the DomU config file. Should I use that? Is there a disadvantage to using sda instead of xvda? On 26/06/10 21:02, Bruce Edge wrote:> On Ubuntu you''ll need to install the parted package > Just run parted on dom0 and you''ll see the embedded partitions show up > under /dev/mapper. > eg: > > 0 kaan-22 ~ #> ls -l /dev/mapper > total 0 > > brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 > 0 kaan-22 ~ #> partprobe > > 0 kaan-22 ~ #> ls -l /dev/mapper > total 0 > brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 > brw-rw---- 1 root disk 251, 11 Jun 26 13:01 system-dpm_0p1 > brw-rw---- 1 root disk 251, 12 Jun 26 13:01 system-dpm_0p2 > brw-rw---- 1 root disk 251, 13 Jun 26 13:01 system-dpm_0p5 > > You can mount these as regular partitions now. > > -Bruce > > > On Sat, Jun 26, 2010 at 12:09 PM, Jonathan Tripathy > <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: > > How do I use partprobe with LVM? > > Thanks > > > On 26/06/10 20:06, Bruce Edge wrote: >> Have you tried using root=UUID=... instead? >> >> Use partprobe to discover the embedded lvm partitions so you can >> get their UUIDs. >> >> -Bruce >> >> >> On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy >> <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: >> >> By changing the config from xvda to sda, it work normal. >> However I wish to use xvda as I think it''s te "standard" for >> the future.. >> >> So clearly there is some setting in my Ubuntu that is still >> making it look for sda1 instead of hda1. It''s as if it''s >> ignoring the "root=" argument in pygrub... >> >> On 26/06/10 19:09, Jonathan Tripathy wrote: >>> Hi Everyone, >>> >>> I''m trying to convert my Ubuntu PV Guest from image based >>> disk to LVM. It uses pygrub. >>> >>> What I did, was I created a new LV and used dd to copy the >>> contents of the image over to the LV. I then changed the >>> domU config file to use phy:/ >>> >>> Now, when I start the DomU, the kernel boots, however it >>> can''t seem to mount root properly. It says that /dev/sda1 >>> doesn''t exist. What is strange is that in the Dom0, I >>> mounted the LV and changed the root= parameter of the kernel >>> line to point to /dev/hda1, however the previous error still >>> shows >>> >>> Any ideas? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >>> http://lists.xensource.com/xen-users >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> <mailto:Xen-users@lists.xensource.com> >> http://lists.xensource.com/xen-users >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sorry everyone, I had forgotton that I had "root=" specified in the DomU config. I was looking at the parameters inside the disk itself It''s all working now once I changed root=/dev/xvda1 in the DomU config Thanks On 26/06/10 21:02, Bruce Edge wrote:> On Ubuntu you''ll need to install the parted package > Just run parted on dom0 and you''ll see the embedded partitions show up > under /dev/mapper. > eg: > > 0 kaan-22 ~ #> ls -l /dev/mapper > total 0 > > brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 > 0 kaan-22 ~ #> partprobe > > 0 kaan-22 ~ #> ls -l /dev/mapper > total 0 > brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 > brw-rw---- 1 root disk 251, 11 Jun 26 13:01 system-dpm_0p1 > brw-rw---- 1 root disk 251, 12 Jun 26 13:01 system-dpm_0p2 > brw-rw---- 1 root disk 251, 13 Jun 26 13:01 system-dpm_0p5 > > You can mount these as regular partitions now. > > -Bruce > > > On Sat, Jun 26, 2010 at 12:09 PM, Jonathan Tripathy > <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: > > How do I use partprobe with LVM? > > Thanks > > > On 26/06/10 20:06, Bruce Edge wrote: >> Have you tried using root=UUID=... instead? >> >> Use partprobe to discover the embedded lvm partitions so you can >> get their UUIDs. >> >> -Bruce >> >> >> On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy >> <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: >> >> By changing the config from xvda to sda, it work normal. >> However I wish to use xvda as I think it''s te "standard" for >> the future.. >> >> So clearly there is some setting in my Ubuntu that is still >> making it look for sda1 instead of hda1. It''s as if it''s >> ignoring the "root=" argument in pygrub... >> >> On 26/06/10 19:09, Jonathan Tripathy wrote: >>> Hi Everyone, >>> >>> I''m trying to convert my Ubuntu PV Guest from image based >>> disk to LVM. It uses pygrub. >>> >>> What I did, was I created a new LV and used dd to copy the >>> contents of the image over to the LV. I then changed the >>> domU config file to use phy:/ >>> >>> Now, when I start the DomU, the kernel boots, however it >>> can''t seem to mount root properly. It says that /dev/sda1 >>> doesn''t exist. What is strange is that in the Dom0, I >>> mounted the LV and changed the root= parameter of the kernel >>> line to point to /dev/hda1, however the previous error still >>> shows >>> >>> Any ideas? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >>> http://lists.xensource.com/xen-users >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> <mailto:Xen-users@lists.xensource.com> >> http://lists.xensource.com/xen-users >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
OK it''s surely because of this command line: later arguments override earlier ones (if the argument cannot be specified multiple times). If you use Debian/Ubuntu''s update-grub mechanism, remember to alter the root device within the configuring comments in /boot/grub/menu.lst. You can also use GRUB''s edit-method by pressing e while the bootloader is displayed. Ensure that the command line there is correct (should be console=hvc0 root=/dev/xvda1 ro fastboot). Am 26.06.2010 21:12, schrieb Jonathan Tripathy:> Also, what is very strange is that if I do cat /proc/cmsline from the > busybox promt, the output i get is: > > console=hvc0 root=/dev/xvda1 ro root=/dev/sda1 fastboot > > Very strange why 2 roots are appearing... > On 26/06/10 19:47, Felix Kuperjans wrote: >> Where and when exactly does this message appear? From what you''ve >> told I guess it is during init, so it would be interesting which >> messages precede that alert. >> >> Am 26.06.2010 20:41, schrieb Jonathan Tripathy: >>> Still doing the same thing. I''ve change root=/dev/xvda1 in menu.lst, >>> and I''ve changed it to /dev/xvda1 in /etc/fstab and /etc/mtab, >>> however it still can''t mount root. it says "ALERT! /dev/sda1 doesn''t >>> exist". >>> >>> Maybe there another file I need to change somewhere in Ubuntu? >>> >>> On 26/06/10 19:29, Felix Kuperjans wrote: >>>> Should be the /dev/xvdaX devices, too. >>>> >>>> Am 26.06.2010 20:27, schrieb Jonathan Tripathy: >>>>> Thanks Felix, >>>>> >>>>> What should fstab and mtab point to? >>>>> >>>>> On 26/06/10 19:23, Felix Kuperjans wrote: >>>>>> The root= parameter in pygrub should rather point to /dev/xvda1 >>>>>> than to /dev/hda1 if you use PV domains. >>>>>> >>>>>> Am 26.06.2010 20:16, schrieb Jonathan Tripathy: >>>>>>> By changing the config from xvda to sda, it work normal. However >>>>>>> I wish to use xvda as I think it''s te "standard" for the future.. >>>>>>> >>>>>>> So clearly there is some setting in my Ubuntu that is still >>>>>>> making it look for sda1 instead of hda1. It''s as if it''s >>>>>>> ignoring the "root=" argument in pygrub... >>>>>>> On 26/06/10 19:09, Jonathan Tripathy wrote: >>>>>>>> Hi Everyone, >>>>>>>> >>>>>>>> I''m trying to convert my Ubuntu PV Guest from image based disk >>>>>>>> to LVM. It uses pygrub. >>>>>>>> >>>>>>>> What I did, was I created a new LV and used dd to copy the >>>>>>>> contents of the image over to the LV. I then changed the domU >>>>>>>> config file to use phy:/ >>>>>>>> >>>>>>>> Now, when I start the DomU, the kernel boots, however it can''t >>>>>>>> seem to mount root properly. It says that /dev/sda1 doesn''t >>>>>>>> exist. What is strange is that in the Dom0, I mounted the LV >>>>>>>> and changed the root= parameter of the kernel line to point to >>>>>>>> /dev/hda1, however the previous error still shows >>>>>>>> >>>>>>>> Any ideas? >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Xen-users mailing list >>>>>>>> Xen-users@lists.xensource.com >>>>>>>> http://lists.xensource.com/xen-users >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Xen-users mailing list >>>>>>> Xen-users@lists.xensource.com >>>>>>> http://lists.xensource.com/xen-users >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Xen-users mailing list >>>>>> Xen-users@lists.xensource.com >>>>>> http://lists.xensource.com/xen-users >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Well the correct name for XEN''s virtual disks is /dev/xvda... /dev/sda can only be used for compatibility AFAIK. As long as both are paravirtualised, you would have no technical disadvantage. Am 26.06.2010 22:13, schrieb Jonathan Tripathy:> Using the UUID didn''t help. The error changed to can''t find /init > > This is very strange... > > It all works ok if I use sda instead f xvda in the DomU config file. > Should I use that? Is there a disadvantage to using sda instead of xvda? > > > On 26/06/10 21:02, Bruce Edge wrote: >> On Ubuntu you''ll need to install the parted package >> Just run parted on dom0 and you''ll see the embedded partitions show >> up under /dev/mapper. >> eg: >> >> 0 kaan-22 ~ #> ls -l /dev/mapper >> total 0 >> >> brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 >> 0 kaan-22 ~ #> partprobe >> >> 0 kaan-22 ~ #> ls -l /dev/mapper >> total 0 >> brw-rw---- 1 root disk 251, 4 Jun 25 09:09 system-dpm_0 >> brw-rw---- 1 root disk 251, 11 Jun 26 13:01 system-dpm_0p1 >> brw-rw---- 1 root disk 251, 12 Jun 26 13:01 system-dpm_0p2 >> brw-rw---- 1 root disk 251, 13 Jun 26 13:01 system-dpm_0p5 >> >> You can mount these as regular partitions now. >> >> -Bruce >> >> >> On Sat, Jun 26, 2010 at 12:09 PM, Jonathan Tripathy >> <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: >> >> How do I use partprobe with LVM? >> >> Thanks >> >> >> On 26/06/10 20:06, Bruce Edge wrote: >>> Have you tried using root=UUID=... instead? >>> >>> Use partprobe to discover the embedded lvm partitions so you can >>> get their UUIDs. >>> >>> -Bruce >>> >>> >>> On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy >>> <jonnyt@abpni.co.uk <mailto:jonnyt@abpni.co.uk>> wrote: >>> >>> By changing the config from xvda to sda, it work normal. >>> However I wish to use xvda as I think it''s te "standard" for >>> the future.. >>> >>> So clearly there is some setting in my Ubuntu that is still >>> making it look for sda1 instead of hda1. It''s as if it''s >>> ignoring the "root=" argument in pygrub... >>> >>> On 26/06/10 19:09, Jonathan Tripathy wrote: >>>> Hi Everyone, >>>> >>>> I''m trying to convert my Ubuntu PV Guest from image based >>>> disk to LVM. It uses pygrub. >>>> >>>> What I did, was I created a new LV and used dd to copy the >>>> contents of the image over to the LV. I then changed the >>>> domU config file to use phy:/ >>>> >>>> Now, when I start the DomU, the kernel boots, however it >>>> can''t seem to mount root properly. It says that /dev/sda1 >>>> doesn''t exist. What is strange is that in the Dom0, I >>>> mounted the LV and changed the root= parameter of the >>>> kernel line to point to /dev/hda1, however the previous >>>> error still shows >>>> >>>> Any ideas? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >>>> http://lists.xensource.com/xen-users >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> <mailto:Xen-users@lists.xensource.com> >>> http://lists.xensource.com/xen-users >>> >>> >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users