|
Home | Switchboard | Unix Administration | Red Hat | TCP/IP Networks | Neoliberalism | Toxic Managers |
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix |
|
|
Device-mapper is a new infrastructure in the Linux 2.6 kernel that provides a generic way to create virtual layers of block devices that can do different things on top of real block devices like striping, concatenation, mirroring, snapshotting, etc...
The Device-mapper was introduced only in version 2.6 of the linux kernel. It is required by LVM2. The original LVM (included in 2.4 kernels) does not use it.
If you intend to use Device-mapper, as well as including it in your kernel, you should install the userspace configuration tool (dmsetup) and library (libdevmapper).
Multipath tools are available from ftp://sources.redhat.com/pub/dm/multipath-tools with documentation at http://christophe.varoqui.free.fr/.
Chapter 1. Device Mapper Multipathing
After creating multipath devices, you can use the multipath device names just as you would use a physical device name
when creating an LVM physical volume. For example, if /dev/mapper/mpath0
is the name of a multipath device,
the following command will mark /dev/mapper/mpath0
as a physical volume.
pvcreate /dev/mapper/mpath0
You can use the resulting LVM physical device when you create an LVM volume group just as you would use any other LVM physical device.
When you create an LVM logical volume that uses active/passive multipath arrays as the underlying physical devices, you
should include filters in the lvm.conf
to exclude the disks that underlie the multipath devices. This is because
if the array automatically changes the active path to the passive path when it receives I/O, multipath will failover and
failback whenever LVM scans the passive path if these devices are not filtered. For active/passive arrays that require a
command to make the passive path active, LVM prints a warning message when this occurs.
To filter all SCSI devices in the multipath configuration file (lvm.conf
), include the following filter
in the devices
section of the file.
filter = [ "r/disk/", "r/sd.*/", "a/.*/" ]
The userspace code (dmsetup and libdevmapper) is now maintained alongside the LVM2 source available from
http://sources.redhat.com/lvm2/. To build / install it without
LVM2 use 'make device-mapper' / 'make device-mapper_install'.
Kernel patches under discussion are captured by patchwork from the dm-devel mailing list and stored at
http://patchwork.kernel.org/project/dm-devel/list/?state=*.
A quilt tree of patches being prepared for inclusion upstream is maintained at
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/
with archived versions at http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/
Old kernel source code patches for 2.4 and 2.6 kernels are still available from http://sources.redhat.com/dm/patches.html.
Old source code tarballs of the userspace tool and library are still available from
ftp://sources.redhat.com/pub/dm/.
These also include kernel patches for some specific 2.4 kernels.
dm-devel is the mailing list for any device-mapper-related
questions and discussion.
Subscribe to this from https://www.redhat.com/mailman/listinfo/dm-devel.
The list archives are at https://www.redhat.com/archives/dm-devel/.
The mailing list address is [email protected].
Whenever the development source code repository is updated, email is sent to the dm-cvs mailing list. This list is run
using ezmlm.
To subscribe, send an email to [email protected]
or [email protected].
You can read the list archives at http://sources.redhat.com/ml/dm-cvs/
The encryption target has its own mailing list archived at
http://news.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt.
To subscribe, send a blank email to [email protected].
To access the old source code repository using CVS:
cvs -d :pserver:[email protected]:/cvs/dm login cvs
cvs -d :pserver:[email protected]:/cvs/dm checkout device-mapper
The password is cvs.
There is a web interface to CVS at http://sources.redhat.com/cgi-bin/cvsweb.cgi/device-mapper/?cvsroot=dm.
As well as using the dm-devel mailing list, we are using bugzilla.redhat.com
to record multipath bugs and feature requests.
Display outstanding multipath bugzilla entries.
Report multipath bug.
Enter multipath feature request.
I am having problems with Mondo Rescue. I have two drives. One 20 gig, one 300 gig.
Initializing...
See /var/log/mondo-archive.log for details of backup run.
Checking sanity of your Linux distribution
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3 doesn't contain a valid partition table
Done.
Fatal error... output folder does not exist - please create it
---FATALERROR--- output folder does not exist - please create it
If you require technical support, please contact the mailing list.
See http://www.mondorescue.org for details.
The list's members can help you, if you attach that file to your e-mail.
Log file: /var/log/mondo-archive.log
FYI, I have gzipped the log and saved it to /tmp/MA.log.gz
Mondo has aborted.
Execution run ended; result=254
Type 'less /var/log/mondo-archive.log' to see the output log
fdisk -l
Disk /dev/dm-0: 6308 MB, 6308233216 bytes
255 heads, 63 sectors/track, 766 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 973 MB, 973078528 bytes
255 heads, 63 sectors/track, 118 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 299.5 GB, 299573968896 bytes
255 heads, 63 sectors/track, 36421 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3: 22.4 GB, 22481469440 bytes
255 heads, 63 sectors/track, 2733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-3 doesn't contain a valid partition table
error, disk, horrifying, brokensystem, broken |
bic |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by bic |
12-29-2006, 05:24 AM | #2 | |
dombrowsky
Member Registered: Dec 2005 Location: New YorkDistribution: Debian/GNU Posts: 229Thanked: 0 |
looks like the data on your disks is broken. period. |
|
dombrowsky |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
View LQ Wiki Contributions |
Visit dombrowsky's homepage! |
Find More Posts by dombrowsky |
02-07-2008, 09:00 PM | #3 | |
systemnyc
LQ Newbie Registered: Sep 2006 Posts: 4Thanked: 0 |
Same problem as Bic
Disk /dev/sda: 160.0 GB, 160041885696 bytes |
|
systemnyc |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by systemnyc |
02-08-2008, 07:20 AM | #4 | |
bic
Member Registered: Jan 2005 Distribution: RH9, MythDora 3.2, RHEL 4Posts: 77 Thanked: 1
|
I don't remember what I did to fix it. |
|
bic |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by bic |
02-25-2008, 11:52 AM | #5 | |
darthwonka
LQ Newbie Registered: Sep 2006 Distribution: Debian Testing, Fedora 8, CentOS5, UbuntuPosts: 1 Thanked: 0 |
Is this really a problem? Maybe fdisk doesn't know how to talk LVM. The errors I get with fdisk all point to the logical volumes. |
|
darthwonka |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by darthwonka |
02-27-2008, 03:32 AM | #6 | |
v00d00101
Member Registered: Jun 2003 Location: UKDistribution: Fedora 8, Centos 5.1 Posts: 480Thanked: 0 |
Isnt /dev/dm-x a device mapper virtual mount point? Last edited by v00d00101; 02-27-2008 at 03:34 AM.. |
|
v00d00101 |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by v00d00101 |
04-18-2008, 07:20 AM | #7 | |
kotao_78
LQ Newbie Registered: Sep 2006 Posts: 16Thanked: 0 |
How to remove them? How to remove them? |
|
kotao_78 |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by kotao_78 |
04-23-2008, 07:41 PM | #8 | |
stoat
Member Registered: May 2007 Posts: 68Thanked: 0 |
You don't remove them. Just don't look at them. Seriously. Those are device mapper devices. They usually are associated with LVM and correspond to the logical volumes. But those devices can also appear in the fdisk report when things such as flash drives and camera memory are connected to the computer. Anyway, they're normal. Last edited by stoat; 10-22-2008 at 04:11 PM.. |
|
stoat |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
Find More Posts by stoat |
05-09-2008, 07:31 AM | #9 | |
jschlesi
LQ Newbie Registered: Oct 2006 Location: Brookline, MA, USADistribution: Fedora C5 Posts: 11Thanked: 0 |
This has been very helpful to me. I found this thread by Goggle on |
|
jschlesi |
View Public Profile |
View LQ Blog |
View Bookmarks |
View Review Entries |
View HCL Entries |
View LQ Wiki Contributions |
Find More Posts by jschlesi |
10-22-2008, 12:30 PM | #10 | |
cheber
LQ Newbie Registered: Oct 2008 Posts: 5Thanked: 0 |
Well, I got the "/dev/dm-0" messages when I had simply removed partitions containing
LVM. Last edited by cheber; 10-22-2008 at 12:31 PM.. |
Device mapper - Wikipedia, the free encyclopedia
device-mapper-udev-crs-asm%20rh4
There are README, INSTALL, WHATS_NEW_DM libdevmapper.h and dmsetup man page in the LVM2 source package.
The LVM HOWTO is at http://www.tldp.org/HOWTO/LVM-HOWTO/index.html.
LVM2: http://sources.redhat.com/lvm2/
EVMS: http://evms.sourceforge.net/
The original LVM: http://sources.redhat.com/lvm/
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|
You can use PayPal to to buy a cup of coffee for authors of this site |
Disclaimer:
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.
Last modified: March 12, 2019