[root@blockchain-naver-bastion01-dev ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 9.1M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/xvda2 49G 2.3G 47G 5% /
/dev/xvda1 1014M 183M 832M 18% /boot
tmpfs 377M 0 377M 0% /run/user/0
1
해당 서버 선택 > 스토리지 생성
seo-disk1
10
추가
// 최소 10GB ~ 2000GB (2T)까지 이다.
확인
2
Server > Storage에서 생성된 스토리지 확인
3
서버에 로그인
마운트 포인트 생성
mkdir /data
4
파티션 하기
[root@blockchain-naver-bastion01-dev ~]# fdisk /dev/xvdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x8a32efa9.
Command (m for help): n ---------- 새 파티션
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p ------------ 프라이머리
Partition number (1-4, default 1): ------------- 엔터
First sector (2048-20971519, default 2048): ------------- 엔터
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519): ------------- 엔터
Using default value 20971519
Partition 1 of type Linux and of size 10 GiB is set
Command (m for help): w ------------ 저장
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
5
포맷
mkfs.ext4 /dev/xvdb1
6
마운트
mount /dev/xvdb1 /data
1
[root@blockchain-naver-bastion01-dev data]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 9.0M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/xvda2 49G 2.3G 47G 5% /
/dev/xvda1 1014M 183M 832M 18% /boot
tmpfs 377M 0 377M 0% /run/user/0
/dev/xvdb1 9.8G 37M 9.2G 1% /data
2
데이터 생성
touch /data/1111
3
[root@blockchain-naver-bastion01-dev ~]# cd /data
[root@blockchain-naver-bastion01-dev data]# ls -al
total 20
drwxr-xr-x 3 root root 4096 Apr 5 20:26 .
dr-xr-xr-x. 19 root root 269 Apr 5 20:19 ..
-rw-r--r-- 1 root root 0 Apr 5 20:26 1111
drwx------ 2 root root 16384 Apr 5 20:25 lost+found
다음 공부
https://brunch.co.kr/@topasvga/2341