Hello boys (and girls?)!

Building my resources incrementally made me debug the LVM RA: Syslog said 
nothing, but the resource won't start.
As it turned out, the check whether a VG was activated is wrong: "vgchange -a" 
seems to report an error if a VG without LVs was activated (It's completely OK 
to have a VG without LVs, but you cannot have a VG without PVs). Unfortunately 
"0 LVs" seems to be treted as "VG not active". More correct seems to inspect 
the output of "vgs". Here's my output:
-------snip-------
# OCF_ROOT=/usr/lib/ocf OCF_RESKEY_volgrpname=T11_DB_FATA 
/usr/lib/ocf/resource.d/heartbeat/LVM start
LVM[31647]: INFO: Activating volume group T11_DB_FATA
LVM[31647]: INFO: Reading all physical volumes. This may take a while... Found 
volume group "T11_BD_BTD" using metadata type lvm2 Found volume group "sys" 
using metadata type lvm2 Found volume group "T11_CI" using metadata type lvm2 
Found volume group "T11_ERS" using metadata type lvm2 Found volume group 
"T11_ASCS" using metadata type lvm2 Found volume group "T11_DB_FATA" using 
metadata type lvm2 Found volume group "T11_DB_10k" using metadata type lvm2
LVM[31647]: INFO: 0 logical volume(s) in volume group "T11_DB_FATA" now active
LVM[31647]: ERROR: LVM: T11_DB_FATA did not activate correctly
--------snip end---------

On the comment "  # TODO: This MUST run vgimport as well": I doubt that; it 
seems dangerous!

Regards,
Ulrich


_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to