Shared File Systems Option 1: No driver support for share servers management

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ě.

  1. 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
      
  2. Create the LVM physical volume /dev/sdc:

    # pvcreate /dev/sdc
    Physical volume "/dev/sdc" successfully created
    
  3. 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.

  4. 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:

    • In the devices section, add a filter that accepts the /dev/sdb and /dev/sdc devices and rejects all other devices:

      devices {
      ...
      filter = [ "a/sdb/", "a/sdc", "r/.*/"]
      

      Varování

      Pokud vaše uzly úložiště využívají LVM na disku s operačním systémem, musíte také přidat přidružené zařízení do filtru. Například, pokud zařízení /dev/sda obsahuje operační systém:

      filter = [ "a/sda/", "a/sdb/", "a/sdc", "r/.*/"]
      

      Podobně, pokud vaše výpočtové uzly využívají LVM na disku s operačním systémem, musíte také změnit filtr v souboru /etc/lvm/lvm.conf v těchto uzlech, aby byl zahrnut pouze disk s operačním systémem. Například, pokud zařízení /dev/sda obsahuje operační systém:

      filter = [ "a/sda/", "r/.*/"]
      

Configure components

Poznámka

Default configuration files vary by distribution. You might need to add these sections and options rather than modifying existing sections and options. Also, an ellipsis (...) in the configuration snippets indicates potential default configuration options that you should retain.

  1. Edit the /etc/manila/manila.conf file and complete the following actions:

    • In the [DEFAULT] section, enable the LVM driver and the NFS/CIFS protocols:

      [DEFAULT]
      ...
      enabled_share_backends = lvm
      enabled_share_protocols = NFS,CIFS
      

      Poznámka

      Back end names are arbitrary. As an example, this guide uses the name of the driver.

    • In the [lvm] section, configure the LVM driver:

      [lvm]
      share_backend_name = LVM
      share_driver = manila.share.drivers.lvm.LVMShareDriver
      driver_handles_share_servers = False
      lvm_share_volume_group = manila-volumes
      lvm_share_export_ip = MANAGEMENT_INTERFACE_IP_ADDRESS
      

      Nahraďte MANAGEMENT_INTERFACE_IP_ADDRESS IP adresou síťového rozhraní pro správu ve vašem uzlu úložiště. Standardně 10.0.0.41 pro první uzel v ukázkové architektuře.

Return to Finalize installation.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.