Device mapper

The device mapper is a framework provided by the Linux kernel for mapping physical block devices onto higher-level virtual block devices. It forms the foundation of the logical volume manager (LVM), software RAIDs and dm-crypt disk encryption, and offers additional features such as file system snapshots.[1]

Device mapper works by passing data from a virtual block device, which is provided by the device mapper itself, to another block device. Data can be also modified in transition, which is performed, for example, in the case of device mapper providing disk encryption or simulation of unreliable hardware behavior.

This article focuses on the device mapper implementation in the Linux kernel, but the device mapper functionality is also available in both NetBSD and DragonFly BSD.[2][3]

Usage

Applications (like LVM2 and Enterprise Volume Management System (EVMS)) that need to create new mapped devices talk to the device mapper via the libdevmapper.so shared library, which in turn issues ioctls to the /dev/mapper/control device node.[4] Configuration of the device mapper can be also examined and configured interactively‍—‌or from shell scripts‍—‌by using the dmsetup(8) utility.[5][6]

Both of these two userspace components have their source code maintained alongside the LVM2 source.[7]

Features

The position of the device mapper targets within various layers of the Linux kernel's storage stack.[8]

Functions provided by the device mapper include linear, striped and error mappings, as well as crypt and multipath targets. For example, two disks may be concatenated into one logical volume with a pair of linear mappings, one for each disk. As another example, crypt target encrypts the data passing through the specified device, by using the Linux kernel's Crypto API.[1]

As of 2014, the following mapping targets are available:[1][5]

  • cache – allows creation of hybrid volumes, by using solid-state drives (SSDs) as caches for hard disk drives (HDDs)
  • clone – will permit usage before a transfer is complete.
  • crypt – provides data encryption, by using the Linux kernel's Crypto API
  • delay – delays reads and/or writes to different devices (used for testing)
  • era – behaves in a way similar to the linear target, while it keeps track of blocks that were written to within a user-defined period of time[9]
  • error – simulates I/O errors for all mapped blocks (used for testing)
  • flakey – simulates periodic unreliable behaviour (used for testing)
  • linear – maps a continuous range of blocks onto another block device
  • mirror – maps a mirrored logical device, while providing data redundancy
  • multipath – supports the mapping of multipathed devices, through usage of their path groups
  • raid – offers an interface to the Linux kernel's software RAID driver (md)
  • snapshot and snapshot-origin – used for creation of LVM snapshots, as part of the underlying copy-on-write scheme
  • striped – stripes the data across physical devices, with the number of stripes and the striping chunk size as parameters
  • thin  – allows creation of devices larger than the underlying physical device, physical space is allocated only when written to
  • zero – an equivalent of /dev/zero, all reads return blocks of zeros, and writes are discarded

Applications

Linux kernel features and projects built on top of the device mapper include the following:

  • cryptsetup – utility used to conveniently setup disk encryption based on dm-crypt
  • dm-crypt/LUKS – mapping target that provides volume encryption
  • dm-cache – mapping target that allows creation of hybrid volumes
  • dm-integrity – mapping target that provides data integrity, either using checksumming or cryptographic verification,[10][11] also used with LUKS[12]
  • dm-log-writes – mapping target that uses two devices, passing through the first device and logging the write operations performed to it on the second device[13]
  • dm-verity – validates the data blocks contained in a file system against a list of cryptographic hash values, developed as part of the ChromiumOS project[14]
  • dmraid(8) – provides access to "fake" RAID configurations via the device mapper
  • DM Multipath – provides I/O failover and load-balancing of block devices within the Linux kernel
  • Docker – uses device mapper to create copy-on-write storage for software containers
  • DRBD (Distributed Replicated Block Device)
  • EVMS (deprecated)
  • kpartx(8) – utility called from hotplug upon device maps creation and deletion
  • LVM2 – logical volume manager for the Linux kernel
  • VeraCrypt - Linux version of TrueCrypt
  • VDO - Virtual Data Optimizer

