Re: devmapper mount names
Joel Johnson(mrjoel@lixil.net) is reported to have said:
> >> A basic question that I can't seem to find an answer to (maybe not so
> >> basic?).
> >>
> >> Using LVM and therefore devmapper, the volume names are such that >they
> >> are accessible under /dev/mapper/<PV_Name>-<LV_Name>. Likewise, these
> >> names are used in reporting (du, df, mount, etc...). I would prefer >to
> >> have the volumes reported directly as their dev names, so
> >> /dev/mapper/volgroup-root should be /dev/volgroup/root. The volumes
> >are
> >> accessible this way, and if I use those entries in fstab it works
> >fine,
> >> but still get reported under the /dev/mapper/* headers.
> >>
> >> My best guess is that it has something to do with the order of the
> >> lookup of devices, but I don't have any idea how to modify that. Is
> >this
> >> possible? Is there a reason not to want such a presentation?
>
> That mounts the drives just fine, I use the shorter names in my fstab
> currently. However, when using (as an example) 'df' to view filesystems,
> the name is listed as the full /dev/mapper/* device.
>
> I would like to use shorter entries in fstab - this works already. What
> I would also like to be able to have happen, is df and the like display
> the shorter name /dev/{volgroup}/{volname}.
>
> Any ideas?
No realy. I use the pydf package, instead of df, which shows that
somewhat differently. Other that that I don't have a clue.
pydf
Filesystem Size Used Avail Use% [ ] Mounted on
/dev/hda2 455M 151M 279M 35.0 [### ] /
tmpfs 251M 12k 251M 0.0 [ ] /dev/shm
/dev/ma~lv_home 1023M 784M 239M 77.0 [###### ] /home
/dev/hda1 51M 20M 28M 41.0 [### ] /boot
/dev/ma~-lv_usr 5119M 2145M 2974M 42.0 [### ] /usr
/dev/ma~v_local 1023M 57M 966M 6.0 [ ] /usr/local
/dev/ma~_backup 3071M 32M 3039M 1.0 [ ] /backups
/dev/ma~re-pgm3 5119M 2880M 2239M 56.0 [#### ] /pgm3
/dev/ma~e-album 5119M 95M 5024M 2.0 [ ] /album
/dev/hda5 1345M 427M 845M 34.0 [### ] /var
/dev/hdb9 2816M 1132M 1540M 42.0 [### ] /extra
/dev/pk~dvd/dvd 4481M 395M 4085M 9.0 [# ] /media/dvd
Wayne
--
A computer lets you make more mistakes faster than any invention in
human history - with the possible exceptions of handguns and tequila.
_______________________________________________________
Reply to: