스토리지 추가 하는것이다.
1
마운드 disk1 폴더 생성
mkdir /disk1
2
# 생성하여 attach 한 디스크 파티션
Server > 스토리지 > 스토리지 생성> kvm > disk1
스토리지 설정> 서버에 연결
[root@ro810-script ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.8G 0 1.8G 0% /dev/shm
tmpfs 1.8G 8.5M 1.8G 1% /run
tmpfs 1.8G 0 1.8G 0% /sys/fs/cgroup
/dev/vda2 9.0G 4.6G 4.5G 51% /
/dev/vda1 1014M 327M 688M 33% /boot
tmpfs 367M 0 367M 0% /run/user/0
3
fdisk
포맷
마운드
4
[root@ro94-nce-rscript ~]# fdisk /dev/vdb
Welcome to fdisk (util-linux 2.37.4).
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.
Created a new DOS disklabel with disk identifier 0xd8e26153.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-20971519, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-20971519, default 20971519):
Created a new partition 1 of type 'Linux' and of size 10 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@ro94-nce-rscript ~]#
5
mkfs.ext4 /dev/vdb1
mount /dev/vdb1 /disk1
df -h
cp -rf /etc/* /disk1/
cd /disk1
ls
1
서버 선택
2
서버 관리 및 설정 변경 > 내서버 이미지 생성
3
ro94-nce-script-img
4
Server image > 공유권한 설정
1
2
3
다음
https://brunch.co.kr/@topasvga/4761