Unable to delete iscsi disk
Chrisjmuk
17 Posts
December 19, 2018, 4:17 pmQuote from Chrisjmuk on December 19, 2018, 4:17 pmI 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?
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?
Chrisjmuk
17 Posts
December 19, 2018, 4:23 pmQuote from Chrisjmuk on December 19, 2018, 4:23 pmAttached an image
https://imgur.com/a/SarkVVT
Alert!
Error deleting disk.
Attached an image
Alert!
Error deleting disk.
admin
2,930 Posts
December 19, 2018, 4:38 pmQuote from admin on December 19, 2018, 4:38 pmTypically 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
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
Chrisjmuk
17 Posts
December 19, 2018, 4:41 pmQuote from Chrisjmuk on December 19, 2018, 4:41 pmSorry.
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
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
Last edited on December 19, 2018, 4:42 pm by Chrisjmuk · #4
Chrisjmuk
17 Posts
December 19, 2018, 4:45 pmQuote from Chrisjmuk on December 19, 2018, 4:45 pmroot@INETC1424:~# rbd status -p rbd image-00002 --cluster PETASAN01
rbd: error opening image image-00002: (2) No such file or directory
root@INETC1424:~# rbd status -p rbd image-00002 --cluster PETASAN01
rbd: error opening image image-00002: (2) No such file or directory
Chrisjmuk
17 Posts
December 19, 2018, 4:47 pmQuote from Chrisjmuk on December 19, 2018, 4:47 pmsorry, 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.
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.
Chrisjmuk
17 Posts
December 20, 2018, 9:10 amQuote from Chrisjmuk on December 20, 2018, 9:10 amI am still unable to delete the image, does anyone have any ideas on this?
I am still unable to delete the image, does anyone have any ideas on this?
Chrisjmuk
17 Posts
December 20, 2018, 9:53 amQuote from Chrisjmuk on December 20, 2018, 9:53 amgot it working now, it just deleted over night.
got it working now, it just deleted over night.
admin
2,930 Posts
December 20, 2018, 9:15 pmQuote from admin on December 20, 2018, 9:15 pmin version 2.3 we will make this delete call run in the background as a job.
in version 2.3 we will make this delete call run in the background as a job.
Unable to delete iscsi disk
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 19, 2018, 4:17 pmI 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?
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?
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 19, 2018, 4:23 pmAttached an image
https://imgur.com/a/SarkVVT
Alert!
Error deleting disk.
Attached an image
Alert!
Error deleting disk.
admin
2,930 Posts
Quote from admin on December 19, 2018, 4:38 pmTypically 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
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
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 19, 2018, 4:41 pmSorry.
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_OKservices:
mon: 3 daemons, quorum INETC1422,INETC1423,INETC1424
mgr: INETC1422(active), standbys: INETC1423
osd: 5 osds: 5 up, 5 indata:
pools: 1 pools, 256 pgs
objects: 7 objects, 4176 kB
usage: 6471 MB used, 4695 GB / 4701 GB avail
pgs: 256 active+cleanio:
client: 341 B/s rd, 0 op/s rd, 0 op/s wr
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
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 19, 2018, 4:45 pmroot@INETC1424:~# rbd status -p rbd image-00002 --cluster PETASAN01
rbd: error opening image image-00002: (2) No such file or directory
root@INETC1424:~# rbd status -p rbd image-00002 --cluster PETASAN01
rbd: error opening image image-00002: (2) No such file or directory
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 19, 2018, 4:47 pmsorry, 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.
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.
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 20, 2018, 9:10 amI am still unable to delete the image, does anyone have any ideas on this?
I am still unable to delete the image, does anyone have any ideas on this?
Chrisjmuk
17 Posts
Quote from Chrisjmuk on December 20, 2018, 9:53 amgot it working now, it just deleted over night.
got it working now, it just deleted over night.
admin
2,930 Posts
Quote from admin on December 20, 2018, 9:15 pmin version 2.3 we will make this delete call run in the background as a job.
in version 2.3 we will make this delete call run in the background as a job.