vdo:錯誤 - 裝置 /dev/sdc 被過濾器排除

vdo:錯誤 - 裝置 /dev/sdc 被過濾器排除

在 vagrant/virtualbox 中建立第三個磁碟後,我在嘗試建立 VDO(Red Hat Enterprise Linux 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.

答案1

答案與相關 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 bytes

VDO 將建立磁碟區:

# 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/vdo1

相關內容