GNU/Linux >> LINUX-Kenntnisse >  >> Cent OS

So erstellen Sie einen virtuellen Datenoptimierer (VD0) in CentOS/RHEL 7 und 8

Virtual Data Optimizer (VDO) ist eine Blockvirtualisierungstechnologie, mit der Sie auf einfache Weise komprimierte und deduplizierte Blockspeicherpools erstellen können. Dieser Beitrag beschreibt die Schritte zum Erstellen des Virtual Data Optimizer(VD0)-Dateisystems in CentOS/RHEL 8-Systemen.

1. Installieren Sie VDO mit dnf oder yum.

# dnf install install vdo

Überprüfen Sie die Paketinstallation:

# rpm -qa | grep vdo
kmod-kvdo-6.2.0.293-50.0.1.el8.x86_64
vdo-6.2.0.298-10.el8_0.x86_64

2. Erstellen Sie eine VDO-Diskette:

# lsblk | grep sdc
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdc 8:32 0 5G 0 disk
# vdo create --name=vdoTEST --device=/dev/sdc --vdoLogicalSize=1G --writePolicy=async
Creating VDO vdoTEST
Starting VDO vdoTEST
Starting compression on VDO vdoTEST
VDO instance 0 volume is ready at /dev/mapper/vdoTEST

3. Überprüfen Sie die Konfiguration der VDO-Festplatte.

# ls -l /dev/mapper/vdoTEST
lrwxrwxrwx. 1 root root 7 Aug 19 18:13 /dev/mapper/vdoTEST -> ../dm-8
# vdostats --hu
Device Size Used Available Use% Space saving%
/dev/mapper/vdoTEST 5.0G 3.0G 2.0G 60% 0%
# vdostats --verbose /dev/mapper/vdoTEST | grep -B6 'saving percent'
physical blocks : 1316331
logical blocks : 262144
1K-blocks : 5265324
1K-blocks used : 3169588
1K-blocks available : 2095736
used percent : 60
saving percent : 0

4. Erstellen Sie eine LVM-Basis auf dem VDO:

# pvcreate /dev/mapper/vdoTEST
Physical volume "/dev/mapper/vdoTEST" successfully created.
# vgcreate vdoTest /dev/mapper/vdoTEST
Volume group "vdoTest" successfully created
# vgdisplay vdoTest
--- Volume group ---
VG Name vdoTest
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 1020.00 MiB
PE Size 4.00 MiB
Total PE 255
Alloc PE / Size 0 / 0
Free PE / Size 255 / 1020.00 MiB
VG UUID ylwz5n-vvIA-dBrW-7KKj-iugk-eWeO-VCKcXq
# lvcreate -n vdolv01 -L 500MB vdoTest
Logical volume "vdolv01" created.
# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
vdolv01 vdoTest -wi-a----- 500.00m

5. Erstellen Sie nun das xfs-Dateisystem und hängen Sie das LVM-Volume ein:

# mkfs.xfs /dev/vdoTest/vdolv01
# mount -o discard /dev/vdoTest/vdolv01 /vdoTest

Überprüfen Sie den neuen Einhängepunkt:

# vdostats --hu
Device Size Used Available Use% Space saving%
/dev/mapper/vdoTEST 5.0G 3.0G 2.0G 60% 96%
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vdoTest-vdolv01 496M 29M 467M 6% /vdoTest


Cent OS
  1. So erstellen Sie eine Netzwerkbrücke unter CentOS 7 / RHEL 7

  2. So installieren Sie Python 3.5 unter CentOS/RHEL und Fedora

  3. So erstellen Sie einen LXC-Container mit lxcbr0 und virbr0 in CentOS/RHEL

  4. So erstellen Sie ein Yum-Repository in CentOS/RHEL

  5. So erstellen Sie eine Bridge-Schnittstelle mit nmcli in CentOS/RHEL 7 und 8

So erstellen Sie virtuelle Apache-Hosts unter CentOS 7

So installieren Sie KVM unter CentOS 8 / RHEL 8

So erstellen und führen Sie ein Shell-Skript in CentOS 8 aus

So installieren und verwenden Sie Firewalld in CentOS / RHEL

So installieren Sie Samba auf RHEL und CentOS Stream

So erstellen/formatieren/erweitern Sie Virtual Data Optimizer (VDO)-Volumes mit der Cockpit-Webkonsole in CentOS/RHEL 8