본문으로 바로가기
728x90

1. vdo, kmod-kvdo 패키지 설치

[root@JeongYD01 ~]# yum install -y vdo kmod-kvdo
Last metadata expiration check: 0:10:14 ago on Mon Dec  7 00:40:06 2020.
Package vdo-6.2.2.117-13.el8.x86_64 is already installed.
Package kmod-kvdo-6.2.2.117-65.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

 

2. 사용할 device 확인 후 vdo 생성

[root@JeongYD01 ~]# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    0   25G  0 disk
|-sda1        8:1    0    1G  0 part /boot
`-sda2        8:2    0   24G  0 part
  |-cl-root 253:0    0   22G  0 lvm  /
  `-cl-swap 253:1    0    2G  0 lvm  [SWAP]
sdb           8:16   0    1G  0 disk
sdc           8:32   0    1G  0 disk
sdd           8:48   0    5G  0 disk
sr0          11:0    1 1024M  0 rom

[root@JeongYD01 ~]# vdo create --name=vdo_data --device /dev/sdd --vdoLogicalSize=40G
Creating VDO vdo_data
      The VDO volume can address 2 GB in 1 data slab.
      It can grow to address at most 16 TB of physical storage in 8192 slabs.
      If a larger maximum size might be needed, use bigger slabs.
Starting VDO vdo_data
Starting compression on VDO vdo_data
VDO instance 0 volume is ready at /dev/mapper/vdo_data

 

3. 생성된 vdo 상태 확인

[root@JeongYD01 ~]# vdostats --human-readable
Device                    Size      Used Available Use% Space saving%
/dev/mapper/vdo_data      5.0G      3.0G      2.0G  60%           N/A

 

4. 생성된 vdo로 filesystem 생성

[root@JeongYD01 ~]# mkfs -t xfs -K /dev/mapper/vdo_data
meta-data=/dev/mapper/vdo_data   isize=512    agcount=4, agsize=2621440 blks
         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=1
data     =                       bsize=4096   blocks=10485760, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=5120, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

 

5. vdo mount

[root@JeongYD01 ~]# mkdir /mnt/vdo_data

[root@JeongYD01 ~]# mount /dev/mapper/vdo_data /mnt/vdo_data

[root@JeongYD01 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
devtmpfs              872M     0  872M   0% /dev
tmpfs                 901M     0  901M   0% /dev/shm
tmpfs                 901M  9.7M  891M   2% /run
tmpfs                 901M     0  901M   0% /sys/fs/cgroup
/dev/mapper/cl-root    22G  4.4G   18G  20% /
/dev/sda1             976M  193M  717M  22% /boot
tmpfs                 181M  1.2M  179M   1% /run/user/42
tmpfs                 181M  4.0K  181M   1% /run/user/0
tmpfs                 181M  3.5M  177M   2% /run/user/1000
/dev/mapper/vdo_data   40G  318M   40G   1% /mnt/vdo_data

'Linux' 카테고리의 다른 글

[Linux] RHCSA find 활용  (0) 2020.12.09
[Linux] RHCSA SELinux http Listen 포트 추가  (0) 2020.12.08
[Linux] RHCSA ssh-keygen  (0) 2020.11.25
[Linux] RHCSA swap 늘리기  (0) 2020.11.24
[Linux] RHCSA LVM 사이즈 확장  (0) 2020.11.23