Skip to contentSkip to conversation

multipath-tools: Add multipath-tools recipe

PATCH In review [email protected] 3 participants 4 messages Jan 21, 2013 – Jan 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: Add multipath-tools recipe

From: Lei Yang <[email protected]>

This packages provides:
- multipath: scans the system for multipathed devices, assembles
- multipathd: waits for maps events then execs multipath
- kpartx: maps linear devmaps to device partitions, which makes multipath maps partionable
......

Now,It can be used for kvm disk img partion for me.

---
 .../multipath-tools/multipath-tools_git.bb         |   46 ++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +46 -0
new file mode 100644
index 0000000..e9509d3
@@ -0,0 +1,46 @@
+SUMMARY = "Tools to Manage Multipathed Devices with the device-mapper"
+DESCRIPTION = "This package provides the tools to manage multipathed devices by \
+instructing the device-mapper multipath module what to do"
+
+HOMEPAGE = "http://christophe.varoqui.free.fr/"
+DEPENDS = "readline libaio lvm2"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+S="${WORKDIR}/git"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+
+SRCREV = "d3683ab18b386e9b3b54b59a122c689e9ebdf5cf"
+PV = "0.4.9+gitr${SRCPV}"
+
+inherit autotools
+
+EXTRA_OEMAKE="LIB=${libdir} exec_prefix=${exec_prefix} libdir=${libdir}"
+
+PACKAGES =+ "libmpathpersist mpathpersist kpartx libmultipath multipath multipathd libmultipath-dev libmpathpersist-dev"
+
+
+RDEPENDS_${PN} += "libmpathpersist mpathpersist kpartx libmultipath multipath multipathd"
+
+do_install_append () {
+	ln -sf libmpathpersist.so.0 ${D}${libdir}/libmpathpersist.so
+	ln -sf libmultipath.so.0 ${D}${libdir}/libmultipath.so
+}
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN}     = ""
+
+FILES_libmpathpersist = "${libdir}/libmpathpersist*.so.0"
+FILES_mpathpersist = "${sbindir}/mpathpersist"
+FILES_kpartx = "${sbindir}/kpartx ${base_libdir}/udev/"
+FILES_libmultipath = "${libdir}/libcheck*.so ${libdir}/libpri*.so ${libdir}/libmultipath*.so.0"
+FILES_multipath = "${sbindir}/multipath ${sysconfdir}"
+FILES_multipathd = "${sbindir}/multipathd ${base_libdir}"
+
+#put the symbol link lib in -dev 
+FILES_libmultipath-dev = "${libdir}/libmultipath*.so"
+FILES_libmpathpersist-dev = "${libdir}/libmpathpersist*.so"
+
+
Signature · 1 line
1.7.1
#1 lore raw
Quoted 39 lines · On Mon 21 Jan 2013 11:00:33 AM CET, [email protected] wrote:

From: Lei Yang <[email protected]>

This packages provides:
- multipath: scans the system for multipathed devices, assembles
- multipathd: waits for maps events then execs multipath
- kpartx: maps linear devmaps to device partitions, which makes multipath maps partionable
......

Now,It can be used for kvm disk img partion for me.

---
  .../multipath-tools/multipath-tools_git.bb         |   46 ++++++++++++++++++++
  1 files changed, 46 insertions(+), 0 deletions(-)

create mode 100644 meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +16 -0
new file mode 100644
index 0000000..e9509d3
@@ -0,0 +1,46 @@
+SUMMARY = "Tools to Manage Multipathed Devices with the device-mapper"
+DESCRIPTION = "This package provides the tools to manage multipathed devices by \
+instructing the device-mapper multipath module what to do"
+
+HOMEPAGE = "http://christophe.varoqui.free.fr/"
+DEPENDS = "readline libaio lvm2"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+S="${WORKDIR}/git"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+
+SRCREV = "d3683ab18b386e9b3b54b59a122c689e9ebdf5cf"
+PV = "0.4.9+gitr${SRCPV}"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb line 26

Quoted 10 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +10 -0
+
+inherit autotools
+
+EXTRA_OEMAKE="LIB=${libdir} exec_prefix=${exec_prefix} libdir=${libdir}"
+
+PACKAGES =+ "libmpathpersist mpathpersist kpartx libmultipath multipath multipathd libmultipath-dev libmpathpersist-dev"
+
+
+RDEPENDS_${PN} += "libmpathpersist mpathpersist kpartx libmultipath multipath multipathd"
+

