On Friday, 16 July 2021 12:31:34 CEST Gianluca Cecchi wrote: > On Fri, Jul 16, 2021 at 11:15 AM Vojtech Juranek <[email protected]> > > wrote: > > > What to do to crosscheck what is using the device and so preventing the > > > "-f" to complete? > > > > can you try > > > > dmsetup info /dev/mapper/36090a0d800851c9d2195d5b837c9e328 > > > > and check "Open count" filed to see if there is still anything open? > > > > Also, you can try > > > > fuser /dev/dm-2 > > > > to see which process is using the device > > [root@ov301 ~]# dmsetup info /dev/mapper/36090a0d800851c9d2195d5b837c9e328 > Name: 36090a0d800851c9d2195d5b837c9e328 > State: ACTIVE > Read Ahead: 256 > Tables present: LIVE > Open count: 1
This means there's some open connection. As lsof or fuser doesn't show
anything I wonder how this could happen.
Theoretically (not tested as I actually don't know how to reproduce this) and
on your own risk:-), you can try
dmsetup suspend /dev/mapper/36090a0d800851c9d2195d5b837c9e328
dmsetup clear /dev/mapper/36090a0d800851c9d2195d5b837c9e328
dmsetup wipe_table /dev/mapper/36090a0d800851c9d2195d5b837c9e328
which should remove any stale connection. After that dmsetup info should show
Open count 0 and multipath -f 36090a0d800851c9d2195d5b837c9e328 should work
> Event number: 0
> Major, minor: 253, 2
> Number of targets: 1
> UUID: mpath-36090a0d800851c9d2195d5b837c9e328
>
> [root@ov301 ~]# fuser /dev/dm-2
> [root@ov301 ~]# echo $?
> 1
> [root@ov301 ~]# ll /dev/dm-2
> brw-rw----. 1 root disk 253, 2 Jul 15 11:28 /dev/dm-2
>
> I'm still unable to remove it:
> [root@ov301 ~]# multipath -f 36090a0d800851c9d2195d5b837c9e328
> Jul 16 12:25:11 | 36090a0d800851c9d2195d5b837c9e328: map in use
> [root@ov301 ~]#
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/[email protected]/message/6FB6FRML44TOVIHGMVPCCL5BMGCECVNX/

