一、虚拟数据优化器
kvdo ##压缩数据
uds ##优化重复数据
二、vdo的建立
dnf install vdo -y dd if=/dev/zero of=/dev/sdb bs=1M count=1 vdo create --name westos_vdo1 --device /dev/sdb vdo status --name westos_vdo1 | less
三、使用vdo设备
mkfs.xfs -K /dev/mapper/westos_vdo1 mkdir /westos_vdo mount /dev/mapper/westos_vdo1 /westos_vdo/
四、vdo的性能测试
vdostats --human-readable Device Size Used Available Use% Space saving% /dev/mapper/westos_vdo1 10.0G 4.0G 6.0G 40% 99% cp /mnt/westosfile /westos_vdo/ vdostats --human-readable Device Size Used Available Use% Space saving% /dev/mapper/westos_vdo1 10.0G 5.0G 5.0G 22% 2% cp /mnt/westosfile /westos_vdo/westosfile.1 vdostats --human-readable Device Size Used Available Use% Space saving% /dev/mapper/westos_vdo1 10.0G 5.1G 4.9G 22% 50%
五、vdo设备的删除
umount /westos_vdo vdo stop --name=westos_vdo1 vdo remove --name westos_vdo1