1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00
lvm2/lib/metadata
Peter Rajnoha cba6186325 cmirror: check for cmirror availability during cluster mirror creation and activation
When creating/activating clustered mirrors, we should have cmirrord
available and running. If it's not, we ended up with rather cryptic
errors like:

$ lvcreate -l1 -m1 --type mirror vg
  Error locking on node 1: device-mapper: reload ioctl on  failed: Invalid argument
  Failed to activate new LV.

$ vgchange -ay vg
  Error locking on node node 1: device-mapper: reload ioctl on failed: Invalid argument

This patch adds check for cmirror availability and it errors out
properly, also giving a more precise error messge so users are able
to identify the source of the problem easily:

$ lvcreate -l1 -m1 --type mirror vg
  Shared cluster mirrors are not available.

$ vgchange -ay vg
  Error locking on node 1: Shared cluster mirrors are not available.

Exclusively activated cluster mirror LVs are OK even without cmirrord:

$ vgchange -aey vg
  1 logical volume(s) in volume group "vg" now active
2015-01-05 16:54:07 +01:00
..
2014-10-26 18:37:13 +01:00
2014-11-20 16:35:46 +01:00
2014-10-26 18:37:13 +01:00
2014-11-14 18:12:35 +01:00
2014-11-04 15:28:00 +01:00
2013-12-12 13:28:19 +01:00
2013-01-07 22:30:29 +00:00
2013-12-12 13:28:19 +01:00
2014-12-05 13:39:42 +01:00
2013-06-17 09:34:56 +02:00
2014-11-10 22:05:48 +01:00
2014-11-26 09:29:25 +01:00
2014-11-11 14:13:00 +00:00