Is RDEPENDS on udev not mandatory ?

Quoted 10 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +10 -0
+do_install_append () {
+	ln -sf libmpathpersist.so.0 ${D}${libdir}/libmpathpersist.so
+	ln -sf libmultipath.so.0 ${D}${libdir}/libmultipath.so
+}
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN}     = ""
+
+FILES_libmpathpersist = "${libdir}/libmpathpersist*.so.0"
+FILES_mpathpersist = "${sbindir}/mpathpersist"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb line 46

Quoted 10 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +10 -0
+FILES_kpartx = "${sbindir}/kpartx ${base_libdir}/udev/"
+FILES_libmultipath = "${libdir}/libcheck*.so ${libdir}/libpri*.so ${libdir}/libmultipath*.so.0"
+FILES_multipath = "${sbindir}/multipath ${sysconfdir}"
+FILES_multipathd = "${sbindir}/multipathd ${base_libdir}"
+
+#put the symbol link lib in -dev
+FILES_libmultipath-dev = "${libdir}/libmultipath*.so"
+FILES_libmpathpersist-dev = "${libdir}/libmpathpersist*.so"
+
+

Whats the intended destination for this recipe ?
If not accepted in meta-oe, We'll be happy to merge it in meta-virtualization.

Br,
David

author
#2 lore raw
Quoted 51 lines · David Nyström
Quoted 50 lines · On Mon 21 Jan 2013 11:00:33 AM CET, [email protected] wrote:

From: Lei Yang <[email protected]>

This packages provides:
- multipath: scans the system for multipathed devices, assembles
- multipathd: waits for maps events then execs multipath
- kpartx: maps linear devmaps to device partitions, which makes multipath maps partionable
......

Now,It can be used for kvm disk img partion for me.

---
  .../multipath-tools/multipath-tools_git.bb         |   46 
++++++++++++++++++++
  1 files changed, 46 insertions(+), 0 deletions(-)

create mode 100644
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +2 -0
new file mode 100644
index 0000000..e9509d3
@@ -0,0 +1,46 @@
+SUMMARY = "Tools to Manage Multipathed Devices with the device-mapper"
+DESCRIPTION = "This package provides the tools to manage multipathed 

devices by \

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +7 -0
+instructing the device-mapper multipath module what to do"
+
+HOMEPAGE = "http://christophe.varoqui.free.fr/"
+DEPENDS = "readline libaio lvm2"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = 

"file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +11 -0
+S="${WORKDIR}/git"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+
+SRCREV = "d3683ab18b386e9b3b54b59a122c689e9ebdf5cf"
+PV = "0.4.9+gitr${SRCPV}"
+
+inherit autotools
+
+EXTRA_OEMAKE="LIB=${libdir} exec_prefix=${exec_prefix} 

libdir=${libdir}"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +2 -0
+
+PACKAGES =+ "libmpathpersist mpathpersist kpartx libmultipath 
Quoted 9 lines
Quoted 6 lines

multipath multipathd libmultipath-dev libmpathpersist-dev"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +3 -0
+
+
+RDEPENDS_${PN} += "libmpathpersist mpathpersist kpartx libmultipath 

multipath multipathd"
+

Is RDEPENDS on udev not mandatory ?

good catch, we can add it, it will create /dev/mapper/loop0p1 node, I give a log for it's kpart usage in my testing,It's pretty easy for image partition because you don't need to know offset for partition

root@intel_5500_server:/# kpartx -l sdb.img
loop0p1 : 0 20480 /dev/loop0 2048
loop0p2 : 0 10240 /dev/loop0 22528
loop deleted : /dev/loop0
root@intel_5500_server:/# kpartx -a sdb.img
root@intel_5500_server:/# ls /dev/mapper/
control  loop0p1  loop0p2
root@intel_5500_server:/# ls /dev/mapper/loop0p1
/dev/mapper/loop0p1
root@intel_5500_server:/# mkfs.ext3 /dev/mapper/loop0p1
.....
root@intel_5500_server:/# mount /dev/mapper/loop0p1 /mnt
root@intel_5500_server:/# ls /mnt
lost+found
Quoted 15 lines
Quoted 15 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +12 -0
+do_install_append () {
+    ln -sf libmpathpersist.so.0 ${D}${libdir}/libmpathpersist.so
+    ln -sf libmultipath.so.0 ${D}${libdir}/libmultipath.so
+}
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN}     = ""
+
+FILES_libmpathpersist = "${libdir}/libmpathpersist*.so.0"
+FILES_mpathpersist = "${sbindir}/mpathpersist"
+FILES_kpartx = "${sbindir}/kpartx ${base_libdir}/udev/"
+FILES_libmultipath = "${libdir}/libcheck*.so ${libdir}/libpri*.so 

