From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zdenek Kabelac Date: Fri, 28 Aug 2015 13:52:07 +0200 Subject: [PATCH] libdm-iface: not output error message inside retry loops In-Reply-To: <55E0D18A020000A00004DDE2@relay2.provo.novell.com> References: <1440664241-6149-1-git-send-email-lwang@suse.com> <55DEFB92.5020106@redhat.com> <55E03ED2020000A000019F1D@relay2.provo.novell.com> <55E034E8.3010908@redhat.com> <55E0D18A020000A00004DDE2@relay2.provo.novell.com> Message-ID: <55E04B67.3060003@redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. Could you create / remove snapshots without any problems. I guess you should probably post failing logs for better diagnostic. Zdenek