在尝试创建vdo时,我得到以下消息:
# vdo create --name=vdo1 --device=/dev/sdb2 --vdoLogicalSize=1T
Creating VDO vdo1
vdo: ERROR - Kernel module kvdo not installed
vdo: ERROR - modprobe: FATAL: Module kvdo not found in directory /lib/modules/4.18.0-240.1.1.el8_3.x86_64有人知道我为什么会犯这个错误吗?我怎样才能纠正它?
我还安装了额外的软件包
# dnf install *4.18.0-240.1.1.el8* -y它安装了一些更多的包,包括一些内核包,但我仍然会遇到错误。
还安装了所有软件包,并启用了vdo:
# systemctl status vdo
● vdo.service - VDO volume services
Loaded: loaded (/usr/lib/systemd/system/vdo.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-12-11 12:44:55 UTC; 3h 49min ago
Process: 782 ExecStart=/usr/bin/vdo start --all --confFile /etc/vdoconf.yml (code=exited, status=0/SUCCESS)
Main PID: 782 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 23438)
Memory: 0B
CGroup: /system.slice/vdo.service
Dec 11 12:44:53 node systemd[1]: Starting VDO volume services...
Dec 11 12:44:55 node systemd[1]: Started VDO volume services.
# rpm -qa | grep -i vdo
vdo-6.2.3.114-14.el8.x86_64
alsa-plugins-vdownmix-1.1.9-1.el8.x86_64
vdo-support-6.2.3.114-14.el8.x86_64
kmod-kvdo-6.2.2.117-65.el8.x86_64
libblockdev-vdo-2.24-1.el8.x86_64发布于 2020-12-14 19:25:16
在另一个主机上,我还得到了以下错误:
Creating VDO vdo1
vdo: ERROR - Found existing signature on /dev/disk/by-id/usb-iOS_devi_FLASH_DRIVE_00000000CY02-0:0-part1 at offset 0: LABEL="(null)" UUID="c5d18b8a-7512-4193-af06-3032d519e4e0" TYPE="xfs" USAGE="filesystem".在磁盘上创建新分区之后
# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition number (2-128, default 2):
First sector (10487808-262143966, default 10487808):
Last sector, +sectors or +size{K,M,G,T,P} (10487808-262143966, default 262143966): +10G
Created a new partition 2 of type 'Linux filesystem' and of size 10 GiB.
Partition #2 contains a stratis signature.
Do you want to remove the signature? [Y]es/[N]o: y
The signature will be removed by a write command.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
# partprobe
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
....
sdb 8:16 1 125G 0 disk
....
└─sdb2 8:18 1 10G 0 part正如您可以看到的,我以前创建的测试与stratis,一些细节仍然保留在磁盘分区不知怎么。所以我也删除了fdisk中的那些。在我最终创建vdo之后:
# vdo create --name=vdo1 --device=/dev/sdb2 --vdoLogicalSize=1T
Creating VDO vdo1
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 vdo1
Starting compression on VDO vdo1
VDO instance 0 volume is ready at /dev/mapper/vdo1发布于 2021-01-06 09:01:06
我也面临着这个问题,并追溯到不一致的存储库。如果使用工作VDO升级整个CentOS,它将崩溃。我今天再试一次。由于这个问题已经存在了几个星期/几个月,我提出了一个解决方案,不中断与升级。这是很容易消除以及一旦这个问题得到解决。
受影响虚拟机的详细信息:
root@vm12 tests]# rpm -qa | grep -e vdo -e release
epel-release-8-10.el8.noarch
kmod-kvdo-6.2.2.117-65.el8.x86_64
centos-linux-release-8.3-1.2011.el8.noarch
vdo-6.2.3.114-14.el8.x86_64
[root@vm12 tests]# cat /etc/centos-release
CentOS Linux release 8.3.2011
[root@vm12 tests]# dnf upgrade
Last metadata expiration check: 0:06:25 ago on Wed 06 Jan 2021 09:49:08 AM CET.
Dependencies resolved.
Nothing to do.
Complete!安装修复程序(修改后的回购)并修复操作系统:
curl https://raw.githubusercontent.com/joe-speedboat/ansible.vdo_nfs_appliance/main/templates/CentOS-Stream-vdo.repo.j2 > /etc/yum.repos.d/CentOS-Stream-vdo.repo
dnf makecache
dnf upgrade
reboot删除修复程序(一旦vdo包不再从baseos vdo回购中取出):
rm -f /etc/yum.repos.d/CentOS-Stream-vdo.repo顺便说一句,可以随意使用我的整个ansible角色来设置一个基于vdo的存储设备。但请先请RTFM :-)
https://galaxy.ansible.com/joe-speedboat/ansible_vdo_nfs_用具
比尔·克里斯
https://unix.stackexchange.com/questions/624011
复制相似问题