Skip to contentSkip to conversation

Add dm-userspace to the Xen kernel

PATCH In review Dan Smith 4 participants 6 messages Jun 15, 2006 – Jun 16, 2006

lore
Share & tools
lore

Dan Smith

author
#0 lore raw

PATCH 1/1 Add dm-userspace to the Xen kernel

This patch adds dm-userspace to the -xen Linux kernel. I'd like to get it into the tree so that people that want to can play with it. Anyone wishing to to do so can download the tools separately, but they need the kernel module to be able to use it.

I've updated the code for and tested it on x86_64.

The tools are available here:

http://static.danplanet.com/dm-userspace/libdmu-0.3.tar.gz
http://static.danplanet.com/dm-userspace/cowd-0.3.tar.gz

Signature · 4 lines
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

# HG changeset patch
# User Dan Smith <[email protected]>
# Node ID f9f920c9285e246c803ae91c0a866b15e52f2c0d
# Parent 161473836da3ccf922f44e910f8b5c01c709d1e6
This adds dm-userspace to the xen linux kernel via another entry in the patches/ directory. The dm-userspace module is completely self-contained and will not affect anything unless it is loaded. People wishing to experiment with dm-userspace can download the tools packages separately, but they need this module to use them.

buildconfigs/linux-defconfig_xen_x86_32 +1 -0
diff -r 161473836da3 -r f9f920c9285e buildconfigs/linux-defconfig_xen_x86_32
@@ -1187,6 +1187,7 @@ CONFIG_DM_ZERO=m
 CONFIG_DM_ZERO=m
 CONFIG_DM_MULTIPATH=m
 CONFIG_DM_MULTIPATH_EMC=m
+CONFIG_DM_USERSPACE=m
 
 #
 # Fusion MPT device support
buildconfigs/linux-defconfig_xen_x86_64 +1 -0
diff -r 161473836da3 -r f9f920c9285e buildconfigs/linux-defconfig_xen_x86_64
@@ -1130,6 +1130,7 @@ CONFIG_DM_ZERO=m
 CONFIG_DM_ZERO=m
 CONFIG_DM_MULTIPATH=m
 CONFIG_DM_MULTIPATH_EMC=m
+CONFIG_DM_USERSPACE=m
 
 #
 # Fusion MPT device support
patches/linux-2.6.16.13/dm-userspace.patch new file +1735 -0

1,735 lines not on this page · raw message

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

#1 lore raw

Hi Dan,

I had a question or two about dm-userspace. It looks very interesting and I hope to find time sometime soon to experiment with it. My question was, would this allow me to export a logical disk without having all the data present locally. The scenario I am thinking of would be applicable for VM migration across WANs.

In that case, if I was to represent a virtual disk as a number of logical blocks, I could have the userspace application page the logical blocks in on demand. This would be useful when a VM migrates to a machine it has never been to earlier. Does this make sense? Would it work with dm-userspace?

Cheers,
Niraj

Quoted 29 lines · Dan Smith

This patch adds dm-userspace to the -xen Linux kernel. I'd like to get it into the tree so that people that want to can play with it. Anyone wishing to to do so can download the tools separately, but they need the kernel module to be able to use it.

I've updated the code for and tested it on x86_64.

The tools are available here:

http://static.danplanet.com/dm-userspace/libdmu-0.3.tar.gz
http://static.danplanet.com/dm-userspace/cowd-0.3.tar.gz

--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

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

Signature · 1 line
http://www.cs.cmu.edu/~ntolia

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

author
#2 lore raw

NT> My question was, would this allow me to export a logical disk NT> without having all the data present locally. The scenario I am NT> thinking of would be applicable for VM migration across WANs.

Sure.

NT> In that case, if I was to represent a virtual disk as a number of NT> logical blocks, I could have the userspace application page the NT> logical blocks in on demand. This would be useful when a VM NT> migrates to a machine it has never been to earlier. Does this make NT> sense? Would it work with dm-userspace?

Definitely! You could migrate the domain to another machine, and then start a background process that starts copying its blocks to the other machine. If a request comes in for a block (dm-userspace will let you handle it from the userspace app doing the copy), you immediately pull it across to satisfy the request. This would be a very interesting way to support migration of domains with block devices, without needing to wait for the block migration before starting the domain back up on the target machine.

