| | 1 | = OpenStack |
| | 2 | |
| | 3 | == ゴミとなったCinderボリュームを削除 |
| | 4 | |
| | 5 | Cinderを利用していて、ごみボリュームが出ることがある。deletingのまま削除できなくなったボリュームを削除するには、cinderテーブルを下記のように直接書き換えるといいかも。 |
| | 6 | |
| | 7 | {{{ |
| | 8 | # mysql cinder -e "SELECT deleted,id,status FROM volumes WHERE status='deleting' ;" |
| | 9 | +---------+--------------------------------------+----------+ |
| | 10 | | deleted | id | status | |
| | 11 | +---------+--------------------------------------+----------+ |
| | 12 | | 0 | 12ea03fc-3f4d-4775-a96e-2250d216d4ac | deleting | |
| | 13 | | 0 | 492c308d-6f79-4fc9-8756-5e177cceb2f5 | deleting | |
| | 14 | | 0 | a8f30f1b-d39f-48a4-9e95-979b277c81fe | deleting | |
| | 15 | | 0 | b3bd12b9-dc0d-4c2d-8bbd-3225fe814b61 | deleting | |
| | 16 | +---------+--------------------------------------+----------+ |
| | 17 | }}} |
| | 18 | {{{ |
| | 19 | # mysql cinder -e "UPDATE volumes SET deleted='1',status='deleted' WHERE status='deleting' ;" |
| | 20 | }}} |