Skip to contentSkip to conversation

pvops xen_blkfront does not enforce device names

DISCUSSION Olaf Hering 6 participants 9 messages Apr 26, 2016 – Apr 29, 2016

lore
Share & tools
lore
#0 lore raw

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

It has no business subverting the hda device names which are specifically for legacy devices.

[We got smacked down at some point for having done this]

Quoted 7 lines

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 29.04.16 at 08:45, <[email protected]> wrote:
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

It has no business subverting the hda device names which are specifically for legacy devices.

That's one view. The other is that people moving from XenoLinux to pv-ops are in trouble without it. How did you (or Citrix, if anyone of them looks) deal with this when doing the transition?

Quoted 1 line

[We got smacked down at some point for having done this]

In which way?

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 29.04.16 at 08:45, <[email protected]> wrote:
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

Quoted 6 lines
Quoted 2 lines

It has no business subverting the hda device names which are specifically for legacy devices.

That's one view. The other is that people moving from XenoLinux to pv-ops are in trouble without it. How did you (or Citrix, if anyone of them looks) deal with this when doing the transition?

We had transition folks to use 'UUID' or volume group names in their 'root=' entry so never had an issue with this.

Quoted 4 lines
Quoted 2 lines

[We got smacked down at some point for having done this]

In which way?

For usurping the 'hda'. Stefano may remember the details more..

Quoted 3 lines

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 17 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 29.04.16 at 08:45, <[email protected]> wrote:
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

Quoted 6 lines
Quoted 2 lines

It has no business subverting the hda device names which are specifically for legacy devices.

That's one view. The other is that people moving from XenoLinux to pv-ops are in trouble without it. How did you (or Citrix, if anyone of them looks) deal with this when doing the transition?

Quoted 8 lines

We had transition folks to use 'UUID' or volume group names in their 'root=' entry so never had an issue with this.

Quoted 4 lines
Quoted 2 lines

[We got smacked down at some point for having done this]

In which way?

For usurping the 'hda'. Stefano may remember the details more..

The argument goes as follow: 'hda' as 'xvda' or 'sda' are Linux specific names. A different operating system could name its devices 'goofy', or any other made up names. The Xen toolstack has no business in choosing the naming scheme for the guest kernel to use. Moreover xl can do nothing to enforce it: what if the OS stubbornly keeps calling its devices 'goofy' even if according to xl should be 'hda'? It is just an internal OS representation, so the OS can do as it wishes.

Linux doesn't want to call PV disks anything else than xvd*. After all they are PV disks, aren't they? And Xen cannot do anything about it.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw
In reply to Jan Beulich
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 29.04.16 at 08:45, <[email protected]> wrote:
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

Quoted 6 lines
Quoted 2 lines

It has no business subverting the hda device names which are specifically for legacy devices.

That's one view. The other is that people moving from XenoLinux to pv-ops are in trouble without it. How did you (or Citrix, if anyone of them looks) deal with this when doing the transition?

XenServer always named its PV disks as xvda etc.

David

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 7 lines · David Vrabel
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 29.04.16 at 08:45, <[email protected]> wrote:
Quoted 4 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

It has no business subverting the hda device names which are specifically for legacy devices.

That's one view. The other is that people moving from XenoLinux to pv-ops are in trouble without it. How did you (or Citrix, if anyone of them looks) deal with this when doing the transition?

XenServer always named its PV disks as xvda etc.

The toolstack has no business trying to control how the guest chooses to name its block devices. The device name is private information to the guest.

It should continue to function in exactly the same way even if the guest admin edits their udev rules to rename it to something crazy like "&&&&".

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#7 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

It has no business subverting the hda device names which are specifically for legacy devices.

Old IDE drives are not SCSI either, but now they appear as 'sd' since a while.

'hd' or 'sd' or 'mmc' or 'xvd' are just names. They do not represent hardware as such. Otherwise the interface into the blocklayer to request major/minor/name would be like 'hey, I'm the IDE/SCSI/MMC/whatever driver, give me something'.

Anyway, since this is now set in stone, any VM out there which still is configured to use /dev/hd* has to be adjusted to /dev/xvd* upfront when going from xenlinux to pvops.

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#8 lore raw
Quoted 16 lines · Olaf Hering
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Olaf Hering

Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this:
disk=[ 'file:/path,hda,w' ]

With pvops and xen_blkfront I get xvda.
With xenlinux and xenblk I get hda.

It has no business subverting the hda device names which are specifically for legacy devices.

Old IDE drives are not SCSI either, but now they appear as 'sd' since a while.

Quoted 8 lines

'hd' or 'sd' or 'mmc' or 'xvd' are just names. They do not represent hardware as such. Otherwise the interface into the blocklayer to request major/minor/name would be like 'hey, I'm the IDE/SCSI/MMC/whatever driver, give me something'.

Anyway, since this is now set in stone, any VM out there which still is configured to use /dev/hd* has to be adjusted to /dev/xvd* upfront when going from xenlinux to pvops.

You may want to adjust it to use UUID. It really makes it easier in case they also want to swap the disks arounds, etc.

Quoted 2 lines

Olaf

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel