Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Unable to delete iscsi disk

I have stopped the iscsi disk but when i click delete it now just hangs and i get unable to delete disk.

Is there a manual way to delete the iscsi disk?

Attached an image

View post on imgur.com

Alert!

Error deleting disk.

 

 

Typically this indicates there is an exiting client connection to the disk and hence Ceph fails to delete it.

To view if there is any connections(watchers)

rbd status -p pool_name image_name --cluster cluster_name

For an iSCSI disk 00002 , image_name in Ceph will be "image-00002", the pool_name will be "rbd" if you chose the default pool, cluster_name is what you named you cluster.

Sometimes it can take up to 15 min for a connection/watcher to be disconnected.

To manually delete an image

 rbd rm -p pool_name image_name --cluster cluster_name

 

Sorry.

 

What would the image name be? would that just be name of the iscsi disk?

root@INETC1422:/etc/ceph# ceph status --cluster PETASAN01
cluster:
id:     2a0f1885-ff98-4b74-b8d8-41d03df1023d
health: HEALTH_OK

services:
mon: 3 daemons, quorum INETC1422,INETC1423,INETC1424
mgr: INETC1422(active), standbys: INETC1423
osd: 5 osds: 5 up, 5 in

data:
pools:   1 pools, 256 pgs
objects: 7 objects, 4176 kB
usage:   6471 MB used, 4695 GB / 4701 GB avail
pgs:     256 active+clean

io:
client:   341 B/s rd, 0 op/s rd, 0 op/s wr

 

root@INETC1424:~# rbd status -p rbd image-00002 --cluster PETASAN01
rbd: error opening image image-00002: (2) No such file or directory

sorry, it is 00001

 

root@INETC1424:~# rbd rm -p rbd image-00001 --cluster PETASAN01
2018-12-19 16:45:33.925469 7fc2faffd700 -1 librbd::image::RemoveRequest: 0x5614ff234ba0 check_image_watchers: image has watchers - 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.

 

 

I am still unable to delete the image, does anyone have any ideas on this?

got it working now, it just deleted over night.

in version 2.3 we will make this delete call run in the background as a job.