summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* spec: Workaround for failing buildMarian Csontos2022-09-201-1/+2
| | | | | | | Commit 18722dfdf4d3e6f172d0b2af8bbdc4a154ea1dc0 introduced a dependency on file from tools/ into lib/. TODO: revert this once the issue is resolved.
* lvresize: add new options and defaults for fs handlingDavid Teigland2022-09-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new option "--fs String" for lvresize/lvreduce/lvextend controls the handling of file systems before/after resizing the LV. --resizefs is the same as --fs resize. The new option "--fsmode String" can be used to control mounting and unmounting of the fs during resizing. Possible --fs values: checksize Only applies to reducing size; does nothing for extend. Check the fs size and reduce the LV if the fs is not using the affected space, i.e. the fs does not need to be shrunk. Fail the command without reducing the fs or LV if the fs is using the affected space. resize Resize the fs using the fs-specific resize command. This may include mounting, unmounting, or running fsck. See --fsmode to control mounting behavior, and --nofsck to disable fsck. resize_fsadm Use the old method of calling fsadm to handle the fs (deprecated.) Warning: this option does not prevent lvreduce from destroying file systems that are unmounted (or mounted if prompts are skipped.) ignore Resize the LV without checking for or handling a file system. Warning: using ignore when reducing the LV size may destroy the file system. Possible --fsmode values: manage Mount or unmount the fs as needed to resize the fs, and attempt to restore the original mount state at the end. nochange Do not mount or unmount the fs. If mounting or unmounting is required to resize the fs, then do not resize the fs or the LV and fail the command. offline Unmount the fs if it is mounted, and resize the fs while it is unmounted. If mounting is required to resize the fs, then do not resize the fs or the LV and fail the command. Notes on lvreduce: When no --fs or --resizefs option is specified: . lvextend default behavior is fs ignore. . lvreduce default behavior is fs checksize (includes activating the LV.) With the exception of --fs resize_fsadm|ignore, lvreduce requires the recent libblkid fields FSLASTBLOCK and FSBLOCKSIZE. FSLASTBLOCK*FSBLOCKSIZE is the last byte used by the fs on the LV, which determines if reducing the fs is necessary.
* spec: use --with-default-use-devices-file=1 for rhel9+Marian Csontos2022-08-091-0/+4
|
* spec: Use libedit for newer distributionsMarian Csontos2022-08-092-0/+15
|
* remove static autoactivationDavid Teigland2022-01-271-4/+0
| | | | | | | | | event based autoactivation is now the only method that lvm provides for autoactivation. Setting lvm.conf event_activation=0 can still be used to disable event based autoactivation commands, but doing so will no longer enable static autoactivation.
* spec: Add lvmautoactivation man pageMarian Csontos2021-12-011-0/+1
|
* new udev autoactivationDavid Teigland2021-10-071-2/+1
| | | | | | | | | | | | | | new udev rule 69-dm-lvm.rules replaces 69-dm-lvm-meta.rules and lvm2-pvscan.service udev rule calls pvscan directly on the added device pvscan output indicates if a complete VG can be activated udev env var LVM_VG_NAME_COMPLETE is used to pass complete VG name from pvscan to the udev rule udev rule uses systemd-run to run vgchange -aay <vgname>
* spec: Rename vdoimport to lvm_import_vdo.dev-mcsontos-rename-vdoimportMarian Csontos2021-08-261-2/+2
|
* spec: Add vdoimport man pageMarian Csontos2021-07-211-1/+6
|
* vdo: add vdoimport supportZdenek Kabelac2021-07-091-0/+1
| | | | | | | | | | | | | Add tool 'vdoimport' to support easy conversion of an existing VDO manager managed VDO volumes into lvm2 managed VDO LV. When physical converted volume is already a logical volume, conversion happens with the VG itself, just with validation for extent_size, so the virtually sized logical VDO volume size can be expressed in extents. Example of basic simple usage: vdoimport --name vg/vdolv /dev/mapper/vdophysicalvolume
* device usage based on devices fileDavid Teigland2021-02-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LVM devices file lists devices that lvm can use. The default file is /etc/lvm/devices/system.devices, and the lvmdevices(8) command is used to add or remove device entries. If the file does not exist, or if lvm.conf includes use_devicesfile=0, then lvm will not use a devices file. When the devices file is in use, the regex filter is not used, and the filter settings in lvm.conf or on the command line are ignored. LVM records devices in the devices file using hardware-specific IDs, such as the WWID, and attempts to use subsystem-specific IDs for virtual device types. These device IDs are also written in the VG metadata. When no hardware or virtual ID is available, lvm falls back using the unstable device name as the device ID. When devnames are used, lvm performs extra scanning to find devices if their devname changes, e.g. after reboot. When proper device IDs are used, an lvm command will not look at devices outside the devices file, but when devnames are used as a fallback, lvm will scan devices outside the devices file to locate PVs on renamed devices. A config setting search_for_devnames can be used to control the scanning for renamed devname entries. Related to the devices file, the new command option --devices <devnames> allows a list of devices to be specified for the command to use, overriding the devices file. The listed devices act as a sort of devices file in terms of limiting which devices lvm will see and use. Devices that are not listed will appear to be missing to the lvm command. Multiple devices files can be kept in /etc/lvm/devices, which allows lvm to be used with different sets of devices, e.g. system devices do not need to be exposed to a specific application, and the application can use lvm on its own set of devices that are not exposed to the system. The option --devicesfile <filename> is used to select the devices file to use with the command. Without the option set, the default system devices file is used. Setting --devicesfile "" causes lvm to not use a devices file. An existing, empty devices file means lvm will see no devices. The new command vgimportdevices adds PVs from a VG to the devices file and updates the VG metadata to include the device IDs. vgimportdevices -a will import all VGs into the system devices file. LVM commands run by dmeventd not use a devices file by default, and will look at all devices on the system. A devices file can be created for dmeventd (/etc/lvm/devices/dmeventd.devices) If this file exists, lvm commands run by dmeventd will use it. Internal implementaion: - device_ids_read - read the devices file . add struct dev_use (du) to cmd->use_devices for each devices file entry - dev_cache_scan - get /dev entries . add struct device (dev) to dev_cache for each device on the system - device_ids_match - match devices file entries to /dev entries . match each du on cmd->use_devices to a dev in dev_cache, using device ID . on match, set du->dev, dev->id, dev->flags MATCHED_USE_ID - label_scan - read lvm headers and metadata from devices . filters are applied, those that do not need data from the device . filter-deviceid skips devs without MATCHED_USE_ID, i.e. skips /dev entries that are not listed in the devices file . read lvm label from dev . filters are applied, those that use data from the device . read lvm metadata from dev . add info/vginfo structs for PVs/VGs (info is "lvmcache") - device_ids_find_renamed_devs - handle devices with unstable devname ID where devname changed . this step only needed when devs do not have proper device IDs, and their dev names change, e.g. after reboot sdb becomes sdc. . detect incorrect match because PVID in the devices file entry does not match the PVID found when the device was read above . undo incorrect match between du and dev above . search system devices for new location of PVID . update devices file with new devnames for PVIDs on renamed devices . label_scan the renamed devs - continue with command processing
* rpm: bare words are no longer supportedZdenek Kabelac2020-10-021-2/+2
| | | | Update for new rpm requirement and use "..." words.
* spec: Enable integrityMarian Csontos2020-05-051-0/+1
|
* spec: Fix lvm2-activation-generator man page handlingMarian Csontos2019-10-041-1/+3
| | | | | lvm2-activation-generator is not installed when systemd is not in the system.
* spec: enable writecacheMarian Csontos2019-09-251-0/+2
|
* spec: Move blkdeactivate to device-mapperMarian Csontos2019-09-201-2/+2
|
* rpm: package lvmvdo man pageZdenek Kabelac2019-01-221-0/+3
|
* udev: 69-dm-lvm-metad.rules is still neededMarian Csontos2018-12-061-0/+1
|
* rpm: install lvm2-pvscan againZdenek Kabelac2018-11-301-0/+1
| | | | Let's repeat history once more 13d5c78a8d5f09b91e26cd49fffa05313d2f6c82.
* spec: lvmdbusd requires python3 setuptoolsMarian Csontos2018-10-221-2/+2
|
* spec: No %ghost for dirs at tmpfiles.dMarian Csontos2018-10-031-2/+2
| | | | | | | | | %ghost should not be used for directories created by systemd-tmpfiles. This may prevent package from working right after installation without invoking systemd-tmpfiles. See: https://pagure.io/packaging-committee/issue/439
* spec: Remove lvmconf referncesMarian Csontos2018-09-141-2/+0
| | | | Fixes: 81ca0cb1619b6ea22fa68f54783cd62dafbd2eaf
* More cleanup needed for dropped scriptsDavid Teigland2018-09-131-1/+2
| | | | and drop the lvm2 prefix from lvmlockd service
* spec: Fix conditionalMarian Csontos2018-07-241-2/+2
|
* spec: Add vdo filesMarian Csontos2018-07-242-0/+9
|
* spec: Remove unsupported config optionsMarian Csontos2018-07-242-4/+0
|
* spec: Remove python bindingsMarian Csontos2018-07-242-32/+3
|
* spec: Remove lvmetadMarian Csontos2018-07-243-28/+0
|
* rpm: drop no longer present clvmd, lvm2appZdenek Kabelac2018-06-152-103/+0
|
* spec: Enable notify-dbus in builds with dbusMarian Csontos2017-05-261-0/+1
|
* spec: rename lockd to lvmlockdDavid Teigland2017-04-183-15/+15
|
* spec: Add dmfilemapdMarian Csontos2017-03-283-0/+12
|
* spec: Disable sanlock only, keep lockd_dlm enabledMarian Csontos2017-03-161-0/+5
|
* spec: Replace remaining %define by %globalMarian Csontos2017-03-162-48/+48
|
* spec: Use %global instead of %define for constantsMarian Csontos2017-03-161-7/+7
| | | | Using %define is now discouraged by Fedora Packaging Guidelines
* spec: Update requirements for lockdMarian Csontos2017-03-161-2/+2
| | | | lockd requires sanlock >= 3.3.0
* spec: Profiles are not %config(noreplace)Marian Csontos2017-03-161-7/+7
| | | | These files are just examples and should not be edited by user.
* spec: lvmchange is built-in commandMarian Csontos2017-03-161-2/+0
|
* spec: move dmeventd -R from post to posttrans script for device-mapper-event ↵Peter Rajnoha2016-10-121-3/+5
| | | | | | package See also https://bugzilla.redhat.com/show_bug.cgi?id=1382688.
* rpm: install lvmreport.7Zdenek Kabelac2016-09-121-0/+1
|
* rpm: build with raid man pageZdenek Kabelac2016-09-091-0/+1
|
* spec: Add new filesMarian Csontos2016-08-111-0/+2
|
* spec: Fix gobject dependencyMarian Csontos2016-03-091-1/+1
| | | | | | Use python3-gobject-base instead of python3-gobject requiring xorg (cherry picked from commit d929d82116759f53484e662b967165ef4fe4257c)
* spec: Add missing dependency for dbusdMarian Csontos2016-03-091-0/+1
| | | | (cherry picked from commit 7435de21492f6b37ac7664d1f27b4a8dcc4d0dd4)
* spec: Fix 04ab1fa572bb: Remove left-oversMarian Csontos2016-02-221-5/+0
|
* spec: Update python bindings and dbus-serviceMarian Csontos2016-02-183-11/+62
| | | | The workaround for python3 is no longer needed.
* Fix rpm buildsMarian Csontos2016-02-181-2/+2
|
* doc: change fsf addressZdenek Kabelac2016-01-211-1/+1
| | | | | Hmm rpmlint suggest fsf is using a different address these days, so lets keep it up-to-date
* spec: Add python bindingsMarian Csontos2015-11-023-35/+117
|
* spec: upgradeZdenek Kabelac2015-09-104-70/+131
| | | | | Upgrade spec rules to be in touch with recent code. Provide services and proper postin/preun/postun scriplets.