brunch

16. 네이버클라우드 실습-NAS 스토리지 생성

by Master Seo


<1> 리눅스용 NFS 생성

<2> 리눅스에서 nfs 사용을 위해 tool 설치



<1> 리눅스용 NFS 생성


1

NAS > Volume


10 nas.png



seonas

500기가

20 nas 2.png


2

NFS에 접근 가능한 서버를 추가한다.

30 server.png


3

NAS를 생성한다.

만들어진 NAS의 마운트 정보 확인

169.254.3.6:/n1328960_seonas


마운트 정보를 notepad에 복사해 놓는다.

40 mount정보.png




4

NAS사용자 가이드

https://docs.ncloud.com/ko/storage/storage-4-1.html




<2> 리눅스에서 nfs 사용을 위해 tool 설치


1

nfs-utils 설치

[root@s176e9990e64 ~]# yum install nfs-utils -y


2

rpc 데몬이 있어야 한다.

[root@s176e9990e64 ~]# systemctl start rpcbind

[root@s176e9990e64 ~]# systemctl enable rpcbind


3

디렉토리 만들고 마운트 하자.

mkdir /mnt/nas


만들어진 NAS의 마운트 정보 확인

169.254.3.6:/n1328960_seonas


100 nas.png


4

마운트 하기

mount -t nfs 169.254.3.6:/n1328960_seonas /mnt/nas


[root@s176e9990e64 ~]# mount -t nfs 169.254.3.6:/n1328960_seonas /mnt/nas

[root@s176e9990e64 ~]#

[root@s176e9990e64 ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/xvda2 49G 2.1G 47G 5% /

devtmpfs 3.8G 0 3.8G 0% /dev

tmpfs 3.7G 0 3.7G 0% /dev/shm

tmpfs 3.7G 8.4M 3.7G 1% /run

tmpfs 3.7G 0 3.7G 0% /sys/fs/cgroup

/dev/xvda1 1014M 140M 875M 14% /boot

tmpfs 756M 0 756M 0% /run/user/0

169.254.3.6:/n1328960_seonas 500G 320K 500G 1% /mnt/nas

[root@s176e9990e64 ~]#



5

확인

[root@s176e9990e64 ~]# cp /var/www/html/index.html /mnt/nas/

[root@s176e9990e64 ~]# cd /mnt/nas/

[root@s176e9990e64 nas]# ls

index.html



다음은 모니터링을 알아보자~~


https://brunch.co.kr/@topasvga/1405



감사합니다.



keyword
매거진의 이전글15. 네이버클라우드 실습-Mysql db 생성