F.3. Creating New Logical Volumes for an Existing Cluster


To create new volumes, either volumes need to be added to a managed volume group on the node where it is already activated by the service, or the volume_list must be temporarily bypassed or overridden to allow for creation of the volumes until they can be prepared to be configured by a cluster resource.

Note

New logical volumes can be added only to existing volume groups managed by a cluster lvm resource if lv_name is not specified. The lvm resource agent allows for only a single logical volume within a volume group if that resource is managing volumes individually, rather than at a volume group level.
To create a new logical volume when the service containing the volume group where the new volumes will live is already active, use the following procedure.
  1. The volume group should already be tagged on the node owning that service, so simply create the volumes with a standard lvcreate command on that node.
    Determine the current owner of the relevant service.
    # clustat
    Copy to Clipboard Toggle word wrap
    On the node where the service is started, create the logical volume.
    # lvcreate -l 100%FREE -n lv2 myVG
    Copy to Clipboard Toggle word wrap
  2. Add the volume into the service configuration in whatever way is necessary.
To create a new volume group entirely, use the following procedure.
  1. Create the volume group on one node using that node's name as a tag, which should be included in the volume_list. Specify any desired settings for this volume group as normal and specify --addtag nodename, as in the following example:
    # vgcreate myNewVG /dev/mapper/mpathb --addtag node1.example.com
    Copy to Clipboard Toggle word wrap
  2. Create volumes within this volume group as normal, otherwise perform any necessary administration on the volume group.
  3. When the volume group activity is complete, deactivate the volume group and remove the tag.
    # vgchange -an myNewVg --deltag node1.example.com
    Copy to Clipboard Toggle word wrap
  4. Add the volume into the service configuration in whatever way is necessary.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

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

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동