[lvm-devel] [PATCH] libdm-iface: not output error message inside retry loops

Liuhua Wang lwang at suse.com
Mon Aug 31 08:39:32 UTC 2015


Hi Zdenek,

>>> On 8/28/2015 at 07:52 PM, in message <55E04B67.3060003 at redhat.com>, Zdenek
Kabelac <zkabelac at redhat.com> wrote: 
> Dne 28.8.2015 v 13:24 Liuhua Wang napsal(a):
> >
> > Thanks for your reply.
> >
> >>> Common scenario:
> >>>
> >>> The major reason for retry is 'unpredictable'  udev event processing
> >>> i.e. you run  'umount' -> fires watch-rule -> lvremove  could have failed -
> >>> retry fixes this problem.
> >>
> >>>    We first found this problem when we were testing lvcreate-usage.sh 
> included in
> >>>    lvm2-2.02.120 package. The case always failed due to the following 
> message:
> >>>     device-mapper: remove ioctl on (253:6) failed: Device or resource busy
> >>>    [ 0:01]   Node @TESTDIR@/dev/mapper/@PREFIX at vg-LV2-cow was not removed by 
> udev. Falling >>back to direct node removal.
> >
> >> Looks like udev issue.
> > You mean udev cookie related problem? Because I see udev cookie add and 
> remove
> > a little weird.
> >
> 
> So the question #1 -  are you using upstream lvm2 udev rules ?
> (matching with install package)
> 
> Are there any modification made to upsteam lvm2 udev rules?
> (Debian is usually having problems with those)
> 
> The rules are quite complex and any 'touch 'to them should be consulted with 
> 
> upstream authors.
Yes, udev rules have been modified a little, but even I replace them all with
upstream rules and reloaded, still has the issue.
 
> Could you create / remove snapshots without any problems.
> 
> I guess you should probably post failing logs for better diagnostic.

I attached my test log.

# lvcreate -s -L20M -nsnap vg/lv
  Logical volume "snap" created.

# lsblk 
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
[...]
loop1           7:1    0   50M  0 loop 
└─vg-lv-real  253:1    0   32M  0 lvm  
  ├─vg-lv     253:0    0   32M  0 lvm  
  └─vg-snap   253:3    0   32M  0 lvm  
loop2           7:2    0   50M  0 loop 
└─vg-snap-cow 253:2    0   20M  0 lvm  
  └─vg-snap   253:3    0   32M  0 lvm  

 # lvremove -ff vg/snap -vvvvv >lvremove-snap-failed.log 2>&1

Please see the detailed log attatched.
Thank you very much.

Regards,
Liuhua
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvremove-snap-failed.log
Type: application/octet-stream
Size: 61887 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20150831/0af6c74f/attachment.obj>


More information about the lvm-devel mailing list