¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
cinder backup-restore memo 2
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-04-07 (¸ñ) 11:42 Á¶È¸ : 2876
                                
backup-restore Volume Size °¡ ´Ù¸¦°æ¿ì ¾Æ·¡¿Í °°Àº °úÁ¤À» °ÅÄ¡¸é...ÀÛ¾÷°¡´É
(´Ü. È®ÀåµÇÁö ¾ÊÀº Volume¿¡ ¹é¾÷µÈ ÆÄÀÏÀ» »ç¿ëÇÒ¼ö ¾øÀ½. Çö½ÃÁ¡À» ±âÁØÀ¸·Î È®Àå --> ¹é¾÷ --> restore)

 Extend --> ¹é¾÷´ë»ó Volume-detach --> ¹é¾÷´ë»ó¿¡¼­ º¹±¸ÆÄÀÏ restore --> backup-create --> 
ÀÛ¾÷ÇÏ·Á´Â ÀνºÅϽº¿¡ restore --> volume-attach

# cinder list
....................................
| 306062c4-e73a-44d5-8070-b84da98b0b7d | available |   ceph_volume_5   |  5   |      -      |  false   |    False    |                                      |


:: 5G VolumeÀ» 30G VolumeÀ¸·Î È®Àå 
# cinder extend 306062c4-e73a-44d5-8070-b84da98b0b7d 30
# nova volume-detach bdb147a9-2cec-4914-9c63-f6a202140366 1d836f22-58c2-4e7d-b54e-7fc8af4676e4
# cinder list
....................................
| 306062c4-e73a-44d5-8070-b84da98b0b7d | available |   ceph_volume_5   |  30  |      -      |  false   |    False    |                                      |

:: ÇöÀç Volume ¹é¾÷
# cinder backup-create 306062c4-e73a-44d5-8070-b84da98b0b7d --name "5g_change_30g"

# cinder backup-restore --volume 306062c4-e73a-44d5-8070-b84da98b0b7d  3a928365-a67f-4805-9775-f5709bada161

# nova volume-attach bdb147a9-2cec-4914-9c63-f6a202140366 306062c4-e73a-44d5-8070-b84da98b0b7d


ÀνºÅϽº³»
:: ¸¶¿îÆ®Çؼ­ Volume Á¤º¸È®ÀÎ
# mkdir /BAK_DISK
# mount /dev/vdi1 /BAK_DISK
# df -Th
Filesystem     Type   Size  Used Avail Use% Mounted on
...................................
/dev/vdi1      ext4   4.8G  1.7G  2.9G  38% /BAK_DISK


-s <partition>      give partition size(s) in blocks
# fdisk -s /dev/vdi
31457280   ---> ¹é¾÷µÈ ÆÄÀÏÀº 5G ¿´Áö¸¸ 30G È®Àå

:: Volume È®Àå 
# umount /BAK_DISK
# fdisk -u /dev/vdi
-u <size>                 give sizes in sectors instead of cylinders

¡Ø Disk Resize Âü°í URL

# reboot
# e2fsck -f /dev/vdi1
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vdc1: 17/327680 files (0.0% non-contiguous), 494832/1310644 blocks

# resize2fs /dev/vdi1
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 7864312 blocks long.  Nothing to do!

# df -Th
Filesystem     Type   Size  Used Avail Use% Mounted on
...................................
/dev/vdI1      ext4    30G  1.7G   27G   7% /BAK_DISK


==> ´Ù½Ã µ¿ÀÏÇÏ°Ô..¾Æ·¡°úÁ¤....
Volume-detach --> backup-create --> backup-restore --> Volume-attach

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

 



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