How do I extend a cluster-managed logical volume configured with system_id?

Solution Verified - Updated -

Issue

  • How do I lvextend a logical volume managed by an LVM-activate resource with vg_access_mode=system_id?
[root@rhel-8-0-1 ~]# pvs | grep clus_vg
  /dev/sda   clus_vg lvm2 a--   <3.94g <3.44g
[root@rhel-8-0-1 ~]# vgs -o+systemid clus_vg
  VG      #PV #LV #SN Attr   VSize  VFree  System ID 
  clus_vg   1   1   0 wz--n- <3.94g <3.44g rhel-8-0-1
[root@rhel-8-0-1 ~]# lvs clus_vg/clus_lv
  LV      VG      Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  clus_lv clus_vg -wi-a----- 512.00m   

[root@rhel-8-0-1 ~]# pcs resource status | grep clus_lvm
 clus_lvm   (ocf::heartbeat:LVM-activate):  Started rhel-8-0-1

[root@rhel-8-0-1 ~]# pcs resource config clus_lvm
 Resource: clus_lvm (class=ocf provider=heartbeat type=LVM-activate)
  Attributes: vg_access_mode=system_id vgname=clus_vg
  Operations: monitor interval=30s timeout=90s (clus_lvm-monitor-interval-30s)
              start interval=0s timeout=90s (clus_lvm-start-interval-0s)
              stop interval=0s timeout=90s (clus_lvm-stop-interval-0s)

Environment

  • Red Hat Enterprise Linux (RHEL) 8 (with the High Availability Add-on)
  • Active/passive HA-LVM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content