[Oracle Cloud Free Tier] block volume (블럭볼륨) 활용하기

yes 2025.03.09 00:22:07

[Oracle Cloud Free Tier] block volume (블럭볼륨) 활용하기

 

 

이번에 오라클프리티어를 다음과 같이 꾸몄다.

1. Arm 3cpu 18ram   (메인활용)

2. Arm 1cpu 6ram    (테스트활용)

3. block volume 100G    (메인에 붙일 예정)

 

 

 

몇가지 설정법

- auto tune 추천

 

Untitled-2 copy.JPG

 

 

- paravirtualized 추천   (iscsi 보다 성능이 좋다고 한다)

 

Untitled-3 copy.JPG

 

 

 

- fdisk 로 확인

ubuntu@hostname:~$ sudo fdisk -l
Disk /dev/loop0: 48.82 MiB, 51191808 bytes, 99984 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 /dev/loop1: 48.82 MiB, 51191808 bytes, 99984 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 /dev/loop2: 26.23 MiB, 27504640 bytes, 53720 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 /dev/loop3: 33.71 MiB, 35344384 bytes, 69032 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 /dev/sda: 46.58 GiB, 50010783744 bytes, 97677312 sectors
Disk model: BlockVolume
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disklabel type: gpt
Disk identifier: 68B66128-26F4-40F2-88EA-61A85434E7E5

Device      Start      End  Sectors  Size Type
/dev/sda1  206848 97677278 97470431 46.5G Linux filesystem
/dev/sda15   2048   204800   202753   99M EFI System

Partition table entries are not in disk order.


Disk /dev/sdb: 100 GiB, 107374182400 bytes, 209715200 sectors
Disk model: BlockVolume
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes

 

 

 

- df -h 로 확인

ubuntu@hostname:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.8G  2.0M  1.8G   1% /run
efivarfs        256K   14K  243K   6% /sys/firmware/efi/efivars
/dev/sda1        45G  5.3G   40G  12% /
tmpfs           8.8G  1.2M  8.8G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sda15       98M  6.3M   92M   7% /boot/efi
tmpfs           1.8G  4.0K  1.8G   1% /run/user/1001

 

 

 

- format

ubuntu@hostname:~$ sudo mkfs.ext4 /dev/sdb
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 26214400 4k blocks and 6553600 inodes
Filesystem UUID: d6ce7836-7dc0-44a5-8502-c65bf4a43401
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done
Writing inode tables: done
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done

 

 

 

- mount

ubuntu@hostname:~$ sudo mkdir /vo3
ubuntu@hostname:~$ sudo mount /dev/sdb /vo3
ubuntu@hostname:~$ sudo lsblk
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0     7:0    0 48.8M  1 loop /snap/core18/2848
loop1     7:1    0 48.8M  1 loop /snap/core18/2857
loop2     7:2    0 26.2M  1 loop /snap/oracle-cloud-agent/73
loop3     7:3    0 33.7M  1 loop /snap/snapd/21761
sda       8:0    0 46.6G  0 disk
├─sda1    8:1    0 46.5G  0 part /srv/jail/admin1/home/admin1
│                                /
└─sda15   8:15   0   99M  0 part /boot/efi
sdb       8:16   0  100G  0 disk /vo3

 

 

 

- nano 명령어가 없다면, 설치

ubuntu@hostname:~$ sudo apt install nano -y

 

 

- 자동마운트 설정

sudo nano /etc/fstab

아래 내용을 입력

/dev/sda /vo3 ext4 defaults,noatime,nofail 0 0

 

Untitled-1 copy.JPG