Re: [ceph-users] removing image of rbd mirroring

2016-10-20 Thread yan cui
Thanks Jason, I will try to use your method.

2016-10-19 17:23 GMT-07:00 Jason Dillaman :

> On Wed, Oct 19, 2016 at 6:52 PM, yan cui  wrote:
> > 2016-10-19 15:46:44.843053 7f35c9925d80 -1 librbd: cannot obtain
> exclusive
> > lock - not removing
>
> Are you attempting to delete the primary or non-primary image? I would
> expect any attempts to delete the non-primary image to fail since the
> non-primary image will automatically be deleted when mirroring is
> disabled on the primary side (or the primary image is deleted).
>
> There was an issue where the rbd-mirror daemon would not release the
> exclusive lock on the image after a forced promotion. The fix for that
> will be included in the forthcoming 10.2.4 release.
>
> If it is neither of these scenarios, can you re-run the "rbd rm"
> command with "--debug-rbd=20" option appended?
>
> Thanks,
>
> --
> Jason
>



-- 
Think big; Dream impossible; Make it happen.
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] removing image of rbd mirroring

2016-10-19 Thread Jason Dillaman
On Wed, Oct 19, 2016 at 6:52 PM, yan cui  wrote:
> 2016-10-19 15:46:44.843053 7f35c9925d80 -1 librbd: cannot obtain exclusive
> lock - not removing

Are you attempting to delete the primary or non-primary image? I would
expect any attempts to delete the non-primary image to fail since the
non-primary image will automatically be deleted when mirroring is
disabled on the primary side (or the primary image is deleted).

There was an issue where the rbd-mirror daemon would not release the
exclusive lock on the image after a forced promotion. The fix for that
will be included in the forthcoming 10.2.4 release.

If it is neither of these scenarios, can you re-run the "rbd rm"
command with "--debug-rbd=20" option appended?

Thanks,

-- 
Jason
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] removing image of rbd mirroring

2016-10-19 Thread yan cui
Hi all,

   We setup rbd mirroring between 2 clusters, but have issues when we want
to delete one image. Following is the  detailed info.
It reports that some other instance is still using it, which kind of makes
sense because we set up the mirror between 2 clusters.
What's the best practice to remove a image which is under rbd mirroring?
By the way, we did a pool based rbd mirroring.

rbd --cluster iad rm  -p mirror

2016-10-19 15:46:44.843053 7f35c9925d80 -1 librbd: cannot obtain exclusive
lock - not removing

Removing image: 0% complete...failed.

rbd: 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.
-- 
Think big; Dream impossible; Make it happen.
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com