cancel
Showing results for 
Search instead for 
Did you mean: 

Linux lvm

BalasubramanianN
Occasional Advisor

Linux lvm

can anyone explain what is /dev/mapper
if i create a vg it is by default created in /dev

Then why its block device is created in /dev/mapper and what would happen if i change the
parameter in /etc/lvm.conf to /dev/mapper

the following line appears in lvm.conf

# Where do you want your volume groups to appear ?
dir = "/dev"


2 REPLIES
Steven E. Protter
Exalted Contributor

Re: Linux lvm

Shalom,

It's just the way lvm works internally. You'll notice it on df -kh output as well.

On the command line you can refer to lvm objects directly.

lvdisplay /dev/vg00/lvol1

for example.

Don't touch that line in lvm.conf, thats my recommendation.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
AwadheshPandey
Honored Contributor

Re: Linux lvm

http://sourceware.org/dm/
http://www.linuxmanpages.com/man5/lvm.conf.5.php

You can change parameter dir="/dev" to some other location but I will not suggest for same.
It's kind of fun to do the impossible