Zdenek Kabelac
c6be409609
build: ensure libdm is built before dm-tools
...
Making libs before entering dm-tools subdir,
so the tool will not link i.e. system library if present.
2018-06-14 22:02:01 +02:00
David Teigland
327f62a255
man: update lvmsystemid wording
...
to refer to "shared VG" instead of "lockd VG".
2018-06-14 12:35:00 -05:00
David Teigland
b5f444d447
man: updates to lvmlockd
...
The terminology has migrated toward using "shared VG"
rather than "lockd VG".
Also improve the wording in a number of places.
2018-06-14 12:35:00 -05:00
Joe Thornber
e84e9cd115
device_mapper: remove libdm-stats.c
...
We don't use it in lvm.
2018-06-14 14:32:17 +01:00
Joe Thornber
fededfbbbc
dmfilemapd: Move to libdm/dm-tools
...
No longer uses any lvm code.
2018-06-14 14:27:19 +01:00
Joe Thornber
0524829af6
dmsetup: move to libdm/dm-tools/dmsetup
...
links against libdevmapper again.
no longer includes code from lvm.
2018-06-14 13:10:17 +01:00
David Teigland
e53cfc6a88
lvmlockd: update method for changing clustered VG
...
The previous method for forcibly changing a clustered VG
to a local VG involved using -cn and locking_type 0.
Since those options are deprecated, replace it with
the same command used for other forced lock type changes:
vgchange --locktype none --lockopt force.
2018-06-13 15:30:28 -05:00
David Teigland
9b79f0244a
Remove makefile entries for removed script
2018-06-13 15:04:26 -05:00
David Teigland
fa00fce97c
Remove systemd script for starting shared VG
...
Shared VGs will generally be started and activated by
the resource agent. Without the agent, this script doesn't
have a good way to know which LVs to activate.
2018-06-13 14:37:16 -05:00
David Teigland
a163d5341a
tests: remove vgconvert usage
2018-06-13 14:16:28 -05:00
David Teigland
d067263f51
tests: remove metadata-dirs
...
metadata dirs are removed
2018-06-13 14:14:23 -05:00
David Teigland
5fca75877d
Remove vgconvert
...
it has no use without lvm1
2018-06-13 14:14:03 -05:00
David Teigland
22c5467add
filters: remove cache file in persistent filter
...
It creates problems because it's not always correct,
and it doesn't actually help much.
2018-06-13 14:00:47 -05:00
David Teigland
17f5572bc9
Remove independent metadata areas
...
in which metadata is stored in files on the local fs
instead of on PVs.
2018-06-13 12:25:19 -05:00
David Teigland
9df6f601e0
Remove code for loading other metadata formats
...
other formats are not used.
2018-06-13 12:03:42 -05:00
David Teigland
885e57cb27
tests: lvmetad-pvscan-cache expect command to fail
2018-06-12 12:44:23 -05:00
David Teigland
7824bb710d
tests: lvconvert-repair remove cluster test
2018-06-12 11:35:45 -05:00
David Teigland
be3af7f93e
Remove the unused lock_hash in lvmcache
...
It kept track of which VGs were locked, but is
no longer used, so remove it.
2018-06-12 11:29:56 -05:00
David Teigland
981a3ba98e
Clean up repair and result values in vg_read
...
Fix the confusing mix of input and output values
in the single variable.
2018-06-12 11:08:26 -05:00
David Teigland
9a8c36b891
Fix use of orphan lock in commands
...
vgreduce, vgremove and vgcfgrestore were acquiring
the orphan lock in the midst of command processing
instead of at the start of the command. (The orphan
lock moved to being acquired at the start of the
command back when pvcreate/vgcreate/vgextend were
reworked based on pvcreate_each_device.)
vgsplit also needed a small update to avoid reacquiring
a VG lock that it already held (for the new VG name).
2018-06-12 09:46:11 -05:00
David Teigland
c4153a8dfc
Remove checking for locked VGs
...
A few places were calling a function to check if a
VG lock was held. The only place it was actually
needed is for pvcreate which wants to do its own
locking (and scanning) around process_each_pv.
The locking/scanning exceptions for pvcreate in
process_each_pv/vg_read can be enabled by just passing
a couple of flags instead of checking if the VG is
already locked. This also means that these special
cases won't be enabled unknowingly in other places
where they shouldn't be used.
2018-06-12 09:46:04 -05:00
David Teigland
3b6b7f8f9b
lvmlockd: skip repair lock upgrade for non shared vgs
...
Only attempt lvmlockd lock upgrade for shared VGs.
2018-06-12 09:44:05 -05:00
Zdenek Kabelac
1c79cf9830
build: ensure configure.h comes first
...
Fix header order so configure.h is 1st. included header.
2018-06-11 22:38:51 +02:00
Zdenek Kabelac
77d5caae90
snapshot: improve checking of merging snapshot
...
Add runtime detection for 'lvs -o+seg_monitor' and 'vgchange --monitor'.
This fix should avoid unnecessary timeout on systemd shutdown.
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
75fed05d3e
vgchange: start polling with option
...
Polling start either with '--refresh'
or with '--poll' option specified.
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
e82b70e739
build: use internal libs for lvm2cmd
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
9c7ee1e1c4
build: link dmeventd plugins with internal libs
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
5c2f7f083c
build: make generate
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
2a307ce33c
build: update configure
2018-06-11 22:25:42 +02:00
David Teigland
b48e10d9e6
Remove lvmcache CACHE_LOCKED flag
...
and the functions that set it. It's no longer used.
2018-06-08 15:11:47 -05:00
David Teigland
ebd147ff24
Remove locking for non-vgs
...
Locks for VGs are the only thing that locking.[ch]
now handles, so references to other variations
can be removed.
2018-06-08 14:34:50 -05:00
David Teigland
4ce9579099
tests: remove vgsplit-usage cluster test
2018-06-08 14:01:05 -05:00
David Teigland
1c59140f5f
Remove unused cluster-related locking flags
2018-06-08 14:01:00 -05:00
David Teigland
a8759dc7a6
Remove unused cache management from locking
...
This code was for managing lvmcache for clvm
and it no longer does anything.
2018-06-08 12:30:43 -05:00
David Teigland
5e672df6ae
Removing locking layer from sync_local_dev_names
...
the indirection is not needed without clvm
2018-06-08 12:18:57 -05:00
David Teigland
8266b7e951
tests: remove use of vgcreate -c option
2018-06-08 10:51:07 -05:00
David Teigland
ae961a192a
Remove python bindings for liblvm2app
2018-06-08 10:33:47 -05:00
David Teigland
669b1295ae
Remove header declarations for removed functions
2018-06-08 10:01:05 -05:00
David Teigland
dbc3e62cc0
tests: don't look for liblvm
2018-06-08 09:36:03 -05:00
David Teigland
73b7e6fde7
Remove more code that was only used by liblvm2app
2018-06-08 09:29:11 -05:00
Joe Thornber
7c4b19c335
Merge branch '2018-06-04-data-structs'
2018-06-08 14:21:07 +01:00
Joe Thornber
0ac89fb860
various: some missing #include zalloc.h
2018-06-08 14:18:09 +01:00
Joe Thornber
61e67e51e1
device_mapper: move hash.[hc] to base/data-struct
2018-06-08 13:54:19 +01:00
Joe Thornber
962a3eb3fa
device_mapper: remove c++ guards from the header
...
This isn't a public header anymore, so not needed.
2018-06-08 13:44:43 +01:00
Joe Thornber
d5da55ed85
device_mapper: remove dbg_malloc.
...
I wrote dbg_malloc before we had valgrind. These days there's just
no need.
2018-06-08 13:40:53 +01:00
Zdenek Kabelac
0e2a358da9
tests: check pvresize with metadata size
...
Test new size of a PV can keep also metadata.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
59dc9b445d
tests: updates test for raid scanning
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
f20e828ec2
tests: drop unit subdir
...
Until we resolve top-level making, drop inclusion of subdir Makefile
written for top-level usage so at least integrational tests are running.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
bb7c064b23
tests: initial testing code for lvs while pvmove runs
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
c93e0932e8
tests: check proper support of fmt2 with cleaner policy
2018-06-08 14:37:31 +02:00