David Teigland
06b2e5c176
lvmlockd: improve error message for existing lockspace
...
When a VG/lockspace already exists with the same name
don't just print the error number.
2018-05-31 15:52:23 -05:00
David Teigland
caa600a409
tests: enable lvcreate-pvtags with lvmlockd
2018-05-31 15:37:25 -05:00
David Teigland
b9c1cef817
lvmlockd: fix reverting new lv in error path
...
The wrong name was being used to free the LV lock
in lvmlockd in the error exit path.
2018-05-31 15:35:48 -05:00
David Teigland
4a01e4f389
tests: enable metadata-balance with lvmlockd
2018-05-31 15:12:34 -05:00
David Teigland
08771bbbbf
tests: enable lvmlockd with tests using lvcreate -H -L LV
2018-05-31 14:49:16 -05:00
David Teigland
8d9d32b315
lvmlockd: enable lvcreate -H -L LV
...
Allow this command in a shared VG which had previously been
disallowed.
2018-05-31 14:20:11 -05:00
David Teigland
fdaa7e2e87
vgs: add report field for shared
...
equivalent to a non-empty -o locktype.
2018-05-31 10:23:03 -05:00
David Teigland
2beb3009bd
tests: change lvcreate syntax to allow lvmlockd
...
Using the less ambiguous lvcreate syntax for creating a
cache LV allows more tests to run with lvmlockd.
2018-05-30 16:40:03 -05:00
David Teigland
214235367b
tests: enable lvcreate cache tests with lvmlockd
...
Tests that want to use lvcreate to create a new
origin LV and then combine it with an existing
cache pool to create a cache LV.
2018-05-30 15:56:08 -05:00
David Teigland
c516321325
lvmlockd: enable lvcreate of new LV plus existing cache pool
...
In this command, lvcreate creates a new LV and then combines
it with an existing cache pool, producing a cache LV. This
command was previously not allowed in in a shared VG.
2018-05-30 15:24:24 -05:00
David Teigland
27495a3555
tests: enable pvmove-restart with lvmlockd
2018-05-30 13:56:06 -05:00
David Teigland
05ee83579b
tests: enable vg repair tests with lvmlockd
2018-05-30 12:57:46 -05:00
David Teigland
6cd0523337
lvmlockd: enable repairing shared VG while reading it
...
When the lvmlockd lock is shared, upgrade it to ex
when repair (writing) is needed during vg_read.
Pass the lockd state through additional read-related
functions so the instances of repair scattered through
vg_read can be handled.
(Temporary solution until the ad hoc repairs can be
pulled out of vg_read into a top level, centralized
repair function.)
2018-05-30 12:56:46 -05:00
David Teigland
063d065388
tests: add missing file
2018-05-30 09:25:45 -05:00
David Teigland
abba06fb3b
tests: process-each-duplicate-pvs update for lvmlockd
2018-05-30 09:25:45 -05:00
David Teigland
3759a1f62b
pvremove: skip lvmlockd locks for forced clearing
...
pvremove -ff to force clear a PV shouldn't care if
lvmlockd locks fail.
2018-05-30 09:25:45 -05:00
David Teigland
5c5e449dc5
lvmlockd: fix vgimportclone of a shared VG
...
The new VG from the duplicate PV is imported
as a local VG.
2018-05-30 09:25:45 -05:00
David Teigland
a40d447a02
tests: vgchange-usage update for lvmlockd
2018-05-30 09:25:45 -05:00
David Teigland
95cf127134
tests: vgcreate-usage update for lvmlockd
2018-05-30 09:25:45 -05:00
David Teigland
595196bc29
tests: enable lvmlockd for passing tests
2018-05-30 09:25:45 -05:00
David Teigland
403c87c1aa
lvmlockd: enable creation of cache pool with lvcreate
...
Previously, cache pools needed to be created with lvconvert.
2018-05-30 09:25:45 -05:00
David Teigland
948f2d9979
lvmlockd: enable lvcreate of thin pool and thin lv in one command
...
Previously, thin pools and thin lvs need needed to be
created with separate commands, now the combined command
is permitted.
2018-05-30 09:25:45 -05:00
David Teigland
db8d3bdfa9
lvmlockd: enable mirror split and merge with dlm lock_type
2018-05-30 09:25:45 -05:00
David Teigland
3a4fe54ca1
config: revert to normal locking when no cluster
...
and suggest lvmlockd
2018-05-30 09:25:45 -05:00
David Teigland
7f7ec769d9
lvmlockd: do not use an LV lock for some lvchange options
...
Some lvchange options can be used even if the LV is active.
2018-05-30 09:25:45 -05:00
David Teigland
cd369d8a7f
tests: separate lvmlockd tests with or without lvmetad
2018-05-30 09:25:45 -05:00
David Teigland
0c1d3db8db
lvmlockd: accept repeated global lock requests
...
It's not an error if a command requests the global lock
when it has already acquired it. It shouldn't happen,
but there could be cases we've not found.
2018-05-30 09:25:45 -05:00
David Teigland
6a44dceb48
tests: some missed skip with lvmlockd
2018-05-30 09:25:45 -05:00
David Teigland
5ac9f8d631
tests: fix skipping logic for lvmpolld and lvmlockd
2018-05-30 09:25:45 -05:00
David Teigland
6d14d5d16b
scan: removed failed paths for devices
...
Drop a device path when the scan fails to open it.
2018-05-30 09:05:18 -05:00
Joe Thornber
06c789eda1
radix-tree: fix some bugs in remove_prefix and iterate
...
These weren't working if the prefix key was part of a prefix_chain.
2018-05-30 14:21:27 +01:00
Joe Thornber
1924426ad1
radix-tree: radix_tree_iterate()
2018-05-29 17:58:58 +01:00
Joe Thornber
c2a8bbed3b
radix-tree: radix_tree_remove_prefix()
2018-05-29 13:25:59 +01:00
Joe Thornber
9b41efae82
radix-tree: call the value dtr when removing an entry.
2018-05-29 11:23:36 +01:00
Joe Thornber
0181c77e3f
Merge branch '2018-05-29-radix-tree-iterate' into 2018-05-23-radix-tree-remove
2018-05-29 11:04:32 +01:00
Joe Thornber
033df741e2
data-struct/radix-tree: pass the value dtr into create.
...
Rather than having to pass it into every method that removes items.
2018-05-29 11:03:10 +01:00
David Teigland
28c8e95d19
scan: refresh paths and retry open
...
If scanning fails to open any devices, refresh the
device paths in dev cache, and retry the opens.
2018-05-25 13:09:07 -05:00
Alasdair G Kergon
9a730233c9
format_text: Use versionsort to sort archive files
...
Ensure that vg_100000-* follows vg_99999-* so that the expiry logic
doesn't stop too early.
https://bugzilla.redhat.com/1481085
2018-05-24 17:51:03 +02:00
Marian Csontos
0ecf232194
Merge remote-tracking branch 'origin/master'
2018-05-24 17:32:42 +02:00
Zdenek Kabelac
3702f39ef3
tests: improve usability on older systems
2018-05-24 16:02:31 +02:00
Zdenek Kabelac
d6f2445996
man: another missed typo for thin plugin
2018-05-24 16:02:31 +02:00
Marian Csontos
264077907e
post-release
2018-05-24 15:23:08 +02:00
Marian Csontos
adae8ee1c2
pre-release
2018-05-24 15:13:10 +02:00
Joe Thornber
7e85361c34
release note: typos
2018-05-24 12:32:16 +01:00
Joe Thornber
fab063cfcb
release note: typo
2018-05-24 12:26:34 +01:00
Joe Thornber
9337ff48bc
release note: 2.02.178
2018-05-24 12:22:11 +01:00
Zdenek Kabelac
a90de76fd8
tests: checking scanning correctness
2018-05-24 11:22:32 +02:00
Zdenek Kabelac
f865e1bf87
tests: passthrough args with extend_filter_LVMTEST
...
Don't rebuild config twice.
2018-05-24 11:22:59 +02:00
Zdenek Kabelac
89f34eaf0c
tests: correcting symlink manipulation
...
Fix symlink and add 'verbose' pvs for a while for checking
scanning correctness.
2018-05-24 11:22:32 +02:00
Zdenek Kabelac
76a45424a7
tests: aux improve for mdadm support
...
Correcting some symlink handling.
2018-05-24 11:03:47 +02:00