How do I extend a cluster-managed logical volume configured with system_id?
Issue
- How do I
lvextend
a logical volume managed by anLVM-activate
resource withvg_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.