Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1196319 - Backport the dm-switch target to RHEL 6
Backport the dm-switch target to RHEL 6
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel (Show other bugs)
6.6
All Linux
medium Severity low
: rc
: 6.7
Assigned To: LVM and device-mapper development team
Zhang Yi
Christian Huffman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-25 12:03 EST by Mikuláš Patočka
Modified: 2015-07-22 04:42 EDT (History)
6 users (show)

See Also:
Fixed In Version: kernel-2.6.32-542.el6
Doc Type: Enhancement
Doc Text:
Inclusion of the device-mapper switch target The device-mapper (DM) switch target creates a device that supports an arbitrary mapping of fixed-size regions of I/O across a fixed set of paths. The path used for any specific region can be switched dynamically by sending the target a message. This functionality provides a two-layer device hierarchy that allows for efficient load balancing across a large member group.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-22 04:42:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
The patch that backports dm-switch (24.34 KB, patch)
2015-02-25 12:05 EST, Mikuláš Patočka
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1480143 None None None Never
Red Hat Product Errata RHSA-2015:1272 normal SHIPPED_LIVE Moderate: kernel security, bug fix, and enhancement update 2015-07-22 07:56:25 EDT

  None (edit)
Comment 1 Mikuláš Patočka 2015-02-25 12:05:20 EST
Created attachment 995272 [details]
The patch that backports dm-switch
Comment 3 RHEL Product and Program Management 2015-02-26 15:13:18 EST
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.
Comment 5 Mikuláš Patočka 2015-02-27 14:37:11 EST
Test it this way:

1) Create several logical volumes with the same size, for example:
  LV        VG   Attr       LSize
  switch-0  vg1  -wi-a-----   1,00g
  switch-1  vg1  -wi-a-----   1,00g
  switch-2  vg1  -wi-a-----   1,00g

2) Load the switch target that uses these volumes:
dmsetup create switch --table "0 2097152 switch 3 31 0 /dev/vg1/switch-0 0 /dev/vg1/switch-1 0 /dev/vg1/switch-2 0"
(3 is the number of volumes; 31 is the region size in sectors, you can put any value there)

3) Load something into the mapping table, use several commands "dmsetup message switch 0 set_region_mappings..." The syntax of the command is in the file Documentation/device-mapper/switch.txt. You can load whatever you want into the table, and remember what have you loaded.

4) Create a filesystem on the switch device /dev/mapper/switch

5) Mount the filesystem, copy some data to the filesytem, unmount it.

6) Unload the switch target: dmsetup remove switch

7) Repeat the steps 2), 3), 5) (in step 3, load the same mapping table as you did before)

8) Check the filesystem with fsck, then mount it and verify that the data is intact
Comment 6 Mikuláš Patočka 2015-02-27 14:38:25 EST
Correction - step 7) should be "Repeat the steps 2), 3)" - you don't need to copy data to the filesystem because it's already there.
Comment 18 errata-xmlrpc 2015-07-22 04:42:46 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1272.html

Note You need to log in before you can comment on or make changes to this bug.