Very cool idea!

Signature · 4 lines
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

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

#3 lore raw
In reply to Niraj Tolia

You probably want to check out drbd. A number of people have used it successfully to do storage migration with Xen domains.

Regards,

Anthony Liguori

Quoted 51 lines · Niraj Tolia

Hi Dan,

I had a question or two about dm-userspace. It looks very interesting and I hope to find time sometime soon to experiment with it. My question was, would this allow me to export a logical disk without having all the data present locally. The scenario I am thinking of would be applicable for VM migration across WANs.

In that case, if I was to represent a virtual disk as a number of logical blocks, I could have the userspace application page the logical blocks in on demand. This would be useful when a VM migrates to a machine it has never been to earlier. Does this make sense? Would it work with dm-userspace?

Cheers,
Niraj

On 6/15/06, *Dan Smith* <[email protected] <mailto:[email protected]>> wrote:

This patch adds dm-userspace to the -xen Linux kernel. I'd like to get it into the tree so that people that want to can play with it. Anyone wishing to to do so can download the tools separately, but they need the kernel module to be able to use it.

I've updated the code for and tested it on x86_64.

The tools are available here:

http://static.danplanet.com/dm-userspace/libdmu-0.3.tar.gz
<http://static.danplanet.com/dm-userspace/libdmu-0.3.tar.gz>
http://static.danplanet.com/dm-userspace/cowd-0.3.tar.gz

--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected] <mailto:[email protected]>

_______________________________________________
Xen-devel mailing list
[email protected] <mailto:[email protected]>
http://lists.xensource.com/xen-devel

Signature · 7 lines
http://www.cs.cmu.edu/~ntolia <http://www.cs.cmu.edu/%7Entolia>
------------------------------------------------------------------------

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
#4 lore raw
Quoted 2 lines · Anthony Liguori

You probably want to check out drbd. A number of people have used it successfully to do storage migration with Xen domains.

gnbd is also worth a peek...

a.

#5 lore raw
In reply to Anthony Liguori
Quoted 3 lines · Anthony Liguori

You probably want to check out drbd. A number of people have used it successfully to do storage migration with Xen domains.

DRBD has a number of disadvantages. The last time I checked, it only mirrors data between two nodes. Further, it requires a complete copy of the disk to be present on both nodes.

Niraj

Regards,

Quoted 67 lines

Anthony Liguori

Quoted 17 lines · Niraj Tolia

Hi Dan,

I had a question or two about dm-userspace. It looks very interesting and I hope to find time sometime soon to experiment with it. My question was, would this allow me to export a logical disk without having all the data present locally. The scenario I am thinking of would be applicable for VM migration across WANs.

In that case, if I was to represent a virtual disk as a number of logical blocks, I could have the userspace application page the logical blocks in on demand. This would be useful when a VM migrates to a machine it has never been to earlier. Does this make sense? Would it work with dm-userspace?

Cheers,
Niraj

Quoted 6 lines

On 6/15/06, *Dan Smith* <[email protected] <mailto:[email protected]>> wrote:

This patch adds dm-userspace to the -xen Linux kernel. I'd like to get it into the tree so that people that want to can play with it. Anyone wishing to to do so can download the tools separately, but

they

Quoted 37 lines

need the kernel module to be able to use it.

I've updated the code for and tested it on x86_64.

The tools are available here:

http://static.danplanet.com/dm-userspace/libdmu-0.3.tar.gz
<http://static.danplanet.com/dm-userspace/libdmu-0.3.tar.gz>
http://static.danplanet.com/dm-userspace/cowd-0.3.tar.gz

--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected] <mailto:[email protected]>

_______________________________________________
Xen-devel mailing list
[email protected] <mailto:[email protected]>
http://lists.xensource.com/xen-devel

--
http://www.cs.cmu.edu/~ntolia <http://www.cs.cmu.edu/%7Entolia>
------------------------------------------------------------------------

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

Signature · 1 line
http://www.cs.cmu.edu/~ntolia

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