${libdir}/libmultipath*.so.0"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +2 -0
+FILES_multipath = "${sbindir}/multipath ${sysconfdir}"
+FILES_multipathd = "${sbindir}/multipathd ${base_libdir}"
Quoted 8 lines

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb line 46

Quoted 6 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +6 -0
+
+#put the symbol link lib in -dev
+FILES_libmultipath-dev = "${libdir}/libmultipath*.so"
+FILES_libmpathpersist-dev = "${libdir}/libmpathpersist*.so"
+
+

Whats the intended destination for this recipe ?

if meta-oe, recipes-support
if meta-virtualization: recipes-extended

Quoted 2 lines

If not accepted in meta-oe, We'll be happy to merge it in meta-virtualization.

Glad to add in meta-virt

Lei

Quoted 2 lines

Br,
David

#3 lore raw
In reply to David Nyström
Quoted 81 lines · David Nyström
Quoted 55 lines · On Mon 21 Jan 2013 11:00:33 AM CET, [email protected] wrote:

From: Lei Yang <[email protected]>

This packages provides:
- multipath: scans the system for multipathed devices, assembles
- multipathd: waits for maps events then execs multipath
- kpartx: maps linear devmaps to device partitions, which makes multipath maps partionable
......

Now,It can be used for kvm disk img partion for me.

---
  .../multipath-tools/multipath-tools_git.bb         |   46
++++++++++++++++++++
  1 files changed, 46 insertions(+), 0 deletions(-)

create mode 100644
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb

diff --git a/meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb b/meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file mode 100644
index 0000000..e9509d3

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +2 -0
@@ -0,0 +1,46 @@
+SUMMARY = "Tools to Manage Multipathed Devices with the device-mapper"
+DESCRIPTION = "This package provides the tools to manage multipathed

devices by \

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +20 -0
+instructing the device-mapper multipath module what to do"
+
+HOMEPAGE = "http://christophe.varoqui.free.fr/"
+DEPENDS = "readline libaio lvm2"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+S="${WORKDIR}/git"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+
+SRCREV = "d3683ab18b386e9b3b54b59a122c689e9ebdf5cf"
+PV = "0.4.9+gitr${SRCPV}"
+
+inherit autotools
+
+EXTRA_OEMAKE="LIB=${libdir} exec_prefix=${exec_prefix} libdir=${libdir}"
+
+PACKAGES =+ "libmpathpersist mpathpersist kpartx libmultipath multipath

multipathd libmultipath-dev libmpathpersist-dev"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +3 -0
+
+
+RDEPENDS_${PN} += "libmpathpersist mpathpersist kpartx libmultipath
Quoted 2 lines

multipath multipathd"
+

Is RDEPENDS on udev not mandatory ?

Quoted 18 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +12 -0
+do_install_append () {
+       ln -sf libmpathpersist.so.0 ${D}${libdir}/libmpathpersist.so
+       ln -sf libmultipath.so.0 ${D}${libdir}/libmultipath.so
+}
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN}     = ""
+
+FILES_libmpathpersist = "${libdir}/libmpathpersist*.so.0"
+FILES_mpathpersist = "${sbindir}/mpathpersist"
+FILES_kpartx = "${sbindir}/kpartx ${base_libdir}/udev/"
+FILES_libmultipath = "${libdir}/libcheck*.so ${libdir}/libpri*.so

${libdir}/libmultipath*.so.0"

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +5 -0
+FILES_multipath = "${sbindir}/multipath ${sysconfdir}"
+FILES_multipathd = "${sbindir}/multipathd ${base_libdir}"
+
+#put the symbol link lib in -dev
+FILES_libmultipath-dev = "${libdir}/libmultipath*.so"
Quoted 9 lines

meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb line 46

Quoted 3 lines
meta-oe/recipes-support/multipath-tools/multipath-tools_git.bb new file +3 -0
+FILES_libmpathpersist-dev = "${libdir}/libmpathpersist*.so"
+
+

Whats the intended destination for this recipe ? If not accepted in meta-oe, We'll be happy to merge it in meta-virtualization.

sent to meta-virt

Lei

Quoted 6 lines

Br,
David
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization