¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
rbd: snapshot 'snapshot-xxxxxxxxxxxxxxxxx' is protected from removal.
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2019-04-16 (È­) 16:07 Á¶È¸ : 2737
                                
cinder delete <volume_id> 
 --> »èÁ¦°¡ ¾ÈµÊ 

# rbd list queens_volumes |grep 307d2271-a6ba-4e9a-8546-9af4a2da1361
volume-307d2271-a6ba-4e9a-8546-9af4a2da1361


# qemu-img info rbd:queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
image: json:{"driver": "raw", "file": {"pool": "queens_volumes", "image": "volume-307d2271-a6ba-4e9a-8546-9af4a2da1361", "driver": "rbd"}}
file format: raw
virtual size: 25G (26843545600 bytes)
disk size: unavailable
cluster_size: 4194304
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
snapshot-321cae32-85e8-40a8-9845-3234c2c31654snapshot-321cae32-85e8-40a8-9845-3234c2c31654    25G 1970-01-01 09:00:00   00:00:00.000


# rbd remove queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
2019-04-16 15:57:16.930801 7f377cff9700 -1 librbd::image::RemoveRequest: 0x55d46408be70 check_image_snaps: image has snapshots - not removing
Removing image: 0% complete...failed.
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.


# rbd snap purge queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
Removing all snapshots: 0% complete...failed.
rbd: snapshot 'snapshot-321cae32-85e8-40a8-9845-3234c2c31654' is protected from removal.


# rbd -p queens_volumes snap ls volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
SNAPID NAME                                           SIZE TIMESTAMP                
    67 snapshot-321cae32-85e8-40a8-9845-3234c2c31654 25GiB Thu Apr 11 14:07:46 2019 


# rbd snap rm queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361@snapshot-321cae32-85e8-40a8-9845-3234c2c31654
Removing snap: 2019-04-16 16:02:20.705307 7f8c537fe700 -1 librbd::Operations: snapshot is protected0% complete...failed.
rbd: snapshot 'snapshot-321cae32-85e8-40a8-9845-3234c2c31654' is protected from removal.


# rbd snap unprotect  queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361@snapshot-321cae32-85e8-40a8-9845-3234c2c31654


# rbd snap rm queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361@snapshot-321cae32-85e8-40a8-9845-3234c2c31654
Removing snap: 100% complete...done.


# cinder delete 307d2271-a6ba-4e9a-8546-9af4a2da1361
Request to delete volume 307d2271-a6ba-4e9a-8546-9af4a2da1361 has been accepted.

Á¤»ó »èÁ¦µÊ 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.