From: Zdenek Kabelac Date: Tue, 9 Apr 2019 16:53:51 +0200 Subject: lvm snapshot creation ends with the error message In-Reply-To: <5CAC7071020000F90005E796@prv1-mh.provo.novell.com> References: <5CAC7071020000F90005E796@prv1-mh.provo.novell.com> Message-ID: <6fdd4655-4d3a-f12f-aa57-b97b752e437c@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 09. 04. 19 v 12:14 Gang He napsal(a): > Hello Guys, > > Our user complained a confused error message when create a LV snapshot successfully. > e.g. > lvcreate --snapshot "/dev/$vgroup/$volume" --name "$snapvol" -l '80%FREE' > returns the following: > Taking snapshot mongo_db-snap > device-mapper: remove ioctl on (254:2) failed: Device or resource busy <<== here, why we need to print this error message? since we can retry a few time before failure > Logical volume "mongo_db-snap" created. > > The related code is in libdm-iface.c file under libdm/ioctl. Hi The error should NOT happen - if you can observe this report - somewhere is something going out-of-sync. So please - post the version and -vvvv log of this case. It does look like somewhere is missing synchronization wait. Zdenek