일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- ADFS 이중화
- Azure
- Exchange Server
- MSSQL 2012
- Docker
- 하이퍼바이저
- vmware vsphere
- ELK 설치
- awx
- AWS S3
- ADFS 구성 방법 및 이중화
- Application Gateway
- Active Directory
- vSphere
- ADFS proxy
- 도커
- vCenter Syslog collector
- ADFS SSO
- Kubernetes
- Exchange 2003
- AWS
- ADFS Traffic Manager
- ansible
- AWS EBS
- AD Migration
- ELK
- Active Directory Migration
- vCenter
- AWS EFS
- mongodb 설치
- Today
- Total
practice makes perfect
AWS EC2 Root Volume 설정 본문
AWS EC2 Root Volume 설정
- AWS 인스턴스 경우 Amazon Linux 가 아니면 처음 생성 시 Root Volume을 사용자 지정 Size 입력 후
생성하면 기본 Size로 밖에 적용이 되지 않는다.
- 파티션 재설정을 통하여 지정한 DISK 용량을 반영
[볼륨 사이즈 확인]
[root@ip-10-10-10-146 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 8G 0 part /
[root@ip-10-10-10-146 ~]# resize2fs /dev/xvda1
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 2096896 blocks long. Nothing to do!
[볼륨 파티션 설정]
[root@ip-10-10-10-146 ~]# fdisk /dev/xvda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/xvda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 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: 0x00051282
Device Boot Start End Blocks Id System
/dev/xvda1 * 2048 16777215 8387584 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 (63-41943039, default 63): 2048
Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): enter
Using default value 41943039
Command (m for help): p
Disk /dev/xvda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 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: 0x00051282
Device Boot Start End Blocks Id System
/dev/xvda1 2048 41943039 20970496 83 Linux
Command (m for help): a
Partition number (1-4): 1
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: Device or resource busy.
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@ip-10-10-10-146 ~]#
[root@ip-10-10-10-146 ~]#
[root@ip-10-10-10-146 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 8G 0 part /
[root@ip-10-10-10-146 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.8G 752M 6.7G 10% /
tmpfs 498M 0 498M 0% /dev/shm
[root@ip-10-10-10-146 ~]#
[root@ip-10-10-10-146 ~]#
[root@ip-10-10-10-146 ~]# reboot
[리부팅 후 확인]
[centos@ip-10-10-10-146 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 756M 18G 4% /
tmpfs 498M 0 498M 0% /dev/shm
[centos@ip-10-10-10-146 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
'Public Cloud > AWS' 카테고리의 다른 글
SSH Tunneling 사용 방법 (0) | 2019.01.26 |
---|---|
AWS CloudTrail (0) | 2018.11.10 |
AWS ELB (0) | 2018.10.27 |
AWS Storage 별 차이점 (0) | 2018.10.27 |
AWS EFS 개념 및 구성 방법 (0) | 2018.10.27 |