Zdenek Kabelac
867a36b419
man: update dmsetup and dmstats pages
...
Try to provide properly rendered pages no just with
plain 'man' but also for:
man -Tps
man -Thtml
man2html
2015-10-01 15:03:12 +02:00
Zdenek Kabelac
a139275eca
alloc: fix update or area_len
...
Commit: 192d9ad977
changed logic for area_len formula - so it returns
different values.
Placing () to restore previous behaviour and make it
explicit.
2015-10-01 15:02:49 +02:00
Marian Csontos
efcb3bbc8d
test: Fix timeout handling
...
Timeouts were considered as warnings only. Signalling failure is
preferred.
2015-10-01 13:19:29 +02:00
David Teigland
309979d578
lockd: add VG name to debug logging
...
Add the VG name to the new debug logging in
the previous commit.
2015-09-29 14:07:08 -05:00
David Teigland
c805fa7c40
lockd: add debug logging for metadata error
...
When lvmetad_pvscan_vg() reads VG metadata from each PV,
it compares it to the last one to verify it matches.
If the VG metadata does not match on the PVs, an error
is printed and it fails to read the VG. In this error
case, use log_debug to show the differences between
the two unmatching copies of the metadata.
2015-09-29 13:51:24 -05:00
David Teigland
634bf8c953
lockd: fix rescanning VG metadata
...
One host changes a VG, making the cached VG on another
host invalid. The other host then rereads the VG from
disk to get the latest copy. If the first host removed
a PV from the VG, the second host attempts to reread the
VG from old PV when rescanning. Reading the VG from the
removed PV fails, causing vg_read to return "VG not found".
The fix is to simply not fail when a VG is not found while
rereading a PV and continue without it.
(This doesn't happen if the second host happens to first
run a command like 'vgs' that triggers a global revalidation
of metadata.)
2015-09-29 11:28:48 -05:00
Heinz Mauelshagen
be393f6722
raid: Introduce DEFAULT_RAID_MAX_IMAGES
...
Prepare to allow for the number of images in a raid set to be
larger than the limit for old-style dm raid1.
2015-09-28 21:38:40 +01:00
Alasdair G Kergon
d94ff20927
raid: Fail if kernel status denominator is zero.
2015-09-28 20:45:44 +01:00
Alasdair G Kergon
0173c260d8
libdm: Move status fns from deptree to targets.
...
libdm-deptree is only for functions working with dm tree nodes.
2015-09-28 20:28:31 +01:00
Heinz Mauelshagen
9d815e5f5a
raid: Use loop for text uint32_t parameter import.
...
Plus some other tidying up of the same file.
2015-09-28 14:28:03 +01:00
Alasdair G Kergon
7097663ddd
test: Cope with stripe rounding message change.
2015-09-28 12:25:31 +01:00
Heinz Mauelshagen
eab099b221
segtypes: Use flags in raid segtype macros.
2015-09-24 20:43:18 +01:00
Heinz Mauelshagen
3036620b48
raid: Add a segtype flag for each raid type.
2015-09-24 20:17:57 +01:00
David Teigland
d40830a2b1
lockd: fix changing lock type on VG with pool
...
vgchange --lock-type iterates through LVs to ensure
no LVs are active before changing the lock type of
the VG, but the loop was not checking that an LV
actually has a lock before trying it, so it would
fail if the VG had any LVs that don't use locks,
e.g it would fail on a tmeta LV from a pool.
2015-09-24 14:03:20 -05:00
Heinz Mauelshagen
028715b0f0
raid: Detect whether or not kernel supports raid0.
2015-09-24 19:59:29 +01:00
Alasdair G Kergon
4a74e19f80
alloc: Move _calc_area_multiple.
2015-09-24 17:56:19 +01:00
Alasdair G Kergon
e773e71910
stripes: Introduce _round_to_stripe_boundary.
2015-09-24 17:50:53 +01:00
Alasdair G Kergon
39a97d86f0
segtypes: Add and use new segtype macros.
...
Includes fixing an inverted raid10 segtype check in _raid_add_target_line.
2015-09-24 14:59:07 +01:00
Alasdair G Kergon
41fe225b0d
style: lv_manip.c changes
2015-09-24 13:43:58 +01:00
Heinz Mauelshagen
1945a0f504
libdm: fix bogus macro causing false parameter count
2015-09-24 14:22:52 +02:00
Heinz Mauelshagen
4e60e62444
raid: Fix raid target write_behind parameter.
...
Now uses correct "max_write_behind" instead of "writebehind".
(Includes some tidying up.)
2015-09-23 15:53:27 +01:00
Heinz Mauelshagen
96a6210198
libdm: Improve raid segment parameter handling.
2015-09-23 15:25:46 +01:00
Heinz Mauelshagen
192d9ad977
style: Miscellaneous tidying up of metadata/lv*
2015-09-23 14:37:52 +01:00
Peter Rajnoha
cb82919b0d
systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.target
...
We want most of our units to be started before any local/remote mount
points are mounted - we used {local,remote}-fs.target for this purpose
before, but it was not 100% correct as there's even {local,remote}-fs-pre.target
special systemd unit reserved for this exact purpose.
See also man 7 systemd.special and "local-fs-pre.target"/"remote-fs-pre.target"
description.
2015-09-23 13:30:51 +02:00
Alasdair G Kergon
28aff5d240
segtypes: Make constants ULL.
2015-09-22 21:10:46 +01:00
David Teigland
532b2d2d4e
man lvmthin: use --poolmetadatasize option
...
when extending a pool metadata lv, rather than
referencing the _tmeta device.
2015-09-22 13:44:09 -05:00
Alasdair G Kergon
214e2cddf6
segtypes: Use SEG_TYPE_NAME_ string constants.
2015-09-22 19:04:12 +01:00
Heinz Mauelshagen
0ce150280e
segtypes: Extend flags to 64 bits.
2015-09-22 18:03:33 +01:00
Alasdair G Kergon
3a8a37187d
post-release
2015-09-22 16:06:07 +01:00
Alasdair G Kergon
629398d0f2
pre-release
2015-09-22 16:00:10 +01:00
Peter Rajnoha
fd773dffb2
man: drop superfluous '--' in lvmconf man page for --enable/disable-halvm
2015-09-22 14:28:31 +02:00
Peter Rajnoha
001f747963
lvmconf: set locking_type=2 if external library is requested
...
Also, set safe use_lvmetad=0 for external locking (locking_type=2)
similarly to locking_type=3.
2015-09-22 13:33:12 +02:00
Peter Rajnoha
2081071bee
wiping: warn if use_blkid_wiping=1 is set and LVM not compiled with blkid_wiping support
2015-09-22 11:11:26 +02:00
Zdenek Kabelac
47f623d64b
tests: update removal test
...
Test is currently checking a very non-standard use case.
Make it a more resistent against being blocked in kernel.
2015-09-22 00:08:45 +02:00
Zdenek Kabelac
7e63364529
tests: check for block device
...
Need to detect if block device exist.
2015-09-22 00:08:44 +02:00
Zdenek Kabelac
2e5bde4a77
lvchange: update help text
...
Use <> for user specified options.
(meant to match 'Italic' style in man page).
2015-09-22 00:08:44 +02:00
Zdenek Kabelac
cfe869692f
man: update man pages
...
Start to use 'italic' when the argument is not a fixed string.
Keep 'bold' when user cannot use any other string instead.
2015-09-22 00:08:44 +02:00
Zdenek Kabelac
a61f3c5316
clvmd: update help test
...
Use <n> for <input> value.
2015-09-22 00:08:44 +02:00
Alasdair G Kergon
ce80d73684
lvmcache: Remove verbose msg when rescanning dev.
2015-09-21 19:51:15 +01:00
Peter Rajnoha
804c25a81a
WHATS_NEW: commits cb8f29d147
- a54b4bba35
2015-09-21 14:28:41 +02:00
Peter Rajnoha
a54b4bba35
report: add lv_convert_lv_uuid field
2015-09-21 14:22:23 +02:00
Peter Rajnoha
0a01c5aa36
report: add lv_move_pv_uuid field
2015-09-21 14:22:03 +02:00
Peter Rajnoha
f01b7afa19
pv: add 'mem' arg for pv_uuid_dup and pv_name_dup
2015-09-21 14:21:42 +02:00
Peter Rajnoha
ffa7b37b28
report: add lv_mirror_log_uuid field
2015-09-21 14:21:39 +02:00
Peter Rajnoha
f61a394be4
report: add lv_data_lv_uuid field
2015-09-21 14:21:21 +02:00
Peter Rajnoha
c2ea5b3dee
report: add lv_metadata_lv_uuid field
2015-09-21 14:20:58 +02:00
Peter Rajnoha
199697accf
report: add lv_origin_uuid field
2015-09-21 14:20:36 +02:00
Peter Rajnoha
cb8f29d147
report: add lv_pool_lv_uuid field
2015-09-21 14:20:12 +02:00
Peter Rajnoha
0e3042f488
lv: add 'mem' arg for lv_uuid_dup
2015-09-21 12:25:31 +02:00
Peter Rajnoha
f644431346
cleanup: report: reuse existing _uuid_disp fn to report pv_uuid field
2015-09-21 12:13:01 +02:00