When trying to create a VDO disk the procedure fails with the following error:
# vdo create --name=vdoTEST2 --device=/dev/sde --vdoLogicalSize=1G --writePolicy=async Creating VDO vdoTEST2 vdo: ERROR - vdoformat: formatVDO failed on '/dev/disk/by-id/ata-VBOX_HARDDISK_VBcd2ac7bf-4750ebec': VDO Status: Out of space
The size of the disk was 4G.
# lsblk | grep sde sde 8:64 0 4G 0 disk
The Universal Deduplication Index needs to write to disk. This is basically a database that keeps a record of slab fingerprints and their locations. This is what makes deduplication possible.
This procedure needs at least 3GB.
# vdostats --hu Device Size Used Available Use% Space saving% /dev/mapper/vdoTEST1 5.0G 3.0G 2.0G 60% N/A /dev/mapper/vdoTEST 7.0G 3.0G 4.0G 42% N/A
To be able to create the FS, the disk needed is the least of 5GB. So, increase the size to 5GB at least.
Now run the command again:
# vdo create --name=vdoTEST1 --device=/dev/sdf --vdoLogicalSize=1G --writePolicy=async Creating VDO vdoTEST1 Starting VDO vdoTEST1 Starting compression on VDO vdoTEST1 VDO instance 1 volume is ready at /dev/mapper/vdoTEST1
# lsblk | grep sdf sdf 8:80 0 5G 0 disk