2011-08-19 23:42:39 +04:00
Version 2.02.89 -
==================================
Fix vgsplit when there are mirrors that have mirrored logs.
The problem as reported by "ben <benscott@nwlink.com>" on lvm-devel:
vgsplit fails with mirrored mirror log
#lvs --all -o lv_name,lv_attr,devices
LV Attr Devices
MyMirror mwi--
[MyMirror_mimage_0] Iwi--- /dev/sdq(0)
[MyMirror_mimage_1] Iwi--- /dev/sdo(0)
[MyMirror_mimage_2] Iwi--- /dev/sdi(0)
[MyMirror_mlog] mwi---
[MyMirror_mlog_mimage_0] Iwi--- /dev/sds(0)
[MyMirror_mlog_mimage_1] Iwi--- /dev/sde(0)
#vgsplit -v "TestA" "TestB" "/dev/sdq" "/dev/sdo" "/dev/sdi" "/dev/sds"
"/dev/sde"
Checking for volume group "TestA"
Checking for new volume group "TestB"
Archiving volume group "TestA" metadata (seqno 213).
Can't split mirror MyMirror between two Volume Groups
AFTER FIX:
[root@bp-01 ~]# lvs -a -o name,vg_name,devices vg new
Volume group "new" not found
Skipping volume group new
LV VG Devices
lv vg lv_mimage_0(0),lv_mimage_1(0)
[lv_mimage_0] vg /dev/sdb1(0)
[lv_mimage_1] vg /dev/sdc1(0)
[lv_mlog] vg lv_mlog_mimage_0(0),lv_mlog_mimage_1(0)
[lv_mlog_mimage_0] vg /dev/sdh1(0)
[lv_mlog_mimage_1] vg /dev/sdi1(0)
[root@bp-01 ~]# vgsplit vg new /dev/sd[bchi]1
New volume group "new" successfully split from "vg"
[root@bp-01 ~]# lvs -a -o name,vg_name,devices vg new
LV VG Devices
lv new lv_mimage_0(0),lv_mimage_1(0)
[lv_mimage_0] new /dev/sdb1(0)
[lv_mimage_1] new /dev/sdc1(0)
[lv_mlog] new lv_mlog_mimage_0(0),lv_mlog_mimage_1(0)
[lv_mlog_mimage_0] new /dev/sdh1(0)
[lv_mlog_mimage_1] new /dev/sdi1(0)
2011-10-06 18:17:45 +04:00
Fix vgsplit when there are mirrors that have mirrored logs.
2011-10-05 00:49:24 +04:00
Clarify multi-name device filter pattern matching explanation in lvm.conf.5.
2011-10-03 22:37:47 +04:00
Introduce lv_send_message and dev_manager_send_message.
2011-09-28 02:43:40 +04:00
Introduce revert_lv for better pvmove cleanup.
2011-09-27 21:29:33 +04:00
Replace incomplete pvmove activation failure recovery code with a message.
2011-09-27 21:09:42 +04:00
Abort if _finish_pvmove suspend_lvs fails instead of cleaning up incompletely.
Change suspend_lvs to call vg_revert internally.
Change vg_revert to void and remove superfluous calls after failed vg_commit.
2011-09-26 11:51:23 +04:00
Use execvp for CLVMD restart to preserve environment settings.
2011-09-25 23:37:00 +04:00
Restart CLVMD with same cluster manager.
2011-09-25 01:19:30 +04:00
Fix log_error() usage in raid and unknown segtype initialisation.
2011-09-25 01:10:19 +04:00
Improve testing Makefile.
2011-09-25 01:05:03 +04:00
Fix install_ocf make target when srcdir != builddir. (2.02.80)
2011-09-25 00:50:35 +04:00
Support env vars LVM_CLVMD_BINARY and LVM_BINARY in clvmd.
2011-09-25 00:48:34 +04:00
Fix restart of clvmd (preserve exlusive locks). (2.02.64)
2011-09-23 19:17:54 +04:00
Add 'Volume Type' lv_attr characters for RAID and RAID_IMAGE.
2011-09-22 21:39:56 +04:00
Add activation/retry_deactivation to lvm.conf to retry deactivation of an LV.
2011-09-22 21:33:50 +04:00
Replace open_count check with holders/mounted_fs check on lvremove path.
2011-09-22 19:36:21 +04:00
Disallow the creation of mirrors (mirror or raid1 segtype) with only one leg.
2011-09-22 13:47:34 +04:00
Cleanup restart clvmd code (no memory allocation, debug print passed args).
2011-09-22 13:45:24 +04:00
Add all exclusive locks to clvmd restart option args.
2011-09-21 17:40:46 +04:00
Always send the whole clvmd packet header in refresh commands.
2011-09-21 14:42:53 +04:00
Add missing error checks for some system calls in cmirrord.
2011-09-21 14:39:47 +04:00
Add missing log_error() to lvresize command when fsadm tool fails.
2011-09-19 23:36:52 +04:00
Add support for DM_DEV_DIR device path into fsadm script.
2011-09-19 17:51:09 +04:00
Support different PATH setting for fsadm script testing.
2011-09-19 17:47:37 +04:00
Surround all executed commands with quotes in fsadm script.
2011-09-19 17:43:50 +04:00
Fix missing '$' in test for content of "$LVM" in fsadm script.
2011-09-19 16:48:02 +04:00
Move debug message in exec_cmd after sync_local_dev_names.
2011-09-16 18:40:06 +04:00
Fix clvmd processing of invalid request on local socket.
2011-09-16 16:10:02 +04:00
Fix command line option decoding.
2011-09-16 16:01:48 +04:00
Reset LV status when unlinking LV from VG.
2011-09-16 14:02:14 +04:00
Fix overly strict extent-count divisibility requirements for striped mirrors.
2011-09-16 00:01:21 +04:00
Fix rounding direction in lvresize when reducing volume size.
2011-09-15 19:26:40 +04:00
Fix possible overflow of size if %FREE or %VG is used.
2011-09-14 22:20:03 +04:00
Fix vgchange activation of snapshot with virtual origin.
2011-09-14 18:20:16 +04:00
Activate virtual snapshot origin exclusively (only on local node in cluster).
2011-09-14 06:45:36 +04:00
Fix lv_mirror_count to handle mirrored stripes properly.
2011-09-14 01:13:33 +04:00
Fix failure to down-convert a mirror to linear due to udev "dev open" conflict
2011-09-13 22:42:57 +04:00
Fix mirrored log creation when PE size is small - force log_size >= region_size
2011-09-13 18:37:48 +04:00
Fix log size calculation when only a log is being added to a mirror.
Fix for bug 733114.
When an image is split from a 2-way mirror, the original mirror is converted to
a linear device. To do this, the top "layer" must be removed. The segments
are transferred from the sub-lv to the top-level LV and the link is severed.
The former sub-lv - having its segments transferred - now contains a temporary
error target.
When the original LV is resumed, the old sub-lv that now contains an error
segment is activated and scanned. This is what causes the I/O error messages.
There are three ways to fix this problem:
1) Do not set the sub-lv which contains the error target as "visible" before
suspending the original LV. This way, when the original is resumed, the sub-lv
device node is not created and it is not scanned - avoiding the error messages.
The problem with this approach is that if the machine crashes after the
resume, it leaves the *hidden* LV in place and the user has a more difficult
time noticing that it needs to be cleaned up. Thus, this type of processing is
frowned upon.
2) Do like _remove_mirror_images does and suspend the original, then suspend
the sub-lv (the error target), then resume the sub-lv, and finally resume the
original LV. This seems like extra pointless operations to me, but it does not
produce the error message (although, I'm not sure why) and it allows us to
leave the visible flag in place.
3) Flag the sub-lv (error target) with a "do not scan" flag. This seems like
the cleanest approach, but I have been unable to find the method for doing
this. LVs get tagged in such a way by _get_udev_flags, but in this case the
resume of the original LV also resumes the error target LV without running it
through _get_udev_flags (likely because they are no longer linked). Could
there be something wrong in resume_lv?
Option #2 was chosen to fix this bug, but it seems like more of a workaround
for now.
2011-09-13 17:59:19 +04:00
Work around resume_lv causing error LV scanning during splitmirror operation.
2011-09-09 00:55:39 +04:00
Add 7th lv_attr char to show the related kernel target.
2011-09-07 17:42:00 +04:00
Terminate pv_attr field correctly. (2.02.86)
2011-09-07 13:48:49 +04:00
Fix 'not not' typo in pvcreate man page.
2011-09-07 12:50:35 +04:00
Improve man page style for fsadm, lvreduce, lvremove, lvrename, lvresize.
2011-09-07 12:41:47 +04:00
Support break for vgchange and vgrefresh operation.
2011-09-07 12:34:21 +04:00
Switch int to unsigned type for pvmetadatacopies for pv_create().
2011-09-07 12:31:16 +04:00
Replace :space: with [\t ] for awk in vgimportclone (not widely supported).
2011-09-06 22:49:31 +04:00
Begin using 64-bit status field flags.
2011-09-06 22:24:27 +04:00
Detect sscanf recovering_region input error in cmirrord pull_state().
2011-09-06 22:15:43 +04:00
Fix error path bitmap leak in cmirrord import_checkpoint().
2011-09-06 22:11:21 +04:00
Log unlink() error in cmirrord remove_lockfile().
2011-09-05 16:54:29 +04:00
Remove incorrect requirement for -j or -m from lvchange error message.
Fix for bug 732142: Unsafe table load during mirror image split
There was a bad sequence:
*) Make changes to LV layout to split images (e.g. 4-way -> 2-way/2-way)
1) vg_write, suspend_lv(original_mirror), vg_commit
2) activate_lv(newly_split_lv)
3) resume_lv(original_mirror)
Step #2 is not allowed. However, without it, the resume of the original
mirror will also resume its former sub-LVs - making it impossible to
activate the newly split LV due to the changes in layering, pointers, and
names that had already been made. Additionally, the resume or the original
brings the sub-lv's online with names that differ from the metadata on disk -
also a no-no. Thus, the split must be done in stages such that the active LVs
always reflect what is in the committed LVM metadata.
First, alter the original mirror by releasing the images. The images are made
visible and independent as an intermediate stage. (This way, we can have
consistency between LVM metadata and active LVs.) The second stage collects
the recently split LVs, deactivates them, forms them into a mirror if necessary,
and then activates them. It is a bit of a circuitous method, but it is the only
way to split a mirror from a mirror and obey these general rules:
1) Never [de]activate sub-lvs when the top-level LV is suspended
2) Avoid having active LVs that differ from the description in the LVM metadata
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
2011-09-01 23:22:11 +04:00
Fix unsafe table load when splitting off smaller mirror from a larger one.
2011-09-01 14:25:22 +04:00
Use size_t return type for text_vg_export_raw() and export_vg_to_buffer().
2011-08-31 16:47:59 +04:00
Add configure --enable-lvmetad for building the (experimental) LVMetaD.
2011-08-31 12:23:33 +04:00
Fix resource leak when strdup fails in _get_device_status() (2.02.85).
2011-08-29 17:37:36 +04:00
Directly allocate buffer memory in a pvck scan instead of using a mempool.
2011-08-24 17:41:46 +04:00
Add configure --with-thin for (unimplemented) segtypes "thin" and "thin_pool".
Fix raid shared lib segtype registration (2.02.87).
2011-08-19 23:42:39 +04:00
2011-08-19 20:31:00 +04:00
Version 2.02.88 - 19th August 2011
2011-08-12 06:34:08 +04:00
==================================
2011-08-24 17:41:46 +04:00
Remove incorrect 'Breaking' error message from allocation code. (2.02.87)
2011-08-19 19:59:15 +04:00
Add lvconvert --merge support for raid1 devices split with --trackchanges.
Support lvconvert of -m1 raid1 devices to a higher number.
Add --trackchanges support to lvconvert --splitmirrors option for raid1.
Support splitting off a single raid1 rimage in lvconvert --splitmirrors.
Use sync_local_dev_names when reducing number of raid rimages in lvconvert.
2011-08-17 19:15:36 +04:00
Add -V as short form of --virtualsize in lvcreate.
2011-08-12 17:03:35 +04:00
Fix make clean not to remove Makefile. (2.02.87)
2011-08-12 06:34:08 +04:00
2011-08-12 05:34:11 +04:00
Version 2.02.87 - 12th August 2011
==================================
2011-08-12 17:03:35 +04:00
Fix make distclean to remove stray dmeventd and exported symbols files.
2011-08-12 05:34:11 +04:00
Add global/detect_internal_vg_cache_corruption to lvm.conf.
2011-08-11 21:34:30 +04:00
Use memory pool locking to check for corruption of internal VG structs.
2011-08-11 21:24:23 +04:00
Cache and share generated VG structs.
2011-08-11 20:31:40 +04:00
Fix possible format instance memory leaks and premature releases in _vg_read.
2011-08-11 19:27:46 +04:00
Suppress locking error messages in monitoring init scripts.
2011-08-12 05:34:11 +04:00
If pipe in clvmd fails return busy instead of using uninitialised descriptors.
Add ability to reduce the number of mirrors in raid1 arrays to lvconvert.
Add dmeventd plugin for raid.
2011-08-11 00:25:29 +04:00
Replace free_vg with release_vg and move it to vg.c.
2011-08-11 00:17:33 +04:00
Remove INCONSISTENT_VG flag from the code.
2011-08-12 05:34:11 +04:00
Remove lock from cache in _lock_vol even if unlock fails.
2011-08-10 15:00:32 +04:00
Initialise clvmd locks before lvm context to avoid open descriptor leaks.
2011-08-11 23:18:17 +04:00
Remove obsolete gulm clvmd cluster locking support.
2011-08-09 15:44:57 +04:00
Suppress low-level locking errors and warnings while using --sysinit.
2011-08-04 19:18:10 +04:00
Remove unused inconsistent_seqno variable in _vg_read().
2011-08-04 18:30:51 +04:00
Remove meaningless const type qualifiers on cast type.
2011-08-04 16:13:50 +04:00
Add test for fcntl error in singlenode client code.
2011-08-04 14:14:42 +04:00
Remove --force option from lvrename manpage.
2011-08-12 06:34:08 +04:00
Add global/mirror_segtype_default to pick md raid or dm mirror as default.
2011-08-12 05:34:11 +04:00
Add configure --with-raid for new segtype 'raid' for MD RAID 1/4/5/6 support.
Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used if there is no config file.
2011-07-28 16:57:26 +04:00
Add systemd unit file to provide lvm2 monitoring.
2011-08-12 05:34:11 +04:00
Compare file size (as well as timestamp) to detect changed config file.
2011-07-08 23:57:32 +04:00
2011-07-08 23:19:44 +04:00
Version 2.02.86 - 8th July 2011
===============================
Remove unnecessary warning in pvcreate for MD linear devices.
2011-07-08 16:49:50 +04:00
Move snapshot removal activation logic into lib/activate.
2011-07-06 04:29:44 +04:00
Cope with a PV only discovered missing when creating deptree.
2011-07-06 03:10:14 +04:00
Abort operation if dm_tree_node_add_target_area fails.
2011-07-01 18:09:19 +04:00
Add activation/checks to lvm.conf to perform additional ioctl validation.
2011-07-08 23:19:44 +04:00
Always preload on suspend, even if no metadata changed (lvchange --refresh).
2011-06-30 22:25:18 +04:00
When suspending, automatically preload newly-visible existing LVs.
2011-06-30 13:15:53 +04:00
Teardown any stray devices with $COMMON_PREFIX during test runs.
2011-06-29 21:05:53 +04:00
Reinstate correct permissions when creating mirrors. [2.02.85]
2011-06-29 18:56:33 +04:00
Append 'm' attribute to pv_attr for missing PVs.
2011-06-28 17:42:15 +04:00
Annotate CLVMD_CMD_SYNC_NAMES in decode_cmd.
2011-06-28 04:23:06 +04:00
Remove enforcement of udev verification when using non-standard /dev location.
2011-06-23 18:00:58 +04:00
Fix to preserve exclusive activation of mirror while up-converting.
2011-06-23 14:53:24 +04:00
Reject allocation if number of extents is not divisible by area count.
2011-07-08 23:19:44 +04:00
Fix cluster mirror creation to work with new mirror allocation algorithm.
2011-07-08 20:49:04 +04:00
Ignore activation/verify_udev_operations if dm kernel driver vsn < 4.18.
2011-06-28 01:43:58 +04:00
Add activation/verify_udev_operations to lvm.conf, disabled by default.
2011-06-17 18:39:10 +04:00
Call vg_mark_partial_lvs() before VG structure is returned from the cache.
2011-06-17 18:30:58 +04:00
Remove unused internal flag ACTIVATE_EXCL from the code.
2011-06-17 18:27:34 +04:00
Remove useless test of ACTIVATE_EXCL in lv_add_mirrors() clustered code path.
2011-06-17 18:14:19 +04:00
Add lv_activate_opts structure for activation (replacing activation flags).
2011-07-08 23:19:44 +04:00
Ignore inconsistent pre-commit metadata on MISSING_PV devs while activating.
2011-06-15 17:29:48 +04:00
Add proper udev library context initialization and finalization to liblvm.
2011-06-14 02:28:04 +04:00
Fix last snapshot removal to avoid table reload while a device is suspended.
2011-06-13 07:32:45 +04:00
Use dm_get_suspended_counter in replacement critical_section logic.
2011-06-12 04:23:50 +04:00
Downgrade critical_section errors to debug level until it is moved to libdm.
2011-06-11 04:03:06 +04:00
Fix ignored background polling default in vgchange -ay.
Fix pvmove activation sequences to avoid trapped I/O with multiple LVs.
Annotate critical section debug messages.
2011-06-09 23:38:56 +04:00
Fix reduction of mirrors with striped segments to always align to stripe size.
2011-06-09 23:36:16 +04:00
Validate mirror segments size.
2011-07-08 23:19:44 +04:00
Include lvmetad development code in tree.
Fix extent rounding for striped volumes never to reduce more than requested.
2011-06-08 12:49:53 +04:00
Fix create_temp_name to replace any '/' found in the hostname with '?'.
2011-07-08 23:19:44 +04:00
Always use append to file in lvmdump. selinux policy may ban file truncation.
2011-06-02 01:16:55 +04:00
Propagate test mode to clvmd to skip activation and changes to held locks.
2011-07-08 23:19:44 +04:00
Defer writing PV labels until vg_write.
2011-06-01 23:29:31 +04:00
Store label_sector only in struct physical_volume.
2011-06-01 23:21:03 +04:00
Permit --available with lvcreate so non-snapshot LVs need not be activated.
2011-06-01 19:30:36 +04:00
Report sector containing label in verbose message.
2011-06-01 16:24:15 +04:00
Clarify error message when unable to convert an LV into a snapshot of an LV.
2011-05-24 17:36:57 +04:00
Add and use dev_open_readonly and variations.
2011-05-19 17:59:22 +04:00
Do not log a superfluous stack message when the lv is properly processed.
2011-05-12 16:42:47 +04:00
Do not issue an error message when unable to remove .cache on read-only fs.
2011-05-07 19:52:50 +04:00
Avoid memlock size mismatch by preallocating stdio line buffers.
2011-07-08 23:19:44 +04:00
Rewrite vgreduce --removemissing --force to share lvconvert code.
2011-05-07 19:52:50 +04:00
Reorganize lvconvert --repair code to allow reuse.
2011-04-29 21:05:20 +04:00
2011-04-29 20:12:21 +04:00
Version 2.02.85 - 29th April 2011
=================================
2011-04-22 16:05:32 +04:00
Add new obtain_device_list_from_udev setting to lvm.conf.
Obtain device list from udev by default if LVM2 is compiled with udev support.
2011-04-29 20:12:21 +04:00
Add test for vgimportclone and querying of vgnames with duplicate pvs.
2011-04-29 04:21:13 +04:00
Avoid use of released memory when duplicate PV is found.
2011-04-13 01:59:01 +04:00
Add "devices/issue_discards" to lvm.conf.
2011-04-29 20:12:21 +04:00
Issue discards on lvremove and lvreduce etc. if enabled and supported.
2011-04-29 04:21:13 +04:00
Add seg_pe_ranges and devices fields to liblvm.
2011-04-09 23:05:23 +04:00
Fix incorrect tests for dm_snprintf() failure.
2011-04-08 18:40:18 +04:00
Fix some unmatching sign comparation gcc warnings in the code.
2011-04-29 20:12:21 +04:00
Support lv_extend() on empty LVs.
Avoid regenerating cache content when exported VG buffer is unchanged.
Extend the set of memory regions that are not locked to memory.
Workaround some problems when compiled for valgrind memcheck.
Support controlled quit of the lvm_thread_fn function in clvmd.
2011-03-30 16:30:39 +04:00
Fix reading of unallocated memory in lvm1 format import function.
2011-03-30 01:57:56 +04:00
Replace several strncmp() calls with id_equal().
2011-03-30 01:34:18 +04:00
Fix lvmcache_info transfer to orphan_vginfo in _lvmcache_update_vgname().
2011-03-30 00:30:05 +04:00
Fix -Wold-style-definition gcc warnings.
2011-04-29 04:21:13 +04:00
Rename MIRROR_NOTSYNCED to LV_NOTSYNCED.
Fix _move_lv_segments to handle empty LVs.
2011-03-24 19:03:32 +03:00
Fixes for lvconvert (including --repair) of temporary mirror stacks.
2011-04-29 04:21:13 +04:00
Avoid potential loop when removing mirror images.
Fix mirror removal always to take account of preferences as to which.
Fix MIRRORED flag usage.
2011-04-29 20:12:21 +04:00
Remove error messages issued by device_is_usable when run as non-root.
2011-03-14 20:00:57 +03:00
Add missing \0 for grown debug object in _bitset_with_random_bits().
2011-03-14 02:05:48 +03:00
Fix allocation of system_id buffer in volume_group structure.
2011-03-14 01:52:16 +03:00
Fix readlink usage inside get_primary_dev().
2011-03-11 18:10:16 +03:00
Use format instance mempool where possible and adequate.
2011-03-11 18:06:13 +03:00
Call destroy_instance for any PVs found in VG structure during vg_free call.
2011-03-11 17:56:56 +03:00
Add new free_pv_fid fn and use it throughout to free all attached fids.
2011-03-11 17:50:13 +03:00
Use only vg_set_fid and new pv_set_fid fn to assign the format instance.
2011-03-11 17:45:17 +03:00
Make create_text_context fn static and move it inside create_instance fn.
2011-03-11 17:38:38 +03:00
Add mem and ref_count fields to struct format_instance for own mempool use.
2011-03-11 17:30:27 +03:00
Use new alloc_fid fn for common format instance initialisation.
2011-03-10 17:51:35 +03:00
Optimise _get_token() and _eat_space().
2011-03-10 17:40:32 +03:00
Add _lv_postorder_vg() to improve efficiency for all LVs in VG.
2011-04-29 04:21:13 +04:00
Add gdbinit script for debugging.
2011-03-11 17:38:38 +03:00
Use hash tables to speedup string search in vg_validate().
2011-04-29 20:12:21 +04:00
Refactor allocation of VG structure adding alloc_vg().
2011-03-10 06:03:03 +03:00
Avoid possible endless loop in _free_vginfo when 4 or more VGs have same name.
2011-03-09 15:44:42 +03:00
Use empty string instead of /dev// for LV path when there's no VG.
Don't allocate unused VG mempool in _pvsegs_sub_single.
2011-03-30 01:05:39 +04:00
Do not send uninitialised bytes in local clvmd messages.
2011-03-08 16:27:39 +03:00
Support --help option for clvmd and return error for unknown option.
2011-04-29 04:21:13 +04:00
Avoid reading freed memory when printing LV segment type.
2011-03-03 02:38:22 +03:00
Fix syslog initialisation in clvmd to respect lvm.conf setting.
2011-03-02 23:00:09 +03:00
Fix possible overflow in maximum stripe size and physical extent size.
2011-02-28 22:35:09 +03:00
Improve pvremove error message when PV belongs to a VG.
2011-02-27 04:16:52 +03:00
Extend normal policy to allow mirror logs on same PVs as images if necessary.
Improve cling policy to recognise PVs already used during the transaction.
2011-02-27 03:38:31 +03:00
Improve normal allocation algorithm to include clinging to existing areas.
Add allocation/maximise_cling & mirror_logs_require_separate_pvs to lvm.conf.
2011-04-29 04:21:13 +04:00
Adapt metadata balancing code to work with metadata handling changes.
2011-02-28 16:19:02 +03:00
Add old_id field to physical_volume and fix pvchange -u for recent changes.
Allow pvresize on a PV with two metadata areas.
2011-02-21 15:40:46 +03:00
Change pvcreate to use new metadata handling interface.
2011-04-29 04:21:13 +04:00
Restructure existing pv_setup and pv_write and add pv_initialise.
2011-02-21 15:40:46 +03:00
Add internal interface to support adding and removing metadata areas.
Allow internal indexing of metadata areas (PV id + mda order).
Generalise internal format_instance infrastrusture for PV and VG use.
2011-02-19 02:09:55 +03:00
Handle decimal digits with --units instead of ignoring them silently.
Fix remaining warnings and compile with -Wpointer-arith.
2011-04-29 04:21:13 +04:00
Fix gcc warnings for unused variables and const casts.
2011-02-18 18:02:25 +03:00
Add stack backtraces for error paths in process_each_lv().
2011-04-29 04:21:13 +04:00
Temporarily suppress error from calling yes_no_prompt while locks are held.
Replace void* with char* arithmetic in _text_write, _text_read & send_message.
Fix compilation without DEVMAPPER_SUPPORT.
2011-02-18 17:26:31 +03:00
Remove fs_unlock() from lv_suspend error path.
2011-04-29 04:21:13 +04:00
Allow memory to stay locked between leaving and re-entering critical sections.
Rename memlock to critical_section throughout.
Make pv_min_size configurable and increase to 2048KB to exclude floppy drives.
Add find_config_tree_int64 to read 64-bit ints from config.
Ensure resuming exclusive cluster mirror continues to use local mirror target.
Clear temporary postorder LV status flags to allow re-use with same LV struct.
Remove invalid snapshot umount mesg which floods syslog from dmeventd plugin.
Add extended examples to pvmove man page.
Support LVM_TEST_DEVDIR env var for private /dev during testing.
2011-02-09 15:11:21 +03:00
2011-02-09 15:04:39 +03:00
Version 2.02.84 - 9th February 2011
2011-02-05 01:46:18 +03:00
===================================
2011-02-08 15:41:08 +03:00
Fix CRC32 calculation on big endian CPU (2.02.75).
2011-02-05 01:46:18 +03:00
2011-02-05 01:07:43 +03:00
Version 2.02.83 - 4th February 2011
2011-01-25 02:34:46 +03:00
===================================
2011-02-04 23:30:17 +03:00
Allow exclusive activation of snapshots in a cluster.
2011-02-05 01:07:43 +03:00
Leave EX lock unchanged when suspending a device in clvmd.
Use sync_dev_names in unlock_vg macro for cluster-wide dev name sync.
Fix fs operation stack handling when multiple operations on same device.
2011-02-03 19:03:13 +03:00
Increase hash table size to 1024 lv names and 64 pv uuids.
2011-02-03 04:58:20 +03:00
Remove fs_unlock() from lv_resume path.
2011-02-03 04:41:03 +03:00
Fix wipe size when setting up mda.
2011-02-03 04:24:46 +03:00
Remove unneeded checks for open_count in lv_info().
Synchronize with udev before checking open_count in lv_info().
2011-02-03 02:39:39 +03:00
Allow CLVMD_CMD_SYNC_NAMES to be propagated around the cluster if requested.
2011-02-02 00:41:31 +03:00
Add "dmsetup ls --tree" output to lvmdump.
2011-01-31 22:52:40 +03:00
Fix udev synchronization with no-locking --sysinit (2.02.80).
2011-02-05 01:07:43 +03:00
Improve man page style consistency for pvcreate, pvremove, pvresize, pvscan.
2011-01-28 13:14:08 +03:00
Avoid rebuilding of uuid validation table.
2011-02-05 01:07:43 +03:00
Improve lvcreate error text from insufficient "extents" to "free space".
2011-01-27 03:21:37 +03:00
Always use O_DIRECT when opening block devices to check for partitioning.
2011-01-25 02:34:46 +03:00
2011-01-25 02:24:06 +03:00
Version 2.02.82 - 24th January 2011
2011-01-17 21:16:18 +03:00
===================================
2011-01-24 23:02:07 +03:00
Bring lvscan man page up-to-date.
2011-01-24 17:19:05 +03:00
Fix lvchange --test to exit cleanly.
2011-01-24 16:38:31 +03:00
Add change_tag to toollib.
Allow multiple pvchange command line options to be specified together.
2011-01-25 02:24:06 +03:00
Do not fail pvmove polling if another process cleaned up first.
Avoid clvmd incrementing dlm lockspace reference count more than once.
2011-01-18 02:13:14 +03:00
Add -f (don't fork) option to clvmd and fix clvmd -d<num> description.
2011-01-17 21:16:18 +03:00
2011-01-17 19:46:50 +03:00
Version 2.02.81 - 17th January 2011
2011-01-11 00:12:54 +03:00
===================================
2011-01-17 19:46:50 +03:00
Do not scan devices in dev_reset_error_count().
Skip unnecessary LOCK_NULL unlock call during volume deactivation.
Skip fs_unlock when calling exec_cmd within activation code (for modprobe).
Extend exec_cmd params to specify when device sync (fs_unlock) is needed.
2011-01-12 23:42:50 +03:00
Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80)
Introduce sync_local_dev_names and CLVMD_CMD_SYNC_NAMES to issue fs_unlock.
2011-01-12 18:28:33 +03:00
Accept fusion fio in device type filter.
2011-02-09 01:35:11 +03:00
Add ability to convert mirror log type from disk to mirrored.
2011-01-11 00:12:54 +03:00
2011-01-10 17:28:17 +03:00
Version 2.02.80 - 10th January 2011
===================================
Use same dm cookie for consecutive dm ops in same VG to reduce udev waits.
Speed up command processing by caching resolved config tree.
2011-01-10 16:13:42 +03:00
Pass config_tree to renamed function import_vg_from_config_tree().
2011-01-10 16:07:58 +03:00
Detect NULL handle in get_property().
2011-01-10 16:00:53 +03:00
Fix superfluous /usr in ocf_scriptdir instalation path.
Add --with-ocfdir configurable option.
2011-01-07 19:27:05 +03:00
Add aclocal.m4 (for pkgconfig).
2011-01-10 17:28:17 +03:00
Fix memory leak in persistent filter creation error path.
Check for errors setting up dm_task struct in _setup_task().
Fail polldaemon creation when lvmcache_init() fails.
Return PERCENT_INVALID for errors in _copy_percent() and _snap_percent().
Remove some unused variables.
Improve general lvconvert man page description.
Return 0 from cmirrord initscript 'start' if daemon is already running.
Fix wrongly paired unlocking of VG_GLOBAL in pvchange. (2.02.66)
2010-12-22 18:36:41 +03:00
Add backtraces for backup and backup_remove fail paths.
2010-12-22 18:28:44 +03:00
Detect errors from dm_task_set calls in _get_device_info (dmeventd).
2010-12-22 16:45:33 +03:00
Add backtraces for archive and backup_locally in check_current_backup().
2010-12-22 15:14:11 +03:00
Fix memory leak in debug mode of restart_clvmd() error path.
2010-12-22 15:10:56 +03:00
Log error message for pthread_join() failure in clvmd.
2010-12-22 00:08:51 +03:00
2010-12-21 04:08:29 +03:00
Version 2.02.79 - 20th December 2010
====================================
Remove some unused variables.
2010-12-20 17:38:22 +03:00
Add missing test for reallocation error in _find_parallel_space().
2010-12-22 00:08:51 +03:00
Add checks for allocation errors in config node cloning.
2010-12-20 16:45:39 +03:00
Fix error path if regex engine cannot be created in _build_matcher().
2010-12-21 04:08:29 +03:00
Use char* arithmetic in target_version(), _process_all() & _targets().
2010-12-20 16:28:04 +03:00
Fixing const cast gcc warnings in the code.
2010-12-20 16:17:56 +03:00
Check read() and close() results in _get_cmdline().
2010-12-20 16:12:55 +03:00
Add const for struct config_node usage.
2010-12-17 15:37:49 +03:00
Fix NULL pointer check in error path in clvmd do_command(). (2.02.78)
2010-12-15 15:49:55 +03:00
Fix device.c #include to ensure 64-bit fopen64 use. (2.02.51)
2010-12-21 04:08:29 +03:00
Add copy_percent and snap_percent to liblvm.
Enhance vg_validate to ensure integrity of LV and PV structs referenced.
Enhance vg_validate to check composition of pvmove LVs.
2010-12-13 13:49:02 +03:00
Create /var/run/lvm directory during clvmd initialisation if missing.
2010-12-13 13:43:56 +03:00
Use new dm_prepare_selinux_context instead of dm_set_selinux_context.
2010-12-11 01:39:52 +03:00
Avoid revalidating the label cache immediately after scanning.
Support scanning for a single VG in independent mdas.
Don't skip full scan when independent mdas are present even if memlock is set.
Set cmd->independent_metadata_areas if metadata/dirs or disk_areas in use.
2010-12-08 22:26:35 +03:00
Cope better with an undefined target_percent operation in _percent_run.
2010-12-21 04:08:29 +03:00
Avoid writing to freed memory in vg_release and rename to free_vg. (2.02.78)
2010-12-07 01:13:10 +03:00
2010-12-06 20:57:14 +03:00
Version 2.02.78 - 6th December 2010
===================================
2010-12-06 20:37:09 +03:00
Abort if segment tag allocation fails in pool format _add_stripe_seg.
Abort in _mirrored_transient_status if referenced log/image LV is not active.
2010-12-01 15:56:39 +03:00
Add backtraces for dev_set() and dev_close_immediate() errors in set_lv().
2010-12-06 20:37:09 +03:00
Log any unlink() error in clvmd remove_lockfile().
Log any pipe write() or close() errors in clvmd child_init_signal().
Detect if orphan vginfo was lost from cache before _lvmcache_update_vgname().
Do a full rescan if some device is missing in lvm1 format read_pvs_in_vg.
Add missing check that dm_pool_create succeeded in write_config_node().
Use dm_snprintf in clvmd-command.c to ensure an overlong buffer is truncated.
Don't write to buffer if its reallocation failed in clvmd do_command().
Switch from float to fixed point percentage handling.
Avoid misleading missing PV warnings in vgextend --restoremissing.
2010-11-29 21:35:37 +03:00
Fix memory leak when VG allocation policy in metadata is invalid.
Ignore unrecognised allocation policy found in metadata instead of aborting.
Factor out tag printing into _out_tags and avoid leaking string buffer.
Remove some unused variables & assignments.
Add missing vg_release calls in _vg_read_by_vgid.
2010-12-06 20:37:09 +03:00
Fix debug logging of derived flag LCK_CACHE in clvmd.
2010-11-29 21:35:37 +03:00
Fix test for no system_dir in _init_backup().
Disallow lvconvert ops that both allocate & free supplied PEs in a single cmd.
Fix liblvm seg_size to give bytes not sectors.
Add functions to look up LV/PV by name/uuid to liblvm.
Free cmd_context if fallback to LVM1 fails in lvm2_main().
Free device name buffer in dmsetup parse_loop_device_name() error paths.
Close format lib if init_format_fn fails in _init_formats().
Don't leave /proc/mounts open after dmeventd snapshot event processing.
Fix out-of-scope arg_vgnames use in process_each_lv().
Remove incorrect dm_task_destroy(NULL) from _node_clear_table() error path.
Add missing closedir in _rm_blks after removing stray LVM1 VG files.
2010-11-23 04:55:53 +03:00
Suppress 'No PV label' message when removing several PVs without mdas.
2010-11-23 00:39:47 +03:00
Fix default /etc/lvm permissions to be 0755. (2.02.66)
2010-11-22 21:37:56 +03:00
2010-11-22 17:25:22 +03:00
Version 2.02.77 - 22nd November 2010
====================================
Allocate a pool for dummy VG in _pvsegs_sub_single.
Add PV and LV segment types and functions to liblvm.
Add set_property functions to liblvm.
2010-11-17 13:19:29 +03:00
Remove tag length restriction and allow / = ! : # & characters.
2010-11-11 20:29:05 +03:00
Support repetition of --addtag and --deltag arguments.
Add infrastructure for specific cmdline arguments to be repeated in groups.
Split the_args cmdline arguments and values into arg_props and arg_values.
2010-11-22 17:25:22 +03:00
Fix fsadm no longer to require '-f' to resize an unmounted filesystem.
2010-11-11 20:29:05 +03:00
Fix fsadm to detect mounted filesystems on older systems. (2.0.75)
2010-11-09 15:34:40 +03:00
Extend cling allocation policy to recognise PV tags (cling_by_tags).
Add allocation/cling_tag_list to lvm.conf.
2010-11-09 14:15:34 +03:00
Regenerate configure with 'autoreconf' for --enable-ocf. (2.02.76)
2010-11-09 05:58:06 +03:00
2010-11-08 22:37:40 +03:00
Version 2.02.76 - 8th November 2010
2010-10-25 20:38:20 +04:00
===================================
2010-11-05 21:18:11 +03:00
Clarify error messages when activation fails due to activation filter use.
2010-11-08 22:37:40 +03:00
Add pacemaker script VolumeGroup.ocf with configure --enable-ocf.
Import make.tmpl into include/ Makefile.
2010-11-01 17:17:35 +03:00
Fix handling of online filesystem resize (using new fsadm return code).
2010-11-01 17:10:46 +03:00
Add DIAGNOSTICS section to fsadm man page.
2010-11-01 17:08:51 +03:00
Modify fsadm to return different status code for check of mounted filesystem.
2010-10-30 01:15:23 +04:00
Update VG metadata only once in vgchange when making multiple changes.
Allow independent vgchange arguments to be used together.
2010-10-29 20:44:47 +04:00
Automatically unmount invalidated snapshots in dmeventd.
2010-11-08 22:37:40 +03:00
Suppress some superfluous messages from clang static analysis.
2010-10-27 13:15:48 +04:00
Fix a deadlock caused by double close in clvmd.
2010-10-30 01:15:23 +04:00
Fix NULL pointer dereference on too-large MDA error path in _vg_read_raw_area.
2010-10-26 12:59:05 +04:00
Use static for internal _align_chunk() and _new_chunk() from pool-fast.c.
2010-10-26 05:37:59 +04:00
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
2010-10-25 21:33:51 +04:00
Add lvm2app functions to query any pv, vg, or lv property / report field.
2010-10-25 20:38:20 +04:00
2010-10-25 17:54:29 +04:00
Version 2.02.75 - 25th October 2010
===================================
Annotate more variables and parameters as const.
2010-10-25 17:10:13 +04:00
Fix missing variable initialization in cluster_send() function from cmirrord.
2010-10-25 16:01:38 +04:00
Fix pointer for VG name in _pv_resize_single error code path.
2010-10-25 15:57:06 +04:00
Fix warning for changed alignment requirements for dmeventd read/write func.
2010-10-25 15:20:54 +04:00
Add global/metadata_read_only to use unrepaired metadata in read-only cmds.
2010-10-25 14:40:13 +04:00
Don't take write lock in vgchange --refresh, --poll or --monitor.
Skip dm devices in scan if they contain only error targets or are empty.
2010-10-20 19:07:30 +04:00
Fix strict-aliasing compile warning in partition table scanning.
2010-10-25 17:54:29 +04:00
Fix pthread mutex usage deadlock in clvmd.
Automatically extend snapshots with dmeventd according to policy in lvm.conf.
Add activation/snapshot_autoextend_threshold/percent to lvm.conf.
Fix liblvm2cmd link order to support --as-needed.
Remove dependency on libm by replacing floor() by an integer-based algorithm.
2010-10-15 00:03:12 +04:00
Fix hang when repairing a mirrored-log that had both devs fail.
2010-10-14 01:26:37 +04:00
Convey need for snapshot-merge target in lvconvert error message and man page.
2010-10-25 17:54:29 +04:00
Add devices/disable_after_error_count config to limit access to failing devs.
2010-10-13 17:53:25 +04:00
Give correct error message when creating a too-small snapshot.
2010-10-25 17:54:29 +04:00
Implement vgextend --restoremissing to reinstate missing devs that return.
Make lvconvert respect --yes and --force when converting an inactive log.
2010-10-12 20:17:50 +04:00
Refactor and add 'get' functions for lv properties/fields.
2010-10-08 19:03:21 +04:00
Update script for fsadm testing.
2010-10-08 19:02:05 +04:00
Better support of noninteractive shell execution of fsadm.
2010-10-08 19:00:06 +04:00
Fix usage of --yes flag for ReiserFS resize in fsadm.
2010-10-08 18:55:19 +04:00
Fix detection of mounted filesystems for fsadm when udev is used.
2010-10-25 17:54:29 +04:00
Fix assignment of default value to LVM variable in fsadm.
2010-10-08 17:49:20 +04:00
Fix support for --yes flag for fsadm.
2010-10-25 17:54:29 +04:00
Do not execute lvresize from fsadm --dry-run.
2010-10-08 16:35:56 +04:00
Fix fsadm return error code from user's break action.
2010-10-07 20:33:34 +04:00
Allow CC to be overridden at build time (for 'scan-build make').
2010-10-05 21:34:05 +04:00
Rename 'flags' to 'status' in struct metadata_area.
2010-10-04 22:59:01 +04:00
Avoid segfault by limiting partial mode for lvm1 metadata. (2.02.74)
2010-10-25 17:54:29 +04:00
Use dm_zalloc and dm_pool_zalloc throughout.
2010-09-30 18:26:48 +04:00
Add pv_get_property and create generic internal _get_property function.
Add 'get' functions for pv and vg properties/fields.
2010-10-01 01:06:50 +04:00
Make generic GET_*_PROPERTY_FN macros with secondary macro for vg, pv & lv.
2010-09-30 18:26:48 +04:00
Add tags_format_and_copy() common function and call from _tags_disp.
Add id_format_and_copy() common function and call from _uuid_disp.
Refactor report.c '*_disp' functions to call supporting functions.
2010-10-25 17:54:29 +04:00
Move parts of metadata*.[ch] into new {pv|vg|lv}.[ch] files.
Fix vg_read memory leak with directory-based metadata.
2010-09-30 15:44:54 +04:00
Fix memory leak of config_tree in reinitialization code path.
2010-10-25 17:54:29 +04:00
Fix pool destruction order in dmeventd_lvm2_exit() to avoid leak debug mesg.
2010-09-30 15:32:40 +04:00
Read whole /proc/self/maps file before working with maps entries.
2010-09-28 05:29:06 +04:00
Speed up unquoting of quoted double quotes and backslashes.
2010-09-27 23:09:34 +04:00
Speed up CRC32 calculations by using a larger lookup table.
2010-09-24 20:24:57 +04:00
Version 2.02.74 - 24th September 2010
2010-09-22 05:36:13 +04:00
=====================================
2010-09-24 20:24:57 +04:00
Allow : and @ to be escaped with \ in device names of PVs.
Replace alloca with dm_malloc in _aligned_io to avoid stack corruption.
2010-09-22 17:45:21 +04:00
Fix partial mode operations for lvm1 metadata format.
2010-09-22 05:36:13 +04:00
Track recursive filter iteration to avoid refreshing while in use. (2.02.56)
Revert to old glibc vsnprintf behaviour in emit_to_buffer() to catch overflow.
Allocate buffer for metadata tags dynamically to remove 4k limit.
2010-09-09 17:13:12 +04:00
Add random suffix to archive file names to prevent races when being created.
2010-09-09 17:07:13 +04:00
Reinitialize archive and backup handling on toolcontext refresh.
2010-08-26 20:29:12 +04:00
Make poll_mirror_progress report PROGRESS_CHECK_FAILED if LV is not a mirror.
2010-08-26 18:21:50 +04:00
Like mirrors, don't scan origins if ignore_suspended_devices() is set.
2010-08-26 16:08:19 +04:00
Fix return type qualifier to avoid compiler warning. (2.02.69)
2010-08-23 15:37:02 +04:00
Automatically generate LSB Requires-Start for clvmd init script.
2010-08-23 15:34:40 +04:00
Fix return code of pvmove --abort PV.
2010-08-23 15:34:10 +04:00
Fix pvmove --abort to remove even for empty pvmove LV.
2010-08-21 04:18:05 +04:00
Add configure --with-default-data-alignment.
2010-08-21 00:59:05 +04:00
Update heuristic used for default and detected data alignment.
Add "devices/default_data_alignment" to lvm.conf.
2010-09-27 23:09:34 +04:00
Add implementation for simple numeric 'get' property functions.
2010-08-21 00:35:55 +04:00
Define GET_NUM_PROPERTY_FN macro to simplify numeric property 'get' function
2010-09-22 05:36:13 +04:00
Add properties.[ch] to lib/report using columns.h.
2010-08-21 00:35:55 +04:00
Add macro definitions to report infrastructure for character array length.
Remove explicit double quotes from columns.h 'id' entries.
Add 'flags' field to columns.h and define FIELD_MODIFIABLE.
Add vg_mda_size and vg_mda_free functions.
2010-08-20 03:03:34 +04:00
Simplify MD/swap signature detection in pvcreate and allow aborting.
2010-09-22 05:36:13 +04:00
Allow --yes to be used without --force mode.
2010-08-20 03:05:45 +04:00
Fix file descriptor leak in swap signature detection error path.
2010-08-20 03:08:18 +04:00
Detect and allow abort in pvcreate if LUKS signature is detected.
2010-09-22 05:36:13 +04:00
Always mask lock flags correctly when checking for LCK_WRITE.
2010-08-20 02:33:14 +04:00
2010-08-19 00:57:10 +04:00
Version 2.02.73 - 18th August 2010
==================================
2010-08-18 03:56:23 +04:00
Fix potential for corruption during cluster mirror device failure.
2010-08-17 23:25:05 +04:00
Use 'SINGLENODE' instead of 'dead' in clvmd singlenode messages.
Ignore snapshots when performing mirror recovery beneath an origin.
Pass LCK_ORIGIN_ONLY flag around cluster.
Add suspend_lv_origin and resume_lv_origin using LCK_ORIGIN_ONLY.
2010-08-17 20:25:32 +04:00
Allow internal suspend and resume of origin without its snapshots.
2010-08-17 05:51:12 +04:00
Fix dev_manager_transient to access -real device not snapshot-origin.
2010-08-17 05:16:41 +04:00
Monitor origin -real device below snapshot instead of overlay device.
2010-08-17 03:29:09 +04:00
Don't really change monitoring status when in test mode.
2010-08-17 02:54:35 +04:00
Fix some exit statuses when starting/stopping monitoring fails.
Enable snapshot monitoring by default when dmeventd is enabled.
Move cloned libdevmapper-event client code from segments into lib/activate.
2010-08-16 22:02:14 +04:00
Fix 'lvconvert --splitmirrors' in cluster operation.
2010-08-19 00:57:10 +04:00
Fix clvmd init script exit code to return 4 when executed as non-root user.
2010-08-12 08:11:48 +04:00
Change default alignment of pe_start to 1MB.
2010-08-12 08:08:59 +04:00
Add --norestorefile option to pvcreate.
Require --restorefile when using pvcreate --uuid.
2010-08-11 16:14:23 +04:00
Recognise and give preference to md device partitions (blkext major).
2010-08-09 18:06:03 +04:00
Never scan internal LVM devices.
2010-08-19 00:57:10 +04:00
Don't ignore user-specified PVs in split-mirror operations. (2.02.71)
2010-08-04 22:18:18 +04:00
Fix data corruption bug in cluster mirrors.
2010-08-04 00:22:31 +04:00
Require logical volume(s) to be explicitly named for lvconvert --merge.
2010-08-03 22:19:42 +04:00
Avoid changing aligned pe_start as a side-effect of very verbose logging.
2010-08-19 00:57:10 +04:00
Use built-in rule for device aliases: block/ < dm- < disk/ < mapper/ < other.
2010-08-03 17:13:01 +04:00
Fix const warning in dev_manager_info() and _dev_manager_lv_rmnodes().
Fix const warning in archive_file structure from archive.c.
2010-08-03 17:00:45 +04:00
Clean generated files .exported_symbols_generated, example.conf for distclean.
2011-04-29 20:27:09 +04:00
Handle failure of all mirrored log devices and all but one mirror leg.
2010-08-02 23:03:45 +04:00
Disallow 'mirrored' log type for cluster mirrors.
2010-08-02 17:17:03 +04:00
Do not use VPATH in include/Makefile.
2010-08-02 16:44:21 +04:00
Fix exported_symbols generation to use standard compiler arguments.
2010-08-02 16:23:01 +04:00
Use #include <> not "" in lvm2app.h which gets installed on the system.
2010-08-02 17:56:34 +04:00
Make lib and liblvm.device-mapper wait for include file generation.
2010-07-31 04:43:41 +04:00
Fix configure to supply DEFAULT_RUN_DIR to Makefiles.
2010-08-19 00:57:10 +04:00
Fix allocation of wrong number of mirror logs with 'remove' fault policy.
2010-07-29 01:58:08 +04:00
2010-07-28 17:55:42 +04:00
Version 2.02.72 - 28th July 2010 [CVE-2010-2526]
=================================================
Change clvmd to communicate with lvm2 via a socket in /var/run/lvm.
Return controlled error if clvmd is run by non-root user.
Add configure --default-run-dir for /var/run/lvm.
2010-07-28 18:01:40 +04:00
Never use clvmd singlenode unless explicitly requested with -Isinglenode.
2010-07-28 17:55:42 +04:00
2010-07-28 15:49:42 +04:00
Version 2.02.71 - 28th July 2010
2010-07-28 02:52:19 +04:00
================================
2010-07-28 01:57:37 +04:00
Document LVM fault handling in doc/lvm_fault_handling.txt.
2010-07-28 00:05:29 +04:00
Make vgck warn about missing PVs.
2010-07-21 23:44:25 +04:00
Clarify help text for vg_mda_count.
2010-07-21 17:40:21 +04:00
Check if cluster log daemon is running before allowing cmirror create.
2010-07-28 01:57:37 +04:00
Add unit-tests dir.
Add configure --enable-testing and reports and report-generators dirs.
Correct LV list order used by lvconvert when splitting a mirror.
2010-07-14 02:24:39 +04:00
Check if LV with specified name already exists when splitting a mirror.
2010-07-14 01:48:16 +04:00
Fix suspend/resume logic for LVs resulting from splitting a mirror.
2010-07-21 23:44:25 +04:00
Update pvcreate, {pv|vg}change, and lvm.conf man pages about metadataignore.
2010-07-13 17:51:01 +04:00
Switch cmirrord and clvmd to use dm_create_lockfile.
Allow clvmd pidfile to be configurable.
2010-07-12 22:12:23 +04:00
Update comments about memory handling in lvm2app.h.
2010-07-12 15:37:49 +04:00
Add more verbose messages while checking volume_list and hosttags settings.
2010-07-09 21:01:11 +04:00
Add log_error when strdup fails in {vg|lv}_change_tag().
Remove unnecessary includes in liblvm files.
2010-07-09 19:34:40 +04:00
Use __attribute__ consistently throughout.
2010-07-09 19:26:41 +04:00
Fix redundant declarations and always compile with -Wredundant-decls.
2010-07-28 01:57:37 +04:00
Fix possible hang when all mirror images of a mirrored log fail.
2010-07-09 21:01:11 +04:00
Pass metadataignore to pv_create, pv_setup, _mda_setup, and add_mda.
Init mda->list in mda_copy.
2010-07-08 16:24:04 +04:00
Do not log backtrace in valid _lv_resume() code path.
Cleanup help strings in configure.in.
2010-07-07 23:02:50 +04:00
Prompt if metadataignore with vgextend or pvchange would adjust vg_mda_copies.
Adjust vg_mda_copies if metadataignore given with vgextend or pvchange.
2010-07-07 06:53:16 +04:00
Adjust auto-metadata repair and caching logic to try to cope with empty mdas.
2010-07-07 06:37:28 +04:00
2010-07-06 20:49:38 +04:00
Version 2.02.70 - 6th July 2010
===============================
2010-07-07 06:24:05 +04:00
Remove log directly if all mirror images of a mirrored log fail.
2010-07-06 02:23:15 +04:00
Randomly select which mdas to use or ignore.
Add some missing standard configure.in checks.
2010-07-03 01:16:50 +04:00
Add printf format attributes to yes_no_prompt and fix a caller.
2010-07-02 06:09:57 +04:00
Always pass unsuspended dm devices through persistent filter to other filters.
Move test for suspended dm devices ahead of other filters.
2010-07-07 06:37:28 +04:00
Fix another segfault in clvmd -R if no response from daemon. (2.02.68)
2010-07-02 01:23:47 +04:00
Remove superfluous suspended device counter from clvmd.
2010-07-01 15:04:58 +04:00
Fix lvm shell crash when input is entirely whitespace.
2010-06-30 20:43:09 +04:00
Update partial mode warning message.
2010-07-01 01:58:13 +04:00
Preserve memlock balance in clvmd when activation triggers a resume.
2010-07-06 20:49:38 +04:00
Restore the removemissing behaviour of lvconvert --repair --use-policies.
2010-06-30 18:50:32 +04:00
2010-06-30 18:04:15 +04:00
Version 2.02.69 - 30th June 2010
2010-06-23 23:35:11 +04:00
================================
2010-06-30 18:01:39 +04:00
Fix vgremove to allow removal of VG with missing PVs. (2.02.52)
2010-06-30 18:04:15 +04:00
Add metadata/vgmetadatacopies to lvm.conf.
Add --metadataignore to pvcreate and vgextend.
Add vg_mda_copies, pv_mda_used_count and vg_mda_used_count to reports.
2010-06-29 16:06:14 +04:00
Describe --vgmetadatacopies in lvm.conf and other man pages.
2010-06-30 18:04:15 +04:00
Add --[vg]metadatacopies to select number of mdas to use in a VG.
2010-06-29 16:06:14 +04:00
Make the metadata ignore bit control read/write metadata areas in a PV.
Add pvchange --metadataignore to set or clear a metadata ignore bit.
Refactor metadata code to prepare for --metadataignore / --vgmetadatacopies.
2010-06-28 18:19:41 +04:00
Ensure region_size of mirrored log does not exceed its full size.
2010-06-30 18:04:15 +04:00
Generate liblvm2app exported symbols from header file.
2010-06-24 12:29:30 +04:00
Preload libc locale messages to prevent reading it in memory locked state.
2010-06-24 01:01:42 +04:00
Fix handling of simultaneous mirror image and mirrored log image failure.
2010-06-23 23:35:11 +04:00
2010-06-23 21:48:41 +04:00
Version 2.02.68 - 23rd June 2010
================================
2010-06-23 20:24:13 +04:00
Fix clvmd initscript status to print only active clustered LVs.
2010-06-23 16:32:08 +04:00
Add lv_path to reports to offer full /dev pathname.
2010-06-23 01:10:53 +04:00
Fix typo in warning message about missing device with allocated data areas.
2010-06-23 21:03:14 +04:00
Add device name and offset to raw_read_mda_header error messages.
Honour log argument when down-converting stacked mirror.
2010-06-21 19:56:57 +04:00
Sleep to workaround clvmd -S race: socket closed early and server drops cmd.
2010-06-21 12:54:32 +04:00
Use early udev synchronisation and update of dev nodes for clustered mirrors.
2010-06-21 19:56:57 +04:00
Remove incorrect inclusion of kdev_t.h from cmirrord/functions.h.
Add man pages for lvmconf and non-existent lvmsadc and lvmsar tools.
Exit successfully when using -o help (but not -o +help) with LVM reports.
2010-06-17 16:48:54 +04:00
Do not use internal DLM lock definitions in generic LVM2 clvmd code.
2010-06-21 19:56:57 +04:00
Add --force, --nofsck and --resizefs to lvresize/extend/reduce man pages.
2010-06-16 17:03:48 +04:00
Fix lvm2cmd example in documentation.
2010-06-21 19:56:57 +04:00
Allow use of lvm2app and lvm2cmd headers in C++ code.
2010-06-23 16:32:08 +04:00
Remove unused #includes from clvmd files and introduce clvmd-common.h.
Move common inclusions to clvmd-common.h.
2010-06-21 19:56:57 +04:00
Use #include "" for libdevmapper.h and configure.h throughout tree.
2010-06-23 21:48:41 +04:00
Fix LVM_PATH expansion when exec_prefix=NONE. (2.02.67)
2010-06-07 17:52:52 +04:00
Fix segfault in clvmd -R if no response from daemon received.
2010-06-07 14:25:43 +04:00
2010-06-04 21:23:49 +04:00
Version 2.02.67 - 4th June 2010
2010-05-21 03:21:53 +04:00
===============================
2010-06-04 16:59:30 +04:00
Handle failed restart of clvmd using -S switch properly.
2010-06-04 01:03:53 +04:00
Fix clvmd initscript restart command to start clvmd if not yet running.
2010-06-04 21:23:49 +04:00
Use built-in absolute paths in clvmd (clvmd restart and PV and LV queries).
2010-06-03 16:45:05 +04:00
Require partial option in lvchange --refresh for partial LVs.
2010-06-02 01:47:57 +04:00
Do not fail lvm_init() if init_logging() or _init_rand() generates an errno.
2010-06-01 23:02:12 +04:00
Don't merge unchanged persistent cache file before dumping if tool scanned.
2010-06-01 16:08:50 +04:00
Fix incorrect memory pool deallocation while using vg_read for files.
2010-05-28 07:50:15 +04:00
Add --type parameter description to the lvcreate man page.
2010-05-25 03:11:34 +04:00
Replace strncmp kernel version number checks with proper ones.
2010-05-25 02:53:48 +04:00
Avoid selecting names under /dev/block if there is an alternative.
2010-05-24 21:46:47 +04:00
Update clustered log kernel module name to log-userspace for 2.6.31 onwards.
2010-06-04 21:23:49 +04:00
Add replicators' LVs to dtree for activation.
Supress activation message if there is a missing replicator VG.
Fix scripts/relpath.awk to work in mawk
Extend lock_vol to check for missing replicator VGs first.
Update _process_one_vg and process_each_lv_in_vg to populate cmd_vg.
Add cmd_vg structure and associated functions for replicator.
Extend _lv_each_dependency() to handle replicator dependencies.
Add check_replicator_segment() to catch internal replicator errors.
Initial support for replicator metadata.
Extend process_each_lv_in_vg() to provide list of failed lvnames.
Consistently return ECMD_FAILED if process_each_*lv() is interrupted.
2010-05-21 03:21:53 +04:00
2010-05-21 02:27:26 +04:00
Version 2.02.66 - 20th May 2010
2010-05-18 00:18:13 +04:00
===============================
2010-05-21 02:24:33 +04:00
If unable to obtain snapshot percentage leave value blank on reports.
2010-05-20 18:45:14 +04:00
Add install_system_dirs and install_initscripts makefile targets.
2010-05-20 17:47:21 +04:00
Add configure options for system and locking directories.
2010-05-20 15:45:56 +04:00
Generate example.conf so default lvm.conf contents can be configured.
2010-05-20 15:20:35 +04:00
Install lvmconf script by default.
Remove unnecessary versioned dmeventd plugin symlinks.
2010-05-19 15:57:05 +04:00
Add tests for lvm_vgname_from_{pvid|device}.
Add lvm2app interfaces to lookup a vgname from a pvid and pvname.
Update pvchange to always obtain a vg handle for each pv to process.
2010-05-21 02:27:26 +04:00
Add find_vgname_from_{pvname|pvid} functions.
2010-05-19 15:57:05 +04:00
Add pvid_from_devname and lvmcache_vgname_from_pvid lvmcache functions.
2010-05-19 06:08:50 +04:00
Validate orphan and VG_GLOBAL lock order too.
2010-05-19 05:16:40 +04:00
Accept orphan VG names as parameters to lock_vol() and related functions.
2010-05-19 06:36:33 +04:00
Use is_orphan_vg in place of hard-coded prefix tests and add is_global_vg.
2010-05-18 00:18:13 +04:00
2010-05-17 22:39:01 +04:00
Version 2.02.65 - 17th May 2010
===============================
Fix clvmd init script never to deactivate non-clustered volume groups.
Disallow vgchange --clustered if there are active mirrors or snapshots.
Introduce lv_is_mirrored.
2010-05-14 15:33:20 +04:00
Use /bin/bash for scripts with bashisms.
2010-05-17 22:39:01 +04:00
Skip internal lvm devices in scan if ignore_suspended_devices is set.
2010-05-13 17:04:03 +04:00
Do not merge old device cache after we run full scan. (2.02.56)
2010-05-11 12:57:02 +04:00
Add pkgconfigdir Makefile variable for make install override.
2010-05-17 22:39:01 +04:00
Configure pkgconfig udev and selinux dependencies.
Switch Libs.private to Requires.private in devmapper.pc and lvm2app.pc.
Use pkgconfig Requires.private for devmapper-event.pc.
Add libdevmapper to linked libdevmapper-event.so.
Link liblvm2cmd.so with libdevmapper-event and libdevmapper.
2010-05-07 19:24:17 +04:00
Fix truncated total size displayed by pvscan.
2010-05-17 22:39:01 +04:00
Add new --sysinit compound option to vgchange and lvchange.
Drop duplicate errors for read failures and missing devices to verbose level.
Use $(libdir)/lvm2 with make install_lvm2_plugin.
Use $(libdir)/device-mapper with make install_dm_plugin.
2010-05-06 14:10:15 +04:00
Add dm_list_splice() function to join two lists together.
2010-04-30 19:48:38 +04:00
2010-04-30 18:49:42 +04:00
Version 2.02.64 - 30th April 2010
2010-04-15 01:47:48 +04:00
=================================
2010-04-30 18:49:42 +04:00
Avoid pointless initialisation when the 'version' command is run directly.
2010-04-30 16:37:04 +04:00
Fix memory leak for invalid regex pattern input.
2010-04-30 16:31:32 +04:00
Display invalid regex pattern for filter configuration in case of error.
2010-04-29 05:38:12 +04:00
Remove no-longer-used arg_ptr_value.
2010-04-30 18:49:42 +04:00
Fix -M and --type to use strings, not pointers that change on config refresh.
2010-04-26 22:31:58 +04:00
Fix lvconvert error message when existing mirrored LV is not found.
2010-04-23 18:16:32 +04:00
Set appropriate udev flags for reserved LVs.
2010-04-30 18:49:42 +04:00
Disallow the direct removal of a merging snapshot.
2010-04-23 06:57:39 +04:00
Don't preload the origin when removing a snapshot whose merge is pending.
2010-04-21 18:04:24 +04:00
Disallow the addition of mirror images while a conversion is happening.
2010-04-21 17:55:08 +04:00
Disallow primary mirror image removal when mirror is not in-sync.
2010-04-20 22:17:56 +04:00
Remove obsolete --name parameter from vgcfgrestore.
2010-04-20 18:07:37 +04:00
Add -S command to clvmd to restart the daemon preserving exclusive locks.
2010-04-29 05:45:30 +04:00
Increment lvm2app version from 1 to 2 (memory allocation changes).
2010-04-19 19:24:00 +04:00
Change lvm2app memory alloc/free for pv/vg/lv properties.
2010-04-15 23:15:03 +04:00
Change daemon lock filename from lvm2_monitor to lvm2-monitor for consistency.
2010-04-30 18:49:42 +04:00
Install symbolic .so links with relative paths between usrlibdir and libdir.
2010-04-29 05:45:30 +04:00
Add awk script relpath.awk to calculate paths for relative symlinks.
2010-04-30 18:49:42 +04:00
Use @AWK@ in makefiles.
2010-04-15 19:09:35 +04:00
Fix double DESTDIR usage for infodir and mandir.
2010-04-15 01:47:48 +04:00
2010-04-14 21:50:49 +04:00
Version 2.02.63 - 14th April 2010
=================================
2010-04-15 00:03:15 +04:00
Rename lvm_dump.sh to lvmdump.sh.
2010-04-14 17:52:20 +04:00
Allow incomplete mirror restore in lvconvert --repair upon insufficient space.
2010-04-14 17:09:16 +04:00
Do not reset position in metadata ring buffer on vgrename and vgcfgrestore.
2010-04-14 17:03:06 +04:00
Allow VGs with active LVs to be renamed.
2010-04-14 17:01:38 +04:00
Use UUIDs instead of names while processing event handlers.
2010-04-14 06:19:49 +04:00
Only pass visible LVs to tools in cmdline VG name/tag expansions without -a.
2010-04-14 03:57:41 +04:00
Use typedefs for toollib process_each functions.
2010-04-13 23:54:16 +04:00
Use C locales and use_mlockall for clvmd.
2010-04-13 22:18:54 +04:00
Refactor code related to vg->pvs list and add pv->vg link.
2010-04-14 22:10:30 +04:00
Mask LCK_HOLD flag in cluster VG locks for backwards compatibility.
2010-04-13 05:43:56 +04:00
Add activation/polling_interval to lvm.conf as --interval default.
2010-04-12 15:52:53 +04:00
Don't ignore error if resuming any LV fails in resume_lvs.
Skip closing persistent filter cache file if open failed.
2010-04-14 22:10:30 +04:00
Install .a and .so links into $(usrlibdir).
Add --enable-write_install options to install user-writable files.
2010-04-10 01:42:48 +04:00
Use INSTALL_PROGRAM/DATA/WDATA target.
2010-04-10 01:34:25 +04:00
Switch from using VPATH to vpath in Makefiles.
2010-04-13 05:54:32 +04:00
Permit mimage LVs to be striped in lvcreate, lvresize and lvconvert.
2010-04-08 04:28:57 +04:00
Fix pvmove allocation to take existing parallel stripes into account.
Add pvmove_source_seg to struct lv_segment.
2010-04-08 00:04:41 +04:00
Fix incorrect removal of symlinks after LV deactivation fails.
2010-04-06 21:36:41 +04:00
Fix is_partitioned_dev not to attempt to reopen device.
2010-04-06 19:29:30 +04:00
Fix another thread race in clvmd.
2010-04-06 18:07:11 +04:00
Refactor management of vg->pvs list.
2010-04-06 15:53:53 +04:00
Fix lcov rules and generate better coverage report.
2010-04-01 15:43:24 +04:00
Improve vg_validate to detect some loops in lists.
2010-04-01 14:34:09 +04:00
Change most remaining log_error WARNING messages to log_warn.
2010-03-31 21:23:56 +04:00
Always use blocking lock for VGs and orphan locks.
2010-04-14 22:10:30 +04:00
Allocate all memory for segments from private VG mempool.
2010-03-31 21:22:26 +04:00
Return newly allocated PV segment after segment split.
2010-04-14 22:10:30 +04:00
Optimise searching PV segments for seeking the most recently-added.
2010-03-31 21:20:44 +04:00
Remove vg_validate call when parsing cached metadata.
2010-03-31 21:20:02 +04:00
Use hash table of LVs to speed up parsing of text metadata with many LVs.
2010-04-14 22:10:30 +04:00
Fix two vg_validate messages, adding whitespace and parentheses.
When dmeventd is not forking because of -d flag, don't kill parent process.
2010-03-31 11:43:41 +04:00
Fix 'make install' when $(builddir) is different from $(srcdir).
2010-03-30 18:44:57 +04:00
Fix dso resource leak in error path of dmeventd.
Use C locales and use_mlockall for dmeventd.
2010-03-29 21:59:46 +04:00
Fix --alloc contiguous policy only to allocate one set of parallel areas.
2010-03-29 20:09:40 +04:00
Do not allow {vg|lv}change --ignoremonitoring if on clustered VG.
2010-03-29 18:17:59 +04:00
Improved dependency tracking for dmeventd and liblvm2cmd sources.
Improved Makefile rules for distclean and cflow targets.
2010-03-27 01:15:43 +03:00
Add ability to create mirrored logs for mirror LVs.
2010-03-26 18:40:13 +03:00
Fix clvmd cluster propagation of dmeventd monitoring mode.
2010-03-26 00:19:26 +03:00
Allow ALLOC_ANYWHERE to split contiguous areas.
2010-03-25 21:22:39 +03:00
Use INTERNAL_ERROR for internal errors throughout tree.
2010-03-25 21:16:54 +03:00
Add some assertions to allocation code.
2010-03-25 05:31:48 +03:00
Introduce pv_area_used into allocation algorithm and add debug messages.
Add activation/monitoring to lvm.conf.
Add --monitor and --ignoremonitoring to lvcreate.
2010-03-23 18:07:55 +03:00
Allow dynamic extension of array of areas selected as allocation candidates.
2010-03-23 17:47:35 +03:00
Export and use only valid cookie value in test suite.
2010-03-23 17:24:04 +03:00
Remove const modifier for struct volume_group* from process_each_lv_in_vg().
2010-03-20 06:44:04 +03:00
Don't allow resizing of internal logical volumes.
2010-03-19 21:33:55 +03:00
Fix libdevmapper-event pkgconfig version string to match libdevmapper.
2010-03-18 20:32:25 +03:00
Avoid scanning all pvs in the system if operating on a device with mdas.
2010-03-18 16:24:35 +03:00
Add configure --with-clvmd=singlenode to use clvmd w/o cluster infrastructure.
2010-03-17 17:55:28 +03:00
Get stacktrace if testsuite test drops core and lvm was built with debugging.
2010-03-17 17:45:28 +03:00
Disable long living process flag in lvm2app.
2010-03-17 17:44:18 +03:00
Fix pvcreate device md filter check.
2010-03-17 05:11:18 +03:00
Suppress repeated errors about the same missing PV uuids.
Bypass full device scans when using internally-cached VG metadata.
2010-03-16 20:30:00 +03:00
Only do one full device scan during each read of text format metadata.
2010-03-16 19:57:03 +03:00
Remove unnecessary full_scan parameter from get_vgids and get_vgnames calls.
2010-03-16 18:30:48 +03:00
Look up missing PVs by uuid not dev_name in _pvs_single to avoid invalid stat.
Make find_pv_in_vg_by_uuid() return same type as related functions.
2010-03-16 17:37:38 +03:00
Introduce is_missing_pv().
2010-03-16 11:47:46 +03:00
Fix clvmd Makefile to not overwrite LIBS from template definition.
2010-03-09 17:01:47 +03:00
2010-03-09 16:13:07 +03:00
Version 2.02.62 - 9th March 2010
================================
Add use_mlockall and mlock_filter to activation section of lvm.conf.
Add default alternative to mlockall using mlock to reduce pinned memory size.
2010-03-04 15:03:54 +03:00
Remove -rdynamic from static builds.
2010-03-09 06:20:12 +03:00
Update checks for pthread, readline & selinux libs and link only when needed.
Introduce makefile vars UDEV_LIBS, DL_LIBS, SELINUX_LIBS, STATIC_LIBS.
Introduce makefile vars LVMINTERNAL_LIBS, READLINE_LIBS, PTHREAD_LIBS.
2010-03-09 16:13:07 +03:00
Toggle configure help to print --disable-fsadm.
Use $() instead of ${} consistently for all Makefile variables.
2010-03-04 12:53:08 +03:00
Replace CFLOW_CMD only in make.tmpl and use it as variable elsewhere.
2010-03-04 12:51:37 +03:00
Use $(top_builddir) for inclusion of make.tmpl in Makefiles.
2010-03-04 12:48:19 +03:00
Fix autoconf warning about ignored datarootdir.
2010-03-04 12:46:38 +03:00
Increase AC_PREREQ version to 2.61 (for AC_PROC_SED, AC_PROG_MKDIR_P).
2010-03-09 16:13:07 +03:00
Handle misaligned devices that report alignment_offset of -1.
2010-03-01 23:00:20 +03:00
Extend core allocation code in preparation for mirrored log areas.
2010-02-26 16:07:43 +03:00
Rewrite clvmd init script.
2010-02-24 23:01:40 +03:00
Remove lvs_in_vg_activated_by_uuid_only call.
2010-03-09 16:42:28 +03:00
No longer fall back to looking up active devices by name if uuid not found.
2010-02-24 23:00:56 +03:00
Don't touch /dev in vgmknodes if activation is disabled.
2010-02-24 21:21:15 +03:00
Update lvm2app.h Doxygen comments and add lvm2app Doxygen config file.
Update nightly tests and lvm2app unit tests to cover tags.
Add lvm2app functions lvm_{vg|lv}_{get|add|remove}_tag() functions.
Add dm_pool_strdup to allocate and copy memory in tag library function.
Refactor vgcreate, vgchange, and lvchange for tag library function.
2010-02-18 01:59:46 +03:00
Refactor snapshot-merge deptree and device removal to support info-by-uuid.
2010-02-16 03:27:01 +03:00
2010-02-16 02:53:15 +03:00
Version 2.02.61 - 15th February 2010
====================================
Fix some consts and floating point gcc warnings.
Fix dm_report_field_uint64 function to accept 64-bit ints.
Change readhead display to use 32-bit -1 const instead of 64-bit.
Add LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES environment variable.
Remove hard-coding that skipped _mimage devices from 11-dm-lvm.rules.
Use udev transactions in test suite.
Set udev state automatically instead of using LVM_UDEV_DISABLE_CHECKING.
Add lvm_pv_get_size, lvm_pv_get_free and lvm_pv_get_dev_size to lvm2app.
Change lvm2app to return all sizes in bytes as documented (not sectors).
Add 'fail_if_percent_unsupported' arg to _percent and _percent_run.
Remove false "failed to find tree node" error when activating merging origin.
Exit with success when lvconvert --repair --use-policies performs no action.
Accept a list of LVs with 'lvconvert --merge @tag' using process_each_lv.
Avoid unnecessary second resync when adding mimage to core-logged mirror.
2010-02-16 04:14:34 +03:00
Exclude internal VG names and uuids from lists returned through lvm2app.
2010-02-16 02:53:15 +03:00
Add %ORIGIN support to lv{create,extend,reduce,resize} --extents.
Add _mda_copy to clone a struct metadata_area.
2010-02-02 17:09:17 +03:00
Remove pointless versioned symlinks to dmeventd plugin libraries.
Fix dmeventd snapshot plugin build dependency.
2010-02-16 02:53:15 +03:00
Make clvmd -V return status zero.
Remove unnecessary 'dmsetup resume' following 'dmsetup create' in tests.
Fix cmirrord segfault in clog_cpg list processing when converting mirror log.
Deactivate temporary pvmove mirror cluster-wide when activating it fails.
Always query device by uuid and not name in clvmd.
Add missing metadata vg_reverts in pvmove error paths.
Unlock shared lock in clvmd if activation calls fail.
Return success from dev_manager_info with non-existent uuid if ioctl succeeds.
2010-02-02 20:48:30 +03:00
Version 2.02.60 - 23rd January 2010
===================================
2010-01-23 05:14:30 +03:00
Extend cmirrord man page.
Sleep before first progress check if pvmove/lvconvert interval has prefix '+'.
Default to checking progress before waiting in _wait_for_single_lv.
Fix cmirror initscript (including syntax error).
Eliminate avoidable ioctls for checking open_count in _add_new_lv_to_dtree.
Disable memory debugging if dmeventd is configured. (Not thread-safe.)
2010-01-22 17:33:33 +03:00
Fix first log message prefix in syslog for dmeventd plugins.
Fix exported symbols names for dmeventd lvm2 wrapper plugin.
2010-01-23 05:14:30 +03:00
Make failed locking initialisation messages more descriptive.
2010-01-22 04:09:09 +03:00
2010-01-22 02:55:17 +03:00
Version 2.02.59 - 21st January 2010
2010-01-14 17:42:06 +03:00
===================================
2010-01-22 01:15:45 +03:00
Add libdevmapper-event-lvm2.so to serialise dmeventd plugin liblvm2cmd use.
2010-01-22 00:09:23 +03:00
Cleanup memory initialization and freeing in pv_read() and pv_create().
2010-01-21 20:14:18 +03:00
Clear pointer and counters after their release in _fin_commands().
2010-01-22 02:55:17 +03:00
Stop dmeventd trying to access already-removed snapshots.
Remove (fallback) /dev mknod from cmirrord.
2010-01-20 02:02:04 +03:00
Add t-topology-support.sh and t-snapshot-merge.sh tests.
2010-01-19 16:25:00 +03:00
Fix clvmd to never scan suspended devices.
2010-01-22 02:55:17 +03:00
Fix dmeventd build outside source tree.
Assorted cmirror code changes to remove various compiler warnings.
Fix detection of completed snapshot merge.
Add Red Hat cmirror initscript (unfinished).
Add cmirrord man page (incomplete).
2010-01-15 22:49:35 +03:00
Make cluster log communication structures architecture independant.
2010-01-22 02:55:17 +03:00
Fix cluster log in-memory bitmap handling.
Improve snapshot merge metadata import validation.
2010-01-15 19:35:26 +03:00
Improve target type compatibility checking in _percent_run().
Add 'target_status_compatible' method to 'struct segtype_handler'.
2010-01-22 02:55:17 +03:00
Change underscore to hyphen in table line for clustered log type.
2010-01-14 17:42:06 +03:00
2010-01-14 17:02:34 +03:00
Version 2.02.58 - 14th January 2010
2010-01-12 17:46:59 +03:00
===================================
2010-01-14 17:02:34 +03:00
Cleanup some minor gcc warnings.
2010-01-14 00:48:39 +03:00
Add --merge to lvconvert to merge a snapshot into its origin.
2010-01-14 17:02:34 +03:00
Fix clvmd automatic target module loading crash (no reset_locking fn).
Fix allocation code not to stop at the first area of a PV that fits.
2010-01-12 17:46:59 +03:00
2010-01-12 17:39:07 +03:00
Version 2.02.57 - 12th January 2010
===================================
2010-01-12 00:28:04 +03:00
Ensure exactly one process returns from poll_daemon(), never two.
Reset _vgs_locked in lvmcache_init() in child after forking.
Define {DM, LVM}_UDEV_DISABLE_CHECKING=1 environment variables during tests.
Enable udev_sync and udev_rules in lvm.conf by default while running tests.
If LVM_UDEV_DISABLE_CHECKING in set in environment, disable udev warnings.
Add --splitmirrors to lvconvert to split off part of a mirror.
2010-01-09 00:53:07 +03:00
Change background polldaemon's process name to "(lvm2)".
2010-01-12 00:28:04 +03:00
Allow vgremove to remove a VG with PVs missing after a prompt.
Return success in lvconvert --repair --use-policies on failed allocation.
2010-01-07 23:55:01 +03:00
Keep log type consistent when changing mirror image count.
2010-01-07 23:01:55 +03:00
Always set environment variables for an LVM2 device in 11-dm-lvm.rules.
2010-01-07 22:54:21 +03:00
Add activation/udev_rules config option in lvm.conf.
2010-01-12 00:28:04 +03:00
Add consts to text metadata flag structs.
Add macros outfc, outsize, outhint and function out_text_with_comment.
Reimplement report FIELD macro using offsetof instead of static structs.
Fix fsadm man page typo (fsdam).
2010-01-06 16:27:06 +03:00
Rename mirror_device_fault_policy to mirror_image_fault policy.
2010-01-06 16:26:21 +03:00
Remove empty PV devices if lvconvert --repair is using defined policies.
2010-01-06 16:25:36 +03:00
Use fixed buffer to prevent stack overflow in persistent filter dump.
2010-01-12 00:28:04 +03:00
Use extended status of new kernel snapshot target 1.8.0 to detect when empty.
Insert stack macros in suspend_lv, resume_lv & (de)activate_lv callers.
Add --poll flag to vgchange and lvchange to control background daemon launch.
Propagate metadata commit and revert notifications to other cluster nodes.
2010-01-05 19:07:56 +03:00
Use proper mask for VG lock mode in clvmd.
2010-01-12 00:28:04 +03:00
Allow precommitted metadata to be dropped from lvmcache.
2010-01-05 19:05:12 +03:00
Move processing of VG locks to separate function in clvmd.
2010-01-12 00:28:04 +03:00
Properly decode all flags in clvmd messages including VG locks.
Properly handle precommitted cache flag when only committed metadata present.
2010-01-05 18:58:11 +03:00
Resume renamed volumes in reverse order to preserve memlock pairing.
2010-01-12 00:28:04 +03:00
Drop cached metadata after device was auto-repaired and removed from VG.
Clear MISSING_PV flag if PV reappeared and is empty.
Fix removal of multiple devices from a mirror.
Also clean up PVs flagged as missing in vgreduce --removemissing --force.
Introduce INTERNAL_ERROR macro for error messages and use throughout.
Remove superfluous returns from void functions.
2009-12-11 16:14:44 +03:00
Destroy allocated mempool in _vg_read_orphans() error path.
2010-01-12 00:28:04 +03:00
Fix some pvresize and toollib error paths with missing VG releases/unlocks.
2009-12-09 22:53:39 +03:00
Explicitly call suspend for temporary mirror layer.
2010-01-12 00:28:04 +03:00
Allow use of precommitted metadata when a PV is missing.
2009-12-09 22:01:27 +03:00
Add memlock information to do_lock_lv debug output.
2010-01-12 00:28:04 +03:00
Always bypass calls to remote cluster nodes for non-clustered VGs.
Permit implicit cluster lock conversion in pre/post callbacks on local node.
Permit implicit cluster lock conversion to the lock mode already held.
Fix lock flag masking in clvmd so intended code paths get invoked.
2009-12-09 21:42:02 +03:00
Replace magic masks in cluster locking code by defined masks.
2010-01-12 00:28:04 +03:00
Remove newly-created mirror log from metadata if initial deactivation fails.
Correct activated or deactivated text in vgchange summary message.
Improve pvmove error message when all source LVs are skipped.
Fix memlock imbalance in lv_suspend if already suspended.
Fix pvmove test mode not to poll (and fail).
Fix vgcreate error message if VG already exists.
Fix tools to use log_error when aborted due to user response to prompt.
Fix ignored readahead setting in lvcreate --readahead.
Fix clvmd memory leak in lv_info_by_lvid by calling release_vg.
If aborting due to internal error, always send that message to stderr.
Add global/abort_on_internal_errors to lvm.conf to assist testing.
Fix test Makefiles when builddir and srcdir differ.
Impose limit of 8 mirror images to match the in-kernel kcopyd restriction.
Use locking_type 3 (compiled in) for lvmconf --enable-cluster.
Remove list.c and list.h with no-longer-used dm_list macros and functions.
2009-11-25 18:59:07 +03:00
Log failure type and recognise type 'F' (flush) in dmeventd mirror plugin.
Extend internal PV/VG/LV/segment status variables from 32-bit to 64-bit.
2009-11-24 22:04:23 +03:00
2009-11-24 21:26:08 +03:00
Version 2.02.56 - 24th November 2009
2009-11-19 22:53:58 +03:00
====================================
2009-11-24 20:07:09 +03:00
Add missing vg_release to pvs and pvdisplay to fix memory leak.
2009-11-24 19:13:02 +03:00
Do not try to unlock VG which is not locked in _process_one_vg.
2009-11-24 21:54:23 +03:00
Move is_long_lived persistent_filter_dump to happen after every full scan.
2009-11-24 19:10:25 +03:00
Refresh device filters before full device rescan in lvmcache.
2009-11-24 19:08:49 +03:00
Return error status if vgchange fails to activate some volume.
2009-11-24 21:54:23 +03:00
Fix suspend/resume lock type test causing unbalanced memory locking.
Revert vg_read_internal change as clvmd was not ready for vg_read. (2.02.55)
2009-11-19 22:53:58 +03:00
2009-11-19 22:00:34 +03:00
Version 2.02.55 - 19th November 2009
====================================
2009-11-19 22:42:57 +03:00
Fix deadlock when changing mirrors due to unpaired memlock refcount changes.
Use separate memlock counter for dmeventd handlers to permit device scanning.
Directly restrict vgchange to activating visible LVs.
Fix pvmove region_size overflow for very large PVs.
Fix lvcreate and lvresize %PVS argument always to use sensible total size.
2009-11-03 18:50:42 +03:00
Tidy some uses of arg_count and introduce arg_is_set.
2009-11-03 14:17:46 +03:00
Export outnl and indent functions for modules.
2009-11-03 13:50:57 +03:00
Flush stdout after yes/no prompt.
2009-10-31 20:43:57 +03:00
Update vgsplit and vgcreate to use vg_set_clustered.
2009-11-19 22:42:57 +03:00
Add vg_mda_count and vg_set_clustered library functions.
2009-10-31 20:43:57 +03:00
Add more vgcreate and vgsplit nightly tests.
2009-10-30 16:07:49 +03:00
Insert some missing stack macros into activation code.
2009-11-19 22:42:57 +03:00
Recognise DRBD devices and handle them like md devices.
2009-10-27 04:13:20 +03:00
2009-10-27 00:56:23 +03:00
Version 2.02.54 - 26th October 2009
===================================
2009-10-26 17:37:09 +03:00
Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter.
Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.
2009-10-26 13:01:56 +03:00
Permit snapshots of mirrors.
2009-10-23 05:24:17 +04:00
Cleanup mimagetmp LV if allocation fails for new lvconvert mimage.
2009-10-22 21:45:23 +04:00
Fix clvmd segfault when refresh_toolcontext fails.
2009-10-22 21:33:09 +04:00
Remember to clear 'global lock held during cache refresh' state after use.
2009-10-27 03:52:45 +03:00
Use udev flags support in LVM and apply various fixes to udev rules.
2009-10-22 15:25:46 +04:00
Delay announcing mirror monitoring to syslog until initialisation succeeded.
2009-10-16 21:41:49 +04:00
Handle metadata with unknown segment types more gracefully.
2009-10-14 08:10:41 +04:00
Set default owner and group to null.
2009-10-13 06:35:26 +04:00
Add dmeventd.static to the build.
2009-10-12 20:59:20 +04:00
Disable realtime support code by default.
2009-10-12 12:33:30 +04:00
Make clvmd return 0 on success rather than 1.
2009-10-06 00:55:56 +04:00
Add --pvmetadatacopies for pvcreate, vgcreate, vgextend, vgconvert.
2009-10-06 00:04:40 +04:00
Add implict pvcreate support to vgcreate and vgextend.
2009-10-05 16:44:20 +04:00
Correct example.conf to indicate that lvm2 not lvm1 is the default format.
Remove an unused stray LVM1_SUPPORT ifdef.
2009-10-05 16:11:30 +04:00
Only include selinux libs in libdevmapper.pc when selinux build enabled.
2009-10-02 23:10:31 +04:00
Allow for a build directory separate from the source.
2009-10-02 15:41:54 +04:00
Update distclean target for rename clogd to cmirrord. (2.02.52)
2009-10-01 18:14:17 +04:00
Only do lock conversions in clvmd if we are explicitly asked for one.
2009-10-01 04:35:29 +04:00
Introduce percent_range_t and centralise snapshot full/mirror in-sync checks.
2009-09-30 21:43:51 +04:00
Factor out poll_mirror_progress and introduce progress_t.
2009-09-30 18:19:00 +04:00
Distinguish between powers of 1000 and powers of 1024 in unit suffixes.
2009-09-30 00:22:35 +04:00
Restart lvconverts in vgchange by sharing lv_spawn_background_polling.
2009-09-29 23:35:26 +04:00
Generalise polldaemon code by changing mirror-specific variable names.
2009-09-29 22:50:28 +04:00
Don't attempt to deactivate an LV if any of its snapshots are in use.
2009-10-27 03:52:45 +03:00
Return error if lv_deactivate fails to remove device from kernel.
2009-09-29 01:23:02 +04:00
Provide alternative implementation of obsolete siginterrupt().
2009-09-28 21:46:15 +04:00
Consolidate LV allocation into alloc_lv().
2009-09-28 20:36:03 +04:00
Treat input units of both 's' and 'S' as 512-byte sectors. (2.02.49)
2009-09-28 20:23:44 +04:00
Use standard output units for 'PE Size' and 'Stripe size' in pv/lvdisplay.
Add configure --enable-units-compat to set si_unit_consistency off by default.
Add global/si_unit_consistency to enable cleaned-up use of units in output.
2009-09-26 04:42:47 +04:00
2009-09-25 22:30:26 +04:00
Version 2.02.53 - 25th September 2009
2009-09-15 17:54:28 +04:00
=====================================
2009-09-25 22:30:27 +04:00
Create any directories in /dev with DM_DEV_DIR_UMASK (022).
2009-09-17 03:48:41 +04:00
Enable dmeventd monitoring section of config file by default.
2009-09-17 03:22:40 +04:00
Update lvm2 monitoring script to lvm2_monitoring_init_red_hat.in.
2009-09-15 23:59:04 +04:00
Fix lvm2app test to run under test/api subdirectory only when configured.
2009-09-15 22:35:13 +04:00
Add vg_is_resizeable() and cleanup reference to VG_RESIZEABLE.
2009-09-15 17:54:28 +04:00
2009-09-15 14:57:16 +04:00
Version 2.02.52 - 15th September 2009
=====================================
2009-09-15 05:38:59 +04:00
Update _process_one_vg to cleanup properly after vg_read_error.
2009-09-15 02:47:49 +04:00
Add lots of missing stack debug messages to tools.
Make readonly locking available as locking type 4.
Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
2009-09-15 17:49:10 +04:00
Add DM_UDEV_RULES_VSN environment variable to udev rules.
Update vgsplit, vgmerge, and vgrename to obey new vgname ordering rules.
Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t.
Enforce an alphabetical lock ordering on vgname locking.
Prioritise write locks over read locks by default for file locking.
Add local lock files with suffix ':aux' to serialise locking requests.
2009-08-24 15:37:20 +04:00
Fix global locking in PV reporting commands (2.02.49).
2009-08-20 11:03:02 +04:00
Fix pvcreate string termination in duplicate uuid warning message.
2009-09-15 17:49:10 +04:00
Don't loop reading sysfs with pvcreate on a non-blkext partition (2.02.51).
2009-08-13 21:16:38 +04:00
Fix vgcfgrestore error paths when locking fails (2.02.49).
2009-09-15 17:49:10 +04:00
Update Makefile distclean target.
Add libudev configuration check.
Make clvmd check corosync to see what cluster interface it should use.
Add clvmd autodetection check and cleanup related configure messages.
Rewrite clvmd configuration code to cope with all combinations of libs.
2009-08-29 00:51:40 +04:00
Added configure --enable-cmirrord to build the cluster mirror log daemon.
2009-09-15 15:41:38 +04:00
Rename clogd to cmirrord.
2009-08-13 18:27:32 +04:00
Make lvchange --refresh only take a read lock on volume group.
2009-09-15 17:49:10 +04:00
Fix race where non-blocking file locks could be granted in error.
2009-08-13 16:04:01 +04:00
Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49).
2009-08-13 14:39:41 +04:00
Fix compile warning in clvmd.
2009-09-15 17:49:10 +04:00
Clarify use of PE ranges in lv{convert|create|extend|resize} man pages.
2009-08-13 16:04:01 +04:00
Remove useless _pv_write wrapper.
2009-09-15 17:49:10 +04:00
Add lvm2app.sh to tests conditional upon configure --enable-applib.
Add lvm_vg_is_clustered, lvm_vg_is_exported, and lvm_vg_is_partial.
Update lvm_vg_remove to require lvm_vg_write to commit remove to disk.
2009-08-13 16:04:01 +04:00
Update test/api/test.c to call lvm_vg_create and lvm_vg_remove.
2009-08-06 23:32:26 +04:00
2009-08-06 21:08:01 +04:00
Version 2.02.51 - 6th August 2009
=================================
2009-08-05 18:18:35 +04:00
Fix locking in clvmd (2.02.50).
2009-08-04 19:55:43 +04:00
Add --noudevsync option for relevant LVM tools.
2009-08-04 19:36:13 +04:00
Add activation/udev_sync to lvm.conf.
2009-08-03 22:09:25 +04:00
Only change LV symlinks on ACTIVATE not PRELOAD.
2009-08-03 01:59:21 +04:00
Make lvconvert honour log mirror options combined with downconversion.
2009-08-03 01:03:09 +04:00
Allow LV suspend while --ignorelockingfailure is in force.
2009-08-03 01:01:51 +04:00
Update synopsis in lvconvert manpage to mention --repair.
2009-07-31 22:30:31 +04:00
Set cookies in activation code and wait for udev to complete processing.
2009-07-31 17:31:53 +04:00
Added configure --enable-udev_rules --enable-udev_sync.
Added configure --with-udev-prefix --with-udevdir.
2009-07-31 15:49:53 +04:00
Added udev dir to hold udev rules.
2009-08-01 21:08:43 +04:00
Add devices/data_alignment_detection to lvm.conf.
2009-08-01 21:07:36 +04:00
Add devices/data_alignment_offset_detection to lvm.conf.
2009-07-30 21:45:28 +04:00
Add --dataalignmentoffset to pvcreate to shift start of aligned data area.
2009-07-30 21:19:31 +04:00
Fix _mda_setup() to not check first mda's size before pe_align rounding.
2009-07-30 17:32:38 +04:00
Document -I option of clvmd in the man page.
2009-07-30 16:25:42 +04:00
Fix configure script to handle multiple clvmd selections.
2009-07-29 23:24:11 +04:00
Fix lvm2app.pc installation filename.
2009-07-29 17:26:01 +04:00
Remove pv_t, vg_t & lv_t handles from lib. Only liblvm uses them.
Rename lvm.h to lvm2app.h for now.
2009-07-29 00:47:40 +04:00
2009-07-28 21:07:48 +04:00
Version 2.02.50 - 28th July 2009
2009-07-15 19:38:41 +04:00
================================
2009-07-28 23:32:26 +04:00
Change test/api/test.c prompt so it's not confused with the main lvm prompt.
Update liblvm unit tests in test/api to cover latest liblvm changes.
Add unimplemented lvm_lv_resize and lvm_pv_resize skeletons to liblvm.
Add lvm_library_get_version to liblvm.
Add lvm_config_override to liblvm to allow caller to override LVM config.
Add lvm_lv_is_active and lvm_lv_is_suspended to liblvm.
Add lvm_lv_activate and lvm_lv_deactivate to liblvm.
Add lvm_scan, lvm_vg_reduce and lvm_vg_remove_lv to liblvm.
Add functions to get numeric properties to liblvm.
Add lvm_{pv|vg|lv}_get_{name|uuid} to liblvm.
Add lvm_vg_list_pvs and lvm_vg_list_lvs to liblvm.
Add lvm_vg_open and lvm_vg_create_lv_linear to liblvm.
Add lvm_list_vg_names/uuids to liblvm.
Add lvm_errno and lvm_errmsg to liblvm to obtain failure information.
Rename lvm_create/destroy to lvm_init/quit.
2009-07-28 01:10:30 +04:00
Rename lvm_reload_config to lvm_config_reload.
2009-07-28 23:32:26 +04:00
Refactor _override_settings to use new override_config_tree_from_string.
Add vg_reduce to metadata.c and metadata-exported.h.
2009-07-27 02:19:14 +04:00
Update lvm.h to clarify API behavior and return codes.
2009-07-26 15:21:32 +04:00
Update lvm_vg_extend to do an implicit pvcreate on the device.
2009-07-28 23:32:26 +04:00
Update display.c to use vg_free(vg) instead of duplicating the calculation.
Refactor vg_size, vg_free, and pv_mda_count field calculations for liblvm.
2009-07-26 15:21:32 +04:00
Refactor pvcreate and lvcreate for liblvm.
2009-07-25 03:28:55 +04:00
Add global/wait_for_locks to lvm.conf so blocking for locks can be disabled.
2009-07-24 22:15:06 +04:00
All LV locks are non-blocking so remove LCK_NONBLOCK from separate macros.
2009-07-24 19:01:43 +04:00
Fix race condition with vgcreate and vgextend on same device (2.02.49).
Remove redundant validate_name call from vgreduce.
2009-07-24 03:55:01 +04:00
Remove unused handles lvseg, pvseg inside liblvm/lvm.h.
2009-07-23 01:09:13 +04:00
Add liblvm2app Makefile installation targets.
Add liblvm pkgconfig file.
2009-07-23 00:12:14 +04:00
Use newly-independent LVM_LIBAPI in liblvm soname. E.g. liblvm2app.so.2.1.
2009-07-23 00:01:28 +04:00
Add an API version number, LVM_LIBAPI, to the VERSION string for liblvm.
2009-07-22 00:00:02 +04:00
Pass a pointer to struct cmd_context to init_multiple_segtypes
2009-07-21 15:10:49 +04:00
Return EINVALID_CMD_LINE not success when invalid VG name format is used.
2009-07-16 07:25:26 +04:00
Remove unnecessary messages after vgcreate/vgsplit refactor (2.02.49).
2009-07-16 04:52:06 +04:00
Add log_errno to set a specific errno and replace log_error in due course.
2009-07-16 04:36:59 +04:00
Change create_toolcontext to still return an object if it fails part-way.
Add EUNCLASSIFIED (-1) as the default LVM errno code.
2009-07-16 03:57:54 +04:00
Store any errno and error messages issued while processing each command.
2009-07-16 00:02:46 +04:00
Use log_error macro consistently throughout in place of log_err.
2009-07-15 19:38:41 +04:00
2009-07-15 17:20:06 +04:00
Version 2.02.49 - 15th July 2009
2009-07-01 13:31:46 +04:00
================================
2009-09-15 02:47:49 +04:00
Add readonly locking type to replace implementation of --ignorelockingfailure.
2009-07-14 15:01:26 +04:00
Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again.
2009-07-14 07:08:56 +04:00
Add unit test case for liblvm VG create/delete APIs.
Add liblvm APIs to implement creation and deletion of VGs.
2009-07-14 15:01:26 +04:00
Initialize cmd->cmd_line to "liblvm" in new liblvm library.
Place handles to liblvm objects for pv, vg, lv, lvseg, pvseg inside lvm.h.
2009-07-14 06:19:19 +04:00
Refactor vgsplit and vgextend to remove READ_REQUIRE_RESIZEABLE flag.
2009-07-15 18:59:14 +04:00
Use _exit() not exit() after forking to avoid flushing libc buffers twice.
2009-07-14 15:01:26 +04:00
Add cast to log_info arg in _find_labeller to avoid Sparc64 warning.
2009-07-13 23:49:48 +04:00
Make cmd->cmd_line const.
2009-07-13 15:25:35 +04:00
Fix dev name mismatch in vgcreate man page example.
2009-07-11 00:16:15 +04:00
Refactor vg_remove_single for use in liblvm.
2009-07-15 18:59:14 +04:00
Make all tools use consistent lock ordering obtaining VG_ORPHAN lock second.
Check md devices for a partition table during device scan.
Add extended device (blkext) and md partition (mdp) types to filters.
Make text metadata read errors for segment areas more precise.
Fix text segment metadata read errors to mention correct segment name.
Include segment and LV names in text segment import error messages.
2009-07-09 15:29:00 +04:00
Add parent node to config_node structure.
2009-07-15 18:59:14 +04:00
Update vgsplit and vgcreate to call new vg_create and 'set' functions.
2009-07-09 14:19:07 +04:00
Change vg_create to take minimal parameters, obtain a lock, and return vg_t.
Refactor vgchange extent_size, max_lv, max_pv, and alloc_policy for liblvm.
Update t-vgcreate-usage.sh to test for default vg properties.
Fix memory leak in vgsplit when re-reading the vg.
2009-07-15 19:16:48 +04:00
Make various exit/cleanup paths more robust after lvm init failures.
2009-07-15 18:59:14 +04:00
Use LCK_NONBLOCK implicitly instead of explicit vg_read() flag.
Remove unnecessary locking and existence tests from new vg_read() interface.
2009-07-08 16:36:01 +04:00
Permit several segment types to be registered by a single shared object.
2009-07-06 23:13:26 +04:00
Update the man pages to document size units uniformly.
2009-07-06 23:17:15 +04:00
Allow commandline sizes to be specified in terms of bytes and sectors.
2009-07-06 23:04:24 +04:00
Update 'md_chunk_alignment' to use stripe-width to align PV data area.
2009-07-01 21:23:10 +04:00
Update test/t-inconsistent-metadata.sh to match new vg_read interface.
Add lvmcache_init() to polldaemon initialization.
Convert tools to use new vg_read / vg_read_for_update.
Fix segfault in vg_release when vg->cmd is NULL.
2009-07-01 13:31:46 +04:00
2009-06-30 22:41:47 +04:00
Version 2.02.48 - 30th June 2009
2009-06-26 14:57:30 +04:00
================================
2009-06-26 13:19:13 +04:00
Abort if automatic metadata correction fails when reading VG to update it.
2009-06-18 00:55:24 +04:00
Explicitly request fallback to default major number in device mapper.
2009-06-15 19:09:02 +04:00
Ignore suspended devices during repair.
2009-06-30 22:39:31 +04:00
Call vgreduce --removemissing automatically to fix missing PVs in dmeventd.
Suggest using lvchange --resync when adding leg to not-yet-synced mirror.
Destroy toolcontext on clvmd exit to avoid memory pool leaks.
Fix lvconvert not to poll mirror if no conversion in progress.
2009-06-15 15:56:31 +04:00
Fix memory leaks in toolcontext error path.
2009-06-30 22:39:31 +04:00
Reinstate partial activation support in clustered mode. (2.02.40)
2009-06-12 12:34:15 +04:00
Allow metadata correction even when PVs are missing.
2009-06-09 19:31:36 +04:00
Use 'lvm lvresize' instead of 'lvresize' in fsadm.
Do not use '-n' realine option in fsadm for busybox compatiblity.
2009-06-30 22:39:31 +04:00
Add vg_lock_newname() library function for vgrename, vgsplit and vgcreate.
2009-06-07 02:00:20 +04:00
Round up requested readahead to at least one page and print warning.
2009-06-06 00:00:52 +04:00
Try to repair vg before actual vgremove when force flag provided.
Fix possible double release of VG after recovery.
Add parameter to process_each_vg specifying what to do with inconsistent VG.
2009-06-30 22:39:31 +04:00
Unify error messages when processing inconsistent volume group.
2009-06-04 16:01:15 +04:00
Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO.
Introduce lvconvert --use_policies (repair policy according to lvm.conf).
2009-06-30 22:39:31 +04:00
Update clvmd-corosync to match new corosync API.
2009-07-03 15:04:06 +04:00
Fix lib Makefile to include any shared libraries in default target.
2009-06-01 19:55:06 +04:00
Fix rename of active snapshot with virtual origin.
2009-06-01 18:43:27 +04:00
Fix convert polling to ignore LV with different UUID.
2009-06-01 16:43:31 +04:00
Cache underlying device readahead only before activation calls.
Fix segfault when calculating readahead on missing device in vgreduce.
2009-05-30 05:54:29 +04:00
Remove verbose 'visited' messages.
2009-05-30 04:09:27 +04:00
Handle multi-extent mirror log allocation when smallest PV has only 1 extent.
Add LSB standard headers and functions (incl. reload) to clvmd initscript.
2009-05-28 05:59:37 +04:00
When creating new LV, double-check that name is not already in use.
2009-05-28 05:11:29 +04:00
Remove /dev/vgname/lvname symlink automatically if LV is no longer visible.
2009-05-28 04:29:14 +04:00
Rename internal vorigin LV to match visible LV.
2009-05-27 22:19:21 +04:00
Suppress 'removed' messages displayed when internal LVs are removed.
Fix lvchange -a and -p for sparse LVs.
Fix lvcreate --virtualsize to activate the new device immediately.
2009-05-27 20:30:29 +04:00
Make --snapshot optional with lvcreate --virtualsize.
Generalise --virtualoriginsize to --virtualsize.
2009-05-27 22:19:21 +04:00
Skip virtual origins in process_each_lv_in_vg() without --all.
2009-05-27 17:19:34 +04:00
Fix counting of virtual origin LVs in vg_validate.
2009-05-27 17:05:53 +04:00
Attempt to load dm-zero module if zero target needed but not present.
2009-05-22 19:23:10 +04:00
2009-05-22 18:44:59 +04:00
Version 2.02.47 - 22nd May 2009
2009-05-21 15:11:29 +04:00
===============================
2009-05-22 18:44:59 +04:00
Rename liblvm.so to liblvm2app.so and use configure --enable-applib.
2009-05-21 15:11:29 +04:00
Reinstate version in liblvm2cmd.so soname. (2.02.44)
2009-05-21 07:04:52 +04:00
Version 2.02.46 - 21st May 2009
===============================
Inherit readahead setting from underlying devices during activation.
Detect LVs active on remote nodes by querying locks if supported.
2009-05-20 13:52:37 +04:00
Enable online resizing of mirrors.
Use suspend with flush when device size was changed during table preload.
2009-05-21 07:04:52 +04:00
Implement query_resource_fn for cluster_locking.
Support query_resource_fn in locking modules.
2009-05-19 14:38:58 +04:00
Introduce CLVMD_CMD_LOCK_QUERY command for clvmd.
2009-05-19 13:51:02 +04:00
Fix pvmove to revert operation if temporary mirror creation fails.
2009-05-19 13:48:32 +04:00
Fix metadata export for VG with missing PVs.
2009-05-14 20:46:12 +04:00
Add vgimportclone and install it and the man page by default.
2009-05-14 01:29:10 +04:00
Force max_lv restriction only for newly created LV.
2009-05-14 01:28:31 +04:00
Remove unneeded import parameter from lv_create_empty.
2009-05-14 01:27:43 +04:00
Merge lv_is_displayable and lv_is_visible functions.
2009-05-21 07:04:52 +04:00
Introduce lv_set_visible & lv_set_hidden functions.
2009-05-14 01:25:45 +04:00
Fix lv_is_visible to handle virtual origin.
2009-05-14 01:25:01 +04:00
Introduce link_lv_to_vg and unlink_lv_from_vg functions.
2009-05-14 01:22:57 +04:00
Remove lv_count from VG and use counter function instead.
2009-05-14 01:21:58 +04:00
Fix snapshot segment import to not use duplicate segments & replace.
2009-05-13 18:13:54 +04:00
Do not query nonexistent devices for readahead.
2009-05-13 17:02:52 +04:00
Remove NON_BLOCKING lock flag from tools and set a policy to auto-set.
2009-05-12 23:12:09 +04:00
Remove snapshot_count from VG and use function instead.
2009-05-12 23:09:21 +04:00
Fix first_seg() call for empty segment list.
2009-05-21 07:04:52 +04:00
Add install_lvm2 makefile target to install only the LVM2 components.
2009-05-09 17:47:03 +04:00
Reject missing PVs from allocation in toollib.
2009-05-07 16:11:50 +04:00
Fix PV datalignment for values starting prior to MDA area. (2.02.45)
2009-04-25 05:17:59 +04:00
Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin).
2009-05-21 07:04:52 +04:00
Fix minimum width of devices column in reports.
2009-04-25 05:17:59 +04:00
Add lvs origin_size field.
Fix linux configure --enable-debug to exclude -O2.
2009-05-21 07:04:52 +04:00
Implement lvconvert --repair for repairing partially-failed mirrors.
2009-04-22 21:00:28 +04:00
Fix vgreduce --removemissing failure exit code.
2009-04-22 13:39:45 +04:00
Fix remote metadata backup for clvmd.
2009-05-21 07:04:52 +04:00
Introduce unlock_and_release_vg macro.
Introduce vg_release() to be called to free every struct volume_group.
2009-04-22 13:31:30 +04:00
Alloc PV internal structure from VG mempool if possible.
2009-04-21 18:31:57 +04:00
Fix metadata backup to run after vg_commit always.
2009-04-21 17:11:28 +04:00
Tidy clvmd volume lock cache functions.
2009-04-21 16:59:18 +04:00
Fix pvs report for orphan PVs when segment attributes are requested.
2009-04-21 16:57:31 +04:00
Fix pvs -a output to not read volume groups from non-PV devices.
2009-04-16 14:16:14 +04:00
Add MMC (mmcblk) device type to filters.
2009-04-10 13:59:18 +04:00
Introduce memory pools per volume group (to reduce memory for large VGs).
2009-05-21 07:04:52 +04:00
Use copy of PV structure when manipulating global PV lists.
2009-04-10 13:54:36 +04:00
Always return exit error status when locking of volume group fails.
2009-04-10 13:53:42 +04:00
Fix mirror log convert validation question.
2009-04-08 18:08:05 +04:00
Avoid referencing files from DESTDIR during build process.
2009-05-21 07:04:52 +04:00
Avoid creating some static libraries unless configured --enable-static_link.
2009-04-08 16:53:20 +04:00
Enable use of cached metadata for pvs and pvdisplay commands.
2009-04-08 02:53:48 +04:00
Add missing 'device-mapper' internal subdir build dependency.
2009-04-07 14:20:28 +04:00
Fix memory leak in mirror allocation code.
2009-04-03 01:34:41 +04:00
Save and restore the previous logging level when log level is changed.
2009-04-03 00:46:11 +04:00
Fix error message when archive initialization fails.
2009-04-01 11:51:05 +04:00
Make sure clvmd-corosync releases the lockspace when it exits.
2009-03-24 16:16:34 +03:00
Fix segfault for vgcfgrestore on VG with missing PVs.
2009-03-24 14:49:15 +03:00
Block SIGTERM & SIGINT in clvmd subthreads.
2009-03-17 16:59:56 +03:00
Detect and conditionally wipe swapspace signatures in pvcreate.
2009-03-16 17:34:57 +03:00
Fix maximal volume count check for snapshots if max_lv set for volume group.
2009-05-21 07:04:52 +04:00
Fix lvcreate to remove unused cow volume if the snapshot creation fails.
2009-03-09 18:42:10 +03:00
Fix error messages when PV uuid or pe_start reading fails.
2009-05-21 07:04:52 +04:00
Build new liblvm application-level library.
Rename liblvm.a to liblvm-internal.a.
2009-03-05 19:25:35 +03:00
Flush memory pool and fix locking in clvmd refresh and backup command.
2009-05-21 07:04:52 +04:00
Fix unlocks in clvmd-corosync. (2.02.45)
2009-03-24 00:13:37 +03:00
Fix error message when adding metadata directory to internal list fails.
2009-03-24 00:56:32 +03:00
Fix size and error message of memory allocation at backup initialization.
2009-05-21 07:04:52 +04:00
Remove old metadata backup file after renaming VG.
2009-03-24 01:57:27 +03:00
Restore log_suppress state when metadata backup file is up-to-date.
2009-03-03 21:25:05 +03:00
2009-03-03 16:03:03 +03:00
Version 2.02.45 - 3rd March 2009
================================
2009-03-03 19:35:32 +03:00
Avoid scanning empty metadata areas for VG names.
2009-02-28 03:54:06 +03:00
Attempt proper clean up in child before executing new binary in exec_cmd().
2009-02-26 02:29:06 +03:00
Do not scan devices if reporting only attributes from PV label.
2009-02-26 01:41:12 +03:00
Use pkgconfig to obtain corosync library details during configuration.
2009-02-25 17:33:00 +03:00
Fix error returns in clvmd-corosync interface to DLM.
2009-02-25 16:17:40 +03:00
Add --refresh to vgchange and vgmknodes man pages.
2009-03-03 16:03:03 +03:00
Pass --test from lvresize to fsadm as --dry-run.
Supply argv[] list to exec_cmd() to allow for variable number of parameters.
Prevent fsadm from checking mounted filesystems.
No longer treats any other key as 'no' when prompting in fsadm.
Tidy fsadm command line processing.
2009-02-24 16:03:45 +03:00
Add lib/lvm.h and lib/lvm_base.c for the new library interface.
2009-02-23 01:11:58 +03:00
Move tools/version.h to lib/misc/lvm-version.h.
Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
2009-02-23 00:14:37 +03:00
Add system_dir parameter to create_toolcontext().
2009-02-22 22:00:26 +03:00
Add --dataalignment to pvcreate to specify alignment of data area.
2009-02-22 19:13:57 +03:00
Exclude LCK_CACHE locks from _vg_lock_count, fixing interrupt unblocking.
2009-02-21 02:19:28 +03:00
Provide da and mda locations in debug message when writing text format label.
2009-02-20 04:47:02 +03:00
Mention the restriction on file descriptors at invocation on the lvm man page.
2009-02-17 21:56:41 +03:00
Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames.
2009-02-12 23:42:07 +03:00
No longer require kernel and metadata major numbers to match.
2009-02-11 13:13:20 +03:00
Add a fully-functional get_cluster_name() to clvmd corosync interface.
2009-02-10 16:22:18 +03:00
Remove duplicate cpg_initialize from clvmd startup.
2009-02-10 14:53:33 +03:00
Add option to /etc/sysconfig/cluster to select cluster type for clvmd.
2009-02-10 14:52:40 +03:00
Allow clvmd to start up if its lockspace already exists.
2009-02-09 12:45:49 +03:00
Separate PV label attributes which do not need parse metadata when reporting.
2009-03-03 16:03:03 +03:00
Remove external dependency on the 'cut' command from fsadm.
2009-02-06 15:41:51 +03:00
Fix pvs segfault when pv mda attributes requested for not available PV.
2009-03-03 16:03:03 +03:00
Add fsadm support for reszing ext4 filesysystems.
2009-02-03 19:23:19 +03:00
Move locking_type reading inside init_locking().
2009-02-03 19:19:25 +03:00
Rename get_vgs() to get_vgnames() and clarify related error messages.
2009-02-02 17:34:24 +03:00
Allow clvmd to be built with all cluster managers & select one on cmdline.
Mention --with-clvmd=corosync in ./configure.
2009-01-27 01:42:59 +03:00
Replace internal vg_check_status() implementation.
2009-01-26 22:01:32 +03:00
Rename vg_read() to vg_read_internal().
2009-01-26 17:46:08 +03:00
2009-01-26 16:14:22 +03:00
Version 2.02.44 - 26th January 2009
===================================
2009-01-26 17:40:06 +03:00
Fix --enable-static_link after the recent repository changes.
2009-01-26 16:14:22 +03:00
Add corosync/DLM cluster interface to clvmd.
2009-01-20 20:39:07 +03:00
Add --nameprefixes, --unquoted, --rows to pvs, vgs, lvs man pages.
2009-01-26 16:14:22 +03:00
Fix lvresize size conversion for fsadm when block size is not 1K.
2009-01-10 20:09:40 +03:00
Fix pvs segfault when run with orphan PV and some VG fields.
2009-01-10 05:43:51 +03:00
Display a 'dev_size' of zero for missing devices in reports.
2009-01-10 01:48:22 +03:00
Add pv_mda_size to pvs and vg_mda_size to vgs.
2009-01-06 21:02:57 +03:00
Fix lvmdump /sys listing to include virtual devices directory.
2008-12-22 12:04:35 +03:00
Add "--refresh" functionality to vgchange and vgmknodes.
2009-01-26 16:14:22 +03:00
Avoid exceeding LV size when wiping device.
2008-12-19 18:24:52 +03:00
Calculate mirror log size instead of using 1 extent.
2009-01-26 16:14:22 +03:00
Ensure requested device number is available before activating with it.
2009-01-10 05:43:51 +03:00
Fix incorrect exit status from 'help <command>'.
Fix vgrename using UUID if there are VGs with identical names.
2008-12-15 16:30:45 +03:00
Fix segfault when invalid field given in reporting commands.
2009-01-26 16:34:07 +03:00
Move is_static from cmd to global is_static().
2008-12-11 16:45:28 +03:00
Refactor init_lvm() for lvmcmdline and clvmd.
2008-12-07 22:37:07 +03:00
Add liblvm interactive test infrastructure to build.
2009-01-26 16:34:07 +03:00
Add skeleton lvm2.h file in preparation for a shared library interface.
2008-12-07 07:27:56 +03:00
Use better random seed value in temp file creation.
2009-01-26 16:14:22 +03:00
Add read_urandom to read /dev/urandom. Use in uuid calculation.
2008-12-04 18:54:26 +03:00
Use displayable_lvs_in_vg and lv_is_displayable for consistency throughout.
2008-12-01 23:14:33 +03:00
Fix race in vgcreate that would result in second caller overwriting first.
2008-12-01 20:38:35 +03:00
Fix uninitialised lv_count in vgdisplay -c.
2008-11-27 21:13:50 +03:00
Don't skip updating pvid hash when lvmcache_info struct got swapped.
2008-11-24 16:33:16 +03:00
Add tinfo to termcap search path for pld-linux.
2008-11-21 16:48:00 +03:00
Fix startup race in clvmd.
2009-01-26 16:14:22 +03:00
Generate Red Hat clvmd startup script at config time with correct paths.
2008-11-19 17:14:51 +03:00
Fix clvmd & dmeventd builds after tree restructuring.
2008-11-17 21:20:13 +03:00
Cope with snapshot dependencies when removing a whole VG with lvremove.
2009-01-26 16:14:22 +03:00
Make man pages and tool help text consistent using | for alternative options.
2008-11-19 17:14:51 +03:00
Version 2.02.43 - 10th November 2008
====================================
2008-11-10 15:39:50 +03:00
Merge device-mapper into the lvm2 tree.
2008-11-11 00:26:06 +03:00
Correct prototype for --permission on lvchange and lvcreate man pages.
Exit with non-zero status from vgdisplay if couldn't show any requested VG.
2008-11-03 21:59:59 +03:00
Move list.c into libdevmapper and rename functions.
2008-11-03 19:26:27 +03:00
Rename a couple of variables that matched function names.
2008-11-01 23:48:09 +03:00
Use simplified x.y.z version number in libdevmapper.pc.
2008-10-31 15:25:54 +03:00
Remove ancient debian directory.
2008-10-30 20:40:00 +03:00
Split out lvm-logging.h from log.h and lvm-globals.[ch] from log.[ch].
2008-10-26 13:40:50 +03:00
2008-10-26 13:33:34 +03:00
Version 2.02.42 - 26th October 2008
2008-10-17 21:48:10 +04:00
===================================
2008-10-24 05:16:16 +04:00
Accept locking fallback_to_* options in the global section as documented.
2008-10-23 15:21:04 +04:00
Fix temp table activation in mirror conversions not to happen in other cmds.
Fix temp table in mirror conversions to use always-present error not zero.
2008-10-17 21:48:10 +04:00
2008-10-17 21:42:08 +04:00
Version 2.02.41 - 17th October 2008
===================================
2008-10-17 14:57:15 +04:00
Use temp table to set device size when converting mirrors.
2008-10-17 14:50:14 +04:00
In resume_mirror_images replace activate_lv with resume_lv as workaround.
2008-10-17 04:55:46 +04:00
Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE.
2008-10-13 16:06:30 +04:00
Fix snapshot monitoring library to not cancel monitoring invalid snapshot.
2008-10-08 16:50:13 +04:00
Generate man pages from templates and include version.
2008-10-07 23:11:59 +04:00
Add usrlibdir and usrsbindir to configure.
2008-10-03 18:22:18 +04:00
Fix conversion of md chunk size into sectors.
2008-10-01 00:37:52 +04:00
Free text metadata buffer after a failure writing it.
2008-10-03 18:22:18 +04:00
Fix misleading error message when there are no allocatable extents in VG.
2008-09-25 19:59:10 +04:00
Fix handling of PVs which reappeared with old metadata version.
2008-09-25 19:52:29 +04:00
Fix mirror DSO to call vgreduce with proper parameters.
2008-09-24 20:32:51 +04:00
Fix validation of --minor and --major in lvcreate to require -My always.
2008-09-19 22:31:20 +04:00
Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning.
2008-09-19 19:44:03 +04:00
2008-09-19 10:48:48 +04:00
Version 2.02.40 - 19th September 2008
=====================================
2008-09-19 10:44:54 +04:00
Allow lvremove to remove LVs from VGs with missing PVs.
2008-09-19 10:42:00 +04:00
In VG with PVs missing, by default allow activation of LVs that are complete.
Track PARTIAL_LV and MISSING_PV flags internally.
Require --force with --removemissing in vgreduce to remove partial LVs.
No longer write out PARTIAL flag into metadata backups.
Treat new default activation/missing_stripe_filler "error" as an error target.
Remove internal partial_mode.
2008-10-02 02:48:26 +04:00
Add devices/md_chunk_alignment to lvm.conf.
2008-09-19 09:19:09 +04:00
Pass struct physical_volume to pe_align and adjust for md chunk size.
2008-09-19 07:42:37 +04:00
Store sysfs location in struct cmd_context.
2008-09-18 23:56:50 +04:00
Avoid shuffling remaining mirror images when removing one, retaining primary.
2008-09-18 23:09:47 +04:00
Add missing LV error target activation in _remove_mirror_images.
2008-09-18 22:51:58 +04:00
Prevent resizing an LV while lvconvert is using it.
2008-09-16 22:05:11 +04:00
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
2008-09-12 19:26:45 +04:00
Fix pvresize to not allow resize if PV has two metadata areas.
2008-08-29 17:41:21 +04:00
Fix setting of volume limit count if converting to lvm1 format.
2008-08-28 22:41:51 +04:00
Fix vgconvert logical volume id metadata validation.
2008-08-28 14:40:44 +04:00
Fix lvmdump metadata gather option (-m) to work correctly.
2008-08-16 13:46:55 +04:00
Fix allocation bug in text metadata format write error path.
2008-08-13 16:44:24 +04:00
Fix vgcfgbackup to properly check filename if template is used.
2008-08-05 18:29:38 +04:00
configure aborts if lcov or genhtml are missing with --enable-profiling
2008-08-05 16:05:26 +04:00
vgremove tries to remove lv snapshot first.
Added function lv_remove_with_dependencies().
2008-08-01 23:51:27 +04:00
Improve file descriptor leak detection to display likely culprit and filename.
2008-07-31 18:43:39 +04:00
Change clustered mirror kernel module name from cmirror to dm-log-clustered.
2008-07-31 17:07:01 +04:00
Avoid looping forever in _pv_analyze_mda_raw used by pvck.
2008-07-31 17:03:01 +04:00
Change lvchange exit status to indicate if any part of the operation failed.
2008-07-31 16:38:31 +04:00
Fix pvchange and pvremove to handle PVs without mdas.
2008-07-31 14:50:18 +04:00
Refactor _text_pv_read and always return mda list if requested.
2008-07-24 19:39:47 +04:00
Fix configure to work w/o readline unless --enable-readline used. (2.02.39)
Remove is_lvm_partition template which has not yet been coded.
Refactor pvcreate to separate parameter parsing from validation logic.
2008-07-17 07:17:01 +04:00
Check for label_write() failure in _text_pv_write().
Add pvcreate tests and update vgsplit tests to handle lvm1 and lvm2 metadata.
2008-07-16 14:46:12 +04:00
Fix pvchange -M1 -u to preserve existing extent locations when there's a VG.
2008-07-15 04:25:52 +04:00
Cease recognising snapshot-in-use percentages returned by early devt kernels.
Add backward-compatible flags field to on-disk format_text metadata.
2008-07-10 13:50:23 +04:00
Fix dmeventd monitoring libraries to link against liblvm2cmd again. (2.02.39)
2008-06-28 02:35:22 +04:00
2008-06-28 01:56:35 +04:00
Version 2.02.39 - 27th June 2008
2008-06-11 16:14:41 +04:00
================================
2008-06-27 23:57:27 +04:00
Enable readline by default if available.
2008-06-27 23:24:17 +04:00
Update autoconf to 2008-01-16.
Add $DISTCLEAN_DIRS to make.tmpl.in.
Create coverage reports with --enable-profiling and make lcov or lcov-dated.
2008-06-27 19:18:31 +04:00
Fix up cache for PVs without mdas after consistent VG metadata is processed.
2008-06-27 03:05:11 +04:00
Update validation of safe mirror log type conversions in lvconvert.
2008-06-27 01:38:58 +04:00
Fix lvconvert to disallow snapshot and mirror combinations.
2008-06-25 20:52:27 +04:00
Fix reporting of LV fields alongside unallocated PV segments.
2008-06-25 02:48:53 +04:00
Add --unquoted and --rows to reporting tools.
2008-06-25 01:21:04 +04:00
Add and use uninitialized_var() macro to suppress invalid compiler warnings.
Introduce enum for md minor sb version to suppress compiler warning.
Avoid undefined return value after _memlock manipulation in lvm2_run.
Avoid link failure if configured without --enable-cmdlib or --enable-readline.
Make clvmd return at once if other nodes down in a gulm or openais cluster.
Fix and improve readahead 'auto' calculation for stripe_size.
Fix lvchange output for -r auto setting if auto is already set.
Add test case for readahead.
2008-06-28 02:35:22 +04:00
Avoid ambiguous use of identifier error_message_produced.
2008-06-13 18:37:18 +04:00
Begin syncing configure.in for merge/unification with device-mapper.
2008-06-13 16:15:55 +04:00
Fix add_mirror_images not to dereference uninitialized log_lv upon failure.
2008-06-13 11:44:14 +04:00
Don't call openlog for every debug line output by clvmd.
2008-06-12 17:24:02 +04:00
Add --force to lvextend and lvresize.
2008-06-28 02:35:22 +04:00
Fix vgchange not to activate component mirror volumes directly.
2008-06-12 15:49:46 +04:00
Fix test directory clean up in make distclean.
2008-06-13 16:15:55 +04:00
2008-06-11 16:08:19 +04:00
Version 2.02.38 - 11th June 2008
================================
2008-06-11 15:02:05 +04:00
Fix tracking of validity of PVs with no mdas in lvmcache.
2008-06-11 00:07:04 +04:00
Fix return values for reporting commands when run with no PVs, LVs, or VGs.
2008-06-10 19:25:38 +04:00
Add omitted unlock_vg() call when sigint_caught() during vg processing.
2008-06-11 16:08:19 +04:00
Fix free_count when reading pool metadata.
Fix segfault when using pvcreate on a device containing pool metadata.
2008-06-09 20:22:33 +04:00
Fix segfault after _free_vginfo by remembering to remove vginfo from list.
2008-06-08 18:18:44 +04:00
Tweak detection of invalid fid after changes to PVs in VG in _vg_read.
2008-06-08 15:33:15 +04:00
Revert assuming precommitted metadata is live when activating (unnecessary).
2008-06-06 23:32:35 +04:00
Drop cached metadata for disappearing VG in vgmerge.
2008-06-06 23:28:35 +04:00
In script-processing mode, stop if any command fails.
Warn if command exits with non-zero status code without a prior log_error.
Check lv_count in vg_validate.
Add --nameprefixes to reporting tools for field name prefix output format.
2008-06-06 21:24:28 +04:00
Version 2.02.37 - 6th June 2008
===============================
Make clvmd-cman use a hash rather than an array for node updown info.
Correct config file line numbers in messages when parsing comments.
2008-06-06 17:04:44 +04:00
Drop cached metadata when renaming a VG.
2008-06-06 13:48:04 +04:00
Allow for vginfo changing during _vg_read.
2008-06-05 18:24:28 +04:00
Decode numbers in clvmd debugging output.
2008-06-05 17:38:30 +04:00
Add missing deactivation after activation failure in lvcreate -Zy.
2008-06-05 17:06:39 +04:00
When activating, if precommitted metadata is still cached, assume it's live.
2008-06-05 16:45:55 +04:00
When removing LV symlinks, skip any where the VG name is not determined.
2008-06-03 21:56:54 +04:00
Drop metadata cache if update fails in vg_revert or vg_commit.
2008-05-29 02:27:47 +04:00
Avoid spurious duplicate VG messages referring to VGs that are gone.
Drop dev_name_confirmed error message to debug level.
Fix setpriority error message to signed int.
2008-05-21 18:10:11 +04:00
Temporarily disable dmeventd mirror monitoring during lvchange --resync.
2008-05-19 23:49:56 +04:00
Refactor some vginfo manipulation code.
2008-05-09 22:45:15 +04:00
Add assertions to trap deprecated P_ and V_ lock usage.
2008-05-09 19:13:20 +04:00
Add missing mutex around clvmd lvmcache_drop_metadata library call.
Fix uninitialised mutex in clvmd if all daemons are not running at startup.
Avoid using DLM locks with LCK_CACHE type P_ lock requests.
2008-05-08 22:28:27 +04:00
When asked to drop cached committed VG metadata, invalidate cached PV labels.
2008-05-08 22:06:58 +04:00
Drop metadata cache before writing precommitted metadata instead of after.
Don't touch /dev in vgrename if activation is disabled.
2008-04-29 19:58:25 +04:00
Version 2.02.36 - 29th April 2008
2008-04-15 19:01:18 +04:00
=================================
2008-04-29 19:58:25 +04:00
Fix fsadm.sh to work with older blockdev, blkid & readlink binaries.
Fix lvresize to pass new size to fsadm when extending device.
2008-04-29 12:55:20 +04:00
Remove unused struct in clvmd-openais, and use correct node count.
2008-04-28 12:57:11 +04:00
Fix nodes list in clvmd-openais, and allow for broadcast messages.
2008-04-24 06:22:07 +04:00
Exclude VG_GLOBAL from internal concurrent VG lock counter.
2008-04-23 18:33:06 +04:00
Fix vgsplit internal counting of snapshot LVs.
2008-04-24 06:22:07 +04:00
Fix vgmerge snapshot_count when source VG contains snapshots.
Simplify clvmd-openais by using non-async saLckResourceLock.
2008-04-22 16:54:33 +04:00
Fix internal LV counter when a snapshot is removed.
2008-04-22 15:47:22 +04:00
Fix metadata corruption writing lvm1-formatted metadata with snapshots.
2008-04-18 16:50:24 +04:00
Fix lvconvert -m0 allocatable space check.
2008-04-15 19:01:18 +04:00
2008-04-15 18:49:17 +04:00
Version 2.02.35 - 15th April 2008
2008-04-11 00:07:19 +04:00
=================================
2008-04-15 18:46:19 +04:00
Drop cached VG metadata before and after committing changes to it.
2008-04-15 15:36:46 +04:00
Rename P_global to P_#global.
2008-04-14 23:49:12 +04:00
Don't attempt remote metadata backups of non-clustered VGs. (2.02.29)
2008-04-14 23:24:16 +04:00
Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34)
2008-04-11 01:38:52 +04:00
Update vgsplit tests to verify loosening of active LV restriction.
Update vgsplit to only restrict split with active LVs involved in split.
Add lv_is_active() to determine whether an lv is active.
2008-04-11 00:07:19 +04:00
2008-04-10 22:19:49 +04:00
Version 2.02.34 - 10th April 2008
=================================
2008-04-10 22:53:36 +04:00
Improve preferred_names lvm.conf example.
2008-04-10 21:19:02 +04:00
Fix vgdisplay 'Cur LV' field to match lvdisplay output.
Fix lv_count report field to exclude hidden LVs.
2008-04-10 21:09:32 +04:00
Add vg_is_clustered() helper function.
2008-04-10 00:56:06 +04:00
Fix vgsplit to only move hidden 'snapshotN' LVs when necessary.
2008-04-09 18:47:34 +04:00
Update vgsplit tests for lvnames on the cmdline.
2008-04-09 18:39:55 +04:00
Update vgsplit man page to reflect lvnames on the cmdline.
Update vgsplit to take "-n LogicalVolumeName" on the cmdline.
2008-04-09 16:56:34 +04:00
Use clustered mirror log with pvmove in clustered VGs, if available.
2008-04-09 16:45:32 +04:00
Fix some pvmove error status codes.
2008-04-09 01:38:09 +04:00
Fix vgsplit error paths to release vg_to lock.
2008-04-08 18:22:13 +04:00
Indicate whether or not VG is clustered in vgcreate log message.
Mention default --clustered setting in vgcreate man page.
Add config file overrides to clvmd when it reads the active LVs list.
2008-04-08 16:49:21 +04:00
Fix vgreduce to use vg_split_mdas to check sufficient mdas remain.
Add (empty) orphan VGs to lvmcache during initialisation.
Fix orphan VG name used for format_pool.
2008-04-08 02:12:37 +04:00
Create a fid for internal orphan VGs.
2008-04-07 23:17:29 +04:00
Update lvmcache VG lock state for all locking types now.
2008-04-07 17:53:26 +04:00
Fix output if overriding command_names on cmdline.
2008-04-07 14:23:47 +04:00
Add detection of clustered mirror log capability.
2008-04-04 19:41:20 +04:00
Add check to vg_commit() ensuring VG lock held before writing new VG metadata.
2008-04-04 15:59:31 +04:00
Add validation of LV name to pvmove -n.
2008-04-04 12:53:47 +04:00
Make clvmd refresh the context correctly when lvm.conf is updated.
2008-04-03 22:56:40 +04:00
Add some basic internal VG lock validation.
2008-04-03 01:23:39 +04:00
Add per-command flags to control which commands use the VG metadata cache.
2008-04-03 18:40:34 +04:00
Fix vgsplit locking of new VG (2.02.30).
Avoid erroneous vgsplit error message for new VG. (2.02.29)
2008-04-02 17:08:49 +04:00
Suppress duplicate message when lvresize fails because of invalid vgname.
2008-04-02 02:40:13 +04:00
Cache VG metadata internally while VG lock is held.
2008-04-02 02:15:16 +04:00
Fix redundant lvresize message if vg doesn't exist.
2008-04-01 19:01:30 +04:00
Fix another allocation bug with clvmd and large node IDs.
2008-03-28 22:08:23 +03:00
Add find_lv_in_lv_list() and find_pv_in_pv_list().
2008-03-28 15:58:09 +03:00
Fix uninitialised variable in clvmd that could cause odd hangs.
2008-03-26 21:03:35 +03:00
Add vgmerge tests.
2008-03-26 19:48:10 +03:00
Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
2008-03-26 19:20:54 +03:00
Add list_move() for moving elements from one list to another.
Add 'is_reserved_lvname()' for identifying hidden LVs.
2008-03-25 15:37:48 +03:00
Correct command name in lvmdiskscan man page.
2008-03-25 13:41:59 +03:00
clvmd no longer crashes if it sees nodeids over 50.
2008-03-17 12:37:47 +03:00
Fix potential deadlock in clvmd thread handling.
2008-03-13 15:33:22 +03:00
Refactor text format initialisation into _init_text_import.
2008-03-12 19:03:22 +03:00
Escape double quotes and backslashes in external metadata and config data.
Add functions for escaping double quotes in strings.
Rename count_chars_len to count_chars.
2008-03-10 21:51:27 +03:00
Use return_0 in a couple more places.
Correct a function name typo in _line_append error message.
2008-03-06 11:41:05 +03:00
Include limits.h in clvmd so it compiles with newer headers.
2008-04-03 14:29:00 +04:00
Add VirtIO disks (virtblk) to filters.
2008-02-22 16:28:29 +03:00
Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30)
2008-02-22 16:22:44 +03:00
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
2008-02-22 16:22:21 +03:00
Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
Remove redundant non-NULL tests before calling free in clvmd.c.
Avoid a compiler warning: make is_orphan's parameter const.
2008-02-12 16:29:08 +03:00
Fix lvconvert detection of mirror conversion in progress. (2.02.30)
2008-02-12 16:26:53 +03:00
Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30)
2008-02-06 19:09:51 +03:00
Fix 'pvs -a' to detect VGs of PVs without metadata areas.
2008-02-06 18:47:28 +03:00
Divide up internal orphan volume group by format type.
2008-02-05 12:38:04 +03:00
Update usage message for clvmd.
2008-02-22 16:22:21 +03:00
Fix clvmd man page not to print <br> and clarified debug options.
Fix lvresize to support /dev/mapper prefix in the LV name.
Fix unfilled parameter passed to fsadm from lvresize.
Update fsadm to call lvresize if the partition size differs (with option -l).
Fix fsadm to support VG/LV names.
2008-01-31 15:41:13 +03:00
2008-01-31 15:36:58 +03:00
Version 2.02.33 - 31st January 2008
2008-01-29 15:02:04 +03:00
===================================
2008-01-31 15:19:36 +03:00
Fix mirror log name construction during lvconvert. (2.02.30)
Make monitor_dev_for_events recurse through the stack of LVs.
Clean up some more compiler warnings.
2008-01-30 17:00:02 +03:00
Some whitespace tidy-ups.
2008-01-30 16:19:47 +03:00
Use stack return macros throughout.
2008-01-30 02:45:48 +03:00
Rely upon internally-cached PV labels while corresponding VG lock is held.
2008-01-29 15:02:04 +03:00
2008-01-29 14:48:11 +03:00
Version 2.02.32 - 29th January 2008
2008-01-19 15:30:55 +03:00
===================================
2008-01-26 03:30:28 +03:00
Fix two check_lv_segments error messages to show whole segment.
2008-01-26 03:25:04 +03:00
Refactor mirror log attachment code.
2008-01-26 03:13:45 +03:00
Fix internal metadata corruption in lvchange --resync. (2.02.30)
2008-01-22 18:58:31 +03:00
Fix new parameter validation in vgsplit and test mode. (2.02.30)
2008-01-21 17:07:46 +03:00
Remove redundant cnxman-socket.h file from clvmd directory.
2008-01-20 04:23:46 +03:00
Fix pvs, vgs, lvs error exit status on some error paths.
2008-01-19 15:30:55 +03:00
2008-01-19 15:28:03 +03:00
Version 2.02.31 - 19th January 2008
2008-01-19 00:56:39 +03:00
===================================
2008-01-19 01:02:37 +03:00
Fix lvcreate --nosync not to wait for non-happening sync. (2.02.30)
2008-01-19 01:00:46 +03:00
Add very_verbose lvconvert messages.
2008-01-19 15:36:37 +03:00
Avoid readahead error message with default setting of lvcreate -M1. (2.02.29)
2008-01-19 00:56:39 +03:00
2008-01-17 18:02:59 +03:00
Version 2.02.30 - 17th January 2008
2007-12-06 01:48:06 +03:00
===================================
2008-01-17 20:17:09 +03:00
Set default readahead to twice maximium stripe size.
2008-01-17 18:53:01 +03:00
Reinstate VG extent size and stripe size defaults (halved). (2.02.29)
2008-01-17 18:02:59 +03:00
Add lists of stacked LV segments using each LV to the internal metadata.
2008-01-16 22:00:59 +03:00
Change vgsplit -l (for unimplemented --list) into --maxlogicalvolumes.
2008-01-16 21:15:26 +03:00
Fix process_all_pvs to detect non-orphans with no MDAs correctly.
2008-01-16 18:25:10 +03:00
Don't use block_on_error with mirror targets version 1.12 and above.
2008-01-17 18:02:59 +03:00
Update vgsplit to accept vgcreate options when new VG is destination.
2008-01-15 23:37:49 +03:00
Update vgsplit to accept existing VG as destination.
2008-01-15 00:11:47 +03:00
lvconvert waits for completion of initial sync by default.
2008-01-11 10:02:35 +03:00
Refactor vgcreate for parameter validation and add tests.
2008-01-11 01:21:44 +03:00
Add new convert_lv field to lvs output.
2008-01-09 18:55:44 +03:00
Print warning when lvm tools are running as non-root.
2008-01-09 18:32:19 +03:00
Add snapshot dmeventd library (enables dmeventd snapshot monitoring).
2008-01-09 03:18:36 +03:00
Prevent pvcreate from overwriting MDA-less PVs belonging to active VGs.
2008-01-07 23:42:57 +03:00
Fix a segfault if using pvs with --all argument. (2.02.29)
2008-01-04 14:48:40 +03:00
Update --uuid argument description in man pages.
2008-01-03 22:03:32 +03:00
Fix vgreduce PV list processing not to process every PV in the VG. (2.02.29)
2007-12-22 15:13:29 +03:00
Extend lvconvert to use polldaemon.
2007-12-20 21:55:46 +03:00
Add support for stacked mirrors.
2007-12-20 18:42:55 +03:00
Major restructuring of pvmove and lvconvert layer manipulation code.
2007-12-17 15:31:50 +03:00
Replace tools/fsadm with scripts/fsadm.sh.
2007-12-15 00:53:02 +03:00
Append fields to report/pvsegs_cols_verbose.
Permit LV segment fields with PV segment reports.
Add seg_start_pe and seg_pe_ranges to reports.
2007-12-06 01:48:06 +03:00
2007-12-06 01:19:24 +03:00
Version 2.02.29 - 5th December 2007
===================================
2007-12-04 18:39:26 +03:00
Make clvmd backup vg metadata on remote nodes.
2007-11-22 16:57:21 +03:00
Refactor pvmove allocation code.
2007-11-17 00:16:20 +03:00
Decode cluster locking state in log message.
Change file locking state messages from debug to very verbose.
2007-11-16 00:59:11 +03:00
Fix --addtag to drop @ prefix from name.
2007-11-15 13:16:14 +03:00
Stop clvmd going haywire if a pre_function fails.
2007-11-15 05:20:03 +03:00
Convert some vg_reads into vg_lock_and_reads.
2007-11-14 21:41:05 +03:00
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
2007-11-14 03:08:25 +03:00
Accept sizes with --readahead argument.
Store size arguments as sectors internally.
2007-11-12 16:34:14 +03:00
Attempt to remove incomplete LVs with lvcreate zeroing/activation problems.
2007-11-12 23:51:54 +03:00
Add read_ahead activation code.
2007-11-09 19:51:54 +03:00
Add activation/readahead configuration option and FMT_RESTRICTED_READAHEAD.
Extend readahead arg to accept "auto" and "none".
2007-11-12 23:51:54 +03:00
Add lv_read_ahead and lv_kernel_read_ahead fields to reports and lvdisplay.
2007-11-07 19:33:12 +03:00
Prevent lvconvert -s from using same LV as origin and snapshot.
2007-11-05 20:17:55 +03:00
Fix human-readable output of odd numbers of sectors.
Add pv_mda_free and vg_mda_free fields to reports for raw text format.
2007-11-04 22:16:34 +03:00
Add LVM2 version to 'Generated by' comment in metadata.
2007-11-05 04:47:49 +03:00
Show 'not usable' space when PV is too large for device in pvdisplay.
Ignore and fix up any excessive device size found in metadata.
2007-11-04 18:43:50 +03:00
Fix error message when fixing up PV size in lvm2 metadata (2.02.11).
2007-11-02 23:40:05 +03:00
Fix orphan-related locking in pvdisplay and pvs.
Fix missing VG unlocks in some pvchange error paths.
Add some missing validation of VG names.
Rename validate_vg_name() to validate_new_vg_name().
Change orphan lock to VG_ORPHANS.
Change format1 to use ORPHAN as orphan VG name.
2007-11-02 17:54:40 +03:00
Convert pvchange, pvdisplay, pvscan to use is_orphan()
2007-11-02 23:40:05 +03:00
Add is_orphan_vg() and change all hard-coded checks to use it.
2007-10-24 04:51:05 +04:00
Detect md superblocks version 1.0, 1.1 and 1.2.
2007-10-12 22:37:19 +04:00
Add _alloc_pv() and _free_pv() from _pv_create() code and fix error paths.
2007-10-12 18:29:32 +04:00
Add pv_dev_name() to access PV device name.
2007-10-12 18:08:10 +04:00
Add const attributes to pv accessor functions.
2007-10-12 22:37:19 +04:00
Refactor vg_add_snapshot() and lv_create_empty().
2007-10-10 15:31:21 +04:00
Handle new sysfs subsystem/block/devices directory structure.
2007-12-06 01:19:24 +03:00
Run test with LVM_SYSTEM_DIR pointing to private root and /dev dirs.
2007-10-02 19:48:58 +04:00
Fix a bug in lvm_dump.sh checks for lvm/dmsetup binaries.
2007-10-02 20:09:46 +04:00
Fix underquotations in lvm_dump.sh.
2007-09-24 17:25:31 +04:00
Refactor lvcreate stripe and mirror parameter validation.
2007-12-06 01:19:24 +03:00
Print --help output to stdout, not stderr.
After a cmdline processing error, don't print help text but suggest --help.
2007-09-21 01:39:08 +04:00
Add %PVS extents option to lvresize, lvextend, and lvcreate.
2007-12-06 01:11:20 +03:00
Add 'make check' to run tests in new subdirectory 'test'.
2007-09-17 23:51:02 +04:00
Moved the obsolete test subdirectory to old-tests.
2007-12-06 01:11:20 +03:00
Cope with relative paths in configure --with-dmdir.
2007-09-17 21:18:37 +04:00
Remove no-longer-correct restrictions on PV arg count with stripes/mirrors.
2007-09-17 20:02:46 +04:00
Fix strdup memory leak in str_list_dup().
2007-09-17 21:06:31 +04:00
Link with -lpthread when static SELinux libraries require that.
Detect command line PE values that exceed their 32-bit range.
2007-09-07 15:24:19 +04:00
Include strerror string in dev_open_flags' stat failure message.
2007-08-31 00:30:41 +04:00
Move guts of pvresize into library.
2007-08-30 23:34:19 +04:00
Avoid error when --corelog is provided without --mirrorlog. (2.02.28)
Correct --mirrorlog argument name in man pages (not --log).
Clear MIRROR_NOTSYNCED LV flag when converting from mirror to linear.
2007-08-28 20:14:49 +04:00
Modify lvremove to prompt for removal if LV active on other cluster nodes.
Add '-f' to vgremove to force removal of VG even if LVs exist.
2007-09-07 15:24:19 +04:00
2007-08-25 01:01:52 +04:00
Version 2.02.28 - 24th August 2007
==================================
2007-08-24 12:29:39 +04:00
Fix clvmd logging so you can get lvm-level debugging out of it.
2007-08-23 19:02:26 +04:00
Introduce VG_GLOBAL lock type for vgscan/pvscan to trigger clvmd -R.
2007-08-25 01:01:52 +04:00
Change locking_flags from int to uint32_t.
2007-08-23 16:19:13 +04:00
Fix clvmd -R, so it fully refreshes the caches.
2007-08-23 00:03:46 +04:00
Change lvconvert_mirrors to use mirror segtype not striped.
2007-08-22 23:32:39 +04:00
Fix lvconvert_mirrors detection of number of existing mirrors.
2007-08-25 01:01:52 +04:00
Clean up numerous compiler warnings that appeared in recent releases.
2007-08-22 18:38:18 +04:00
Remove several unused parameters from _allocate().
2007-08-21 23:46:36 +04:00
Only permit --force, --verbose and --debug arguments to be repeated.
2007-08-21 00:55:30 +04:00
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-25 01:01:52 +04:00
Move guts of vgremove and lvremove into library, including yes_no_prompt.
Allow clvmd debug to be turned on in a running daemon using clvmd -d [-C].
2007-08-14 23:11:31 +04:00
Update to use autoconf 2.61, while still supporting 2.57.
2007-08-25 01:01:52 +04:00
Add more cluster info to lvmdump.
Add further const attributes throughout.
2007-08-07 00:38:41 +04:00
Add support for renaming mirrored LVs.
2007-08-25 01:01:52 +04:00
Factor out core of lvrename() to library function.
2007-08-21 23:46:36 +04:00
Add --mirrorlog argument to specify log type for mirrors.
2007-08-25 01:01:52 +04:00
Don't attempt to monitor devices if their creation failed in _lv_activate.
Don't leak a file descriptor in fcntl_lock_file() when fcntl fails.
2007-08-21 23:46:36 +04:00
Replace create_dir with dm_create_dir.
2007-08-25 01:01:52 +04:00
Detect stream write failure reliably with lvm_fclose using dm_fclose.
2007-07-24 19:35:11 +04:00
Fix clvmd if compiled with gulm support. (2.02.26)
2007-08-25 01:01:52 +04:00
Fix lvdisplay man page to say LV size is reported in sectors, not KB.
2007-07-23 21:27:55 +04:00
Add vg_lock_and_read() external library function.
2007-07-23 14:45:49 +04:00
Fix loading of persistent cache if cache_dir is used. (2.02.23)
2007-08-25 01:01:52 +04:00
Reduce _compare_paths lstat error message from log_error to log_very_verbose.
Create util.h with last_path_component replacing strdup + basename.
2007-07-20 19:38:19 +04:00
Use gcc's printf attribute wherever possible.
2007-08-25 01:01:52 +04:00
In _line_append, use "sizeof buf - 1" rather than equivalent "4095".
2007-07-20 19:22:46 +04:00
Introduce is_same_inode macro, now including a comparison of st_dev.
2007-08-25 01:01:52 +04:00
Don't leak a file descriptor in _lock_file() when flock fails.
2007-07-26 17:28:32 +04:00
Add SUN's LDOM virtual block device (vdisk) and ps3disk to filters.
2007-07-18 19:38:58 +04:00
Split metadata-external.h out from metadata.h for the tools to use.
2007-07-18 00:53:51 +04:00
2007-07-18 00:45:17 +04:00
Version 2.02.27 - 17th July 2007
2007-06-16 00:49:30 +04:00
================================
2007-07-17 20:13:12 +04:00
Fix snapshot cow area deactivation if origin is not active. (2.02.13)
2007-07-13 21:08:00 +04:00
Fix configure libdevmapper.h check when --with-dmdir is used.
2007-07-12 09:04:42 +04:00
Turn _add_pv_to_vg() into external library function add_pv_to_vg().
2007-07-12 19:38:53 +04:00
Add pv_by_path() external library function.
2007-07-11 16:07:39 +04:00
Tidy clvmd-openais of redundant bits, and improve an error report.
2007-07-10 22:50:03 +04:00
Cope with find_seg_by_le() failure in check_lv_segments().
2007-07-10 21:51:26 +04:00
Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
2007-07-09 19:40:43 +04:00
Add vg_mda_count and pv_mda_count columns to reports.
2007-07-09 02:51:20 +04:00
Fix dumpconfig to use log_print instead of stdout directly.
2007-07-03 17:10:14 +04:00
Remove unused parameter 'fid' from _add_pv_to_vg.
2007-07-09 02:51:20 +04:00
Add kernel and device-mapper targets versions to lvmdump.
Replace BSD (r)index with C89 str(r)chr.
Handle vgsplit of an entire VG as a vgrename.
Reinitialise internal lvmdiskscan variables when called repeatedly.
2007-06-19 14:51:51 +04:00
Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23)
2007-06-19 08:23:32 +04:00
Add vg_status function and clean up vg->status in tools directory.
2007-06-18 18:14:33 +04:00
Add --ignoremonitoring to disable all dmeventd interaction.
2007-06-19 08:23:32 +04:00
Remove get_ prefix from get_pv_* functions.
2007-06-25 13:02:37 +04:00
clvmd-openais now uses cpg_local_get() to get nodeid, rather than Clm.
2007-06-28 21:33:44 +04:00
Print warnings to stderr instead of stdout.
2007-06-16 00:49:30 +04:00
2007-06-15 23:05:02 +04:00
Version 2.02.26 - 15th June 2007
================================
2007-06-15 20:05:57 +04:00
Update vgcfgrestore man page.
2007-06-15 23:05:02 +04:00
Allow keyboard interrupt during user prompts when appropriate.
Remove unused clvmd system-lv code.
Replace many physical_volume struct dereferences with new get_pv_* functions.
Suppress a benign compile-time warning.
2007-06-13 02:41:27 +04:00
Convert find_pv_in_vg_by_uuid and pv_create to use PV handles.
2007-06-11 22:29:30 +04:00
Add wrappers to some functions in preparation for external LVM library.
2007-06-15 23:05:02 +04:00
Add -f to vgcfgrestore to list metadata backup files.
2007-06-06 23:40:28 +04:00
Add vg_check_status to consolidate vg status checks and error messages.
2007-05-31 18:19:57 +04:00
Add pvdisplay --maps implementation.
2007-06-15 23:05:02 +04:00
Remove unsupported LVM1 options from vgcfgrestore man page.
Update vgcfgrestore man page to show mandatory VG name.
Update vgrename man page to include UUID and be consistent with lvrename.
2007-05-21 14:52:01 +04:00
Add (experimental) OpenAIS support to clvmd.
2007-06-15 23:05:02 +04:00
Fix deactivation code to follow dependencies and remove symlinks.
2007-05-15 17:01:41 +04:00
Fix and clarify vgsplit error messages.
2007-06-15 23:05:02 +04:00
Fix a segfault in device_is_usable() if a device has no table.
Add some more debug messages to clvmd startup.
Misc clvmd cleanups.
2007-04-28 00:58:45 +04:00
2007-04-28 00:47:14 +04:00
Version 2.02.25 - 27th April 2007
2007-03-20 00:16:49 +03:00
=================================
2007-04-28 00:41:50 +04:00
Fix get_config_uint64() to read a 64-bit value not a 32-bit one.
2007-04-27 23:26:57 +04:00
Add -Wformat-security and change one fprintf() to fputs().
2007-04-27 22:52:05 +04:00
Move regex functions into libdevmapper.
2007-04-27 21:46:16 +04:00
Change some #include lines to search only standard system directories.
2007-04-26 20:44:59 +04:00
Add devices/preferred_names config regex list for displayed device names.
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
Fix warnings on x86_64 involving ptrdiff_t in log_error messages.
Update pvck to include text metadata area and record detection.
Add support functions for token counting in config file extracts.
Update pvck to read labels on disk, with --labelsector parameter.
Add count_chars and count_chars_len functions.
Add /sys/block listings to lvm_dump.sh.
Make lvm_dump.sh list /dev recursively.
2007-04-24 19:13:13 +04:00
Fix thread race in clvmd.
2007-04-23 22:21:01 +04:00
Add scan_sector param to label_read and _find_labeller.
2007-04-26 20:44:59 +04:00
Make clvmd cope with quorum devices.
Add extra internal error checking to clvmd.
2007-04-19 06:10:42 +04:00
Add dev_read_circular.
2007-03-31 01:00:26 +04:00
Add pvck command stub.
2007-03-27 17:35:33 +04:00
Update lists of attribute characters in man pages.
Change cling alloc policy attribute character from 'C' to l'.
2007-03-26 20:10:10 +04:00
Fix creation and conversion of mirrors with tags.
2007-03-23 15:43:17 +03:00
Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata).
Split metadata areas in vgsplit properly.
2007-03-20 00:16:49 +03:00
2007-03-20 00:12:54 +03:00
Version 2.02.24 - 19th March 2007
=================================
2007-03-16 20:15:36 +03:00
Fix processing of exit status in init scripts
2007-03-15 17:00:30 +03:00
Fix vgremove to require at least one vg argument.
2007-03-15 16:38:28 +03:00
Fix reading of striped LVs in LVM1 format.
Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
2007-03-10 00:25:33 +03:00
Add a few missing pieces of vgname command line validation.
2007-03-09 23:47:41 +03:00
Support the /dev/mapper prefix on most command lines.
2007-03-09 00:37:48 +03:00
Version 2.02.23 - 8th March 2007
================================
2007-03-09 00:08:25 +03:00
Fix vgrename active LV check to ignore differing vgids.
2007-03-08 22:58:04 +03:00
Remove no-longer-used uuid_out parameter from activation info functions.
2007-03-08 22:22:52 +03:00
Fix two more segfaults if an empty config file section encountered.
2007-02-28 21:27:13 +03:00
Move .cache file into a new /etc/lvm/cache directory by default.
Add devices/cache_dir & devices/cache_file_prefix, deprecating devices/cache.
Create directory in fcntl_lock_file() if required.
2007-02-14 19:51:48 +03:00
Exclude readline support from lvm.static.
2007-02-14 18:18:31 +03:00
Fix a leak in a reporting error path (2.02.19).
2007-02-13 19:16:15 +03:00
2007-02-13 19:12:24 +03:00
Version 2.02.22 - 13th February 2007
====================================
2007-02-13 19:04:01 +03:00
Correct -b and -P on a couple of man pages.
Add global/units to example.conf.
2007-02-08 20:31:02 +03:00
Fix loading of segment_libraries.
2007-02-07 16:29:52 +03:00
If a PV reappears after it was removed from its VG, make it an orphan.
Don't update metadata automatically if VGIDs don't match.
2007-01-31 19:26:23 +03:00
Fix some vgreduce --removemissing command line validation.
2007-01-31 00:37:18 +03:00
2007-01-30 21:08:17 +03:00
Version 2.02.21 - 30th January 2007
2007-01-26 02:40:33 +03:00
===================================
2007-01-30 21:02:15 +03:00
Add warning to lvm2_monitoring_init_rhel4 if attempting to stop monitoring.
2007-01-30 02:01:18 +03:00
Fix vgsplit to handle mirrors.
Reorder fields in reporting field definitions.
2007-01-27 05:09:06 +03:00
Fix vgs to treat args as VGs even when PV fields are displayed.
2007-01-26 20:15:16 +03:00
Fix md signature check to handle both endiannesses.
2007-01-26 02:40:33 +03:00
2007-01-26 02:36:59 +03:00
Version 2.02.20 - 25th January 2007
2007-01-17 20:56:15 +03:00
===================================
2007-01-26 02:32:29 +03:00
dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors.
2007-01-26 00:22:30 +03:00
Add devices/ignore_suspended_devices to ignore suspended dm devices.
2007-01-25 17:37:48 +03:00
Add some missing close() and fclose() return code checks.
Fix exit statuses of reporting tools (2.02.19).
2007-01-25 02:44:43 +03:00
Add init script for dmeventd monitoring.
2007-01-25 02:43:27 +03:00
lvm.static no longer interacts with dmeventd unless explicitly asked to.
2007-01-24 19:51:24 +03:00
Add field definitions to report help text.
Remove unnecessary cmd arg from target_*monitor_events().
2007-01-23 20:40:40 +03:00
Add private variable to dmeventd shared library interface.
2007-01-23 19:03:54 +03:00
Long-lived processes write out persistent dev cache in refresh_toolcontext().
2007-01-23 18:58:06 +03:00
Fix refresh_toolcontext() always to wipe persistent device filter cache.
Add is_long_lived to toolcontext.
2007-01-23 16:08:34 +03:00
Add --clustered to man pages.
2007-01-22 18:07:21 +03:00
Streamline dm_report_field_* interface.
2007-01-20 01:21:45 +03:00
Change remaining dmeventd terminology 'register' to 'monitor'.
2007-01-19 01:33:24 +03:00
Update reporting man pages.
2007-01-23 16:08:34 +03:00
No longer necessary to specify alignment type for report fields.
2007-01-17 20:56:15 +03:00
2007-01-17 20:51:51 +03:00
Version 2.02.19 - 17th January 2007
2007-01-12 02:19:08 +03:00
===================================
2007-01-17 19:22:59 +03:00
Fix a segfault if an empty config file section encountered.
2007-01-16 21:06:12 +03:00
Move basic reporting functions into libdevmapper.
2007-01-16 00:55:11 +03:00
Fix partition table processing after sparc changes (2.02.16).
Fix cmdline PE range processing segfault (2.02.13).
2007-01-15 21:22:02 +03:00
Some libdevmapper-event interface changes.
2007-01-12 23:38:30 +03:00
Report dmeventd mirror monitoring status.
Fix dmeventd mirror status line processing.
2007-01-12 02:19:08 +03:00
2007-01-12 01:49:43 +03:00
Version 2.02.18 - 11th January 2007
===================================
2007-01-12 01:24:32 +03:00
Revised libdevmapper-event interface for dmeventd.
2007-01-11 22:52:06 +03:00
Remove dmeventd mirror status line word limit.
2007-01-11 20:12:27 +03:00
Use CFLAGS when linking so mixed sparc builds can supply -m64.
2007-01-10 22:56:39 +03:00
Prevent permission changes on active mirrors.
Print warning instead of error message if lvconvert cannot zero volume.
Add snapshot options to lvconvert man page.
2007-01-10 02:22:31 +03:00
dumpconfig accepts a list of configuration variables to display.
Change dumpconfig to use --file to redirect output to a file.
2007-01-10 02:14:35 +03:00
Avoid vgreduce error when mirror code removes the log LV.
2007-01-10 01:07:20 +03:00
Remove 3 redundant AC_MSG_RESULTs from configure.in.
2007-01-10 00:12:41 +03:00
Free memory in _raw_read_mda_header() error paths.
Fix ambiguous vgsplit error message for split LV.
Fix lvextend man page typo.
2007-01-09 23:31:08 +03:00
Add configure --with-dmdir to compile against a device-mapper source tree.
Use no flush suspending for mirrors.
2007-01-08 17:24:20 +03:00
Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.
2007-01-05 18:53:40 +03:00
Fix create mirror with name longer than 22 chars.
2006-12-20 19:19:01 +03:00
Fix some activate.c prototypes when compiled without devmapper.
2006-12-20 17:35:02 +03:00
Fix dmeventd mirror to cope if monitored device disappears.
2006-12-15 01:21:32 +03:00
2006-12-14 23:05:08 +03:00
Version 2.02.17 - 14th December 2006
====================================
2006-12-13 21:40:23 +03:00
Add missing pvremove error message when device doesn't exist.
2006-12-13 06:39:58 +03:00
When lvconvert allocates a mirror log, respect parallel area constraints.
Use loop to iterate through the now-ordered policy list in _allocate().
Check for failure to allocate just the mirror log.
Introduce calc_area_multiple().
Support mirror log allocation when there is only one PV: area_count now 0.
2006-12-12 22:30:10 +03:00
Fix detection of smallest area in _alloc_parallel_area() for cling policy.
2006-12-11 17:06:25 +03:00
Add manpage entry for clvmd -T
2006-12-11 17:00:26 +03:00
Fix gulm operation of clvmd, including a hang when doing lvchange -aey
2006-12-11 16:48:41 +03:00
Fix hang in clvmd if a pre-command failed.
2006-12-02 02:29:54 +03:00
2006-12-02 02:15:59 +03:00
Version 2.02.16 - 1st December 2006
===================================
2006-12-02 01:48:47 +03:00
Fix VG clustered read locks to use PR not CR.
2006-12-01 02:11:42 +03:00
Adjust some alignments for ia64/sparc.
2006-11-30 20:52:47 +03:00
Fix mirror segment removal to use temporary error segment.
2006-11-30 16:19:42 +03:00
Always compile debug logging into clvmd.
Add startup timeout to RHEL4 clvmd startup script.
2006-11-30 12:44:07 +03:00
Add -T (startup timeout) switch to clvmd.
2006-11-23 20:23:14 +03:00
Improve lvm_dump.sh robustness.
2006-11-22 01:41:56 +03:00
Update lvm2create_initrd to support gentoo.
2006-11-21 02:30:45 +03:00
2006-11-21 20:44:46 +03:00
Version 2.02.15 - 21st November 2006
2006-11-11 00:27:51 +03:00
====================================
2006-11-21 20:44:46 +03:00
Fix clvmd_init_rhel4 line truncation (2.02.14).
2006-11-20 23:03:26 +03:00
Install lvmdump by default.
2006-11-20 19:45:45 +03:00
Fix check for snapshot module when activating snapshot.
2006-11-17 05:45:51 +03:00
Fix pvremove error path for case when PV is in use.
2006-11-16 20:36:00 +03:00
Warn if certain duplicate config file entries are seen.
2006-11-16 19:44:48 +03:00
Enhance lvm_dump.sh for sysreport integration and add man page.
2006-11-14 18:28:50 +03:00
Fix --autobackup argument which could never disable backups.
2006-11-14 18:03:07 +03:00
Fix a label_verify error path.
2006-11-11 00:27:51 +03:00
2006-11-11 00:22:34 +03:00
Version 2.02.14 - 10th November 2006
====================================
2006-11-10 22:35:03 +03:00
Fix adjusted_mirror_region_size() to handle 64-bit size.
Add some missing bounds checks on 32-bit extent counters.
2006-11-10 21:24:11 +03:00
Add Petabyte and Exabyte support.
Fix lvcreate error message when 0 extents requested.
2006-11-06 17:11:40 +03:00
lvremove man page: volumes must be cluster inactive before being removed.
2006-11-04 06:34:10 +03:00
Protect .cache manipulations with fcntl locking.
Change .cache timestamp comparisons to use ctime.
2006-11-03 02:33:20 +03:00
Fix mirror log LV writing to set all bits in whole LV.
2006-11-01 21:25:26 +03:00
Fix clustered VG detection and default runlevels in clvmd_init_rhel4.
2006-10-30 19:10:55 +03:00
Fix high-level free space check for partial allocations.
2006-10-27 19:37:02 +04:00
2006-10-27 19:21:07 +04:00
Version 2.02.13 - 27th October 2006
2006-10-16 21:18:08 +04:00
===================================
2006-10-27 00:37:13 +04:00
Add couple of missing files to tools/Makefile CLEAN_TARGETS.
2006-10-26 22:22:10 +04:00
When adding snapshot leave cow LV mapped device active after zeroing.
2006-10-24 23:07:32 +04:00
Fix a clvmd debug message.
2006-10-24 22:25:30 +04:00
Add dev_flush() to set_lv().
2006-10-24 21:18:25 +04:00
Add lvchange --resync.
2006-10-23 19:54:51 +04:00
Perform high-level free space check before each allocation attempt.
2006-10-23 15:46:16 +04:00
Don't allow a node to remove an LV that's exclusively active on anther node.
2006-10-22 03:18:43 +04:00
Cope if same PV is included more than once in cmdline PE range list.
2006-10-19 16:53:47 +04:00
Set PV size to current device size if it is found to be zero.
2006-10-18 22:01:53 +04:00
Add segment parameter to target_present functions.
2006-10-16 21:18:08 +04:00
2006-10-16 20:44:28 +04:00
Version 2.02.12 - 16th October 2006
2006-10-12 22:20:45 +04:00
===================================
2006-10-16 20:29:40 +04:00
Fix pvdisplay to use vg_read() for non-orphans.
2006-10-14 20:37:54 +04:00
Fall back to internal locking if external locking lib is missing or fails.
2006-10-14 01:33:31 +04:00
Retain activation state after changing LV minor number with --force.
Propagate clustered flag in vgsplit and require resizeable flag.
2006-10-12 22:20:45 +04:00
2006-10-12 22:13:33 +04:00
Version 2.02.11 - 12th October 2006
===================================
2006-10-09 18:11:57 +04:00
Add clvmd function to return the cluster name. not used by LVM yet.
2006-10-08 16:01:13 +04:00
Add cling allocation policy.
2006-10-08 03:42:03 +04:00
Change _check_contiguous() to use _for_each_pv().
2006-10-07 16:41:06 +04:00
Extend _for_each_pv() to allow termination without error.
Abstract _is_contiguous().
2006-10-07 15:00:09 +04:00
Remove duplicated pv arg from _check_contiguous().
2006-10-07 14:47:05 +04:00
Accept regionsize with lvconvert.
2006-10-07 14:42:27 +04:00
Add report columns with underscore before field names ending 'size'.
Correct regionsize default on lvcreate man page (MB).
2006-10-06 14:06:10 +04:00
Fix clvmd bug that could cause it to die when a node with a long name crashed.
2006-10-08 03:40:36 +04:00
Add device size to text metadata.
2006-10-06 02:02:52 +04:00
Fix format_text mda_setup pv->size and pv_setup pe_count calculations.
2006-10-06 01:24:48 +04:00
Fix _for_each_pv() for mirror with core log.
2006-10-05 22:42:33 +04:00
Add lvm_dump.sh script to create a tarball of debugging info from a system.
2006-10-05 17:55:50 +04:00
Capture error messages in clvmd and pass them back to the user.
2006-10-04 20:03:17 +04:00
Remove unused #defines from filter-md.c.
2006-10-04 12:42:14 +04:00
Make clvmd restart init script wait until clvmd has died before starting it.
2006-10-04 12:22:16 +04:00
Add -R to clvmd which tells running clvmds to reload their device cache.
2006-10-03 21:55:20 +04:00
Add LV column to reports listing kernel modules needed for activation.
2006-10-02 20:46:27 +04:00
Show available fields if report given invalid field. (e.g. lvs -o list)
2006-10-01 00:02:02 +04:00
Add timestamp functions with --disable-realtime configure option.
2006-09-26 13:35:43 +04:00
Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.
2006-09-22 00:25:54 +04:00
Fix two potential NULL pointer derefs in error cases in vg_read().
2006-09-20 21:36:47 +04:00
Separate --enable-cluster from locking lib options in lvmconf.sh.
2006-09-20 00:20:40 +04:00
Add a missing comma in lvcreate man page.
2006-09-19 23:36:59 +04:00
2006-09-19 23:15:10 +04:00
Version 2.02.10 - 19th September 2006
=====================================
2006-09-19 23:13:41 +04:00
Fix lvconvert mirror change case detection logic.
Fix mirror log detachment so it correctly becomes a standalone LV.
2006-09-12 01:14:56 +04:00
Extend _check_contiguous() to detect single-area LVs.
Include mirror log (untested) in _for_each_pv() processing.
Use MIRROR_LOG_SIZE constant.
Remove struct seg_pvs from _for_each_pv() to generalise.
Avoid adding duplicates to list of parallel PVs to avoid.
2006-09-11 18:24:58 +04:00
Fix several incorrect comparisons in parallel area avoidance code.
Fix segment lengths when flattening existing parallel areas.
Log existing parallel areas prior to allocation.
Fix mirror log creation when activation disabled.
2006-09-08 03:23:45 +04:00
Don't attempt automatic recovery without proper locking.
2006-09-02 05:18:17 +04:00
When using local file locking, skip clustered VGs.
Add fallback_to_clustered_locking and fallback_to_local_locking parameters.
2006-09-01 02:21:00 +04:00
lvm.static uses built-in cluster locking instead of external locking.
Don't attempt to load shared libraries if built statically.
2006-09-01 00:56:33 +04:00
Change default locking_lib to liblvm2clusterlock.so.
2006-08-26 03:02:33 +04:00
Add skip_dev_dir() to process command line VGs.
Stop clvmd complaining about nodes that have left the cluster.
2006-08-21 16:54:53 +04:00
Move lvm_snprintf(), split_words() and split_dm_name() into libdevmapper.
2006-08-19 01:49:19 +04:00
Add lvconvert man page.
Add mirror options to man pages.
2006-08-19 01:19:54 +04:00
Prevent mirror renames.
2006-08-19 01:17:18 +04:00
Move CMDLIB code into separate file and record whether static build.
2006-08-18 00:04:38 +04:00
2006-08-17 23:55:50 +04:00
Version 2.02.09 - 17th August 2006
2006-08-15 23:13:06 +04:00
==================================
2006-08-17 23:53:36 +04:00
Fix PE_ALIGN for pagesize over 32KB.
2006-08-17 23:30:59 +04:00
Separate out LVM1_PE_ALIGN and pe_align().
2006-08-17 22:23:44 +04:00
Add lvm_getpagesize wrapper.
2006-08-16 18:41:42 +04:00
Add --maxphysicalvolumes to vgchange.
2006-08-15 23:13:06 +04:00
2006-08-15 23:06:09 +04:00
Version 2.02.08 - 15th August 2006
==================================
2006-08-09 23:33:25 +04:00
Add checks for duplicate LV name, lvid and PV id before writing metadata.
Report all sanity check failures, not just the first.
2006-08-09 01:20:00 +04:00
Fix missing lockfs on first snapshot creation.
2006-08-01 18:56:33 +04:00
Add unreliable --trustcache option to reporting commands.
2006-07-21 00:37:10 +04:00
Fix locking for mimage removal.
2006-07-19 22:55:58 +04:00
Fix clvmd_init_rhel4 'status' exit code.
2006-07-17 18:39:54 +04:00
2006-07-17 18:32:00 +04:00
Version 2.02.07 - 17th July 2006
================================
2006-07-10 23:39:14 +04:00
Fix activation logic in lvchange --persistent.
2006-07-10 23:17:40 +04:00
Don't ignore persistent minor numbers when activating.
2006-07-04 23:40:27 +04:00
Use RTLD_GLOBAL when loading shared libraries.
2006-07-04 23:36:49 +04:00
Add some forgotten memlock checks to _vg_read to protect against full scans.
2006-07-04 22:57:27 +04:00
Add mutex to dmeventd_mirror to avoid concurrent execution.
Fix vgreduce --removemissing to return success if VG is already consistent.
2006-06-15 00:27:15 +04:00
Fix return code if VG specified on command line is not found.
2006-06-15 00:11:22 +04:00
Fix PV tools to include orphaned PVs in default output again.
Fixed unaligned access when using clvm.
2006-06-09 02:15:49 +04:00
Fix an extra dev_close in a label_read error path.
2006-06-06 21:44:11 +04:00
Append patches to commit emails.
2006-05-25 17:32:26 +04:00
Fix target_register_events args.
2006-05-24 17:58:14 +04:00
Prevent snapshots of mirrors.
2006-05-17 00:53:13 +04:00
Add DISTCLEAN_TARGETS to make template for configure.h.
More fixes to error paths.
2006-05-16 20:48:31 +04:00
Fix lvcreate corelog validation.
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-13 00:32:39 +04:00
2006-05-12 23:41:43 +04:00
Version 2.02.06 - 12th May 2006
===============================
2006-05-12 23:16:48 +04:00
Propagate --monitor around cluster.
Add --monitor to vgcreate and lvcreate to control dmeventd registration.
Filter LCK_NONBLOCK in clvmd lock_vg.
2006-05-12 00:03:40 +04:00
Add --nosync to lvcreate with LV flag NOTSYNCED.
2006-05-11 23:47:53 +04:00
Use mirror's uuid for a core log.
2006-05-11 23:45:53 +04:00
Add mirror log fault-handling policy.
Improve mirror warning messages and tidy dmeventd syslog output.
2006-05-11 23:05:21 +04:00
Propagate nosync flag around cluster.
2006-05-11 23:01:11 +04:00
Allow vgreduce to handle mirror log failures.
2006-05-11 22:54:04 +04:00
Add --corelog to lvcreate and lvconvert.
2006-05-11 22:39:24 +04:00
Create a log header for replacement in-sync mirror log.
Use set_lv() and dev_set() to wipe sections of devices.
Add mirror_in_sync() flag to avoid unnecessary resync on activation.
2006-05-11 21:58:58 +04:00
Add mirror_library description to example.conf.
2006-05-10 20:42:03 +04:00
Fix uuid_from_num() buffer overrun.
2006-05-10 01:23:51 +04:00
Make SIZE_SHORT the default for display_size().
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
2006-04-30 02:08:43 +04:00
Improve stripe size validation.
Increase maximum stripe size limit to physical extent size for lvm2 metadata.
2006-04-28 21:01:07 +04:00
Fix activation code to check for pre-existing mirror logs.
2006-04-28 19:01:39 +04:00
Tighten region size validation.
2006-04-28 17:30:59 +04:00
Ignore empty strings in config files.
2006-04-28 17:11:05 +04:00
Require non-zero regionsize and document parameter on lvcreate man page.
2006-04-21 23:12:41 +04:00
Invalidate cache if composition of VG changed externally.
2006-04-21 18:44:33 +04:00
Version 2.02.05 - 21st April 2006
2006-04-20 00:15:11 +04:00
=================================
2006-04-21 18:44:33 +04:00
Fix vgid string termination in recent cache code.
2006-04-20 00:15:11 +04:00
2006-04-19 22:06:56 +04:00
Version 2.02.04 - 19th April 2006
2006-04-15 01:39:32 +04:00
=================================
2006-04-19 19:33:07 +04:00
Check for libsepol.
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-15 01:39:32 +04:00
2006-04-15 01:11:38 +04:00
Version 2.02.03 - 14th April 2006
=================================
2006-04-14 01:08:29 +04:00
vgrename accepts vgid and exported VG.
2006-04-13 21:51:40 +04:00
Add --partial to pvs.
2006-04-13 21:32:24 +04:00
When choosing between identically-named VGs, also consider creation_host.
Provide total log suppression with 2.
2006-04-13 01:23:04 +04:00
Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.
Add vgid to struct physical_volume and pass with vg_name to some functions.
2006-04-12 21:54:11 +04:00
If two or more VGs are found with the same name, use one that is not exported.
2006-04-11 21:42:15 +04:00
Whenever vgname is captured, also capture vgid and whether exported.
2006-04-11 17:55:59 +04:00
Remove an incorrect unlock_vg() from process_each_lv().
2006-04-07 01:15:14 +04:00
Update extent size information in vgchange and vgcreate man pages.
2006-04-07 21:41:56 +04:00
Introduce origin_from_cow() and lv_is_visible().
2006-04-06 02:24:16 +04:00
pvremove without -f now fails if there's no PV label.
2006-04-06 00:43:23 +04:00
Support lvconvert -s.
2006-04-03 22:43:55 +04:00
Suppress locking library load failure message if --ignorelockingfailure.
2006-03-10 01:34:13 +03:00
Propagate partial mode around cluster.
2006-03-07 18:43:05 +03:00
Fix archive file expiration.
2006-02-09 02:23:19 +03:00
Fix dmeventd build.
2006-03-14 17:18:34 +03:00
clvmd now uses libcman rather than cman ioctls.
2006-03-21 13:31:08 +03:00
clvmd will allow new cman to shutdown on request.
2006-02-09 02:23:19 +03:00
2006-02-07 19:33:48 +03:00
Version 2.02.02 - 7th February 2006
===================================
2006-02-02 22:16:47 +03:00
Add %.so: %.a make template rule.
2006-01-31 17:52:30 +03:00
Switchover library building to use LIB_SUFFIX.
Only do lockfs filesystem sync when suspending snapshots.
2005-12-22 19:13:38 +03:00
Always print warning if activation is disabled.
2006-01-04 21:09:52 +03:00
vgreduce removes mirror images.
2005-12-22 00:21:45 +03:00
Add --mirrorsonly to vgreduce.
2005-12-21 21:51:50 +03:00
vgreduce replaces active LVs with error segment before removing them.
2005-12-20 00:01:39 +03:00
Set block_on_error parameter if available.
Add target_version.
2005-12-19 19:28:35 +03:00
Add details to format1 'Invalid LV in extent map' error message.
2005-12-08 20:49:34 +03:00
Fix lvscan snapshot full display.
2005-12-02 23:35:07 +03:00
Bring lvdisplay man page example into line.
2005-12-02 22:52:06 +03:00
Add mirror dmeventd library.
2005-11-29 21:20:23 +03:00
Add some activation logic to remove_mirror_images().
lvconvert can remove specified PVs from a mirror.
lvconvert turns an existing LV into a mirror.
Allow signed mirrors arguments.
Move create_mirror_log() into toollib.
2005-11-28 23:01:00 +03:00
Determine parallel PVs to avoid with ALLOC_NORMAL allocation.
2005-11-24 21:46:51 +03:00
Fix lv_empty.
2005-11-23 21:45:30 +03:00
2005-11-23 21:42:45 +03:00
Version 2.02.01 - 23rd November 2005
2005-11-10 19:06:29 +03:00
====================================
2005-11-23 19:16:39 +03:00
Fix lvdisplay cmdline to accept snapshots.
2005-11-23 19:07:40 +03:00
Fix open RO->RW promotion.
2005-11-13 01:42:08 +03:00
Fix missing vg_revert in lvcreate error path.
2005-11-10 19:06:29 +03:00
2005-11-10 18:27:19 +03:00
Version 2.02.00 - 10th November 2005
====================================
2005-11-10 17:45:39 +03:00
Extend allocation areas to avoid overflow with contiguous with other PVs.
2005-11-09 16:08:41 +03:00
Stop lvcreate attempting to wipe zero or error segments.
Added new lvs table attributes.
Separated out activation preload.
Moved activation functions into libdevmapper.
Fixed build_dm_name.
Add return macros.
2005-11-09 15:47:16 +03:00
Added xen xvd devices.
2005-10-31 23:15:28 +03:00
Clear up precommitted metadata better.
2005-10-31 05:37:29 +03:00
A pvresize implementation.
2005-10-28 02:21:10 +04:00
Fix contiguous allocation when there are no preceding segments.
2005-10-27 23:58:22 +04:00
Add mirror_seg pointer to lv_segment struct.
2005-10-27 21:45:34 +04:00
Only keep a device open if it's known to belong to a locked VG.
2005-10-26 20:12:36 +04:00
Fix lvdisplay to show all mirror destinations.
2005-10-26 18:14:30 +04:00
Replacement suspend code using libdevmapper dependency tree.
2005-10-25 23:08:21 +04:00
Add DEFS to make.tmpl.
Use dm_is_dm_major instead of local copy.
Allow mapped devices to be used as PVs.
2005-10-25 21:28:46 +04:00
Move set_selinux_context into libdevmapper.
2005-10-23 04:14:48 +04:00
Fix automatic text metadata buffer expansion (using macro).
Cache formatted text metadata buffer between metadata area writes.
2005-10-21 02:24:46 +04:00
Add pe_start field to pvs.
2005-10-19 17:59:18 +04:00
Add 'LVM-' prefix to uuids.
2005-10-18 17:43:40 +04:00
Split lv_segment_area from lv_segment to permit extension.
2005-10-18 16:39:20 +04:00
Replacement deactivation code using libdevmapper dependency tree.
2005-10-17 22:00:02 +04:00
Simplify dev_manager_info().
2005-10-17 21:56:27 +04:00
Attempt to load missing targets using modprobe.
2005-10-17 20:41:38 +04:00
Add -a to lvscan.
2005-10-17 03:03:59 +04:00
Move mknodes into libdevmapper.
Move bitset, hash, pool and dbg_malloc into libdevmapper.
2005-10-17 00:09:42 +04:00
2005-10-17 00:06:54 +04:00
Version 2.01.15 - 16th October 2005
===================================
2005-10-04 01:10:41 +04:00
Refuse to run pvcreate/pvremove on devices we can't open exclusively.
2005-10-03 22:16:44 +04:00
Use ORPHAN lock definition throughout.
2005-10-01 02:21:01 +04:00
Validate chunksize in lvcreate.
2005-09-29 19:50:51 +04:00
Reduce chunksize limit to 512k.
2005-09-23 21:06:01 +04:00
Fix chunksize field in reports.
2005-09-23 20:22:17 +04:00
Don't hide snapshots from default 'lvs' output.
2005-09-16 22:53:01 +04:00
Add is_dm_major() for use in duplicate device detection in lvmcache_add().
Really switch device number in lvmcache when it says it is doing so.
Option for bitset memory allocation using malloc as well as pool.
2005-09-02 20:59:46 +04:00
Don't assume exactly two mirrors when parsing mirror status.
2005-09-01 22:37:22 +04:00
Suppress fsync() error message on filesystems that don't support it.
2005-08-31 23:32:10 +04:00
Fix yes_no_prompt() error handling.
Add lvm.conf comment warning against multiple filter lines.
2005-08-17 00:42:28 +04:00
Tidy lvmconf.sh.
2005-08-16 23:00:55 +04:00
Add format1 dev_write debug messages.
2005-08-16 03:34:11 +04:00
Add clustered VG attribute to report.
2005-08-15 18:10:28 +04:00
Move lvconvert parameters into struct lvconvert_params.
2005-08-15 17:24:46 +04:00
Add clustered VG flag to LV lock requests.
2005-08-15 16:00:04 +04:00
Change LV locking macros to take lv instead of lvid.
2005-08-15 03:18:28 +04:00
Prepend 'cluster' activation parameter to mirror log when appropriate.
Pass exclusive flag to lv_activate and on to target activation code.
Prevent snapshot creation in a clustered VG for now.
2005-08-13 00:02:21 +04:00
Factor out adjusted_mirror_region_size() and generate_log_name_format().
2005-08-10 21:19:46 +04:00
Move compose_log_line() into mirror directory.
2005-08-09 21:24:21 +04:00
Factor out _get_library_path().
2005-08-09 21:29:04 +04:00
Don't kill idling clvmd threads.
2005-08-16 12:25:09 +04:00
clvmd no longer takes out locks for non-clustered LVs.
2005-08-08 21:55:35 +04:00
Recognise ATA over Ethernet (aoe) devices.
2005-08-04 06:07:34 +04:00
Version 2.01.14 - 4th August 2005
=================================
2005-08-04 05:50:17 +04:00
Fix lvconvert PV parameter in help string.
2005-08-04 05:27:25 +04:00
Prevent snapshots getting activated in a clustered VG.
2005-08-04 05:15:30 +04:00
Separate out _build_dev_string.
2005-08-04 05:14:36 +04:00
Move zero_lv to toollib.
Fix pool format handler to work with pv segment code.
2005-07-13 23:28:09 +04:00
2005-07-13 23:15:09 +04:00
Version 2.01.13 - 13th July 2005
2005-06-14 22:22:22 +04:00
================================
2005-07-12 23:40:59 +04:00
Fix pvmove segment splitting.
Abstract vg_validate.
2005-07-12 18:50:45 +04:00
Only make one attempt at contiguous allocation.
2005-06-22 19:31:29 +04:00
Fix lvm1 format metadata read.
Fix lvm1 format non-mirror lvcreate.
2005-06-14 22:22:22 +04:00
2005-06-14 21:59:57 +04:00
Version 2.01.12 - 14th June 2005
2005-06-13 18:53:07 +04:00
================================
2005-06-14 21:54:48 +04:00
Various allocation-related pvmove fixes.
2005-06-14 21:59:57 +04:00
Log an error if clvmd can't resolve a host name got from CCS.
Fix potential spin loop in clvmd.
2005-06-13 18:53:07 +04:00
2005-06-13 18:43:28 +04:00
Version 2.01.11 - 13th June 2005
================================
2005-06-14 21:54:48 +04:00
Added lvmconf.sh.
2005-06-13 17:13:15 +04:00
Use matchpathcon mode parameter.
Don't defer closing dead FDs in clvmd.
2005-06-07 15:00:07 +04:00
Remove hard-coded 64k text metadata writing restriction.
2005-06-06 22:16:33 +04:00
Make VG name restrictions consistent.
2005-06-06 21:12:08 +04:00
Introduce lvconvert. So far only removes mirror images.
2005-06-03 23:48:19 +04:00
Allow mirror images to be resized.
2005-06-03 22:07:13 +04:00
Allow mirror images to have more than one segment.
2005-06-03 18:49:51 +04:00
Centralise restrictions on LV names.
Always insert an intermediate layer for mirrors.
Suppress hidden LVs from reports unless --all is given.
Use square brackets for hidden LVs in reports.
2005-06-01 20:51:55 +04:00
Allow the creation of mirrors with contiguous extents.
Always perform sanity checks against metadata before committing it to disk.
Split lv_extend into two steps: choosing extents + allocation to LV(s).
Add mirror log region size to metadata.
Use list_iterate_items throughout and add list*back macros.
Introduce seg_ macros to access areas.
Add segtype_is_ macros.
Support tiny metadata areas for pool conversions.
Mirror activation handles disk log as well as core.
Activation code recognises mirror log dependency.
Add mirror_log and regionsize fields to report.
2005-05-24 21:38:26 +04:00
Fix non-orphan pvchange -u.
2005-05-19 20:48:51 +04:00
Fix vgmerge to handle duplicate LVIDs.
2005-05-17 17:46:38 +04:00
Move archiver code from tools into library.
2005-05-17 17:44:02 +04:00
vgscan/change/display/vgs automatically create metadata backups if needed.
2005-05-17 17:49:45 +04:00
Merge cloned allocation functions.
2005-05-11 20:46:59 +04:00
Fix contiguous allocation policy with linear.
2005-05-11 19:04:06 +04:00
Cope with missing format1 PVs again.
2005-05-11 19:02:49 +04:00
Remove lists of free PV segments.
Simplify pv_maps code and remove slow bitset algorithm.
Red-Hat-ify the clvmd rhel4 initscript.
2005-05-09 21:45:06 +04:00
%Zu->%zu
2005-05-09 21:02:52 +04:00
Fix loopfiles alias alloc & mem debugging.
2005-05-09 21:01:06 +04:00
Un-inline dbg_strdup.
2005-05-09 20:59:01 +04:00
lv_reduce tidying.
Remove some unnecessary parameters.
Introduce seg_is macros.
2005-05-09 20:41:48 +04:00
2005-05-03 21:43:47 +04:00
Version 2.01.10 - 3rd May 2005
==============================
2005-05-03 21:31:56 +04:00
Don't create backup and archive dirs till needed.
2005-05-03 21:28:23 +04:00
Reinstate full PV size when removing from VG.
Support loopfiles for testing.
2005-04-22 19:43:02 +04:00
Tidy lv_segment interface.
2005-05-03 21:28:23 +04:00
pv_segment support.
2005-04-18 18:56:42 +04:00
vgchange --physicalextentsize
2005-04-07 16:24:48 +04:00
Internal snapshot restructuring.
2005-04-07 16:27:57 +04:00
Remove unused internal non-persistent snapshot option.
2005-04-07 16:17:46 +04:00
Allow offline extension of snapshot volumes.
2005-04-06 22:59:55 +04:00
Move from 2-step to 3-step on-disk metadata commit.
2005-04-07 16:17:46 +04:00
Scan ramdisks too and allow non-O_DIRECT fallback.
2005-04-06 18:50:37 +04:00
Annotate, tidy and extend list.h.
2005-04-06 17:47:41 +04:00
Alignment tidying.
2005-04-13 17:50:07 +04:00
Make clvmd work around some "bugs" in gulm's node state notifications.
2005-04-19 14:36:42 +04:00
Tidy clvmd's SIGHUP handler
2005-04-04 19:46:14 +04:00
2005-04-04 19:41:51 +04:00
Version 2.01.09 - 4th April 2005
================================
2005-04-04 18:44:49 +04:00
Add --ignorelockingfailure to vgmknodes.
2005-04-01 17:01:01 +04:00
clvmd: Don't allow user operations to start until the lvm thread is fully up.
2005-04-01 20:03:00 +04:00
clvmd-gulm: set KEEPALIVE on sockets.
2005-04-01 17:01:01 +04:00
2005-03-22 18:12:37 +03:00
Version 2.01.08 - 22nd March 2005
=================================
2005-03-22 01:55:12 +03:00
Add clustered attribute so vgchange can identify clustered VGs w/o locking.
2005-03-22 01:40:35 +03:00
Improve detection of external changes affecting internal cache.
2005-03-21 17:51:49 +03:00
Add 'already in device cache' debug message.
2005-03-21 17:47:36 +03:00
Add -a to pvdisplay -C.
2005-03-21 17:43:02 +03:00
Avoid rmdir opendir error messsages when dir was already removed.
2005-03-21 17:16:16 +03:00
Tighten signal handlers.
2005-03-11 01:34:17 +03:00
Avoid some compiler warnings.
2005-03-11 01:31:10 +03:00
Additional rename failure error message.
2005-03-10 23:23:36 +03:00
read/write may be macros.
2005-03-11 02:04:42 +03:00
clvmd: don't take out lvm thread lock at startup, it only protects jobs list.
2005-03-10 23:22:40 +03:00
2005-03-08 16:46:17 +03:00
Version 2.01.07 - 8th March 2005
2005-03-04 01:31:01 +03:00
================================
2005-03-08 16:46:17 +03:00
Cope with new devices appearing by rescanning /dev if a uuid can't be found.
2005-03-08 16:39:39 +03:00
Remove DESTDIR from LVM_SHARED_PATH.
2005-03-07 20:03:44 +03:00
clvmd fixes: make FDs close-on-exec
gulm unlocks VG & orphan locks at startup in case they are stale
gulm now unlocks VG & orphan locks if client dies.
2005-03-04 01:31:01 +03:00
2005-03-04 01:26:34 +03:00
Version 2.01.06 - 1st March 2005
================================
2005-03-04 00:54:35 +03:00
Suppress 'open failed' error messages during scanning.
2005-03-04 01:09:20 +03:00
Option to suppress warnings of file descriptors left open.
2005-03-04 00:52:58 +03:00
Fix default value of metadatacopies in documentation (2->1).
2005-02-21 17:36:09 +03:00
Fix clvmd-gulm locking.
2005-02-22 19:26:21 +03:00
./configure --enable-debug now enables debugging code in clvmd.
Fix clvmd-gulm node up/down code so it actually works.
clvmd-gulm now releases locks when shut down.
2005-02-18 22:06:16 +03:00
2005-02-18 21:58:31 +03:00
Version 2.01.05 - 18th February 2005
====================================
Static binary invokes dynamic binary if appropriate.
2005-02-14 12:07:14 +03:00
Make clvmd config check a little more tolerant.
2005-02-18 18:31:32 +03:00
gulm clvmd can now cope with >1 message arriving in a TCP message.
2005-02-09 21:26:38 +03:00
2005-02-09 20:49:36 +03:00
Version 2.01.04 - 9th February 2005
2005-02-01 19:40:16 +03:00
===================================
2005-02-09 20:49:36 +03:00
Add fixed offset to imported pool minor numbers.
Update binary pathnames in clvmd_init_rhel4.
2005-02-03 19:34:53 +03:00
lvm2cmd.so should skip the check for open fds.
2005-02-02 17:31:48 +03:00
Remove unused -f from pvmove.
2005-02-02 12:17:56 +03:00
Gulm clvmd doesn't report "connection refused" errors.
2005-02-02 14:42:29 +03:00
clvmd does a basic config file sanity check at startup.
2005-02-08 12:05:58 +03:00
Fix potential thread shutdown race in clvmd.
2005-02-01 19:40:16 +03:00
2005-02-01 19:29:22 +03:00
Version 2.01.03 - 1st February 2005
2005-01-21 22:03:48 +03:00
===================================
2005-02-01 19:19:48 +03:00
More 64-bit display/report fixes.
2005-01-27 18:50:34 +03:00
More informative startup mesg if can't create /etc/lvm.
2005-01-27 18:48:49 +03:00
Fix snapshot device size bug (since 2.01.01).
2005-01-24 18:31:13 +03:00
clvmd announces startup and cluster connection in syslog.
2005-01-25 19:46:29 +03:00
Gulm clvmd doesn't hang trying to talk to a rebooted node.
2005-01-26 12:30:52 +03:00
Gulm clvmd doesn't print cman error on startup.
2005-01-21 22:03:48 +03:00
2005-01-21 21:49:06 +03:00
Version 2.01.02 - 21st January 2005
2005-01-19 21:56:01 +03:00
===================================
2005-01-21 01:16:55 +03:00
Update clvmd_init_rhel4: use lvm.static and don't load dlm.
2005-01-20 21:14:04 +03:00
Fix some size_t printing.
2005-01-20 21:13:17 +03:00
Fix 64 bit xlate consts.
2005-01-20 21:12:41 +03:00
Split out pool sptype_names to avoid unused const.
2005-01-20 21:11:53 +03:00
Always fail if random id generation fails.
2005-01-19 21:56:01 +03:00
Recognise gnbd devices.
2005-01-21 14:35:24 +03:00
Fix clvmd startup bug introduced in cman/gulm amalgamation.
Improve reporting of node-specific locking errors.
2005-01-19 21:56:01 +03:00
2005-01-19 21:10:09 +03:00
Version 2.01.01 - 19th January 2005
2005-01-17 23:45:05 +03:00
===================================
2005-01-19 21:10:09 +03:00
Fix clvmd lv_info_by_lvid open_count.
2005-01-19 20:19:39 +03:00
Store snapshot and origin sizes separately.
2005-01-19 20:01:18 +03:00
Update vgcreate man page.
2005-01-17 23:45:05 +03:00
2005-01-17 23:13:01 +03:00
Version 2.01.00 - 17th January 2005
===================================
2005-01-17 21:24:28 +03:00
Fix vgscan metadata auto-correction.
2005-01-13 01:58:21 +03:00
Only ask libdevmapper for open_count when we need it.
2005-01-12 01:00:36 +03:00
Adjust RHEL4 clvmd init script priority.
2005-01-13 16:24:02 +03:00
Enable building of CMAN & GULM versions of clvmd into a single binary
2005-01-07 23:06:49 +03:00
2005-01-07 22:50:54 +03:00
Version 2.00.33 - 7th January 2005
==================================
2005-01-05 20:25:25 +03:00
pvcreate wipes first 4 sectors unless given --zero n.
2005-01-04 14:48:10 +03:00
gulm clvmd now uses new ccsd key names.
2005-01-04 18:11:34 +03:00
gulm clvmd now doesn't ignore the first node in cluster.conf
2005-01-05 17:41:54 +03:00
Improve clvmd failure message if it's already running.
Allow user to kill clvmd during initialisation.
2005-01-07 17:22:49 +03:00
Fix off-by-one error in cluster_locking that could cause read hangs.
2005-01-04 14:48:10 +03:00
2004-12-23 00:47:31 +03:00
Version 2.00.32 - 22nd December 2004
2004-12-13 00:55:46 +03:00
====================================
2004-12-23 00:55:36 +03:00
Drop static/dl restriction for now.
2004-12-23 00:47:31 +03:00
Fix an error fprintf.
2004-12-22 00:40:36 +03:00
Fix vgdisplay -s. Breaks (undocumented) lvs/pvs/vgs -s instead for now.
2004-12-21 23:23:16 +03:00
Fix device reference counting on re-opens.
2004-12-21 21:29:46 +03:00
Ignore sysfs symlinks when DT_UNKNOWN.
2004-12-21 21:07:15 +03:00
Add clvmd init script for RHEL4.
2004-12-21 20:54:52 +03:00
Skip devices that are too small to be PVs.
2004-12-21 19:12:02 +03:00
Fix pvchange -x segfault with lvm2-format orphan.
2004-12-21 19:10:25 +03:00
Cope with empty msdos partition tables.
2004-12-21 19:24:19 +03:00
Add CONTRIBUTORS file.
2004-12-13 00:55:46 +03:00
2004-12-13 00:47:55 +03:00
Version 2.00.31 - 12th December 2004
2004-12-10 21:01:49 +03:00
====================================
2004-12-13 00:47:55 +03:00
Reopen RO file descriptors RW if necessary.
2004-12-10 21:01:49 +03:00
2004-12-10 19:02:35 +03:00
Version 2.00.30 - 10th December 2004
2004-11-28 01:56:58 +03:00
====================================
2004-12-10 19:01:35 +03:00
Additional device-handling debug messages.
Additional verbosity level -vvvv includes line numbers and backtraces.
Verbose messages now go to stderr not stdout.
Close any stray file descriptors before starting.
Refine partitionable checks for certain device types.
Allow devices/types to override built-ins.
2004-12-09 19:59:18 +03:00
Fix lvreduce man page .i->.I
2004-12-09 19:58:31 +03:00
Fix vgsplit man page title.
2004-12-09 19:57:37 +03:00
Fix clvmd man makefile.
2004-12-09 19:56:51 +03:00
Extend dev_open logging.
Make clvmd_fix_conf.sh UNDOable.
2004-11-28 01:56:58 +03:00
2004-11-28 01:07:41 +03:00
Version 2.00.29 - 27th November 2004
====================================
xlate compilation fix.
2004-11-28 00:37:54 +03:00
Version 2.00.28 - 27th November 2004
2004-11-26 21:07:17 +03:00
====================================
2004-11-28 00:37:54 +03:00
Fix partition table & md signature detection.
2004-11-26 21:07:17 +03:00
Minor configure/makefile tidy.
Export version.h from tools for clvmd.
2004-11-24 23:38:05 +03:00
Version 2.00.27 - 24th November 2004
2004-11-23 21:36:01 +03:00
====================================
2004-11-25 00:34:56 +03:00
Trap large memory allocation requests.
2004-11-24 23:38:05 +03:00
Fix to partition table detection code.
2004-11-24 23:36:52 +03:00
Improve filter debug mesgs.
2004-12-01 17:47:31 +03:00
Make clvmd_fix_conf.sh UNDOable
2004-11-23 21:36:01 +03:00
2004-11-23 20:47:19 +03:00
Version 2.00.26 - 23rd November 2004
====================================
2004-11-23 21:23:23 +03:00
Improve pool debugging stats.
2004-11-23 14:44:04 +03:00
Detect partition table signature.
2004-11-19 22:25:07 +03:00
pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.)
2004-11-18 23:02:21 +03:00
Separate out md superblock detection code.
2004-11-18 22:49:48 +03:00
Prevent snapshot origin resizing.
Improve a vgremove error message.
2004-11-12 19:02:08 +03:00
Update some man pages.
Allow y/n with -ae args (exclusive activation).
2004-10-15 19:53:18 +04:00
Fixes to lvcreate vgname parsing.
2004-10-11 19:59:23 +04:00
Fix dm_name string size calculation.
2004-10-06 14:12:34 +04:00
Improve clvmd error reporting during startup.
2004-09-30 18:18:29 +04:00
Make clvmd cope with large gaps in node numbers IDs.
2004-10-06 14:12:34 +04:00
Make clvmd initialisation cope better with debugging output.
2004-11-16 21:09:32 +03:00
Tidy clvmd socket callbacks so all work happens outside main loop.
2004-10-06 16:36:47 +04:00
clvmd -V now displays lvm version too.
2004-11-03 13:45:07 +03:00
Add optional gulm build for clvmd
2004-09-29 19:25:43 +04:00
2004-09-29 19:08:20 +04:00
Version 2.00.25 - 29th September 2004
2004-09-17 01:48:26 +04:00
=====================================
2004-09-22 17:38:37 +04:00
Fix return code from rm_link for vgmknodes.
Make clvmd LV hash table thread-safe.
2004-09-29 19:08:20 +04:00
Fix clvmd locking so it will lock out multiple users on the same node.
Fix clvmd VG locking to it can cope with multiple VG locks.
Remove spurious trailing dot in lvreduce man page.
Fix vgremove locking.
2004-09-17 01:48:26 +04:00
2004-09-17 00:56:18 +04:00
Version 2.00.24 - 16th September 2004
2004-09-15 19:59:19 +04:00
=====================================
2004-09-17 00:09:55 +04:00
Fix pool_empty so it really does empty the memory pool.
2004-09-16 22:40:56 +04:00
Rename old segtypes files to segtype.
2004-09-16 20:53:39 +04:00
Some fixes to memory debugging code.
Exclude internal commands formats & segtypes from install.
2004-09-15 19:59:19 +04:00
2004-09-15 19:32:21 +04:00
Version 2.00.23 - 15th September 2004
=====================================
2004-09-15 19:02:36 +04:00
Export dm name build & split functions.
2004-09-15 02:23:23 +04:00
Use O_NOATIME on devices if available.
2004-09-14 21:37:51 +04:00
Write log message when each segtype/format gets initialised.
2004-09-14 20:42:46 +04:00
New commands 'segtypes' and 'formats'.
2004-09-14 19:23:42 +04:00
Suppress pvmove abort message in test mode.
2004-09-14 18:54:58 +04:00
Improve pvcreate/remove device not found error message.
2004-09-14 17:59:17 +04:00
Allow pvmove to move data within the same PV.
2004-09-14 17:58:11 +04:00
Describe how pvmove works on man page.
2004-09-14 17:56:18 +04:00
Test for incompatible format/segtype combinations in lv_extend.
2004-09-13 12:01:54 +04:00
Fix lvchange example on man page.
2004-09-03 23:08:50 +04:00
Version 2.00.22 - 3rd September 2004
====================================
2004-09-02 18:38:46 +04:00
Fix /dev/vgname perms.
2004-09-02 18:16:54 +04:00
Restructure xlate.h.
Add clvmd man page.
2004-08-19 21:13:49 +04:00
2004-08-19 20:10:15 +04:00
Version 2.00.21 - 19th August 2004
==================================
Update cnxman-socket.h from cman.
2004-08-18 23:13:01 +04:00
Recognise iseries/vd devices.
2004-08-18 22:57:40 +04:00
Use 'make install_cluster' to install cluster extensions only.
2004-08-18 22:50:21 +04:00
Cope with DT_UNKNOWN in sysfs.
2004-08-18 02:09:02 +04:00
Fix extents_moved metadata size comment.
Remove duplicate line in pvremove help text.
Support variable mirror region size.
Support PE ranges in pvmove source PV.
Fixes to as-yet-unused LV segment splitting code.
2004-08-18 01:55:23 +04:00
Change alloc_areas to pe_ranges and allow suppression of availability checks.
2004-08-11 17:15:05 +04:00
Add dev_size column to pvs.
2004-07-04 02:07:52 +04:00
Add report columns for in-kernel device number.
2004-07-03 22:29:48 +04:00
2004-07-03 22:21:13 +04:00
Version 2.00.20 - 3 July 2004
=============================
More autoconf fixes.
2004-07-01 19:14:29 +04:00
Fix device number handling for 2.6 kernels.
2004-06-29 17:46:44 +04:00
2004-06-29 17:29:25 +04:00
Version 2.00.19 - 29 June 2004
2004-06-25 14:31:04 +04:00
==============================
2004-06-29 17:29:25 +04:00
Reduce severity of setlocale failure message.
Recognise argv[0] "initrd-lvm" (pld-linux).
Make -O2 configurable.
2004-06-28 18:01:24 +04:00
Added --disable-selinux to configure script.
LD_FLAGS->LDFLAGS & LD_DEPS->LDDEPS in configure script.
Add init_debug to clvmd.
2004-06-25 14:31:04 +04:00
2004-06-24 12:02:38 +04:00
Version 2.00.18 - 24 June 2004
==============================
2004-06-24 18:48:01 +04:00
Fix vgchange activation.
2004-06-24 12:02:38 +04:00
Add cluster support.
2004-06-20 17:38:54 +04:00
Version 2.00.17 - 20 June 2004
==============================
configure --enable-fsadm to try out fsadm. fsadm is not tested yet.
2004-06-19 23:27:00 +04:00
Display all filtered devices, not just PVs, with pvs -a.
2004-06-19 23:24:33 +04:00
Fix sync_dir() when no / in filename
2004-06-19 22:55:29 +04:00
vgcfgbackup -f accepts template with %s for VG name.
2004-06-18 19:08:22 +04:00
Extend hash functions to handle non-null-terminated data.
2004-06-16 21:13:41 +04:00
Add local activation support.
2004-06-15 21:25:07 +04:00
Tidy relative paths in makefile includes.
2004-06-15 21:23:49 +04:00
fsadm support for fsck and resizing - needs testing.
2004-06-07 23:10:21 +04:00
Add read-only GFS pool support.
2004-06-07 20:20:05 +04:00
Add lvm2create_initrd script from http://poochiereds.net/svn/lvm2/
2004-06-07 19:22:43 +04:00
Fix rounding of large diplayed sizes.
2004-05-28 16:47:57 +04:00
Suppress decimal point when using units of sectors/bytes.
2004-05-25 00:51:56 +04:00
Additional kernel target checks before pvmove & snapshot creation.
2004-06-01 22:33:50 +04:00
Add i2o_block.
2004-05-25 00:51:56 +04:00
2004-05-24 23:20:57 +04:00
Version 2.00.16 - 24 May 2004
2004-05-04 22:28:15 +04:00
=============================
2004-05-24 21:30:00 +04:00
Set area_count within alloc_lv_segment.
2004-05-24 19:58:50 +04:00
Remove error labels from lvresize.
2004-05-24 18:14:10 +04:00
Fix a pvs error path.
2004-05-24 17:44:10 +04:00
xxchange -ae for exclusive activation.
2004-05-20 20:18:58 +04:00
Don't return non-zero status if there aren't any volume groups.
2004-05-19 02:12:53 +04:00
Add --alloc argument to tools.
Rename allocation policies to contiguous, normal, anywhere, inherit.
nextfree becomes normal; anywhere isn't implemented yet.
LV inherits allocation policy from VG. Defaults: LV - inherit; VG - normal
Additional status character added to vgs to indicate allocation policy.
2004-05-19 01:57:24 +04:00
Add reset_fn to external_locking.
2004-05-13 00:43:34 +04:00
Ensure presence of virtual targets before attempting activating.
Attempt to fix resizing of snapshot origins.
2004-05-11 22:47:40 +04:00
Restructure lvresize, bringing it closer to lvcreate.
2004-05-11 21:18:42 +04:00
A quick sanity check on vg_disk struct when read in. More checks needed.
2004-05-11 21:09:09 +04:00
Only include visible LVs in active/open counts.
2004-05-11 20:01:58 +04:00
Add virtual segment types, zero and error. A large sparse device can be
constructed as a writeable snapshot of a large zero segment.
Add --type to lvcreate/resize.
2004-05-05 22:49:21 +04:00
Push lv_create & alloc policy up to tool level.
Fix pvdisplay return code.
2004-05-05 22:31:38 +04:00
Detect invalid LV names in arg lists.
2004-05-05 22:23:11 +04:00
Reporting uses line-at-a-time output.
lvm2 format sets unlimited_vols format flag.
2004-05-05 22:15:47 +04:00
Internal-only metadata flag support.
Basic checking for presence of device-mapper targets.
2004-05-05 21:56:20 +04:00
Separate out polldaemon.
2004-05-05 16:03:07 +04:00
Revise internal locking semantics.
Move find_pv_by_name to library.
2004-05-05 14:58:44 +04:00
Rename move->copy.
Add devices to segments report.
2004-05-05 01:25:57 +04:00
Begin separating out segment code. There's a lot of change here.
Compress any (obsolete) long LVM1 pvids encountered.
2004-05-04 22:28:15 +04:00
Support for tagged config files.
Don't abort operations if selinux present but disabled.
Fix typo in configure which left HAVE_LIBDL unset.
2004-04-19 17:10:06 +04:00
Version 2.00.15 - 19 Apr 2004
=============================
configure --with-owner= --with-group= to avoid -o and -g args to 'install'
2004-04-16 22:43:29 +04:00
Version 2.00.14 - 16 Apr 2004
=============================
Use 64-bit file functions by default.
2004-04-16 20:12:04 +04:00
Version 2.00.13 - 16 Apr 2004
2004-04-16 16:24:46 +04:00
=============================
2004-04-16 20:12:04 +04:00
Set devices/md_component_detection = 1 to ignore devices containing md
superblocks. [Luca Berra]
2004-04-16 16:24:46 +04:00
Ignore error setting selinux file context if fs doesn't support it.
2004-04-15 00:09:25 +04:00
Version 2.00.12 - 14 Apr 2004
=============================
2004-04-14 22:31:35 +04:00
Install a default lvm.conf into /etc/lvm if there isn't one already.
Allow different installation dir for lvm.static (configure --staticdir=)
Fix inverted selinux error check.
Recognise power2 in /proc/devices.
Fix counting in lvs_in_vg_opened. [It ignored devices open more than once.]
2004-04-08 21:14:00 +04:00
Version 2.00.11 - 8 Apr 2004
============================
Set fallback_to_lvm1 in lvm.conf (or configure --enable-lvm1_fallback)
to run lvm1 binaries if running a 2.4 kernel without device-mapper.
2004-04-07 22:12:51 +04:00
Version 2.00.10 - 7 Apr 2004
2004-04-06 19:17:53 +04:00
============================
More fixes for static build.
2004-04-07 22:12:51 +04:00
Add basic selinux support.
Fix sysfs detection.
2004-04-06 19:17:53 +04:00
2004-04-01 00:14:02 +04:00
Version 2.00.09 - 31 Mar 2004
=============================
2004-03-31 00:33:26 +04:00
Update copyright notices for Red Hat.
Fix vgmknodes to remove dud /dev/mapper entries. (libdevmapper update reqd).
Add LVM1-style colon output to vgdisplay.
lvchange --refresh to reload active LVs.
Add string display to memory leak dump.
Add locking flags & memlock option.
Add list_versions to library.
Ignore open hidden LVs when checking if deactivation is OK.
Suppress move percentage when device inactive.
Add lv_info_by_lvid.
Various tidy-ups to the build process.
Rebaseline internal verbose level.
Add --nolocking option for read operations if locking is failing.
Add option to compile into a library.
When compiled without libdevmapper, only print warning message once.
Fix lvreduce PV extent calculations.
Fix DESTDIR to work with configure path overrides.
Always use / as config file separator & rename internal config file variables.
Add support for tagging PV/VG/LVs and hosts.
Fix rare bug in recognition of long cmdline argument forms.
Add basic internationalisation infrastructure.
Don't recurse symlinked dirs such as /dev/fd on 2.6 kernels.
Update autoconf files.
Add sysfs block device filtering for 2.6 kernels.
Update refs for move to sources.redhat.com.
2003-11-15 02:46:49 +03:00
Friday 14th November 2003
=========================
Some bug fixes & minor enhancements, including:
Backwards compatibility with LVM1 metadata improved.
Missing man pages written.
Tool error codes made more consistent.
vgmknodes written.
O_DIRECT can be turned off if it doesn't work in your kernel.
2003-11-21 22:53:05 +03:00
dumpconfig to display the active configuration file
2003-11-15 02:46:49 +03:00
You need to update libdevmapper before using 'vgmknodes' or 'vgscan --mknodes'.
If your root filesystem is on an LV, you should run one of those two
2007-07-20 16:12:52 +04:00
commands to fix up the special files in /dev in your real root filesystem
2003-11-15 02:46:49 +03:00
after finishing with your initrd. Also, remember you can use
'vgchange --ignorelockingfailure' on your initrd if the tool fails because
it can't write a lock file to a read-only filesystem.
2003-04-30 20:49:27 +04:00
Wednesday 30th April 2003
=========================
A pvmove implementation is now available for the new metadata format.
When running a command that allocates space (e.g. lvcreate), you can now
2007-07-20 16:12:52 +04:00
restrict not only which disk(s) may be used but also the Physical Extents
2003-04-30 20:49:27 +04:00
on those disks. e.g. lvcreate -L 10 vg1 /dev/hda6:1000-2000:3000-4000
Monday 18th November 2002
2002-11-18 17:04:08 +03:00
========================
The new format of LVM metadata is ready for you to test!
We expect it to be more efficient and more robust than the original format.
It's more compact and supports transactional changes and replication.
Should things go wrong on a system, it's human-readable (and editable).
2007-07-20 16:12:52 +04:00
Please report any problems you find to the mailing list,
2002-11-18 17:04:08 +03:00
linux-lvm@sistina.com. The software has NOT yet been thoroughly
tested and so quite possibly there'll still be some bugs in it.
Be aware of the disclaimer in the COPYING file.
2007-07-20 16:12:52 +04:00
While testing, we recommend turning logging on in the configuration file
2002-11-18 17:04:08 +03:00
to provide us with diagnostic information:
log {
file="/tmp/lvm2.log"
2003-04-30 20:49:27 +04:00
level=7
2003-07-18 04:41:04 +04:00
activation=1
2002-11-18 17:04:08 +03:00
}
You should schedule regular backups of your configuration file and
metadata backups and archives (normally kept under /etc/lvm).
2007-07-20 16:12:52 +04:00
Please read docs/example.conf and "man lvm.conf" to find out more about
2002-11-18 17:04:08 +03:00
the configuration file.
To convert an existing volume group called vg1 to the new format using
the default settings, use "vgconvert -M2 vg1". See "man vgconvert".
-M (or --metadatatype in its long form) is a new flag to indicate which
format of metadata the command should use for anything it creates.
Currently, the valid types are "lvm1" and "lvm2" and they can be
abbreviated to "1" and "2" respectively. The default value for this
flag can be changed in the global section in the config file.
Backwards-compatible support for the original LVM1 metadata format is
maintained, but it can be moved into a shared library or removed
completely with configure's --with-lvm1 option.
Under LVM2, the basic unit of metadata is the volume group. Different
volume groups can use different formats of metadata - vg1 could use
the original LVM1 format while vg2 used the new format - but you can't
mix formats within a volume group. So to add a PV to an LVM2-format
volume group you must run "pvcreate -M2" on it, followed by "vgextend".
With LVM2-format metadata, lvextend will let you specify striping
parameters. So an LV could consist of two or more "segments" - the
first segment could have 3 stripes while the second segment has just 2.
LVM2 maintains a backup of the current metadata for each volume group
in /etc/lvm/backup, and puts copies of previous versions in
/etc/lvm/archive. "vgcfgbackup" and "vgcfgrestore" can be used to
2007-07-20 16:12:52 +04:00
create and restore from these files. If you fully understand what
2002-11-18 17:04:08 +03:00
you're doing, metadata can be changed by editing a copy of a current
backup file and using vgcfgrestore to reload it.
Please read the pvcreate man page for more information on the new
format for metadata.
All tools that can change things have a --test flag which can be used
to check the effect of a set of cmdline args without really making the
changes.
What's not finished?
====================
The internal cache. If you turn on debugging output you'll see lots of
2003-07-05 02:34:56 +04:00
repeated messages, many of which will eventually get optimised out.
2002-11-18 17:04:08 +03:00
2007-07-20 16:12:52 +04:00
--test sometimes causes a command to fail (e.g. vgconvert --test) even
though the real command would work: again, fixing this is waiting for
2002-11-18 17:04:08 +03:00
the work on the cache.
Several of the tools do not yet contain the logic to handle full
recovery: combinations of pvcreate and vgcfgrestore may sometimes be
needed to restore metadata if a tool gets interrupted or crashes or
finds something unexpected. This applies particularly to tools that
work on more than one volume group at once (e.g. vgsplit).
Display output. Some metadata information cannot yet be displayed.
Recovery tools to salvage "lost" metadata directly from the disks:
but we hope the new format will mean such tools are hardly ever needed!