Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

공유 파일 시스템 서비스의 CephFS 백엔드 가이드

Red Hat OpenStack Platform 13

Red Hat OpenStack Platform Overcloud에서 공유 파일 시스템 서비스의 CephFS 백엔드 배포

OpenStack Documentation Team

초록

이 문서에서는 CephFS 백엔드를 사용하는 OpenStack Shared File System Service의 테스트 배포에 대해 설명합니다. 이 배포에서 사용하는 백엔드는 manila.share.drivers.cephfs.cephfs_native 드라이버를 통해 활성화됩니다.
Red Hat CephFS 통합은 현재 기술 프리뷰로 사용할 수 있으므로 이 배포는 프로덕션 환경에서 사용해서는 안 됩니다. 기술 프리뷰에 대한 자세한 내용은 다음을 참조하십시오.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 용어를 교체하기 위해 최선을 다하고 있습니다. 먼저 마스터(master), 슬레이브(slave), 블랙리스트(blacklist), 화이트리스트(whitelist) 등 네 가지 용어를 교체하고 있습니다. 이러한 변경 작업은 작업 범위가 크므로 향후 여러 릴리스에 걸쳐 점차 구현할 예정입니다. 자세한 내용은 CTO Chris Wright의 메시지를 참조하십시오.

1장. 소개

중요

기본 CephFS 프로토콜을 통해 Red Hat Ceph 파일 시스템(CephFS)을 사용하는 것은 기술 프리뷰로만 사용할 수 있으므로 Red Hat에서 완전히 지원되지 않습니다. 이 문서에 설명된 배포 시나리오는 테스트에만 사용해야 하며 프로덕션 환경에 배포해서는 안 됩니다.

기술 프리뷰 기능에 대한 자세한 내용은 적용 범위 상세 정보를 참조하십시오.

참고

Red Hat은 NFS를 통한 CephFS 사용을 지원합니다. 자세한 내용은 공유 파일 시스템 서비스의 NFS 백엔드 가이드를 통해 CephFS를 참조하십시오.

OpenStack Shared File Systems 서비스(manila)를 사용하면 여러 계산 인스턴스에서 사용할 수 있는 공유 파일 시스템을 프로비저닝할 수 있습니다.

이번 릴리스에는 Red Hat CephFS에 필요한 드라이버의 기술 프리뷰(예: manila.share.drivers.cephfs.cephfs_native.CephFSNativeDriver)가 포함되어 있습니다. 이 드라이버를 사용하면 공유 파일 시스템 서비스에서 CephFS를 백엔드로 사용할 수 있습니다.

공유 파일 시스템 백엔드를 구성하는 데 권장되는 방법은 director를 사용하는 것입니다. 이렇게 하려면 사용자 지정 환경 파일 을 작성해야 합니다.

이번 릴리스에서는 director가 오버클라우드에 CephFS 백엔드를 사용하여 공유 파일 시스템을 배포할 수 있습니다. 이 문서에서는 이를 수행하는 방법을 설명합니다.

2장. 요구 사항

사전 요구 사항

  • 통합 Ceph 백엔드가 있는 기존 Red Hat OpenStack Platform 환경. 자세한 내용은 Deploying an Overcloud with Containerized Red Hat Ceph 가이드를 참조하십시오.
  • 기본 동작과 마찬가지로 컨트롤러 노드에 설치된 공유 파일 시스템 서비스입니다.
  • Ceph 파일 시스템의 단일 인스턴스만 공유 파일 SystemsService의 백엔드로 사용하려고 합니다.

2.1. 제한 및 제한

관련 구성 요소의 현재 상태를 고려할 때 이 문서의 테스트 시나리오에는 다음과 같은 제한 사항이 있습니다.

  • 신뢰할 수 없는 인스턴스 사용자는 Ceph Storage 클러스터의 공용 네트워크에 직접 액세스할 수 있으므로 Ceph Storage 클러스터에 보안 위험을 초래합니다. 사용 중인 클러스터가 프로덕션 환경에서 격리되고 신뢰할 수 있는 사용자만 테스트 환경에 액세스할 수 있는지 확인합니다.
  • 이 릴리스에서는 공유에 대한 읽기-쓰기 액세스 권한만 허용합니다.

