* which (pseudo)-device can be used as VBD in xenU ?
@ 2004-11-29 16:59 Jérôme Petazzoni
2004-11-29 18:16 ` Martin Maney
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Jérôme Petazzoni @ 2004-11-29 16:59 UTC (permalink / raw)
To: xen-devel
I saw examples of VBD using hdXY and sdXY inside virtual machines, like
this : disk=phy:hda5,hda1,w
And I would like to do this : disk=phy:md8,md1,w
But it failed (the "real" md driver tried to access something that
didn't exist, of course, and rootfs couldn't be mounted). Did I do
something wrong, or is the frontend driver only able to "fake" hdXY and
sdXY devices ?
FYI, my motivation is to supply mdX devices to ease migration from/to
real servers.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: which (pseudo)-device can be used as VBD in xenU ?
2004-11-29 16:59 which (pseudo)-device can be used as VBD in xenU ? Jérôme Petazzoni
@ 2004-11-29 18:16 ` Martin Maney
2004-11-29 20:11 ` Nuno Silva
2004-11-29 20:35 ` Ian Pratt
2 siblings, 0 replies; 6+ messages in thread
From: Martin Maney @ 2004-11-29 18:16 UTC (permalink / raw)
To: J?r?me Petazzoni; +Cc: xen-devel
On Mon, Nov 29, 2004 at 05:59:41PM +0100, J?r?me Petazzoni wrote:
> And I would like to do this : disk=phy:md8,md1,w
>
> But it failed (the "real" md driver tried to access something that
> didn't exist, of course, and rootfs couldn't be mounted). Did I do
> something wrong, or is the frontend driver only able to "fake" hdXY and
> sdXY devices ?
I think that's about right. Certainly there's quite a lot more
infrastructure that would need to be faked for an md device.
> FYI, my motivation is to supply mdX devices to ease migration from/to
> real servers.
I would think that what you'd need to do here is to pass the
virtualized partitions (or whole disks?) to the guest and let md in the
guest assemble them into the RAID set. I think that might work,
anyway...
--
Truth in advertising is like leaven, which a woman hid in three
measures of meal. It provides a suitable quantity of gas, with
which to blow out a mass of crude misrepresentations into a form
that the public can swallow. - Dorothy Sayers, _Murder Must Advertise_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: which (pseudo)-device can be used as VBD in xenU ?
2004-11-29 16:59 which (pseudo)-device can be used as VBD in xenU ? Jérôme Petazzoni
2004-11-29 18:16 ` Martin Maney
@ 2004-11-29 20:11 ` Nuno Silva
2004-11-29 20:35 ` Ian Pratt
2 siblings, 0 replies; 6+ messages in thread
From: Nuno Silva @ 2004-11-29 20:11 UTC (permalink / raw)
To: Jérôme Petazzoni; +Cc: xen-devel
Jérôme Petazzoni wrote:
> I saw examples of VBD using hdXY and sdXY inside virtual machines, like
> this : disk=phy:hda5,hda1,w
>
> And I would like to do this : disk=phy:md8,md1,w
>
> But it failed (the "real" md driver tried to access something that
> didn't exist, of course, and rootfs couldn't be mounted). Did I do
> something wrong, or is the frontend driver only able to "fake" hdXY and
> sdXY devices ?
I guess that you can export _ALL_ the block devices that make your md8
and create the md *in* the guest.
Exporting a "normal" block device (md8, from the host) is the same as
exporting another "normal" block device, like sda2.
> FYI, my motivation is to supply mdX devices to ease migration from/to
> real servers.
IMHO one of the biggest advantages of virtualization is hardware
independence. You'll loose (part of) that if you create your md inside
the guest... At least it'll be a pain to mantain...
Regards,
Nuno Silva
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: which (pseudo)-device can be used as VBD in xenU ?
2004-11-29 16:59 which (pseudo)-device can be used as VBD in xenU ? Jérôme Petazzoni
2004-11-29 18:16 ` Martin Maney
2004-11-29 20:11 ` Nuno Silva
@ 2004-11-29 20:35 ` Ian Pratt
2004-11-29 20:53 ` Jérôme Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Ian Pratt @ 2004-11-29 20:35 UTC (permalink / raw)
To: Jérôme Petazzoni; +Cc: xen-devel, Ian.Pratt
> I saw examples of VBD using hdXY and sdXY inside virtual machines, like
> this : disk=phy:hda5,hda1,w
>
> And I would like to do this : disk=phy:md8,md1,w
>
> But it failed (the "real" md driver tried to access something that
> didn't exist, of course, and rootfs couldn't be mounted). Did I do
> something wrong, or is the frontend driver only able to "fake" hdXY and
> sdXY devices ?
>
> FYI, my motivation is to supply mdX devices to ease migration from/to
> real servers.
You should be able to export md1 just fine, but the blkfront
virtual driver won't currently register itself as anything other
than sdX or hdX.
You should be able to do "phy:md8,sda1,w".
Is this good enough?
Ian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: which (pseudo)-device can be used as VBD in xenU ?
2004-11-29 20:35 ` Ian Pratt
@ 2004-11-29 20:53 ` Jérôme Petazzoni
2004-11-29 21:47 ` Ian Pratt
0 siblings, 1 reply; 6+ messages in thread
From: Jérôme Petazzoni @ 2004-11-29 20:53 UTC (permalink / raw)
To: xen-devel
>>And I would like to do this : disk=phy:md8,md1,w
> You should be able to export md1 just fine, but the blkfront
> virtual driver won't currently register itself as anything other
> than sdX or hdX.
I'm having a look at the blkfront driver ; I guess I should be able to
hack it easily to support registering with md major number. That might
do the trick (even if it's not very nice).
Question : can a non-privilegied host manage a SCSI HBA (thru PCI
exclusions) or a IDE controller, and then directly mount SCSI or IDE
disks ? Or would blkfront "shadow" those device numbers and prevent
direct access to "real" disks ?
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: which (pseudo)-device can be used as VBD in xenU ?
2004-11-29 20:53 ` Jérôme Petazzoni
@ 2004-11-29 21:47 ` Ian Pratt
0 siblings, 0 replies; 6+ messages in thread
From: Ian Pratt @ 2004-11-29 21:47 UTC (permalink / raw)
To: Jérôme Petazzoni; +Cc: xen-devel, Ian.Pratt
>
> >>And I would like to do this : disk=phy:md8,md1,w
>
> > You should be able to export md1 just fine, but the blkfront
> > virtual driver won't currently register itself as anything other
> > than sdX or hdX.
>
> I'm having a look at the blkfront driver ; I guess I should be able to
> hack it easily to support registering with md major number. That might
> do the trick (even if it's not very nice).
>
> Question : can a non-privilegied host manage a SCSI HBA (thru PCI
> exclusions) or a IDE controller, and then directly mount SCSI or IDE
> disks ?
Yep, if its a separate PCI device it should work fine.
You'll obviously need the kernel you're using to have the
appropriate driver and e.g. scsi stack. The -xen0 kernel will
probably have what you want.
(this will be an io-privileged domain)
> Or would blkfront "shadow" those device numbers and prevent
> direct access to "real" disks ?
The real device should get in before blkfront has a
chance. Hmm, I guess there could be a problem if you were using
drivers loaded by an initrd...
Ian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-29 21:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-29 16:59 which (pseudo)-device can be used as VBD in xenU ? Jérôme Petazzoni
2004-11-29 18:16 ` Martin Maney
2004-11-29 20:11 ` Nuno Silva
2004-11-29 20:35 ` Ian Pratt
2004-11-29 20:53 ` Jérôme Petazzoni
2004-11-29 21:47 ` Ian Pratt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.