클라우드 분류
[KT클라우드]Disk
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,109 조회
- 0 추천
-
목록
본문
데이터 디스크 생성
KT Cloud server > Disk > “디스크 생성” 클릭
![](https://cloud.kt.com/portal/user-guide/images/03020401.jpg)
위치, 이름, 상품, 용량 선택 후 생성하기 (필수)
제공하는 스토리지 종류는 Zone별로 상이함
- HDD(일반), SSD-Provisioned: Central-A, Central-B, Seoul-M, US-West
- HDD(일반), SSD-Provisioned, SSD: Seoul M2
- HDD(일반): KOR-HA, JPN
SSD-Provisioned 선택한 경우에만 ‘스토리지 IOPS’ 선택 후 “신청” 클릭
![](https://cloud.kt.com/portal/user-guide/images/03020402.jpg)
디스크 생성 확인
대상 서버 선택 후 연결하기 버튼 클릭해 mount하여 사용
![](https://cloud.kt.com/portal/user-guide/images/03020403.jpg)
생성한 디스크 서버에 연결
![](https://cloud.kt.com/portal/user-guide/images/03020404.jpg)
서버리스트에서 연결된 디스크 리스트 확인
KT Cloud server > 클라우드 서버리스트 > Attach한 서버 선택 > 추가메뉴 선택 > Disk 관리 항목에서 디스크 attach 상태 확인
![](https://cloud.kt.com/portal/user-guide/images/03020405.png)
해당 메뉴에서 디스크 추가 가능
![](https://cloud.kt.com/portal/user-guide/images/03020406.jpg)
데이터 디스크 사용 (Windows)
Windows 계열 서버는 제어판 > 관리도구 > “컴퓨터 관리” 실행 > 좌측 트리에서 저장소 밑의 ‘디스크 관리’ 선택 > 우측 하단의 디스크에서 초기화할 디스크 선택하여 우클릭 > “디스크 초기화” 항목 선택 후 초기화 및 파티션 생성을 통해 데이터 디스크 사용
Volume을 추가한 후 클라우드 서버의 운영체제의 “제어판 →관리도구→컴퓨터 관리”를 실행합니다.
컴퓨터 관리에서는 “저장소→디스크 관리”를 선택하면 이때 “디스크 초기화 및 변환 마법사 시작”창이 팝업됩니다.
![](https://cloud.kt.com/portal/user-guide/images/03020407.png)
해당 가상 하드 디스크 부분에 마우스 오른쪽 버튼을 클릭한 후, “디스크 초기화”를 선택하여 실행합니다.
파티션 만들기 에서는 다음페이지의 그림과 같이 진행하도록 하시면 됩니다. 다음 과정 중에서는 “파티션 포맷”을 아래와 같이 설정하도록 하며, 빠른포맷을 선 택하고 볼륨 레이블은 지정하지 않아도 무방합니다.
![](https://cloud.kt.com/portal/user-guide/images/03020408.png)
![](https://cloud.kt.com/portal/user-guide/images/03020409.png)
![](https://cloud.kt.com/portal/user-guide/images/03020410.png)
![](https://cloud.kt.com/portal/user-guide/images/03020411.png)
![](https://cloud.kt.com/portal/user-guide/images/03020412.png)
![](https://cloud.kt.com/portal/user-guide/images/03020413.png)
파일 시스템은 원하는 형태로 설정하면 되며, 파티션 생성 및 포맷을 완료하면 아래와 같이 추가한 volume 인식이 완료됩니다.
![](https://cloud.kt.com/portal/user-guide/images/03020414.png)
데이터 디스크 사용 (Linux Non-LVM 구성)
리눅스 서버의 경우 추가될 volume은 콘솔에서 파티션 과정을 거쳐야 합니다.
VM 접속 후 fdisk –l 명령어로 attach 된 /dev/xvdc 100GB disk 확인
[root@Master-VM-hj ~]# fdisk -l
Disk /dev/xvdb: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000Disk /dev/xvda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0009b2b4
Device Boot Start End Blocks Id System/
dev/xvda1 * 1 131 1048576 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/xvda2 131 392 2097152 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/xvda3 392 2611 17824768 83 Linux
Disk /dev/xvdc: 107.4 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000
포맷 및 파일시스템 생성 – mkfs.ext4 명령어 사용(ext3 사용 시 mkfs.ext3 사용)
[root@Master-VM-hj ~]# mkfs.ext4 /dev/xvdcmke2fs
1.41.12 (17-May-2010)
Filesystem label=OS type: Linux
Block size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214400 blocks
1310720 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296800 block groups
32768 blocks per group, 32768 fragments per group8192 inodes per group
Superblock backups stored on blocks: 229376, 294912, 819200, 884736, 1605632, 2654208, 11239424, Writing inode tables: doneCreating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 36 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.
Disk Mount 및 확인
[root@Master-VM-hj ~]# mount /dev/xvdc /mnt
[root@Master-VM-hj ~]# df -TH
Filesystem Type Size Used Avail Use% Mounted on/dev/xvda3 ext4 18G 1.1G 17G 7% /tmpfs tmpfs 521M 0 521M 0% /dev/shm/dev/xvda1 ext4 1.1G 58M 946M 6% /boot
/etc/fstab 에 추가
[root@Master-VM-hj ~]# cat /etc/fstab# /etc/fstab
# Created by anaconda on Fri Jul 10 10:28:57 2015
## Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=22f17cf6-4750-45e3-a280-33df4c92c4de / ext4 defaults 1 1
UUID=a1fd08b9-428a-4177-b6e1-8b65817e2cc6 /boot ext4 defaults 1 2
UUID=76d1cc7c-7ff6-4615-849b-a00919656fe8 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs / sys sysfs defaults 0 0proc
/proc proc defaults 0 0
/dev/xvdc /mnt ext4 defaults 0 0
"무단배포금지: 클라우드포털(www.linux.co.kr)의 모든 강좌는 저작권에 의해 보호되는 콘텐츠입니다. 무단으로 복제하여 배포하는 행위는 금지되어 있습니다."
관련자료
-
링크
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.