3장. 환경 파일 편집

환경 파일에는 정의하려는 백엔드 설정이 포함되어 있습니다. 또한 공유 파일 시스템 서비스의 배포와 관련된 다른 설정도 포함합니다. 환경 파일에 대한 자세한 내용은 Advanced Overcloud Customization 가이드의 환경 파일 을 참조하십시오.

이 릴리스에는 CephFS 백엔드를 정의하는 데 필요한 통합 환경 파일이 포함되어 있습니다. 이 파일은 언더클라우드 노드의 다음 경로에 있습니다.

/usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsnative-config.yaml

이 파일은 공유 파일 시스템 서비스를 배포하기 위한 기본 설정을 제공합니다.

환경에 필요한 설정을 포함할 환경 파일을 만듭니다. ~/templates/manila-cephfsnative-config.yaml. 다음 스니펫에서는 공유 파일 시스템 서비스를 배포할 때 director에서 사용하는 기본값을 보여줍니다.

/home/stack/templates/manila-cephfsnative-config.yaml

parameter_defaults: # 1
  ManilaCephFSNativeBackendName: cephfsnative
  ManilaCephFSNativeDriverHandlesShareServers: false # 2
  ManilaCephFSNativeCephFSConfPath: '/etc/ceph/ceph.conf' # 3
  ManilaCephFSNativeCephFSAuthId: 'manila' # 4
  ManilaCephFSNativeCephFSClusterName: 'ceph'
  ManilaCephFSNativeCephFSEnableSnapshots: true

1
parameter_defaults 헤더는 구성 시작을 나타냅니다. 특히 resource_registry 에 설정된 기본값을 재정의할 수 있습니다. 여기에는 CephFS 백엔드의 기본값을 설정하는 OS::Tripleo::Services::ManilaBackendCephFs 에서 설정한 값이 포함됩니다.
2
ManilaCephNativeDriverHandlesShareServersfalse 로 설정하면 드라이버는 공유 서버의 라이프사이클을 처리하지 않습니다.
3
ManilaCephFSNativeCephFSConfPath: Ceph 클러스터의 구성 파일의 경로를 설정합니다.
4
ManilaCephFSNativeCephFSAuthId: 는 director가 공유 액세스용으로 생성할 Ceph 인증 ID입니다.

4장. CephFS 백엔드를 사용하여 공유 파일 시스템 서비스 배포

/home/stack/templates/manila-cephfsnative-config.yaml 을 생성하면 언더클라우드에서 stack 사용자로 로그인합니다. 그런 다음 다음 환경 파일을 포함하여 CephFS 백엔드를 사용하여 공유 파일 시스템 서비스를 배포합니다.

  • /usr/share/openstack-tripleo-heat-templates/environments/services/ceph-mds.yaml - CephFS 백엔드를 사용할 때 공유 파일 시스템 서비스에서 필요한 Ceph MDS를 활성화합니다.
  • /usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsnative-config.yaml - Ceph 클러스터를 배포합니다.
  • /home/stack/templates/manila-cephfsnative-config.yaml - 3장. 환경 파일 편집 이전에 생성한 다음 /usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsnative-config.yaml 에 설정된 기본값을 재정의하는 설정이 포함되어 있습니다.

예를 들어 OpenStack 및 Ceph 설정이 /home/stack/templates/storage-environment.yaml 에 정의된 경우 다음을 실행합니다.

$ openstack overcloud deploy --templates \
   -e /home/stack/templates/storage-environment.yaml \
   -e /usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsnative-config.yaml \
   -e /usr/share/openstack-tripleo-heat-templates/environments/services/ceph-mds.yaml \
   -e /home/stack/templates/manila-cephfsnative-config.yaml \
중요

오버클라우드를 생성할 때 추가 환경 파일을 전달한 경우 -e 옵션을 사용하여 오버클라우드를 원하지 않는 변경을 수행하지 않도록 여기에서 다시 전달합니다. 자세한 내용은 Director 설치 및 사용 가이드 의 Overcloud 환경 수정 참조하십시오.

법적 공지

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.