Introduction
# dnf install -y vdo kmod-kvdo
Prerequisite
# parted /dev/vdb print
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 10.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
Configure
# parted /dev/vdb mkpart first 0G 10G
# parted /dev/vdb set 1 lvm on
# pvcreate /dev/vdb1
# vgcreate myvg-vdo /dev/vdb1
# lvcreate --name mylv-vdo --size 5G --type vdo myvg-vdo
# lsblk /dev/vdb -fp
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
/dev/vdb
└─/dev/vdb1 LVM2_m LVM2 3O1e3e-NMIt-1y5q-jvWk-ONQh-doOn-3V719c
└─/dev/mapper/myvg--vdo-vpool0_vdata
└─/dev/mapper/myvg--vdo-vpool0-vpool
└─/dev/mapper/myvg--vdo-mylv--vdo
# mkfs.xfs /dev/mapper/myvg--vdo-mylv--vdo
# mkdir /myvg--vdo-mylv--vdo
# vim /etc/fstab
...
/dev/mapper/myvg--vdo-mylv--vdo /myvg--vdo-mylv--vdo xfs defaults 0 0
# mount -a
Test
# echo "FOO" > /myvg--vdo-mylv--vdo/foo; cat /myvg--vdo-mylv--vdo/foo
FOO
No comments:
Post a Comment