From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Mick Subject: Re: some questions about rbd Date: Mon, 22 Oct 2012 23:25:49 -0700 Message-ID: <5086386D.2030002@inktank.com> References: <50861B39.8010008@inktank.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:56103 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452Ab2JWGZx (ORCPT ); Tue, 23 Oct 2012 02:25:53 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr4so204983pbb.19 for ; Mon, 22 Oct 2012 23:25:53 -0700 (PDT) In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: jie sun <0maidou0@gmail.com> Cc: ceph-devel I don't think we support that; I'm not sure how hard it would be. Somehow we'd have to keep knowledge of the open image handle around to fail further I/O requests, it seems. Josh? On 10/22/2012 10:44 PM, jie sun wrote: > Yes. I want to delete the image by force, even the vm is still using it. > > 2012/10/23 Dan Mick : >> >> >> On 10/22/2012 08:10 PM, jie sun wrote: >>> >>> Hi, >>> >>> I create a image and map it to a virtual machine,and then mkfs and mount >>> it. >>> >>> I want to remove the image from mon server forcely, but it says >>> "Removing image: 99% complete...failed. >>> delete error: image still has watchers >>> This means the image is still open or the client using it crashed. >>> Try again after closing/unmapping it or waiting 30s for the crashed >>> client to timeout." >>> >>> I want to know is there any other way to remove it by force? >> >> >> Are you saying the vm still has the device open and is trying to use it? >> But even so, you want the image to be deleted? >>