Thomas Schoebel-Theuer
b749ed561c
userspace: add bugfix for Debian udev rules
...
Patch received from Jörg Mann by email.
Some Debian versions seem to have typos in their udev rules.
As a consequence, /dev/mars/mydata does not disappear when
leaving primary state.
Other consequences might also exist. In an unreproduced case the
/dev/mars/ object was unlinked while the mount was continuously
active, without causing any harm to operations (besides that
xfs_growfs did not work, which led to the discovery of the
mysterious situation).
Probably the udev userspace may require further fixes.
Fortunately, udev-less systems (as those used by me for testing) are
not affected.
2014-03-31 06:59:10 +02:00
Thomas Schoebel-Theuer
9799fe5417
marsadm: fix usage
2014-03-31 06:59:10 +02:00
Thomas Schoebel-Theuer
36081e51d8
marsadm: show IP only with --verbose
2014-03-31 06:59:10 +02:00
Thomas Schoebel-Theuer
6050b4157f
infra: make string allocation fully dynamic
2014-03-26 11:43:05 +01:00
Thomas Schoebel-Theuer
5371c87f4e
marsadm: disable file-based warnings by default
2014-03-20 07:55:23 +01:00
Thomas Schoebel-Theuer
8bd0564564
marsadm: implement new 'view' command
2014-03-19 17:49:40 +01:00
Thomas Schoebel-Theuer
15a9d20fff
marsadm: prefer 'fetch' over 'connect'
2014-03-19 17:49:40 +01:00
Thomas Schoebel-Theuer
084e56bc96
marsadm: new get-link
2014-03-19 17:49:40 +01:00
Thomas Schoebel-Theuer
2fc05b5373
light: allow limiting the sync parallelism
2014-03-19 17:49:40 +01:00
Thomas Schoebel-Theuer
11bc9f2e91
marsadm: path correction / systematic naming conventions
2014-03-19 17:49:40 +01:00
Thomas Schoebel-Theuer
0edca689bf
marsadm: allow omission of nanoseconds
2014-03-19 17:49:39 +01:00
Thomas Schoebel-Theuer
9340f70c36
light: add info symlinks
2014-03-19 17:49:39 +01:00
Thomas Schoebel-Theuer
2ce5e2aad7
light: add per-resource emergency mode
2014-03-19 17:49:39 +01:00
Thomas Schoebel-Theuer
e0a123e827
marsadm: move global variables
2014-03-19 11:44:57 +01:00
Thomas Schoebel-Theuer
1cb78bae47
marsadm: fix warning
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
a43181a84f
marsadm: fix split brain detection
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
1715b4fd40
marsadm: fix recursion depth of _get_common_ancestor()
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
0d5349b2ca
marsadm: fix transitive closure for log_purge_res()
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
2ec9800d54
marsadm: fix leave-resource
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
a16875fcfe
marsadm: prevent only _new_ split brains
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
e78d0a3078
light: fix peer preferences, use connect-* links
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
223467f37f
marsadm: disallow intended primary switch when secondaries are syncing
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
59cce71e2d
marsadm: fix fake_versionlink()
...
Always fake two versionslinks instead of one.
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
528b72b0c0
light: fix potential race on deletions
2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer
3e9aae53c8
all: fix potential buffer overflows, use vscnprintf()
2014-03-19 11:30:23 +01:00
Thomas Schoebel-Theuer
dc535711c8
marsadm: fix leave-resource --force
2014-02-07 09:11:07 +01:00
Thomas Schoebel-Theuer
4c36e803f3
marsadm: add --ip=, fix IP detection
2014-02-06 07:15:09 +01:00
Thomas Schoebel-Theuer
c6a3753c1d
marsadm: fix --dry-run
2014-02-04 14:29:28 +01:00
Thomas Schoebel-Theuer
73c32a2f83
marsadm: make device detection more robust
2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer
e38225a74c
marsadm: fix non-monotony of logfile sequence numbers
2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer
a11b63a8b2
marsadm: allow create-resource on pre-existing resource directory
2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer
7fa62145b5
marsadm: fix resource destruction via 'delete-resource'
2014-02-03 15:07:45 +01:00
Thomas Schoebel-Theuer
b3a1d7ffa2
marsadm: fix _fake_versionlink() after /mars/ full
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
63171f66ae
marsadm: log-purge-all for split brain resolution in desperate cases
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
06f5e42ae6
marsadm: introduce --dry-run
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
2fee916477
marsadm: fix 'secondary' when not locally primary
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
4e17138003
light: make detach/down more robust against following commands
...
Immediately stop syncing when rource should go down.
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
9e54983283
marsadm: fix split brain detection
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
00d4713aff
marsadm: fix set-link source
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
c7fa35ae5f
marsadm: fix delete-file --force
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
ab1723f306
marsadm: fix lamport warning when mars.ko is not loaded
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
059abe866b
marsadm: fix lamport timestamp substitute when mars.ko is unloaded
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
202afe0fc4
marsadm: fix spelling
2014-02-03 15:07:44 +01:00
Thomas Schoebel-Theuer
49c13052f7
marsadm: try to avoid split brain on primary switching
2014-02-03 15:07:43 +01:00
Thomas Schoebel-Theuer
2b71a212de
marsadm: use stderr for errors and warnings
2014-02-03 15:06:36 +01:00
Thomas Schoebel-Theuer
f9ea0132f3
marsadm: 'primary' denies waiting for device during split brain
2014-02-03 15:06:36 +01:00
Thomas Schoebel-Theuer
d5e3b4e1f1
marsadm: fix split brain detection
2014-02-03 15:06:36 +01:00
Thomas Schoebel-Theuer
07bd8db714
marsadm: fix call of localtime() in old perl versions
2014-02-03 15:06:35 +01:00
Thomas Schoebel-Theuer
7ad628a725
light: create detailed warn message in userspace
2014-02-03 15:06:34 +01:00
Thomas Schoebel-Theuer
6755b8e4b8
marsadm: remove superfluous _get_former_primary()
...
This cannot work in case of split brain.
Therefore, some primary must be designated always explicitly.
2014-02-03 15:06:34 +01:00