FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-23-2011, 02:51 PM
yudi v
 
Default LVM question: what's the difference between /dev/mapper/vg-lv and /dev/vg/lv

I created a LV and was going to use the following command to create a file system:

mkfs.ext4 /dev/vg/lv

someone suggested I use:

mkfs.ext4 /dev/mapper/vg-lv


What's the difference?

--
Kind regards,
Yudi
 
Old 08-23-2011, 03:03 PM
Andrew McGlashan
 
Default LVM question: what's the difference between /dev/mapper/vg-lv and /dev/vg/lv

Hi Yudi,

yudi v wrote:
I created a LV and was going to use the following command to create a
file system:


mkfs.ext4 /dev/vg/lv

someone suggested I use:

mkfs.ext4 /dev/mapper/vg-lv


What's the difference?


Perhaps nothing, provided it is mapped properly:

# ls -lart /dev/mapper/vg0-root /dev/vg0/root
brw-rw---- 1 root disk 253, 0 2011-06-24 18:56 /dev/mapper/vg0-root
lrwxrwxrwx 1 root root 20 2011-06-24 18:56 /dev/vg0/root ->
/dev/mapper/vg0-root


The "non mapper" version links back to the other one ... so, I think it
should be essentially the same -- or rather exactly the same.



Cheers

--
Kind Regards
AndrewM

Andrew McGlashan
Broadband Solutions now including VoIP


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4E53C13C.3020209@affinityvision.com.au">http://lists.debian.org/4E53C13C.3020209@affinityvision.com.au
 
Old 08-23-2011, 03:36 PM
Ivan Shmakov
 
Default LVM question: what's the difference between /dev/mapper/vg-lv and /dev/vg/lv

>>>>> yudi v <yudi.tux@gmail.com> writes:

> I created a LV and was going to use the following command to create a
> file system:

> mkfs.ext4 /dev/vg/lv

> someone suggested I use:

> mkfs.ext4 /dev/mapper/vg-lv

> What's the difference?

There should be none.

Note, however, that /dev/mapper/ may contain non-LVM specials as
well, such as cryptsetup(8) ones.

My guess is that /dev/VG/LV may provide some sort of backwards
compatibility, as LVM may have been implemented before Linux's
“device mapper.” (IIRC, there was an LVM implementation for
HP-UX, bearing some similarity to the one currently in Linux.)

--
FSF associate member #7257 Coming soon: Software Freedom Day
http://mail.sf-day.org/lists/listinfo/ planning-ru (ru), sfd-discuss (en)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 86ippoqgvs.fsf@gray.siamics.net">http://lists.debian.org/86ippoqgvs.fsf@gray.siamics.net
 
Old 08-24-2011, 11:38 AM
yudi v
 
Default LVM question: what's the difference between /dev/mapper/vg-lv and /dev/vg/lv

There should be none.



* * * *Note, however, that /dev/mapper/ may contain non-LVM specials as

* * * *well, such as cryptsetup(8) ones.



* * * *My guess is that /dev/VG/LV may provide some sort of backwards

* * * *compatibility, as LVM may have been implemented before Linux's

* * * *“device mapper.” *(IIRC, there was an LVM implementation for

* * * *HP-UX, bearing some similarity to the one currently in Linux.)


Thanks for sharing that info.
AndrewM, thanks for the prompt reply.
--
Kind regards,
Yudi
 

Thread Tools




All times are GMT. The time now is 08:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org