"partprobe" and device mapper

Dag Wieers dag at wieers.com
Fri Jun 16 07:20:10 UTC 2006


On Thu, 15 Jun 2006, Herta Van den Eynde wrote:

> thomas.vonsteiger at bluewin.ch wrote:
>
> > Older Version of Linux without device mapper if i have a new partition i can
> > use "partprobe to update the partitions in /proc/partition without reboot.
> > Newer Versions of Linux like FC5 are using devicemapper. /dev/mapper/XXXX
> > can be used for vg or filesystem.
> > If I create a new partition on a disk how I can tell devicemapper from to
> > new partition without reboot ?
> > partprobe is not working for this. I need to sea all my new partition in
> > /dev/mapper 
> > regards
> > Thomas
> 
> Sounds like you're looking for kpartx.  It's used by rc.sysinit to create the
> device maps.

Shouldn't that be vgchange -a y ?

For some reason on this system (FC5) I see kpartx being run from dmsetup 
(if it exists), but it does not exist on my system.

apt-get tells me kpartx is part of the device-mapper-multipath package 
which I don't even require. So I wonder if vgchange is sufficient to 
enable new logical volumes.

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]




More information about the redhat-list mailing list