¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
Volume Resize (Extend)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-10-07 (±Ý) 11:04 Á¶È¸ : 5419
                                
# cinder list 
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
|                  ID                  |   Status  |    Name   | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
| eabfeedf-0942-4217-b51a-7bb0f199424e |   in-use  | Volume_01 |  30  |     ceph    |  false   | 7b11a435-aaae-42d7-ba4d-179d91a32dc5 |
| ef656b49-9919-428f-a981-33487127520d |   in-use  | Volume_02 |  30  |     ceph    |  false   | 57b401d2-a7d2-4fd8-80df-0003b026b5ec |
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+

# cinder extend eabfeedf-0942-4217-b51a-7bb0f199424e 20
ERROR: Invalid volume: Volume eabfeedf-0942-4217-b51a-7bb0f199424e status must be available to extend, but current status is: in-use. (HTTP 400) (Request-ID: req-c72e9318-6f3f-4cf9-8eed-ded737b871aa)


:: Volume »óÅ°¡ in-use À϶§ ÀÛ¾÷À» À§Á… detach
nova volume-detach 7b11a435-aaae-42d7-ba4d-179d91a32dc5 eabfeedf-0942-4217-b51a-7bb0f199424e


:: È®Àå 
   È®Àå½Ã Volume Size ¸í½Ã´Â Ãß°¡ºÐÀÌ ¾Æ´Ñ.... ${±âÁ¸ Size 30G} + ${Ãß°¡ Volume Size}
   Áï ¿©±â¼­´Â Àüüũ±â 50G (30 + 20(Ãß°¡º¼·ý))
# cinder extend eabfeedf-0942-4217-b51a-7bb0f199424e 20
ERROR: Invalid input received: New size for extend must be greater than current size. (current: 30, extended: 20). (HTTP 400) (Request-ID: req-d314465e-63c0-4ca0-b0ff-1c73e2487fbd)

# cinder extend eabfeedf-0942-4217-b51a-7bb0f199424e 50
# cinder list
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
|                  ID                  |   Status  |    Name   | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
| eabfeedf-0942-4217-b51a-7bb0f199424e | available | Volume_01 |  50  |     ceph    |  false   |                                      |
| ef656b49-9919-428f-a981-33487127520d |   in-use  | Volume_02 |  30  |     ceph    |  false   | 57b401d2-a7d2-4fd8-80df-0003b026b5ec |
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+

# nova volume-attach 7b11a435-aaae-42d7-ba4d-179d91a32dc5 eabfeedf-0942-4217-b51a-7bb0f199424e
+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| device   | /dev/vdb                             |
| id       | eabfeedf-0942-4217-b51a-7bb0f199424e |
| serverId | 7b11a435-aaae-42d7-ba4d-179d91a32dc5 |
| volumeId | eabfeedf-0942-4217-b51a-7bb0f199424e |
+----------+--------------------------------------+


ÀÌÈÄ ÀνºÅϽº¿¡¼­´Â È®ÀåµÈ Volume Size ·Î ÀÛ¾÷ÇÊ¿ä
:: Sector À§Ä¡ È®ÀåµÈ°É·Î ¼öÁ¤ 
# fdisk /dev/vdc1 
Âü°í : http://www.chonnom.com/bbs/board.php?bo_table=OpenStack&wr_id=122

# e2fsck -f /dev/vdc1 
e2fsck 1.42.9 (4-Feb-2014)
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: 19/1966080 files (0.0% non-contiguous), 2526715/7864064 blocks

# resize2fs /dev/vdc1 
resize2fs 1.42.9 (4-Feb-2014)
Resizing the filesystem on /dev/vdc1 to 13106944 (4k) blocks.
The filesystem on /dev/vdc1 is now 13106944 blocks long.

# mount /dev/vdc1 /mnt
# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/vda1        5027456 3384836   1364196  72% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1014204       4   1014200   1% /dev
tmpfs             205004     348    204656   1% /run
none                5120       0      5120   0% /run/lock
none             1025012       0   1025012   0% /run/shm
none              102400       0    102400   0% /run/user
/dev/vdc1       51474044 9490288  39345988  20% /mnt


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

 



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