November 18

Linux: VDO setup on ecrypted drive

vdo create --name=vdo_data --device=/dev/mapper/luks-422d7f7c-2d98-48df-abe5-239def725f18 --vdoLogicalSize=18G (if the drive is over 16TB add this switch also: --vdoSlabSize=8G)
check for cache type: cat /sys/block/sdb/device/scsi_disk/0\:0\:1\:0/cache_type - if none or write through do the following:
		vdo changeWritePolicy --writePolicy=sync --name=vdo_data

--------------------------------------------------
If not using LVM you can make the filesystem now.
mkfs.xfs -K /dev/mapper/vdo_data
mkdir /mnt/vdo_data
nano /etc/fstab 
       /dev/mapper/vdo_data /mnt/vdo_data xfs defaults,x-systemd.requires=vdo.service 0 0

mount -a
df -h



vdostat --human-readable


Copyright 2021. All rights reserved.

Posted November 18, 2021 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B