VM 파티션 크기 재할당하기
[root@sysdocu ~]# fdisk -l
Disk /dev/vda: 134.2 GB, 134217728000 bytes
139 heads, 8 sectors/track, 235741 cylinders
Units = cylinders of 1112 * 512 = 569344 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000594e0
Device Boot Start End Blocks Id System
/dev/vda1 2 47149 26213376 83 Linux
[root@sysdocu ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/vda1 ext4 25G 2.7G 21G 12% /
tmpfs tmpfs 3.9G 88K 3.9G 1% /dev/shm
[root@sysdocu ~]# fdisk -u /dev/vda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c').
Command (m for help): p
Disk /dev/vda: 134.2 GB, 134217728000 bytes
139 heads, 8 sectors/track, 235741 cylinders, total 262144000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000594e0
Device Boot Start End Blocks Id System
/dev/vda1 2048 52428799 26213376 83 Linux
Command (m for help): d
Selected partition 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First sector (8-262143999, default 8): 2048 // ★ 중요 : 시작을 2048로 해야 합니다.
Last sector, +sectors or +size{K,M,G} (2048-262143999, default 262143999):
Using default value 262143999
Command (m for help): p
Disk /dev/vda: 134.2 GB, 134217728000 bytes
139 heads, 8 sectors/track, 235741 cylinders, total 262144000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000594e0
Device Boot Start End Blocks Id System
/dev/vda1 2048 262143999 131070976 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 장치나 자원이 동작 중.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@sysdocu ~]# reboot
'리눅스 > OpenStack' 카테고리의 다른 글
모든 컴퓨트 노드가 down 으로 보이는 현상 (0) | 2018.06.09 |
---|---|
novnc 콘솔 페이지 ssl 파일 갱신시 (0) | 2018.06.05 |
ceilometer (몽고디비) 관련 에러시 점검사항들 (0) | 2018.04.23 |
windows 패스워드 초기화 (0) | 2018.04.18 |
IP 생성시 특정 대역으로 할당 받기 (0) | 2018.03.14 |