summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* filter-mpath: work with nvme devicesdev-dct-test-nvmeDavid Teigland2021-01-204-54/+261
| | | | | Recognize when a device is nvme, and apply filter-mpath to nvme devices in addition to scsi devices.
* pvck: fix warning and exit code for non-4k mda1 offsetDavid Teigland2021-01-191-3/+7
| | | | | Print a warning if mda1 is not 4k, 8k or 64k. Don't exit with an error for any unexpected mda1 offset.
* label_scan: fix missing free of filtered_devsDavid Teigland2021-01-181-0/+5
| | | | | missing free of devl entries on filtered_devs list in commit 2c9bb676048fda86867df165aa297f7078dffc4b
* make: generateMarian Csontos2021-01-181-0/+4
|
* devs: remove invalid path name aliasesDavid Teigland2021-01-152-35/+179
| | | | | | Make dev_cache_get() verify aliases and drop any that are invalid before returning a dev for a given name.
* integrity: fix segfault on error path when replacing imagesDavid Teigland2021-01-131-3/+7
| | | | | | | | | When adding replacement raid+integrity images (lvconvert --repair after a raid image is lost), various errors can cause the function to exit with an error. On this exit path, the function attempts to revert new images that had been created but not yet used. The cleanup failed to account for the fact that not all images needed to be reverted.
* tests: check full zeroing of thin-pool metadataZdenek Kabelac2021-01-131-0/+68
| | | | Check zeroing works on whole thin-pool metadata device.
* tests: check thin-pool corner case allocsZdenek Kabelac2021-01-131-4/+26
|
* alloc: enhance estimation of sufficient_pes_freeZdenek Kabelac2021-01-132-3/+8
| | | | | | | | | Since commit 77fdc17d70e62cab75efaaf0dad02493b948610d always include log_len size into needed extents - however now we may need sometimes more extents then necessary - mainly when multiple PVs are involved into allocation. Add logs_still_needed into calculation of sufficient_pes_free()
* lvmlockd: sscanf buffer size warningsDavid Teigland2021-01-081-2/+4
|
* post-releaseMarian Csontos2021-01-084-2/+8
|
* pre-releasev2_03_11Marian Csontos2021-01-084-6/+11
|
* lvconvert: chunksize option was missing with cachedeviceDavid Teigland2021-01-072-1/+14
|
* partial flag for writecache and integrityDavid Teigland2020-12-112-0/+14
| | | | | | When a writecache sublv or an integrity metadata sublv are partial (missing a dev), set the partial flag on the upper level LV also, as is done for other sublvs.
* configure: updateMarian Csontos2020-12-112-5/+7
|
* writecache: fix uncache for two step detachDavid Teigland2020-12-103-2/+106
| | | | | | | Fix the two-step writecache detach in commit c32d7fed4f78b. In the case of uncache, the cachevol is removed after detaching the writecache. When the detach is finished in the second step, the remove must wait until then.
* cache: activation cache_check on cachevolDavid Teigland2020-12-093-12/+58
| | | | | | | | When using cache with a cachevol, the cache_check tool was not being run on the cache metadata during activation. cache_check clears the needs_check flag in the cache metadata, so if the flag was set due to an unclean shutdown, the activation would fail.
* tests: few more fsadm checksZdenek Kabelac2020-12-081-0/+10
|
* fsadm: fix unbound variable usageZdenek Kabelac2020-12-081-2/+6
| | | | | | | When 'fsadm resize vg/lv' is used without size, it should just resize filesystem to match device - but since we now check for unbound variable in bash - the previous usage no longer works and needs explicit check.
* man: update lvmvdoZdenek Kabelac2020-12-081-11/+12
| | | | | Fix vdo example. Update some sentences.
* man lvmcache: add writecache cleaner infoDavid Teigland2020-12-021-0/+10
|
* man: update writing style of the lvmvdo man pageMarek Suchánek2020-12-021-103/+102
| | | | | | | This patch improves the clarity, writing style, and language of the lvmvdo(7) man page. See https://bugzilla.redhat.com/show_bug.cgi?id=1855804.
* build: make generateMarian Csontos2020-11-262-5/+5
|
* udev rule: remove lvmetad commentsDavid Teigland2020-11-251-12/+3
|
* lvm.conf: remove reference to locking_typeDavid Teigland2020-11-171-2/+1
|
* man: vgsplit source and destination VGsDavid Teigland2020-11-171-3/+4
| | | | make clearer which is source and which is destination
* lvchange: fix error for foreign vg activationDavid Teigland2020-11-171-1/+1
| | | | was using ECMD_FAILED instead of 0.
* tests: integrity mismatch checks for all raid levelsDavid Teigland2020-11-112-21/+41
| | | | | | | | | | | | | | Verify that corruption is corrected for raid levels other than raid1. For other raid levels, attempt to corrupt the given file pattern on each underlying device, since we don't know which device contains the file being corrupted. This ensures that corruption is actually be introduced when testing the other raid levels. Verify that corruption is being corrected by checking the integritymismatches count is non-zero for the raid LV, which includes the total from all images (since we don't know which image will have the corruption.)
* integrity: display total mismatches at raid LV levelDavid Teigland2020-11-113-0/+45
| | | | | | | | | | | | | | | | Each integrity image in a raid LV reports its own number of integrity mismatches, e.g. lvs -o integritymismatches vg/lv_rimage_0 lvs -o integritymismatches vg/lv_rimage_1 In addition to this, allow the total number of integrity mismatches from all images to be displayed for the raid LV. lvs -o integritymismatches vg/lv shows the number of mismatches from both lv_rimage_0 and lv_rimage_1.
* tests: update integrity testsDavid Teigland2020-11-102-217/+275
| | | | | | simplified the method of corrupting data, the old method was not working reliably. moved syncation tests to a different file
* writecache: supported in dm-writecache version 3David Teigland2020-11-091-1/+1
| | | | not version 2
* man: update vdoZdenek Kabelac2020-11-031-87/+88
| | | | | | | | | | | Enhance VDO man page with description of memory usage and space requirements chapter. Remove some unneeded blank lines in man page. Use more precise terminology. Correct examples since cpool and vpool are protected names.
* pvck: fix previous commitDavid Teigland2020-10-281-2/+2
| | | | | line to setup bcache was misplaced in commit 5a94126e7a28
* Revert "tests: revert lvm shell use in pvck-dump"David Teigland2020-10-281-1/+1
| | | | | | This reverts commit 05d23b2dd80919ebd2239cfd7f8e08d5de9ebace. this required enabling editline in configure
* tests: revert lvm shell use in pvck-dumpDavid Teigland2020-10-271-1/+1
| | | | doesn't work on my machine
* pvck: fix dev filteringDavid Teigland2020-10-271-10/+21
| | | | | | | filters needing io weren't being run because bcache wasn't set up. Read the first 4k of the device before doing filtering or reading ondisk structs to reduce reads.
* pvck: handle first mda at non-4096 offsetDavid Teigland2020-10-271-5/+6
| | | | | | | | | It's possible for a machine with a non-4k page size to create a PV with an mda_header at an offset other than 4k. Fix pvck --dump to work with these other mda offsets. pvck --repair will write a new first mda at 4096 but lvm with other page sizes will work with this.
* writecache: disallow partial or degraded activationDavid Teigland2020-10-262-0/+37
| | | | when either main or fast lvs are incomplete
* lvchange: allow syncaction check with integrityDavid Teigland2020-10-262-13/+146
| | | | syncaction check will detect and correct integrity checksum mismatches.
* pvcreate: clean up opening and filtering of argsDavid Teigland2020-10-264-39/+120
| | | | | | | | | | | | | | | | | | | | | | | | | The args for pvcreate/pvremove (and vgcreate/vgextend when applicable) were not efficiently opened, scanned, and filtered. This change reorganizes the opening and filtering in the following steps: - label scan and filter all devs . open ro . standard label scan at the start of command - label scan and filter dev args . open ro . uses full md component check . typically the first scan and filter of pvcreate devs - close and reopen dev args . open rw and excl - repeat label scan and filter dev args . using reopened rw excl fd - wipe and write new headers . using reopened rw excl fd
* gcc: cleanup warns from older gccZdenek Kabelac2020-10-262-3/+3
|
* tests: minor updateZdenek Kabelac2020-10-261-2/+2
|
* fsadm: better check for getsize64 supportZdenek Kabelac2020-10-261-8/+5
| | | | | | | | | | Older blockdev tool return failure error code with --help, and since now the tool abort on command failure, lets detect missing --getsize64 support directly by running command and check if it returns something usable. It's likely very hard to have the system with such old blockdev tool and newer lvm2 compiled.
* WHATS_NEW: updateZdenek Kabelac2020-10-241-0/+2
|
* man: regenerateZdenek Kabelac2020-10-2443-129/+86
|
* man: more precise UNITZdenek Kabelac2020-10-241-3/+2
| | | | | | | | Since 'kilobytes' could be seen in 2 way - SI as '1000', while all programmers sees it as '1024' - switch to commonly acceptted KiB, MiB.... Resolves RHBZ 1496255.
* lv_manip: add space into messageZdenek Kabelac2020-10-241-1/+1
| | | | Just add space between %s(.
* tests: fsadm test continue after fs repairZdenek Kabelac2020-10-241-1/+26
| | | | | | Test case where filesystem has been corrected via fsck. In such case fsck returns '1' as success and should be handled in a same way as '0' since fs is correct.
* fsadm: enhance error handlingZdenek Kabelac2020-10-241-19/+28
| | | | | | | Set more secure bash failure mode for pipilines. Avoid using unset variables. Enhnace error reporting for failing command. Avoid using error via 'case..esac || error'.
* fsadm: handle fsck return 1 for corrected fsZdenek Kabelac2020-10-241-7/+18
|