[dm-devel] Re: [linux-lvm] Re: LVM on dmraid breakage

Luca Berra bluca at comedia.it
Fri Aug 3 07:55:56 UTC 2007


On Thu, Aug 02, 2007 at 11:45:53AM +0100, Bryn M. Reeves wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Luca Berra wrote:
>> Two things come to mind
>> 1) dmraid should use ioctl BLKPG_DEL_PARTITION, to clean up any eventual
>> partition table on component devices
>> 
>> 2) lvm tool filter could be modified to check if a device has been
>> already claimed by device-mapper.
>> 
>
>But device-mapper already opens devices exclusively when a target claims
>them.

No, it does not,
sorry

[root at localhost ~]# dmsetup create foobar
0 281329664 linear /dev/md2 0
[root at localhost ~]# dmsetup table
foobar: 0 281329664 linear 9:2 0
[root at localhost ~]# dmsetup create foobar1
0 281329664 linear /dev/md2 0
[root at localhost ~]# dmsetup create foobar2
0 281329664 linear /dev/md2 0
[root at localhost ~]# dmsetup create foobar2
0 281329664 linear /dev/md2 0
[root at localhost ~]# dmsetup table
foobar3: 0 281329664 linear 9:2 0
foobar2: 0 281329664 linear 9:2 0
foobar1: 0 281329664 linear 9:2 0
foobar: 0 281329664 linear 9:2 0

L.
-- 
Luca Berra -- bluca at comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \




More information about the dm-devel mailing list