Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Showing results for 
Search instead for 
Did you mean: 

Linux lvm

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"

Steven E. Protter
Exalted Contributor

Re: Linux lvm


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.

Steven E Protter
Owner of ISN Corporation
Honored Contributor

Re: Linux lvm

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