References

  1. ^ a b c "Logical Volume Manager Administration, Appendix A. The Device Mapper". Red Hat. Retrieved 2013-09-29.
  2. ^ "NetBSD Kernel Interfaces Manual: dm(4)". netbsd.gw.com. 2008-08-30. Archived from the original on 2014-07-19. Retrieved 2015-01-25.
  3. ^ "DragonFly On-Line Manual Pages: dm(4)". dragonflybsd.org. 2010-07-28. Retrieved 2014-06-06.
  4. ^ "libdevmapper.h". sourceware.org. Retrieved 2013-09-29.[permanent dead link]
  5. ^ a b "dmsetup(8) - Linux man page". man.cx. Retrieved 2013-10-22.
  6. ^ "Logical Volume Manager Administration". Appendix A.2. The dmsetup Command. Red Hat. Retrieved 2013-09-29.
  7. ^ "Device-mapper Resource Page". sourceware.org. Retrieved 2013-09-29.
  8. ^ Werner Fischer; Georg Schönberger (2015-06-01). "Linux Storage Stack Diagram". Thomas-Krenn.AG. Retrieved 2015-06-08.
  9. ^ "6. Block layer". Linux kernel 3.15. kernelnewbies.org. 2014-06-08. Retrieved 2014-06-15.
  10. ^ "dm-integrity". cryptosetup project. 2018-04-30. Retrieved 2018-05-08.
  11. ^ "dm-integrity target". kernel.org. 2017-05-13. Retrieved 2018-05-08.
  12. ^ "cryptsetup - manage plain dm-crypt and LUKS encrypted volumes". 2018-01-01. Retrieved 2018-05-08.
  13. ^ "Linux kernel documentation: Documentation/device-mapper/log-writes.txt". kernel.org. 2015-05-29. Retrieved 2015-10-13.
  14. ^ Jonathan Corbet (2011-09-19). "dm-verity". LWN.net. Retrieved 2015-10-13.

Read other articles:

Wahyu 7Wahyu 13:16-14:4 yang tertulis pada fragmen Papirus 47 dari abad ke-3 M.KitabKitab WahyuKategoriApokalipsBagian Alkitab KristenPerjanjian BaruUrutan dalamKitab Kristen27← pasal 6 pasal 8 → Wahyu 7 (disingkat Why 7) adalah pasal ketujuh Wahyu kepada Yohanes, kitab terakhir dalam Perjanjian Baru di Alkitab Kristen.[1][2] Pengarangnya diyakini adalah Yohanes bin Zebedeus, seorang dari Keduabelas Rasul Yesus Kristus.[3][4][5] Teks Naskah ...

 

 

Міньхе-Хуей-Туський автономний повіт Офіційна назва спр. китайська: 民和回族土族自治县 (6 листопада 1985) Країна  КНР Столиця Чуанькоуd Адміністративна одиниця Хайдун Законодавчий орган Q106007234?[1] Кількість населення 350 118 осіб Адміністративно-територіально поділяєть

 

 

A major contributor to this article appears to have a close connection with its subject. It may require cleanup to comply with Wikipedia's content policies, particularly neutral point of view. Please discuss further on the talk page. (February 2022) (Learn how and when to remove this template message) Hospital in Ontario, CanadaRoyal Ottawa Mental Health CentreRoyal Ottawa Health Care GroupLocation in OntarioGeographyLocationOttawa, Ontario, CanadaOrganizationCare systemPublic Medicare (Canad...

Monasterio Celeste Entrada del MonasterioLocalizaciónPaís  ChileLocalidad Parcela San José, Santa Lucila s/n Requínoa, ChileCoordenadas 34°15′06″S 70°49′59″O / -34.25164722, -70.83316111Detalles generalesSuperficie 16.000 m²Propietario O'HigginsConstrucciónCoste US$ 7.500.000Inicio 2 de febrero de 2013Apertura 8 de mayo de 2014Equipo local Club Deportivo O'HigginsFútbol Joven de O'Higgins de Rancagua Club Deportivo O'Higgins (femenino)Acontecimientos...

 

 

American football and basketball coach (1874–1962) Charles BestBest pictured in The Cap & Gown 1918, Sewanee yearbookBiographical detailsBorn(1874-07-25)July 25, 1874Mechanicsburg, Pennsylvania, U.S.DiedJuly 4, 1962(1962-07-04) (aged 87)Alameda County, California, U.S.Alma materLafayette University (1899)Playing careerFootball1898Lafayette Position(s)QuarterbackCoaching career (HC unless noted)Football1900–1901Drake1902Purdue1917–1918SewaneeBasketball1901–1902Purdue Head...

 

 

