0%

RHCSA (EX200) - 创建 VDO 卷

创建 VDO 卷

根据如下要求,创建新的 VDO 卷:

使用未分区的磁盘

该卷的名称为 vdough

该卷的逻辑大小为 50G

该卷使用 xfs 文件系统格式化

该卷(在系统启动时)挂载到 /vbread

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[root@node2 ~]# yum install -y vdo
...
Installed:
kmod-kvdo-6.2.2.117-65.el8.x86_64 vdo-6.2.2.117-13.el8.x86_64

Complete!
[root@node2 ~]# systemctl enable --now vdo
[root@node2 ~]# vdo create --name=vdough --device=/dev/vdc --vdoLogicalSize=50G
Creating VDO vdough
The VDO volume can address 6 GB in 3 data slabs, each 2 GB.
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 vdough
Starting compression on VDO vdough
VDO instance 0 volume is ready at /dev/mapper/vdough
[root@node2 ~]# mkfs.xfs /dev/mapper/vdough
meta-data=/dev/mapper/vdough isize=512 agcount=4, agsize=3276800 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=13107200, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=6400, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@node2 ~]# mkdir /vbread
[root@node2 ~]# vim /etc/fstab
...
/dev/mapper/vdough /vbread xfs defaults,x-systemd.requires=vdo.service 0 0
[root@node2 ~]# systemctl daemon-reload
[root@node2 ~]# mount /vbread/
[root@node2 ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
...
/dev/mapper/vdough xfs 50G 390M 50G 1% /vbread