]> sourceware.org Git - lvm2.git/log
lvm2.git
4 years agotests: add wait on udev processing
Zdenek Kabelac [Fri, 15 May 2020 14:56:40 +0000 (16:56 +0200)]
tests: add wait on udev processing

Trying to avoid collision with udev watch rule preventing to
succeed 'dmsetup remove' becuase it keeps device open.

4 years agolist: use container_of
Zdenek Kabelac [Fri, 15 May 2020 12:41:23 +0000 (14:41 +0200)]
list:  use container_of

Reuse macro

4 years agopvck: set dump on one call
Zdenek Kabelac [Fri, 15 May 2020 13:05:39 +0000 (15:05 +0200)]
pvck: set dump on one call

arg_str_value() has built-in  arg_is_set().

Also this makes it obvious to coverity 'dump != NULL' & 'repair != NULL'
at the branch code path.

4 years agocov: lvconvert: missing check for function failure
Zdenek Kabelac [Sun, 17 May 2020 16:29:54 +0000 (18:29 +0200)]
cov: lvconvert: missing check for function failure

4 years agocov: check strdup for NULL
Zdenek Kabelac [Fri, 15 May 2020 15:22:18 +0000 (17:22 +0200)]
cov: check strdup for NULL

4 years agocov: check for deactivation failure
Zdenek Kabelac [Fri, 15 May 2020 15:44:03 +0000 (17:44 +0200)]
cov: check for deactivation failure

4 years agolvmcache: free vginfo lock_type
David Teigland [Thu, 14 May 2020 15:20:08 +0000 (10:20 -0500)]
lvmcache: free vginfo lock_type

4 years agohints: free hint structs on exit
David Teigland [Wed, 13 May 2020 22:19:41 +0000 (17:19 -0500)]
hints: free hint structs on exit

and free on a couple error paths.

4 years agodevs: add some checks for a dev with no path name
David Teigland [Wed, 13 May 2020 20:47:20 +0000 (15:47 -0500)]
devs: add some checks for a dev with no path name

It's possible for a dev-cache entry to remain after all
paths for it have been removed, and other parts of the
code expect that a dev always has a name.  A better fix
may be to remove a device from dev-cache after all paths
to it have been removed.

4 years agolvmlockd: use 4K sector size when any dev is 4K
David Teigland [Mon, 11 May 2020 18:08:39 +0000 (13:08 -0500)]
lvmlockd: use 4K sector size when any dev is 4K

When either logical block size or physical block size is 4K,
then lvmlockd creates sanlock leases based on 4K sectors,
but the lvm client side would create the internal lvmlock LV
based on the first logical block size it saw in the VG,
which could be 512.  This could cause the lvmlock LV to be
too small to hold all the sanlock leases. Make the lvm client
side use the same sizing logic as lvmlockd.

4 years agospec: Enable integrity
Marian Csontos [Tue, 5 May 2020 12:12:32 +0000 (14:12 +0200)]
spec: Enable integrity

4 years agolvmlockd: replace lock adopt info source
David Teigland [Mon, 4 May 2020 18:35:03 +0000 (13:35 -0500)]
lvmlockd: replace lock adopt info source

The lock adopt feature was disabled since it had used
lvmetad as a source of info.  This replaces the lvmetad
info with a local file and enables the adopt feature again
(enabled with lvmlockd --adopt 1).

4 years agoremove vg_read_error
David Teigland [Fri, 24 Apr 2020 16:14:29 +0000 (11:14 -0500)]
remove vg_read_error

Once converted results to error numbers but is now just a null check.

4 years agouse refresh_filters only where needed
David Teigland [Wed, 22 Apr 2020 19:08:54 +0000 (14:08 -0500)]
use refresh_filters only where needed

Filters are changed and need refresh in only one
place (vgimportclone), so avoid doing the refresh
for every other command that doesn't need it.

4 years agoFix scripts/lvmlocks.service.in using nonexistent --lock-opt autowait
Maxim Plotnikov [Tue, 21 Apr 2020 21:16:29 +0000 (00:16 +0300)]
Fix scripts/lvmlocks.service.in using nonexistent --lock-opt autowait

The --lock-opt autowait was dropped back in 9ab6bdce01,
and attempting to specify it has quite an opposite effect:
no waiting is done, which makes the unit almost useless.

4 years agolvmcache: rework handling of VGs with duplicate vgnames
David Teigland [Tue, 28 Jan 2020 17:47:37 +0000 (11:47 -0600)]
lvmcache: rework handling of VGs with duplicate vgnames

The previous method of managing duplicate vgnames prevented
vgreduce from working if a foreign vg with the same name
existed.

4 years agopass cmd struct through more functions
David Teigland [Tue, 28 Jan 2020 16:33:15 +0000 (10:33 -0600)]
pass cmd struct through more functions

no functional change

4 years agolvmcache_get_mda: remove unused function
David Teigland [Mon, 27 Jan 2020 19:15:27 +0000 (13:15 -0600)]
lvmcache_get_mda: remove unused function

4 years agovgrename: fix error value when name exists
David Teigland [Tue, 21 Apr 2020 14:33:56 +0000 (09:33 -0500)]
vgrename: fix error value when name exists

4 years agoWHATS_NEW: integrity with raid
David Teigland [Wed, 15 Apr 2020 16:04:12 +0000 (11:04 -0500)]
WHATS_NEW: integrity with raid

4 years agoAllow dm-integrity to be used for raid images
David Teigland [Wed, 20 Nov 2019 22:07:27 +0000 (16:07 -0600)]
Allow dm-integrity to be used for raid images

dm-integrity stores checksums of the data written to an
LV, and returns an error if data read from the LV does
not match the previously saved checksum.  When used on
raid images, dm-raid will correct the error by reading
the block from another image, and the device user sees
no error.  The integrity metadata (checksums) are stored
on an internal LV allocated by lvm for each linear image.
The internal LV is allocated on the same PV as the image.

Create a raid LV with an integrity layer over each
raid image (for raid levels 1,4,5,6,10):

lvcreate --type raidN --raidintegrity y [options]

Add an integrity layer to images of an existing raid LV:

lvconvert --raidintegrity y LV

Remove the integrity layer from images of a raid LV:

lvconvert --raidintegrity n LV

Settings

Use --raidintegritymode journal|bitmap (journal is default)
to configure the method used by dm-integrity to ensure
crash consistency.

Initialization

When integrity is added to an LV, the kernel needs to
initialize the integrity metadata/checksums for all blocks
in the LV.  The data corruption checking performed by
dm-integrity will only operate on areas of the LV that
are already initialized.  The progress of integrity
initialization is reported by the "syncpercent" LV
reporting field (and under the Cpy%Sync lvs column.)

Example: create a raid1 LV with integrity:

$ lvcreate --type raid1 -m1 --raidintegrity y -n rr -L1G foo
  Creating integrity metadata LV rr_rimage_0_imeta with size 12.00 MiB.
  Logical volume "rr_rimage_0_imeta" created.
  Creating integrity metadata LV rr_rimage_1_imeta with size 12.00 MiB.
  Logical volume "rr_rimage_1_imeta" created.
  Logical volume "rr" created.
$ lvs -a foo
  LV                  VG  Attr       LSize  Origin              Cpy%Sync
  rr                  foo rwi-a-r---  1.00g                     4.93
  [rr_rimage_0]       foo gwi-aor---  1.00g [rr_rimage_0_iorig] 41.02
  [rr_rimage_0_imeta] foo ewi-ao---- 12.00m
  [rr_rimage_0_iorig] foo -wi-ao----  1.00g
  [rr_rimage_1]       foo gwi-aor---  1.00g [rr_rimage_1_iorig] 39.45
  [rr_rimage_1_imeta] foo ewi-ao---- 12.00m
  [rr_rimage_1_iorig] foo -wi-ao----  1.00g
  [rr_rmeta_0]        foo ewi-aor---  4.00m
  [rr_rmeta_1]        foo ewi-aor---  4.00m

4 years agomove pv_list code into lib
David Teigland [Tue, 14 Jan 2020 20:12:20 +0000 (14:12 -0600)]
move pv_list code into lib

4 years agoblkdeactivate: add support for VDO in blkdeactivate script
Peter Rajnoha [Thu, 9 Apr 2020 13:23:58 +0000 (15:23 +0200)]
blkdeactivate: add support for VDO in blkdeactivate script

Make it possible to tear down VDO volumes with blkdeactivate if VDO is
part of a device stack (and if VDO binary is installed). Also, support
optional -o|--vdooptions configfile=file.

4 years agoWHATS_NEWS: update
Zdenek Kabelac [Wed, 8 Apr 2020 13:22:25 +0000 (15:22 +0200)]
WHATS_NEWS: update

4 years agotest: repair of thin-pool used by foreign apps
Zdenek Kabelac [Wed, 8 Apr 2020 13:20:33 +0000 (15:20 +0200)]
test: repair of thin-pool used by foreign apps

4 years agolvconvert: no validation for thin-pools not used by lvm2
Zdenek Kabelac [Wed, 8 Apr 2020 09:46:42 +0000 (11:46 +0200)]
lvconvert: no validation for thin-pools not used by lvm2

lvm2 supports thin-pool to be later used by other tools doing
virtual volumes themself (i.e. docker) - in this case we
shall not validate transaction Id - is this is used by
other tools and lvm2 keeps value 0 - so the transationId
validation need to be skipped in this case.

4 years agopost-release
Marian Csontos [Thu, 26 Mar 2020 11:22:09 +0000 (12:22 +0100)]
post-release

4 years agopre-release v2_03_09
Marian Csontos [Thu, 26 Mar 2020 11:21:16 +0000 (12:21 +0100)]
pre-release

4 years agovdo: make vdopool wrapping device is read-only
Zdenek Kabelac [Wed, 11 Mar 2020 11:57:44 +0000 (12:57 +0100)]
vdo: make vdopool wrapping device is read-only

When vdopool is activated standalone - we use a wrapping linear device
to hold actual vdo device active - for this we can set-up read-only
device to ensure there cannot be made write through this device to
actual pool device.

4 years agotest: Fix previous commit
Marian Csontos [Wed, 18 Mar 2020 17:03:12 +0000 (18:03 +0100)]
test: Fix previous commit

4 years agotest: Can not attach writecache to active volume
Marian Csontos [Wed, 18 Mar 2020 13:30:09 +0000 (14:30 +0100)]
test: Can not attach writecache to active volume

4 years agoreduce device path error messsages
David Teigland [Thu, 12 Mar 2020 15:18:51 +0000 (10:18 -0500)]
reduce device path error messsages

When /dev entries or sysfs entries are changing
due to concurrent lvm commands, it can cause
warning/error messages about missing paths.

4 years agoman: lvm2-activation-generator fix vgchange comment
David Teigland [Tue, 10 Mar 2020 19:41:51 +0000 (14:41 -0500)]
man: lvm2-activation-generator fix vgchange comment

generated services use vgchange -aay (not -ay)

4 years agolvmlockd: use transient LV lock when creating snapshot
David Teigland [Mon, 9 Mar 2020 17:25:26 +0000 (12:25 -0500)]
lvmlockd: use transient LV lock when creating snapshot

Creating a snapshot was using a persistent LV lock
on the origin, so if the origin LV was inactive at
the time of the snapshot the LV lock would remain.
(Running lvchange -an on the inactive LV would
clear the LV lock.)  Use a transient LV lock so it
will be dropped if it was not locked previously.

4 years agowritecache: require inactive LV to attach
David Teigland [Mon, 9 Mar 2020 16:18:10 +0000 (11:18 -0500)]
writecache: require inactive LV to attach

Prevent attaching writecache to an active LV until
we can determine the block size of the fs on the LV,
and use that to enforce an appropriate writecache
block size.  Changing the block size under a mounted
fs can cause panic/corruption.

4 years agoWHATS_NEW_DM: update
Zdenek Kabelac [Thu, 5 Mar 2020 16:38:00 +0000 (17:38 +0100)]
WHATS_NEW_DM: update

4 years agocontainer_of: use offsetof from stddef
Zdenek Kabelac [Thu, 5 Mar 2020 11:58:34 +0000 (12:58 +0100)]
container_of:  use offsetof from stddef

Use standardized offsetof() macro from stddef.
Helps to build valid code with latest gcc10 with -O2.

4 years agolibdm: fix dm_list pointer arithmentic for new gcc 10 optimization
Zdenek Kabelac [Wed, 4 Mar 2020 15:07:22 +0000 (16:07 +0100)]
libdm: fix dm_list pointer arithmentic for new gcc 10 optimization

4 years agodmeventd: enhance time waiting loop
Zdenek Kabelac [Wed, 4 Mar 2020 14:56:09 +0000 (15:56 +0100)]
dmeventd: enhance time waiting loop

dmeventd is 'scanning' statuses in loop (most usually in 10sec
intervals) - and meanwhile it sleeps within:
pthread_cond_timedwait()

However this function call tends to wakeup sometimes a short amount of
time sooner - and our code still believe the 'right time' has not yet
arrived and basically for a moment 'busy-looped' on calling this
function - so for systems with 'clock_gettime()' present we obtain
time and we go 10ms to the future second - this avoids unneeded
repeated invocation of our time scheduling loop.

TODO: monitoring during 1 hour 'time-change'...

4 years agopvck: use dm_config_parse_without_dup_node_check
David Teigland [Wed, 4 Mar 2020 17:32:13 +0000 (11:32 -0600)]
pvck: use dm_config_parse_without_dup_node_check

instead of dm_config_parse.  Some strange case could
cause dm_config_parse to print duplicate warnings about
all the metadata fileds.

4 years agotests: reduce sizes in pvck-dump and improve checks
David Teigland [Wed, 4 Mar 2020 17:30:50 +0000 (11:30 -0600)]
tests: reduce sizes in pvck-dump and improve checks

Smaller devs can be used so tests can be run on small vms.
Improve checks.

4 years agotests: pvck dump from larger metadata areas
David Teigland [Tue, 3 Mar 2020 19:44:59 +0000 (13:44 -0600)]
tests: pvck dump from larger metadata areas

4 years agopvck: allow dump from file
David Teigland [Mon, 2 Mar 2020 22:26:44 +0000 (16:26 -0600)]
pvck: allow dump from file

4 years agopvck: fix reading large mda1
David Teigland [Mon, 2 Mar 2020 21:22:39 +0000 (15:22 -0600)]
pvck: fix reading large mda1

When mda_size is larger than io_memory_size, reading
the entire mda fails unless the previous read of the
label has been invalidated.

4 years agopvck: improve mda_offset mda_size choices
David Teigland [Fri, 28 Feb 2020 18:00:23 +0000 (12:00 -0600)]
pvck: improve mda_offset mda_size choices

Attempt to calculate an offset or size if one only
value was specified in the settings.

Use header values when available.

4 years agopvck: print longer command description
David Teigland [Fri, 28 Feb 2020 17:24:28 +0000 (11:24 -0600)]
pvck: print longer command description

4 years agopvck: ensure text lines are terminated
David Teigland [Fri, 28 Feb 2020 17:20:27 +0000 (11:20 -0600)]
pvck: ensure text lines are terminated

4 years agohints: free hint list in error exit path
David Teigland [Tue, 3 Mar 2020 18:25:34 +0000 (12:25 -0600)]
hints: free hint list in error exit path

4 years agoman: lvmcache raid1 references
Jonathan Brassow [Thu, 27 Feb 2020 17:33:55 +0000 (11:33 -0600)]
man: lvmcache raid1 references

4 years agotests: validate vdo slab_size
Zdenek Kabelac [Wed, 26 Feb 2020 12:26:46 +0000 (13:26 +0100)]
tests: validate vdo slab_size

New vdoformat can print this size - so check we pass proper bit count
matching preset value.

4 years agovdo: fix slab size bits calculation
Zdenek Kabelac [Fri, 21 Feb 2020 10:59:29 +0000 (11:59 +0100)]
vdo: fix slab size bits calculation

When formating VDO volume, the calculated amound of bits
for 'vdoformat --slab-bits' parameter was shifted by 2 bits
(calculated size was making 2MiB vdo_slab_size_mb value appear like if
user would be specifying only 512KiB)

Fixed by properly converting internal size_mb value to KiB.

4 years agowritecache: check watermark value
David Teigland [Tue, 25 Feb 2020 16:34:30 +0000 (10:34 -0600)]
writecache: check watermark value

4 years agowritecache: allow removing wcorig lv
David Teigland [Fri, 21 Feb 2020 18:40:42 +0000 (12:40 -0600)]
writecache: allow removing wcorig lv

like removing corig

4 years agowritecache: fix watermark error message
David Teigland [Fri, 21 Feb 2020 14:13:32 +0000 (08:13 -0600)]
writecache: fix watermark error message

4 years agowritecache: working real dm uuid suffix for wcorig lv
David Teigland [Wed, 19 Feb 2020 19:30:02 +0000 (13:30 -0600)]
writecache: working real dm uuid suffix for wcorig lv

4 years agowritecache: drop real dm suffix
David Teigland [Mon, 17 Feb 2020 18:14:13 +0000 (12:14 -0600)]
writecache: drop real dm suffix

fixes the problem of adding writecache to an active LV

4 years agothin: don't use writecache for poolmetadata
David Teigland [Thu, 13 Feb 2020 23:22:37 +0000 (17:22 -0600)]
thin: don't use writecache for poolmetadata

4 years agowritecache: check if cachevol is writable
David Teigland [Tue, 11 Feb 2020 18:59:39 +0000 (12:59 -0600)]
writecache: check if cachevol is writable

before trying to initialize it (since wipe_lv
does not return an error if it fails to write.)

4 years agocachevol: stop dm errors with uncaching cache with cachevol
Zdenek Kabelac [Tue, 11 Feb 2020 16:11:39 +0000 (17:11 +0100)]
cachevol: stop dm errors with uncaching cache with cachevol

Fix the anoying kernel message reported:
device-mapper: cache: 253:2: metadata operation 'dm_cache_commit' failed: error = -5
which has been reported while cachevol has been removed.
Happened via confusing variable - so switch the variable to commonly user '_size'
which presents a value in sector units and avoid 'scaling' this as extent length
by vg extent size when placing 'error' target on removal path.

Patch shouldn't have impact on actual users data, since at this moment
of removal all date should have been already flushed to origin device.

m

4 years agopost-release
Marian Csontos [Tue, 11 Feb 2020 09:53:01 +0000 (10:53 +0100)]
post-release

4 years agopre-release v2_03_08
Marian Csontos [Tue, 11 Feb 2020 09:50:50 +0000 (10:50 +0100)]
pre-release

4 years agovdo: fix vdoformat when -V is specified
Zdenek Kabelac [Mon, 10 Feb 2020 14:41:30 +0000 (15:41 +0100)]
vdo: fix vdoformat when -V is specified

The previous patch improved read of pipe when lvm2 was looking
for default logical size, but we clearly must read pipe also
for -V case, when the logical size is already defined.

4 years agowritecache: skip zeroing in test mode
David Teigland [Fri, 7 Feb 2020 16:32:10 +0000 (10:32 -0600)]
writecache: skip zeroing in test mode

4 years agowritecache: check for invalid cachevol
David Teigland [Fri, 7 Feb 2020 16:26:59 +0000 (10:26 -0600)]
writecache: check for invalid cachevol

4 years agowritecache: fix return value
David Teigland [Fri, 7 Feb 2020 16:21:07 +0000 (10:21 -0600)]
writecache: fix return value

4 years agoraid: better place for blocking reshapes
Zdenek Kabelac [Fri, 7 Feb 2020 14:14:05 +0000 (15:14 +0100)]
raid: better place for blocking reshapes

Still the place can be better to block only particular reshape
operations which ATM cause kernel problems.

We check if the new number of images is higher - and prevent to take
conversion if the volume is in use (i.e. thin-pool's data LV).

4 years agowritecache: prevent snapshots
David Teigland [Thu, 6 Feb 2020 17:27:33 +0000 (11:27 -0600)]
writecache: prevent snapshots

there appear to be problems with taking a snapshot
of an LV with a writecache, so block it until that
is understood or fixed.

4 years agowritecache: fix splitcache when origin is raid
David Teigland [Tue, 4 Feb 2020 22:05:56 +0000 (16:05 -0600)]
writecache: fix splitcache when origin is raid

4 years agoWHATS_NEW: update
Zdenek Kabelac [Tue, 4 Feb 2020 16:21:13 +0000 (17:21 +0100)]
WHATS_NEW: update

4 years agogenerate: remake
Zdenek Kabelac [Tue, 4 Feb 2020 14:40:33 +0000 (15:40 +0100)]
generate: remake

Regen man page.

4 years agolv_manip: add extra check for existin origin_lv
Zdenek Kabelac [Thu, 30 Jan 2020 14:54:19 +0000 (15:54 +0100)]
lv_manip: add extra check for existin origin_lv

clang: it's supposedly impossible path to hit, as we should always
have origin_lv defined when running this path, but adding protection
isn't a big issue to make this obvious to analyzer.

4 years agoraid: add internal error for no segment
Zdenek Kabelac [Thu, 30 Jan 2020 14:46:05 +0000 (15:46 +0100)]
raid: add internal error for no segment

clang: capture internal error when data_seg would not be defined.
(invalid LV with no areas)

4 years agolv_manip: add error handling for _reserve_area
Zdenek Kabelac [Thu, 30 Jan 2020 14:23:47 +0000 (15:23 +0100)]
lv_manip: add error handling for _reserve_area

Since _reserve_area() may fail due to error allocation failure,
add support to report this already reported failure upward.

FIXME: it's log_error() without causing direct command failure.

4 years agocommand: validate reporting of previous argument
Zdenek Kabelac [Thu, 30 Jan 2020 14:08:30 +0000 (15:08 +0100)]
command: validate reporting of previous argument

When reporting parsing error, report 'previous' argument
only when there is one.

4 years agodmeventd: nicer error path for reading pipe
Zdenek Kabelac [Wed, 29 Jan 2020 15:41:28 +0000 (16:41 +0100)]
dmeventd: nicer error path for reading pipe

When _daemon_read()/_client_read() fails during the read,
ensure memory allocated withing function is also release here
(so caller does not need to care). Also improve code readbility a bit
a for same functionality use more similar code.

4 years agolvmlockctl: use inline initilizers
Zdenek Kabelac [Wed, 29 Jan 2020 14:47:40 +0000 (15:47 +0100)]
lvmlockctl: use inline initilizers

clang: ensure r_name[] is in all possible paths defined.

4 years agolvmlockctl: ensure result value is always defined
Zdenek Kabelac [Tue, 4 Feb 2020 14:33:36 +0000 (15:33 +0100)]
lvmlockctl: ensure result value is always defined

Ensure passed pointer gets predefined value (instead of random stack
value).

4 years agolvmlockd: move eval of ENOENT
Zdenek Kabelac [Thu, 30 Jan 2020 11:52:19 +0000 (12:52 +0100)]
lvmlockd: move eval of ENOENT

To avoid logging 'errors' for no real error state (ENOENT),
move this evaluation upward in the code.

4 years agocov: check error code from mutex init
Zdenek Kabelac [Thu, 30 Jan 2020 11:48:40 +0000 (12:48 +0100)]
cov: check error code from mutex init

4 years agocov: widen before calculating min_chunk_size
Zdenek Kabelac [Thu, 30 Jan 2020 11:43:53 +0000 (12:43 +0100)]
cov: widen before calculating min_chunk_size

Although we expect min_chunk_size to be 32bit value, for
large size of caches it might be useful to do calcs 64bit.
So to avoid doing shift as signed 32bit - use unsigned 64bit
from the start.

4 years agocov: unused header file removal
Zdenek Kabelac [Thu, 30 Jan 2020 10:03:27 +0000 (11:03 +0100)]
cov: unused header file removal

cov: unused header removed
Also ensure library header file with config settings goes first.
Move inclusion of format-text.h into layout.h

4 years agobcache: fix memleak on error path
Zdenek Kabelac [Wed, 29 Jan 2020 16:31:17 +0000 (17:31 +0100)]
bcache: fix memleak on error path

clang: free io on error path.

4 years agopvck: avoid memleak of vgname
Zdenek Kabelac [Wed, 29 Jan 2020 15:55:49 +0000 (16:55 +0100)]
pvck: avoid memleak of vgname

clang: no vgname buffer leak.

4 years agodmsetup: no memleak on failed realocation
Zdenek Kabelac [Wed, 29 Jan 2020 15:30:16 +0000 (16:30 +0100)]
dmsetup: no memleak on failed realocation

clang: keep old buf pointer for release on failing realloc() codepath.

4 years agotests: compatible with older kernels
Zdenek Kabelac [Wed, 29 Jan 2020 14:50:57 +0000 (15:50 +0100)]
tests: compatible with older kernels

Older kernels just show syscall stacktrace.

4 years agotests: move vgsplit writecache
David Teigland [Tue, 4 Feb 2020 16:20:19 +0000 (10:20 -0600)]
tests: move vgsplit writecache

to a different file

4 years agopvmove: prevent moving writecache device
David Teigland [Mon, 3 Feb 2020 21:59:12 +0000 (15:59 -0600)]
pvmove: prevent moving writecache device

4 years agovgsplit: handle cachevol
David Teigland [Mon, 3 Feb 2020 21:33:58 +0000 (15:33 -0600)]
vgsplit: handle cachevol

attached to a cache or writecache LV.
Ensure PVs in cachevol are moved with the main LV.

4 years agowritecache: reject invalid high/low watermark setting
David Teigland [Mon, 3 Feb 2020 17:33:30 +0000 (11:33 -0600)]
writecache: reject invalid high/low watermark setting

4 years agoman: lvmcache writecache watermark percent
David Teigland [Mon, 3 Feb 2020 17:21:24 +0000 (11:21 -0600)]
man: lvmcache writecache watermark percent

4 years agowritecache: report status fields
David Teigland [Fri, 31 Jan 2020 17:52:49 +0000 (11:52 -0600)]
writecache: report status fields

reporting fields (-o) directly from kernel:
writecache_total_blocks
writecache_free_blocks
writecache_writeback_blocks
writecache_error

The data_percent field shows used cache blocks / total cache blocks.

4 years agoman: updates to lvmcache
David Teigland [Thu, 30 Jan 2020 20:09:21 +0000 (14:09 -0600)]
man: updates to lvmcache

4 years agolvmlockd: use ret value in query function
David Teigland [Wed, 29 Jan 2020 16:37:28 +0000 (10:37 -0600)]
lvmlockd: use ret value in query function

4 years agoWHATS_NEW: update
Zdenek Kabelac [Thu, 23 Jan 2020 09:25:35 +0000 (10:25 +0100)]
WHATS_NEW: update

4 years agotests: add corruption write on PV test
Zdenek Kabelac [Mon, 20 Jan 2020 13:16:13 +0000 (14:16 +0100)]
tests: add corruption write on PV test

Test a case where PV is readable, but fails on write updating.
Check the failure is reported only for a single PV.

4 years agotests: writeerror_dev
Zdenek Kabelac [Mon, 20 Jan 2020 12:15:46 +0000 (13:15 +0100)]
tests: writeerror_dev

Intruduce aux function for easy simulation of disk areas,
that are 'normally' readable, but will fail on write.

4 years agovdo: adapt for multi line vdo_format output
Zdenek Kabelac [Wed, 22 Jan 2020 11:57:23 +0000 (12:57 +0100)]
vdo: adapt for multi line vdo_format output

Do not close pipeline after 1st. line parsed from vdo_format.
Also reprint the output for a user so new messages from vdo_format
can be seen by users.

4 years agoraid: more limitted prohibition of stacked raid usage
Zdenek Kabelac [Thu, 16 Jan 2020 15:43:55 +0000 (16:43 +0100)]
raid: more limitted prohibition of stacked raid usage

We actually need to prohibit only reshaping cases which are
running over multiple commands.

4 years agoman: pvck dump description improvements
David Teigland [Wed, 22 Jan 2020 21:01:00 +0000 (15:01 -0600)]
man: pvck dump description improvements

5 years agoadd suggestion message for mirror LVs
Heming Zhao [Wed, 15 Jan 2020 02:44:30 +0000 (02:44 +0000)]
add suggestion message for mirror LVs

Currently the error messages are not clear. This very easy to
guide user to execute "--removemissing --force", it is dangerous
and will make the LVs to be destroied.

Signed-off-by: Zhao Heming <heming.zhao@suse.com>
This page took 0.190196 seconds and 5 git commands to generate.