在流浪者/virtualbox中创建了第三个磁盘之后,我在尝试创建一个VDO (Red的Enterprise 8工具,用于去重复和压缩)时,得到了这个错误。
对于LVM,通常如下所示:
parted -s /dev/sdc mklabel gpt
parted -s /dev/sdc mkpart xfs 2048s 2G因此,我完成了第一步,将分区表类型声明为VDO的GPT:
parted -s /dev/sdc mklabel gpt并省略了分区,因为这是不需要的。
驱动器看起来像:
$ fdisk -l /dev/sdc
Disk /dev/sdc: 5 GiB, 5368709120 bytes, 10485760 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
Disklabel type: gpt
Disk identifier: 3ACED1E3-DB5A-4240-99C3-AD280212XXXX在此之后,创建VDO卷的尝试以错误结束:
vdo create --name=vdo1 --device=/dev/sdc --vdoLogicalSize=10T
Creating VDO vdo1
vdo: ERROR - Device /dev/sdc excluded by a filter.发布于 2020-01-20 04:47:37
答案类似于与磁盘标签相关的LVM帖子中的答案。似乎VDO不需要(和支持)将磁盘标记为gpt,所以我们必须擦除它:
# wipefs -a /dev/sdc
/dev/sdc: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 8 bytes were erased at offset 0x13ffffe00 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success这将使磁盘没有标签:
# fdisk -l /dev/sdc
Disk /dev/sdc: 5 GiB, 5368709120 bytes, 10485760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesVDO将创建该卷:
# vdo create --name=vdo1 --device=/dev/sdc --vdoLogicalSize=10T
Creating VDO vdo1
Starting VDO vdo1
Starting compression on VDO vdo1
VDO instance 0 volume is ready at /dev/mapper/vdo1https://serverfault.com/questions/999601
复制相似问题