Muqrin bin Abdulaziz Al SaudPutra Mahkota Arab SaudiPutra Mahkota Arab SaudiMenjabat23 Januari 2015 – 29 April 2015PenerusMuhammad Bin NayefMonarkiSalmanDirektur Jenderal Badan Intelejen SaudiMenjabatOctober 2005 – 19 Juli 2012PendahuluNawwaf bin AbdulazizPenerusBandar bin SultanMonarkiAbdullahGubernur Provinsi MadinahMenjabat1999 – 2005PendahuluAbdul Majeed bin AbdulazizPenerusAbdulaziz bin MajidMonarkiFahdGubernur Provinsi HailMenjabat1980 – 1999PenerusSaud bin A...

Untuk orang lain dengan nama yang sama, lihat Robert Livingston. Robert LivingstonDuncan Renaldo, Robert Livingston, dan Raymond Hatton dalam Cowboys from Texas (1939)LahirRobert Edward Randall(1904-12-09)9 Desember 1904Quincy, Illinois, Amerika SerikatMeninggal7 Maret 1988(1988-03-07) (umur 83)Tarzana, California, Amerika SerikatMakamForest Lawn Memorial Park CemeteryPekerjaanPemeranTahun aktif1921–1975Suami/istriMargaret M. Roach ​ ​(m. 1947; c.&...

 

 

English statesman (1532–1588) The Right HonourableThe Earl of LeicesterKG PCPortrait in Waddesdon Manor, c. 1564. In the background are the devices of the Order of Saint Michael and the Order of the Garter; Robert Dudley was a knight of both.Tenure1564–1588Other titlesLord of DenbighKnown forFavourite of Elizabeth IBornRobert Dudley24 June 1532Died4 September 1588 (aged 56)Cornbury, Oxfordshire, EnglandBuriedCollegiate Church of St Mary, WarwickNationalityEnglishReside...

 

 

Tram-train vehicles made since 2003 This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Stadler Citylink – news · newspapers · books · scholar · JSTOR (July 2019) (Learn how and when to remove this template message) A Sheffield Supertram Citylink on test at Donetsk Way, Sheffield, April 2017 The Stadler Citylink...

American college football season 2007 LSU Tigers footballConsensus national championSEC championSEC Western Division championSEC Championship Game, W 21–14 vs. TennesseeBCS National Championship Game, W 38–24 vs. Ohio StateConferenceSoutheastern ConferenceDivisionWestern DivisionRankingCoachesNo. 1APNo. 1Record12–2 (6–2 SEC)Head coachLes Miles (3rd season)Offensive coordinatorGary Crowton (1st season)Offensive schemePro-styleDefensive coordinatorBo Pelini...

 

 

Canadian ice hockey player and coach Ice hockey player Geordie Kinnear Kinnear in 2015Born (1973-07-09) July 9, 1973 (age 50)Simcoe, Ontario, CanadaHeight 6 ft 1 in (185 cm)Weight 194 lb (88 kg; 13 st 12 lb)Position DefenceShot LeftPlayed for Atlanta ThrashersNHL Draft 162nd overall, 1992New Jersey DevilsPlaying career 1993–2001 Geordie S. Kinnear (born July 9, 1973) is a Canadian former professional ice hockey defenceman and current head coach of...

 

 

حسن السنوسي معلومات شخصية الميلاد 1928مبنغازي الوفاة 28 أبريل 1992م (العمر 63-64 سنة)لندن سبب الوفاة جلطة في المخ وأمراض القلب مكان الدفن مقبرة البقيع في المدينة المنورة الجنسية ليبي الديانة الإسلام الأولاد محمد الرضا السنوسي  الأب محمد الرضا السنوسي عائلة سنوسية  الحياة ال...

Metaphor Ghent Altarpiece by Jan van Eyck A sacrificial lamb is a metaphorical reference to a person or animal sacrificed for the common good. The term is derived from the traditions of the Abrahamic religions where a lamb is a highly valued possession.[1] In politics Main article: Paper candidate In politics, a sacrificial lamb candidate is a candidate chosen to contest an election with little chance of victory. The political party thus appoints the person as a sort of sacrifice to t...

 

 

A cathedral (from the Greek kathedra (καθέδρα), seat, bench, chair) is a Christian church which contains the seat of a bishop,[1] thus serving as the central church of a diocese. This is the list of cathedrals in India sorted by denomination. Part of a series onChristianity in India Communities Bengali Christians Bettiah Christians Bombay East Indians Marathi Christians Meitei Christians Mizo Christians Naga Christians Punjabi Christians Saint Thomas Christians Tamil Christians...

 

 

实况足球2020eFootball ウイニングイレブン 2020eFootball PES 2020PlayStation 4版游戏封面类型体育游戏平台Microsoft Windows、PlayStation 4、Xbox One、Android、iOS开发商科乐美发行商全球:科乐美中国大陆:网易游戏Android、iOS系列实况足球系列引擎Fox Engine(英语:Fox Engine)虚幻引擎(Android、iOS)模式单人模式、多人模式发行日全球:2019年9月10日日本:2019年9月12日 《实况足球2020》(日版名...

Political party in North Cyprus United Cyprus Party Birleşik Kıbrıs PartisiLeaderİzzet İzcanGeneral SecretarySalih SonüstünFounded2003Split fromNew Cyprus PartyHeadquartersNorth Nicosia, Northern CyprusIdeologySocialismCyprus reunificationPolitical positionLeft-wingEuropean affiliationParty of the European LeftColoursRed, blue and whiteParliament:0 / 50 Websitewww.birlesikkibris.comPolitics of North CyprusPolitical partiesElections The United Cyprus Party (Turkish: Birle...

 

 

Mexican actor (1932–2014) In this Spanish name, the first or paternal surname is Arvizu and the second or maternal family name is Martínez. Jorge ArvizuBornJorge Isaac Arvizu Martínez(1932-07-23)July 23, 1932Celaya, Guanajuato, MexicoDiedMarch 18, 2014(2014-03-18) (aged 81)Mexico City, MexicoOccupationActorYears active1953–2014 Jorge Isaac Arvizu Martínez (July 23, 1932 – March 18, 2014), better known by the stage name Jorge Arvizu, was a Mexican actor who was the f...

 

 

Dioecese of Baku and Azerbaijanorthodox Metropolitan Platon (Rozhdestvensky) of Tbilisi and Baku, and Exarch of Caucasus (1917-1918)LocationCountryAzerbaijanDeaneries2HeadquartersHoly Myrrhbearers CathedralStatisticsParishes1Churches6InformationFirst holderPavel (Vilkovskiy) 1919 - 1923DenominationRussian OrthodoxEstablished1919Current leadershipBishopVacant (last held by Alexander (Ishein))Websiteaz.pravoslavie.az Diocese of Baku and Azerbaijan (Russian: Бакинская и Азербай...

Deus de sumô, Nomi no Sukune A raiz xintoísta do sumo pode ser facilmente rastreada através dos séculos, e muitos rituais atualmente presentes no sumo são heranças diretas dos rituais xintoístas. O Xintoísmo é uma religião que tem sido historicamente utilizada para expressar o nacionalismo e identidade étnica japonesa, e o foi especialmente antes do fim da II Guerra Mundial. Em sua associação com o xintoísmo, o sumo também tem sido visto como um baluart...

 

 

Christiaan Frederik (Frits) Rüter (* 1938) ist ein niederländischer Professor für Strafrecht und gilt als Experte für die Aufarbeitung von NS-Prozessen. Christiaan Frederik Rüter (1976) Justiz und NS-Verbrechen, Band 1, 1968 Inhaltsverzeichnis 1 Forschung 2 Stellungnahme zur Anklageerhebung gegen Demjanjuk 3 Werke 4 Auszeichnungen 5 Weblinks 6 Einzelnachweise Forschung Frits Rüter studierte an der Universität von Amsterdam und dem Max-Planck-Institut für ausländisches und internation...

 

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!