Shared File Systems Option 1: No driver support for share servers management
For simplicity, this configuration references the same storage node
configuration for the Block Storage service. However, the LVM driver
requires a separate empty local block storage device to avoid conflict
with the Block Storage service. The instructions use /dev/sdc, but
you can substitute a different value for your particular node.
Požadavky
Poznámka
Proveďte tyto kroky na uzlu úložiště.
Nainstalujte balíčky s podpůrnými nástroji:
Install LVM and NFS server packages:
# yum install lvm2 nfs-utils nfs4-acl-tools portmap
Spusťte službu popisných dat LVM a nastavte ji, aby byla spuštěna při zavedení systému:
# systemctl enable lvm2-lvmetad.service
# systemctl start lvm2-lvmetad.service
Create the LVM physical volume /dev/sdc:
# pvcreate /dev/sdc
Physical volume "/dev/sdc" successfully created
Create the LVM volume group manila-volumes:
# vgcreate manila-volumes /dev/sdc
Volume group "manila-volumes" successfully created
The Shared File Systems service creates logical volumes in this volume
group.
Only instances can access Shared File Systems service volumes. However,
the underlying operating system manages the devices associated with
the volumes. By default, the LVM volume scanning tool scans the
/dev directory for block storage devices that
contain volumes. If projects use LVM on their volumes, the scanning
tool detects these volumes and attempts to cache them which can cause
a variety of problems with both the underlying operating system
and project volumes. You must reconfigure LVM to scan only the devices
that contain the cinder-volume and manila-volumes volume groups.
Edit the /etc/lvm/lvm.conf file and complete the following actions: