]> sourceware.org Git - lvm2.git/log
lvm2.git
16 months agothin: add cfg support for thin_restore and cache_restore
Zdenek Kabelac [Fri, 23 Jun 2023 12:39:44 +0000 (14:39 +0200)]
thin: add cfg support for thin_restore and cache_restore

Add configurable paths for thin_restore and cache_restore.

16 months agotests: update test for automatic virtual size correction
Zdenek Kabelac [Fri, 23 Jun 2023 16:03:25 +0000 (18:03 +0200)]
tests: update test for automatic virtual size correction

lvm_import_vdo will adjust the virtual size within conversion
so the volume can be use without any futher tweaking.

16 months agolvm_import_vdo: correct the converted virtual size
Zdenek Kabelac [Fri, 23 Jun 2023 16:01:32 +0000 (18:01 +0200)]
lvm_import_vdo: correct the converted virtual size

Ensure the volume after conversion has the properly aligned size to the
volume group extent size. This would be visible when using virtual size,
that cannot be divided by extent size.

Before the user had to manually adjust the size after conversion to get
access to all data stored on VDO volume.

17 months agolvcreate: allow thin snapshot syntax that broke
David Teigland [Tue, 20 Jun 2023 20:41:24 +0000 (15:41 -0500)]
lvcreate: allow thin snapshot syntax that broke

The command "lvcreate --type thin --snapshot ..." to create a thin
snapshot would fail.

commit d651b340e68d97ada25e558eb50aa40062bba936 removed the optional
"--type thin" from the command definition "lvcreate --snapshot LV_thin",
and added --type thin as AUTOTYPE.  This was correct and should not have
changed anything if all the command defs were correct, but it broke
the "lvcreate --type thin --snapshot" case.  It reveals a problem in a
different command definintion:  "lvcreate --type thin LV_thin" that was
missing --snapshot in its OO list.

17 months agotests: lvresize fs mounted multiple times
David Teigland [Tue, 20 Jun 2023 18:13:06 +0000 (13:13 -0500)]
tests: lvresize fs mounted multiple times

17 months agolvresize: fix multiple mounts
David Teigland [Fri, 16 Jun 2023 17:06:40 +0000 (12:06 -0500)]
lvresize: fix multiple mounts

which was mistaken as a mounted LV that had been renamed.

17 months agodevice_id: ignore leading and trailing spaces for sys_wwid and sys_serial
David Teigland [Thu, 15 Jun 2023 18:58:48 +0000 (13:58 -0500)]
device_id: ignore leading and trailing spaces for sys_wwid and sys_serial

Leading and trailing underscores are also ignored to handle device ids
written by previous versions which replaced all spaces with underscores.

17 months agotests: Skip integrity tests if target not present dev-mcsontos-ci
Marian Csontos [Wed, 14 Jun 2023 11:48:51 +0000 (13:48 +0200)]
tests: Skip integrity tests if target not present

17 months agotests: tmp is used for TMPDIR
Marian Csontos [Wed, 14 Jun 2023 11:23:41 +0000 (13:23 +0200)]
tests:  tmp is used for TMPDIR

Fixes tests failing due to previous commit 734d9791f817.

17 months agoWHATS_NEW: update
Zdenek Kabelac [Fri, 9 Jun 2023 15:52:00 +0000 (17:52 +0200)]
WHATS_NEW: update

17 months agotests: updates
Zdenek Kabelac [Fri, 9 Jun 2023 11:28:23 +0000 (13:28 +0200)]
tests: updates

Add some more complicated conversion tests.

17 months agotests: vdo manager wrapper tool updates
Zdenek Kabelac [Fri, 9 Jun 2023 11:24:56 +0000 (13:24 +0200)]
tests: vdo manager wrapper tool updates

Support size specification in KiB units.
Add some theoretical support for some new options from vdoprepareforlvm.

17 months agotests: tmp dir inside test dir
Zdenek Kabelac [Mon, 29 May 2023 12:17:43 +0000 (14:17 +0200)]
tests: tmp dir inside test dir

Keep even temporary files within testing dir so generated files are
not left behind in system's /tmp directory.

17 months agocov: drop unneeded constness
Zdenek Kabelac [Thu, 11 May 2023 17:17:18 +0000 (19:17 +0200)]
cov: drop unneeded constness

If we want to have const structure - use a const pointer to avoid,
however making individual members const make it only assingle
in construct time and we already violate this logic since
we memcpy into the structure -  so drop these unnecessary consts...

17 months agovdo: man updates for lvm_import_vdo
Zdenek Kabelac [Fri, 9 Jun 2023 11:24:19 +0000 (13:24 +0200)]
vdo: man updates for lvm_import_vdo

17 months agovdo: enhance lvm_vdo_import
Zdenek Kabelac [Thu, 11 May 2023 18:07:37 +0000 (20:07 +0200)]
vdo: enhance lvm_vdo_import

Add support for usage of 'dm-snapshot' for doing whole device conversion
in a snapshot which could be merged once the whole conversion has been
made.
This helps with cases where there would be any unexpected failure in the
middle of conversion process and user can continue using original
device until problem in conversion is fixed.

Import tool now uses 'truncate' tool to create a small backend file (20M) for loop device
to hold COW exception store.

Option  --vdo-config has been added to allow specifing location of vdo
configuration file.

Option --no-snapshot allows to use import tool without creation of
snapshot, however recovery after finished VDO conversion and unfinished
lvm2 conversion is then very difficult.

Option --uuid-prefix allow to specify DM UUID prefix for snapshot
device.

Use read with -r.

17 months agovdo: fix and enhance vdo metadata reader
Zdenek Kabelac [Fri, 9 Jun 2023 11:21:35 +0000 (13:21 +0200)]
vdo: fix and enhance vdo metadata reader

Improve metadata parser to handle volume_geometry bio_offset,
which needs to be substracted from 'region' start_block when present.

This bio_offset block is non-zero i.e. with converted VDO volumes.

Also fix some converted structure value (but they are not in use).

17 months agocmd_enum: correct inclusion
Zdenek Kabelac [Thu, 18 May 2023 19:53:33 +0000 (21:53 +0200)]
cmd_enum: correct inclusion

Ensure we use generated header file for this build from -Iinclude.

Reported-by: Anton Lundin <glance@ac2.se>
17 months agodevice_id: fix handling of non-PV with duplicate serial number
David Teigland [Thu, 8 Jun 2023 17:24:05 +0000 (12:24 -0500)]
device_id: fix handling of non-PV with duplicate serial number

Fix in the code that matches devices to system.devices entries when
the devices have the same serial number.  A non-PV device in
system.devices has no pvid value, and the code was segfaulting
when checking the null pvid value.

17 months agoman: lvmraid update limitations
David Teigland [Mon, 5 Jun 2023 15:43:51 +0000 (10:43 -0500)]
man: lvmraid update limitations

17 months agoreporter: restore report type to initial value after processing report_for_selection
Peter Rajnoha [Tue, 30 May 2023 19:14:37 +0000 (21:14 +0200)]
reporter: restore report type to initial value after processing report_for_selection

If we are executing 'report_for_selection' to do an internal report
just for the selection itself (not for display), we can call it more
than once. In that case, we are reusing the same selection handle
(e.g. inside 'process_each_lv_in_vg').

The selection handle has 'report_type' field which is a union of all
report types needed for the report based on selection fields we actually
use.

The 'report_type' is further clarified based on checks and rules inside
'_get_final_report_type' which 'report_for_selection' calls. Then, this
final report type unambiguously identifies proper branch to take in
'report_all_in_{pv,vg,lv}' that is called next.

If the 'report_for_selection' is called more than once with the same
selection handle, we need to make sure that we always restore the report
type to its initial value, so all the rules inside 'report_for_selection'
are applied correctly next time.

This patch fixes the missing restoration of the 'report_type' value in
'selection_handle' that is reused for recurring 'report_for_selection'
calls.

An example scenario where this failed was with selecting an LV for
removal with "lvremove --select" while using a field in the selection
that required extra DM info or DM status call for the LV (that is,
"Logical Volume Device Info Fields" and "Logical Volume Device Status Fields"
as visible in 'lvs -S help').

17 months agolvreduce: simplify _lvseg_get_stripes integrity check
David Teigland [Thu, 25 May 2023 17:09:41 +0000 (12:09 -0500)]
lvreduce: simplify _lvseg_get_stripes integrity check

Simplify unnecessary loop to avoid coverity complaint.

18 months agodevice_id: ignore trailing underscores in t10 wwid from devices file
David Teigland [Fri, 19 May 2023 17:52:48 +0000 (12:52 -0500)]
device_id: ignore trailing underscores in t10 wwid from devices file

In previous lvm versions, trailing spaces at the end of a t10 wwid would
be replaced with underscores, so the IDNAME string in system.devices
would look something like "t10.123_".  Current versions of lvm ignore
trailing spaces in a t10 wwid, so the IDNAME string used would be
"t10.123".  The different values would cause lvm to not recognize a
device in system.devices with the trailing _.  Fix this by ignoring
trailing underscores in the IDNAME string from system.devices.

18 months agotests: integrity-caching: ensure raid redundancy
David Teigland [Wed, 17 May 2023 19:15:25 +0000 (14:15 -0500)]
tests: integrity-caching: ensure raid redundancy

The recent fix 05c2b10c5d0a9 ensures that raid LV images are not
using the same devices.  This was happening in the lvextend commands
used by this test, so fix the test to use more devices to ensue
redundancy.

18 months agotests: integrity: snapshots now work on raid+integrity
David Teigland [Wed, 17 May 2023 16:10:45 +0000 (11:10 -0500)]
tests: integrity: snapshots now work on raid+integrity

18 months agotoollib: provide proper hint for referencing VG uuid in case of duplicate VG names
Peter Rajnoha [Tue, 16 May 2023 15:17:55 +0000 (17:17 +0200)]
toollib: provide proper hint for referencing VG uuid in case of duplicate VG names

vgrename does not support -S|--select, so do not provide a hint about
using it. Instead, provide a hint about using VG uuid directly.

❯  vgs
  WARNING: VG name vg1 is used by VGs DXjcSK-gWfu-5gLh-9Kbg-sG49-dtRr-GqXzGL and MVMfyM-sjOa-M2xV-AT4Y-JddR-h4SP-UO5Ttk.
  Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
  VG     #PV #LV #SN Attr   VSize   VFree
  vg1      1   0   0 wz--n- 124.00m 124.00m
  vg1      1   0   0 wz--n- 124.00m 124.00m

(vgrename does not support -S|--select)
❯  vgrename vg1 vg2
  WARNING: VG name vg1 is used by VGs DXjcSK-gWfu-5gLh-9Kbg-sG49-dtRr-GqXzGL and MVMfyM-sjOa-M2xV-AT4Y-JddR-h4SP-UO5Ttk.
  Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
  Multiple VGs found with the same name: skipping vg1
  Use VG uuid in place of the VG name.

(vgchange does support -S|--select)
❯  vgchange --addtag a vg1
  WARNING: VG name vg1 is used by VGs DXjcSK-gWfu-5gLh-9Kbg-sG49-dtRr-GqXzGL and MVMfyM-sjOa-M2xV-AT4Y-JddR-h4SP-UO5Ttk.
  Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
  Multiple VGs found with the same name: skipping vg1
  Use --select vg_uuid=<uuid> in place of the VG name.

18 months agoraidintegrity: allow snapshots
David Teigland [Wed, 22 Mar 2023 18:05:43 +0000 (13:05 -0500)]
raidintegrity: allow snapshots

18 months agoFix "multisegment RAID1, allocator uses one disk for both legs"
heinzm [Wed, 10 May 2023 16:22:11 +0000 (18:22 +0200)]
Fix "multisegment RAID1, allocator uses one disk for both legs"

In case of e.g. 3 PVs, creating or extending a RaidLV causes SubLV
collocation thus putting segments of diffent rimage (and potentially
larger rmeta) SubLVs onto the same PV.  For redundant RaidLVs this'll
compromise redundancy.  Fix by detecting such bogus allocation on
lvcreate/lvextend and reject the request.

18 months agotests: more updates for 300M xfs
Zdenek Kabelac [Wed, 10 May 2023 14:17:38 +0000 (16:17 +0200)]
tests: more updates for 300M xfs

Fix some sizing for larger xfs testing.
Also fix resize of reiserfs which requires resize_fsadm.

18 months agotests: skip this testing without newer blkid
Zdenek Kabelac [Wed, 10 May 2023 09:45:50 +0000 (11:45 +0200)]
tests: skip this testing without newer blkid

Testing xfs --fs functionality needs new blkid.

18 months agocov: hide some false positives
Zdenek Kabelac [Wed, 10 May 2023 11:01:37 +0000 (13:01 +0200)]
cov: hide some false positives

Hide some false positives.

Note: there must not a be blank line after coverity hiding comment.

18 months agocov: remove unneeded header file inclusion
Zdenek Kabelac [Wed, 10 May 2023 10:55:38 +0000 (12:55 +0200)]
cov: remove unneeded header file inclusion

18 months agocov: validate dev_get_primary_dev result
Zdenek Kabelac [Wed, 10 May 2023 11:28:38 +0000 (13:28 +0200)]
cov: validate dev_get_primary_dev result

Make sure primary_dev is defined when using it.

18 months agotests: needs to be exported for tracing
Zdenek Kabelac [Sat, 6 May 2023 20:39:16 +0000 (22:39 +0200)]
tests: needs to be exported for tracing

18 months agotests: adapt for xfs 300M min size
Zdenek Kabelac [Sat, 6 May 2023 18:11:32 +0000 (20:11 +0200)]
tests: adapt for xfs 300M min size

Some test still were missed to be converted for XFS 300M min size.

18 months agotests: different check for mounted volume
Zdenek Kabelac [Sat, 6 May 2023 17:39:25 +0000 (19:39 +0200)]
tests: different check for mounted volume

It appears newer mount allows repeated mounting ??
Anyway - do the check with grep.

18 months agotests: check for lvmdbusd running in the system
Zdenek Kabelac [Sat, 6 May 2023 18:35:42 +0000 (20:35 +0200)]
tests: check for lvmdbusd running in the system

Check for running (possibly leftover) lvmdbusd running in the
system - as this daemon may interfere with this test as in this
case both be operating on same  'live' data in /run/lvm.

18 months agotests: update lvextend tests
Zdenek Kabelac [Thu, 4 May 2023 23:43:29 +0000 (01:43 +0200)]
tests: update lvextend tests

Make test faster by agregating sets of operation to work on a single
created filesystem yet checking all the variants of extension and reduction.

Split 'xfs' part into separate test and convert it for use of the
minimal size 300M nowdays required by mkfs.xfs.

18 months agoaux: retry brd removal
Zdenek Kabelac [Sat, 6 May 2023 20:38:58 +0000 (22:38 +0200)]
aux: retry brd removal

Try to remove brd twice if there is some collision with udevd.
Instanciate only 1 ramdisk.
Use just 'eval' for '--nameprefixes' results.

18 months agoaux: wipefs_a takes list of devices
Zdenek Kabelac [Sat, 6 May 2023 18:36:28 +0000 (20:36 +0200)]
aux: wipefs_a takes list of devices

Enhance function to take list of device so set of devices
can be wiped with a single call:

aux wipefs_a  "$dev1" "$dev2"

18 months agovdo: document feature option
Zdenek Kabelac [Thu, 27 Apr 2023 21:17:40 +0000 (23:17 +0200)]
vdo: document feature option

18 months agocov: check syscall result
Zdenek Kabelac [Wed, 26 Apr 2023 14:36:42 +0000 (16:36 +0200)]
cov: check syscall result

18 months agocov: remove unused but set variables
Zdenek Kabelac [Wed, 26 Apr 2023 14:32:23 +0000 (16:32 +0200)]
cov: remove unused but set variables

18 months agocleanup: correcting some log_print
Zdenek Kabelac [Wed, 26 Apr 2023 12:40:11 +0000 (14:40 +0200)]
cleanup: correcting some log_print

Correcting to log_print_unless_silent(),
so -qq can do some work.

18 months agocov: some initializers
Zdenek Kabelac [Wed, 26 Apr 2023 12:15:21 +0000 (14:15 +0200)]
cov: some initializers

18 months agocov: hide problem with 64bit time_t
Zdenek Kabelac [Wed, 26 Apr 2023 12:05:12 +0000 (14:05 +0200)]
cov: hide problem with 64bit time_t

18 months agocov: validata top_lv
Zdenek Kabelac [Wed, 26 Apr 2023 11:44:52 +0000 (13:44 +0200)]
cov: validata top_lv

Add explicit pointer check is never NULL.

18 months agocov: ensure there is either vg or error_vg
Zdenek Kabelac [Wed, 26 Apr 2023 11:38:22 +0000 (13:38 +0200)]
cov: ensure there is either vg or error_vg

Make it explicitely visible to coverity that
_process_pvs_in_vg() is not passing  NULL vg.

18 months agocov: ensure NULL baton is not dereferenced
Zdenek Kabelac [Wed, 26 Apr 2023 11:37:41 +0000 (13:37 +0200)]
cov: ensure NULL baton is not dereferenced

18 months agocov: simplier code
Zdenek Kabelac [Wed, 26 Apr 2023 11:20:56 +0000 (13:20 +0200)]
cov: simplier code

Avoid coverity to contruct some abstract scenarions of 'cft'
modification and simplify the code at the same time.

18 months agoFix "lvconvert -m 0 will always take rimage_0 even if it is out-of-sync"
heinzm [Fri, 5 May 2023 13:00:49 +0000 (15:00 +0200)]
Fix "lvconvert -m 0 will always take rimage_0 even if it is out-of-sync"

Bail out in case first rimage is out-of-sync.
Refresh first, i.e. "lvchange --resync $RaidLV",
then retry downgrade to linear after resynchronization.

18 months agolvreduce: make _lvseg_get_stripes handle integrity layer
David Teigland [Tue, 2 May 2023 21:12:23 +0000 (16:12 -0500)]
lvreduce: make _lvseg_get_stripes handle integrity layer

lvreduce uses _lvseg_get_stripes() which was unable to get raid stripe
info with an integrity layer present.  This caused lvreduce on a
raid+integrity LV to fail prematurely when checking stripe parameters.
An unhelpful error message about stripe size would be printed.

18 months agopvck: improve error for write to existing file
David Teigland [Fri, 28 Apr 2023 18:31:39 +0000 (13:31 -0500)]
pvck: improve error for write to existing file

18 months agolvmcache: fix valgrind error when dropping md duplicate
David Teigland [Tue, 25 Apr 2023 19:46:36 +0000 (14:46 -0500)]
lvmcache: fix valgrind error when dropping md duplicate

When lvmcache info is dropped because it's an md component,
then the lvmcache vginfo can also be dropped, but the list
iterator was still using the list head in vginfo, so break
from the loop earlier to avoid it.

18 months agotests: adapt waiting for pvmove start
Zdenek Kabelac [Tue, 25 Apr 2023 17:51:52 +0000 (19:51 +0200)]
tests: adapt waiting for pvmove start

Previous commit cause the pvmove could actually be started in unexpected
order - so make sure, we are not starting new pvmove in same VG until
the previous one is started.

18 months agotests: utils now print also df_h
Zdenek Kabelac [Tue, 25 Apr 2023 13:07:46 +0000 (15:07 +0200)]
tests: utils now print also df_h

Add info about space usage on devices after the test.

Add some more skipped dirs.

18 months agotests: some aux corrections
Zdenek Kabelac [Tue, 25 Apr 2023 13:07:25 +0000 (15:07 +0200)]
tests: some aux corrections

Keep backups within test_dir instead of dev_dir (so it doesn't
leak large files there if the tests are run over real /dev dir).

Move restoring of dm_mirror throttling before test_dir is removed.

18 months agotests: fix pattern for raid4
Zdenek Kabelac [Mon, 24 Apr 2023 20:41:54 +0000 (22:41 +0200)]
tests: fix pattern for raid4

Since the strip in raid4 might be XOR - we might eventually end
with 2 blocks of 'B' on 2 disks - so will rest of stripe with 'b'.

18 months agotests: use 300M lv size for xfs
Zdenek Kabelac [Mon, 24 Apr 2023 20:18:10 +0000 (22:18 +0200)]
tests: use 300M lv size for xfs

18 months agotests: try to retry remove of scsi_debug
Zdenek Kabelac [Mon, 24 Apr 2023 13:26:40 +0000 (15:26 +0200)]
tests: try to retry remove of scsi_debug

Not quite sure if this helps anything, some of testing
machines can't reliably remove scsi_debug, reporting
they are in use - but it's not easily reproducible...

18 months agotests: handle multiple devs with wait_pvmove_lv_ready
Zdenek Kabelac [Mon, 24 Apr 2023 13:24:20 +0000 (15:24 +0200)]
tests: handle multiple devs with wait_pvmove_lv_ready

aux wait_pvmove_lv_ready() now handles multiple pvmove LVs
at one go - which allows a bit fast checking - although
at some point we may need to switch to use delayed devs
since mirror throttling seems to be no longer working well,
as CPU are getting so fast, that most of data are already
pvmoved before throttling has any chance to do something...

18 months agotests: skip some unneeded test
Zdenek Kabelac [Sun, 23 Apr 2023 17:17:08 +0000 (19:17 +0200)]
tests: skip some unneeded test

Skip irelevant tests for polld & lockd pass.

18 months agoaux: use unused brd device for testing
Zdenek Kabelac [Mon, 24 Apr 2023 21:46:50 +0000 (23:46 +0200)]
aux: use unused brd device for testing

When 'brd' device can be removed (is unused AKA not opened),
remove such device and use again for testing.

Let's assume user has no unused brd device left in the system.

When the 'tests' sometimes fail to cleanup devices, with this
change futher cleanup from some next test may evenually release
brd device and make it available for testing.

18 months agoaux: more efficient lvmlock shutdown
Zdenek Kabelac [Mon, 24 Apr 2023 20:18:57 +0000 (22:18 +0200)]
aux: more efficient lvmlock shutdown

18 months agowipe_lv: use zeroing ioctl only for large sizes
Zdenek Kabelac [Mon, 24 Apr 2023 21:58:21 +0000 (23:58 +0200)]
wipe_lv: use zeroing ioctl only for large sizes

There is no easy way to detect, whether device supports zeroing,
and kernel also zeroes device when it's not directly supported,
but with extra message:

operation not supported error, dev X, sector Y op 0x9:(WRITE_ZEROES)...

So to avoid generating such message with every 'lvcreate', use for
zeroing of upto 8K just standard write of zeroed page.
(maybe we can go with even larger sizes).

18 months agofix dev_name use in add_areas_line
David Teigland [Mon, 24 Apr 2023 20:47:45 +0000 (15:47 -0500)]
fix dev_name use in add_areas_line

This function was relying on dev_name() returning NULL
to indicate no device, but dev_name never returns NULL.

18 months agolvmdbus: preserve PATH envvar
Zdenek Kabelac [Sun, 23 Apr 2023 10:49:37 +0000 (12:49 +0200)]
lvmdbus: preserve PATH envvar

18 months agotests: enforce 4K block for integrity fs
Zdenek Kabelac [Sat, 22 Apr 2023 22:03:43 +0000 (00:03 +0200)]
tests: enforce 4K block for integrity fs

With raid tests it's important we don't get spread of 4K file
across 1K block on a multiple disk stripe - so use 4K block size
for ext4 fs.

18 months agoaux: loop doesn't support zeroing discard
Zdenek Kabelac [Sat, 22 Apr 2023 22:02:33 +0000 (00:02 +0200)]
aux: loop doesn't support zeroing discard

To avoid logging unsupported WRITE_ZEROES with loop,
disable usage for this backend device.

18 months agotests: hide some more file in error trace
Zdenek Kabelac [Sat, 22 Apr 2023 09:23:04 +0000 (11:23 +0200)]
tests: hide some more file in error trace

Hide unneeded dev nodes.

18 months agomakefiles: forgotten to install some test config
Zdenek Kabelac [Sat, 22 Apr 2023 09:21:46 +0000 (11:21 +0200)]
makefiles: forgotten to install some test config

rpm testing missed config files.

18 months agotest: use aux wait_recalc
Zdenek Kabelac [Fri, 21 Apr 2023 20:30:50 +0000 (22:30 +0200)]
test: use aux wait_recalc

Use aux function.

18 months agotest: convert to use ext4
Zdenek Kabelac [Fri, 21 Apr 2023 20:28:32 +0000 (22:28 +0200)]
test: convert to use ext4

Modify test to check same properties with less demanding ext4.

18 months agoaux: don't use to new dd options
Zdenek Kabelac [Fri, 21 Apr 2023 20:01:40 +0000 (22:01 +0200)]
aux: don't use to new dd options

Actually  oseek comes only with rawhide's version,
just use the standard option name.

18 months agotests: add data sync
Zdenek Kabelac [Fri, 21 Apr 2023 12:51:47 +0000 (14:51 +0200)]
tests: add data sync

18 months agoaux: add wait_recalc
Zdenek Kabelac [Thu, 20 Apr 2023 15:08:42 +0000 (17:08 +0200)]
aux: add wait_recalc

Share function across tests.

18 months agotests: convert to use ext4
Zdenek Kabelac [Fri, 21 Apr 2023 11:16:36 +0000 (13:16 +0200)]
tests: convert to use ext4

Convert test to use only ext4 instead of 300M demanding XFS.
Shorten  'B' files to 4K and use 4K strip size with >raid1 arrays
so we do not risk spreading of the file across stripe.

Also use easier 'aux corrupt_dev()' method to introduce a bit
corruption into a block device with integrity.

TODO: shorten _wait_recalc (should't be needed).

18 months agotests: use aux clear_dev
Zdenek Kabelac [Fri, 21 Apr 2023 11:16:22 +0000 (13:16 +0200)]
tests: use aux clear_dev

Use wrapper over 'blkdiscard -z'

18 months agoaux: add corrupt_dev
Zdenek Kabelac [Thu, 20 Apr 2023 23:43:13 +0000 (01:43 +0200)]
aux: add corrupt_dev

Add function to corrupt some bytes in give file path presenting
a device.  1st. patern in just once replaced with 2nd. pattern.

Usable to simulate some bit corruption for integrity devices.

18 months agoaux: add clear_dev
Zdenek Kabelac [Thu, 20 Apr 2023 23:35:31 +0000 (01:35 +0200)]
aux: add clear_dev

Function that will use 'blkdiscard -z' and fallbacks
to 'dd' when such option is not available.

19 months agopost-release
Marian Csontos [Fri, 21 Apr 2023 08:36:06 +0000 (10:36 +0200)]
post-release

19 months agopre-release v2_03_21
Marian Csontos [Fri, 21 Apr 2023 08:35:10 +0000 (10:35 +0200)]
pre-release

19 months agolvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate
Vojtech Trefny [Thu, 20 Apr 2023 09:49:21 +0000 (11:49 +0200)]
lvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate

19 months agocache: fix snapshot of cache with cachevol
David Teigland [Mon, 10 Apr 2023 16:41:28 +0000 (11:41 -0500)]
cache: fix snapshot of cache with cachevol

Creating a snapshot of a cache LV with a cachevol would fail
because cache_check was not being skipped.

19 months agoremove extra change from support 16KB page size
David Teigland [Fri, 7 Apr 2023 20:57:28 +0000 (15:57 -0500)]
remove extra change from support 16KB page size

19 months agosupport 16KB page size
David Teigland [Fri, 7 Apr 2023 14:05:07 +0000 (09:05 -0500)]
support 16KB page size

19 months agoWHATS_NEW: update
Zdenek Kabelac [Thu, 6 Apr 2023 11:45:42 +0000 (13:45 +0200)]
WHATS_NEW: update

19 months agotests: use less demanding ext4
Zdenek Kabelac [Thu, 6 Apr 2023 11:40:16 +0000 (13:40 +0200)]
tests: use less demanding ext4

19 months agotests: lower demand for disk resources
Zdenek Kabelac [Tue, 4 Apr 2023 12:44:47 +0000 (14:44 +0200)]
tests: lower demand for disk resources

Convert test to use a single skeleton and only different pieces
keep in separate tests.

Lower raid disk usage to smaller size and switch to ext4
as way less demanding fileystem.

19 months agovdo: use fixed size vdopool wrapper
Zdenek Kabelac [Mon, 6 Mar 2023 13:52:59 +0000 (14:52 +0100)]
vdo: use fixed size vdopool wrapper

Instead of using size of 'empty header' in vdopool use fixed size 4K
for a 'wrappeing' vdo-pool device.

This fixes the issue when user tried to activate vdo-pool after
a conversion from vdo managed device with 'vgchange -ay' - where
this command activated all LVs with 'vdo-pool' wrapping device as well,
but this converted pool uses  0-length header.

This 4k size should usually prevent other tools like 'blkid' recognize
such device as anything - so it shouldn't cause any problems with
duplicate indentification of devices.

19 months agocleanup: rename function
Zdenek Kabelac [Mon, 6 Mar 2023 13:52:28 +0000 (14:52 +0100)]
cleanup: rename function

Rename _thin_lv_has_device_id and use common function naming
with _lv_has_thin_device_id().

19 months agocleanup: simplify
Zdenek Kabelac [Wed, 1 Mar 2023 20:05:47 +0000 (21:05 +0100)]
cleanup: simplify

19 months agoconfigure: update
Zdenek Kabelac [Wed, 1 Mar 2023 08:40:53 +0000 (09:40 +0100)]
configure: update

autoreconf

19 months agoconfigure.ac: print locking dir
Zdenek Kabelac [Tue, 28 Feb 2023 22:13:00 +0000 (23:13 +0100)]
configure.ac: print locking dir

Correcting output results from configure script when
printing locking dir.

Shuffle dmfilemapd close to dmeventd option and tracing.

Couple indent changes.

19 months agointegrity: hide creation of internal LVs
Zdenek Kabelac [Sat, 25 Feb 2023 19:29:05 +0000 (20:29 +0100)]
integrity: hide creation of internal LVs

Creation of 'hidden' local LVs should be visible only in
verbose mode (-v) when creating a raid LV with integrity.

19 months agoraidintegrity: allow writecache and cache
David Teigland [Fri, 17 Mar 2023 21:39:48 +0000 (16:39 -0500)]
raidintegrity: allow writecache and cache

Allow writecache|cache over raid+integrity LV.

19 months agotests: integrity fixes
David Teigland [Thu, 16 Mar 2023 18:59:56 +0000 (13:59 -0500)]
tests: integrity fixes

wait_recalc was mistakenly being called on raid without integrity
wait_recalc loop was exiting without error

19 months agolvmdbusd: Correct seg. fault on s390x ELN
Tony Asleson [Thu, 30 Mar 2023 15:10:23 +0000 (10:10 -0500)]
lvmdbusd: Correct seg. fault on s390x ELN

syscall 186 is specific to x86 64bit.  As this is different from arch
to arch and between same arch different arch size we will only grab
thread ID using built-in python support if it is supported.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2166931

19 months agolvmdbusd: Correct locking for _common_log
Tony Asleson [Thu, 30 Mar 2023 15:07:13 +0000 (10:07 -0500)]
lvmdbusd: Correct locking for _common_log

Reduce the lock time and include the flush in the lock.

Reported by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>

19 months agoFix import of utils from lvmdbusd.cfg
Adam Williamson [Tue, 21 Mar 2023 18:46:54 +0000 (11:46 -0700)]
Fix import of utils from lvmdbusd.cfg

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This page took 0.072493 seconds and 5 git commands to generate.