강좌
클라우드/리눅스에 관한 강좌입니다.
클라우드 분류

[KT클라우드]SSD Volume 이용 방법

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

서버 접속
Windows 계열 서버는 원격 데스크톱을 통해 포트포워딩한 IP 및 포트 정보로 접속
Linux 계열 서버는 Putty와 같은 터미널 프로그램을 통해 포트포워딩한 IP 및 포트 정보로 접속
데이터 디스크 사용
[Windows 서버 계열 구성]
Windows 계열 서버는 제어판 > 관리도구 > “컴퓨터 관리” 실행 > 좌측 트리에서 저장소 밑의 ‘디스크 관리’ 선택 > 우측 하단의 디스크에서 초기화할 디스크 선택하여 우클릭 > “디스크 초기화” 항목 선택 후 초기화 및 파티션 생성을 통해 데이터 디스크 사용
volume을 추가한 후 클라우드 서버의 운영체제의 “제어판 →관리도구→컴퓨터 관리”를 실행합니다.
컴퓨터 관리에서는 “저장소→디스크 관리”를 선택하면 이때 “디스크 초기화 및 변환 마법사 시작”창이 팝업됩니다.
이후 파티션 생성 및 포맷을 시행합니다.
파티션 만들기 에서는 다음페이지의 그림과 같이 진행하도록 하시면 됩니다.
다음 과정 중에서는 “파티션 포맷”을 아래와 같이 설정하도록 하며, 빠른포맷을 선 택하고 볼륨 레이블은 지정하지 않아도 무방합니다
파일 시스템은 원하는 형태로 설정하면 되며, 파티션 생성 및 포맷을 완료하면 아래와 같이 추가한 volume 인식이 완료됩니다.
[Linux 계열 서버 Data Disk Mount - Non-LVM 구성]
리눅스 서버의 경우 추가될 volume은 콘솔에서 파티션 과정을 거쳐야 합니다.
VM 접속 후 fdisk –l 명령어로 attach 된 /dev/xvdc 100GB disk 확인
[root@Master-VM-hj ~]# fdisk -l
Disk /dev/xvdb: 107.4 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/xvda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0009b2b4
Device Boot Start End Blocks Id System/dev/xvda1 * 1 131 1048576 83 LinuxPartition 1 does not end on cylinder boundary./dev/xvda2 131 392 2097152 82 Linux swap / SolarisPartition 2 does not end on cylinder boundary./dev/xvda3 392 2611 17824768 83 LinuxDisk /dev/xvdc: 107.4 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000
포맷 및 파일시스템 생성 – mkfs.ext4 명령어 사용(ext3 사용 시 mkfs.ext3 사용)
[root@Master-VM-hj ~]# mkfs.ext4 /dev/xvdc
mke2fs 1.41.12 (17-May-2010)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks6553600 inodes, 26214400 blocks1310720 blocks (5.00%) reserved for the super user
First data block=0Maximum filesystem blocks=4294967296800 block groups32768 blocks per group, /dev/xvda1 ext4 1.1G 58M 946M 6% /mnt
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% /mnt
/etc/fstab 에 추가
[root@Master-VM-hj ~]# cat /etc/fstab
# /etc/fstab
/dev/xvdc /mnt ext4 defaults 0 0
※ 주의사항
CentOS 7점대의 경우 볼륨을 연결하지 않고 VM을 부팅하려면 볼륨 마운트 시 오류가 있어도 부팅이 가능하도록 하는 nofail 마운트 옵션을 추가해야 합니다.
(nofail 마운트 옵션을 추가하지 않으면 /etc/fstab에서 detach할 data disk의 내용을 지우지 않고 detach할 경우 부팅 불가)
ex: /dev/xvdc /mnt ext4 defaults 0 0 -> /dev/xvdc /mnt ext4 defaults,nofail 0 0

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,043 명
  • 현재 강좌수 :  35,853 개
  • 현재 접속자 :  95 명