]> sourceware.org Git - lvm2.git/blame - WHATS_NEW
Fix resource leak when strdup fails
[lvm2.git] / WHATS_NEW
CommitLineData
2df01a9d
AK
1Version 2.02.89 -
2==================================
d3518805 3 Directly allocate buffer memory in a pvck scan instead of using a mempool.
f9b92564
AK
4 Add configure --with-thin for (unimplemented) segtypes "thin" and "thin_pool".
5 Fix raid shared lib segtype registration (2.02.87).
2df01a9d 6
499091c0 7Version 2.02.88 - 19th August 2011
4536abf0 8==================================
f9b92564 9 Remove incorrect 'Breaking' error message from allocation code. (2.02.87)
3250b385
AK
10 Add lvconvert --merge support for raid1 devices split with --trackchanges.
11 Support lvconvert of -m1 raid1 devices to a higher number.
12 Add --trackchanges support to lvconvert --splitmirrors option for raid1.
13 Support splitting off a single raid1 rimage in lvconvert --splitmirrors.
14 Use sync_local_dev_names when reducing number of raid rimages in lvconvert.
f1c2a5af 15 Add -V as short form of --virtualsize in lvcreate.
c4323a0f 16 Fix make clean not to remove Makefile. (2.02.87)
4536abf0 17
34ae78d2
AK
18Version 2.02.87 - 12th August 2011
19==================================
c4323a0f 20 Fix make distclean to remove stray dmeventd and exported symbols files.
34ae78d2 21 Add global/detect_internal_vg_cache_corruption to lvm.conf.
031c986e 22 Use memory pool locking to check for corruption of internal VG structs.
bb115a7a 23 Cache and share generated VG structs.
47d7f00e 24 Fix possible format instance memory leaks and premature releases in _vg_read.
d183554c 25 Suppress locking error messages in monitoring init scripts.
34ae78d2
AK
26 If pipe in clvmd fails return busy instead of using uninitialised descriptors.
27 Add ability to reduce the number of mirrors in raid1 arrays to lvconvert.
28 Add dmeventd plugin for raid.
077a6755 29 Replace free_vg with release_vg and move it to vg.c.
789f9c55 30 Remove INCONSISTENT_VG flag from the code.
34ae78d2 31 Remove lock from cache in _lock_vol even if unlock fails.
5ddda8cd 32 Initialise clvmd locks before lvm context to avoid open descriptor leaks.
40dbaac8 33 Remove obsolete gulm clvmd cluster locking support.
cf992769 34 Suppress low-level locking errors and warnings while using --sysinit.
425862fb 35 Remove unused inconsistent_seqno variable in _vg_read().
586f3106 36 Remove meaningless const type qualifiers on cast type.
fb2f985d 37 Add test for fcntl error in singlenode client code.
765918a5 38 Remove --force option from lvrename manpage.
4536abf0 39 Add global/mirror_segtype_default to pick md raid or dm mirror as default.
34ae78d2
AK
40 Add configure --with-raid for new segtype 'raid' for MD RAID 1/4/5/6 support.
41 Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used if there is no config file.
395d204d 42 Add systemd unit file to provide lvm2 monitoring.
34ae78d2 43 Compare file size (as well as timestamp) to detect changed config file.
11853cd9 44
9f65343f
AK
45Version 2.02.86 - 8th July 2011
46===============================
47 Remove unnecessary warning in pvcreate for MD linear devices.
c9ff339c 48 Move snapshot removal activation logic into lib/activate.
f5f3defc 49 Cope with a PV only discovered missing when creating deptree.
86b15c7c 50 Abort operation if dm_tree_node_add_target_area fails.
2243718f 51 Add activation/checks to lvm.conf to perform additional ioctl validation.
9f65343f 52 Always preload on suspend, even if no metadata changed (lvchange --refresh).
0f2a4ca2 53 When suspending, automatically preload newly-visible existing LVs.
181b1f9f 54 Teardown any stray devices with $COMMON_PREFIX during test runs.
1d7649f3 55 Reinstate correct permissions when creating mirrors. [2.02.85]
e189a84f 56 Append 'm' attribute to pv_attr for missing PVs.
88fca3ef 57 Annotate CLVMD_CMD_SYNC_NAMES in decode_cmd.
4d40a6f5 58 Remove enforcement of udev verification when using non-standard /dev location.
9e0edb7e 59 Fix to preserve exclusive activation of mirror while up-converting.
6adbb95b 60 Reject allocation if number of extents is not divisible by area count.
9f65343f 61 Fix cluster mirror creation to work with new mirror allocation algorithm.
1485b6fc 62 Ignore activation/verify_udev_operations if dm kernel driver vsn < 4.18.
0437bccc 63 Add activation/verify_udev_operations to lvm.conf, disabled by default.
bebe60b7 64 Call vg_mark_partial_lvs() before VG structure is returned from the cache.
93a98c26 65 Remove unused internal flag ACTIVATE_EXCL from the code.
f50a7637 66 Remove useless test of ACTIVATE_EXCL in lv_add_mirrors() clustered code path.
81beded3 67 Add lv_activate_opts structure for activation (replacing activation flags).
9f65343f 68 Ignore inconsistent pre-commit metadata on MISSING_PV devs while activating.
53dd32f4 69 Add proper udev library context initialization and finalization to liblvm.
7df72b3c 70 Fix last snapshot removal to avoid table reload while a device is suspended.
1840aa09 71 Use dm_get_suspended_counter in replacement critical_section logic.
29f2c5ad 72 Downgrade critical_section errors to debug level until it is moved to libdm.
df390f17
AK
73 Fix ignored background polling default in vgchange -ay.
74 Fix pvmove activation sequences to avoid trapped I/O with multiple LVs.
75 Annotate critical section debug messages.
f4ba9c5d 76 Fix reduction of mirrors with striped segments to always align to stripe size.
4fb39ae0 77 Validate mirror segments size.
9f65343f
AK
78 Include lvmetad development code in tree.
79 Fix extent rounding for striped volumes never to reduce more than requested.
afc8a3b1 80 Fix create_temp_name to replace any '/' found in the hostname with '?'.
9f65343f 81 Always use append to file in lvmdump. selinux policy may ban file truncation.
0ebd0960 82 Propagate test mode to clvmd to skip activation and changes to held locks.
9f65343f 83 Defer writing PV labels until vg_write.
3cac20f8 84 Store label_sector only in struct physical_volume.
453cdee5 85 Permit --available with lvcreate so non-snapshot LVs need not be activated.
677ec408 86 Report sector containing label in verbose message.
1fd2dac6 87 Clarify error message when unable to convert an LV into a snapshot of an LV.
0b705074 88 Add and use dev_open_readonly and variations.
5ec549ca 89 Do not log a superfluous stack message when the lv is properly processed.
5fb0c202 90 Do not issue an error message when unable to remove .cache on read-only fs.
8dad4989 91 Avoid memlock size mismatch by preallocating stdio line buffers.
9f65343f 92 Rewrite vgreduce --removemissing --force to share lvconvert code.
8dad4989 93 Reorganize lvconvert --repair code to allow reuse.
a086d55b 94
c0a1ec23
AK
95Version 2.02.85 - 29th April 2011
96=================================
edcda01a
PR
97 Add new obtain_device_list_from_udev setting to lvm.conf.
98 Obtain device list from udev by default if LVM2 is compiled with udev support.
c0a1ec23 99 Add test for vgimportclone and querying of vgnames with duplicate pvs.
919ab56b 100 Avoid use of released memory when duplicate PV is found.
fdc86703 101 Add "devices/issue_discards" to lvm.conf.
c0a1ec23 102 Issue discards on lvremove and lvreduce etc. if enabled and supported.
919ab56b 103 Add seg_pe_ranges and devices fields to liblvm.
c67d2b4d 104 Fix incorrect tests for dm_snprintf() failure.
a1eba521 105 Fix some unmatching sign comparation gcc warnings in the code.
c0a1ec23
AK
106 Support lv_extend() on empty LVs.
107 Avoid regenerating cache content when exported VG buffer is unchanged.
108 Extend the set of memory regions that are not locked to memory.
109 Workaround some problems when compiled for valgrind memcheck.
110 Support controlled quit of the lvm_thread_fn function in clvmd.
142d2e87 111 Fix reading of unallocated memory in lvm1 format import function.
1bedd3a9 112 Replace several strncmp() calls with id_equal().
3aef5ae7 113 Fix lvmcache_info transfer to orphan_vginfo in _lvmcache_update_vgname().
aaf92617 114 Fix -Wold-style-definition gcc warnings.
919ab56b
AK
115 Rename MIRROR_NOTSYNCED to LV_NOTSYNCED.
116 Fix _move_lv_segments to handle empty LVs.
1ee8a403 117 Fixes for lvconvert (including --repair) of temporary mirror stacks.
919ab56b
AK
118 Avoid potential loop when removing mirror images.
119 Fix mirror removal always to take account of preferences as to which.
120 Fix MIRRORED flag usage.
c0a1ec23 121 Remove error messages issued by device_is_usable when run as non-root.
b8ccce35 122 Add missing \0 for grown debug object in _bitset_with_random_bits().
844b75f4 123 Fix allocation of system_id buffer in volume_group structure.
218f6577 124 Fix readlink usage inside get_primary_dev().
ff447941 125 Use format instance mempool where possible and adequate.
2feb2a66 126 Call destroy_instance for any PVs found in VG structure during vg_free call.
84f48499 127 Add new free_pv_fid fn and use it throughout to free all attached fids.
1307ddf4 128 Use only vg_set_fid and new pv_set_fid fn to assign the format instance.
29348110 129 Make create_text_context fn static and move it inside create_instance fn.
a1bec4e6 130 Add mem and ref_count fields to struct format_instance for own mempool use.
56f5b12e 131 Use new alloc_fid fn for common format instance initialisation.
027a55d0 132 Optimise _get_token() and _eat_space().
442dbf9a 133 Add _lv_postorder_vg() to improve efficiency for all LVs in VG.
919ab56b 134 Add gdbinit script for debugging.
a1bec4e6 135 Use hash tables to speedup string search in vg_validate().
c0a1ec23 136 Refactor allocation of VG structure adding alloc_vg().
9cfdf803 137 Avoid possible endless loop in _free_vginfo when 4 or more VGs have same name.
2f25c320
AK
138 Use empty string instead of /dev// for LV path when there's no VG.
139 Don't allocate unused VG mempool in _pvsegs_sub_single.
7f0d89f8 140 Do not send uninitialised bytes in local clvmd messages.
5a47eb76 141 Support --help option for clvmd and return error for unknown option.
919ab56b 142 Avoid reading freed memory when printing LV segment type.
faa6ac94 143 Fix syslog initialisation in clvmd to respect lvm.conf setting.
be3510b2 144 Fix possible overflow in maximum stripe size and physical extent size.
07e711ec 145 Improve pvremove error message when PV belongs to a VG.
1a52fa68
AK
146 Extend normal policy to allow mirror logs on same PVs as images if necessary.
147 Improve cling policy to recognise PVs already used during the transaction.
92ffcda1
AK
148 Improve normal allocation algorithm to include clinging to existing areas.
149 Add allocation/maximise_cling & mirror_logs_require_separate_pvs to lvm.conf.
919ab56b 150 Adapt metadata balancing code to work with metadata handling changes.
3b97e8d6
PR
151 Add old_id field to physical_volume and fix pvchange -u for recent changes.
152 Allow pvresize on a PV with two metadata areas.
e924615f 153 Change pvcreate to use new metadata handling interface.
919ab56b 154 Restructure existing pv_setup and pv_write and add pv_initialise.
e924615f
PR
155 Add internal interface to support adding and removing metadata areas.
156 Allow internal indexing of metadata areas (PV id + mda order).
157 Generalise internal format_instance infrastrusture for PV and VG use.
a8d13f94
AK
158 Handle decimal digits with --units instead of ignoring them silently.
159 Fix remaining warnings and compile with -Wpointer-arith.
919ab56b 160 Fix gcc warnings for unused variables and const casts.
0a62e014 161 Add stack backtraces for error paths in process_each_lv().
919ab56b
AK
162 Temporarily suppress error from calling yes_no_prompt while locks are held.
163 Replace void* with char* arithmetic in _text_write, _text_read & send_message.
164 Fix compilation without DEVMAPPER_SUPPORT.
44376ffe 165 Remove fs_unlock() from lv_suspend error path.
919ab56b
AK
166 Allow memory to stay locked between leaving and re-entering critical sections.
167 Rename memlock to critical_section throughout.
168 Make pv_min_size configurable and increase to 2048KB to exclude floppy drives.
169 Add find_config_tree_int64 to read 64-bit ints from config.
170 Ensure resuming exclusive cluster mirror continues to use local mirror target.
171 Clear temporary postorder LV status flags to allow re-use with same LV struct.
172 Remove invalid snapshot umount mesg which floods syslog from dmeventd plugin.
173 Add extended examples to pvmove man page.
174 Support LVM_TEST_DEVDIR env var for private /dev during testing.
7ad6a7d9 175
db76c0d0 176Version 2.02.84 - 9th February 2011
0ea1e5c1 177===================================
2fdd451b 178 Fix CRC32 calculation on big endian CPU (2.02.75).
0ea1e5c1 179
6c7b95f2 180Version 2.02.83 - 4th February 2011
67199cac 181===================================
27ff8813 182 Allow exclusive activation of snapshots in a cluster.
6c7b95f2
AK
183 Leave EX lock unchanged when suspending a device in clvmd.
184 Use sync_dev_names in unlock_vg macro for cluster-wide dev name sync.
185 Fix fs operation stack handling when multiple operations on same device.
135af49d 186 Increase hash table size to 1024 lv names and 64 pv uuids.
3a00204a 187 Remove fs_unlock() from lv_resume path.
16f000bc 188 Fix wipe size when setting up mda.
401a40d9
ZK
189 Remove unneeded checks for open_count in lv_info().
190 Synchronize with udev before checking open_count in lv_info().
12e36e7e 191 Allow CLVMD_CMD_SYNC_NAMES to be propagated around the cluster if requested.
42715fa1 192 Add "dmsetup ls --tree" output to lvmdump.
116cbc26 193 Fix udev synchronization with no-locking --sysinit (2.02.80).
6c7b95f2 194 Improve man page style consistency for pvcreate, pvremove, pvresize, pvscan.
65fc4dae 195 Avoid rebuilding of uuid validation table.
6c7b95f2 196 Improve lvcreate error text from insufficient "extents" to "free space".
a1d4ec1d 197 Always use O_DIRECT when opening block devices to check for partitioning.
67199cac 198
c446a0ff 199Version 2.02.82 - 24th January 2011
59762452 200===================================
16b1fe4a 201 Bring lvscan man page up-to-date.
cef065f6 202 Fix lvchange --test to exit cleanly.
b51cd542
AK
203 Add change_tag to toollib.
204 Allow multiple pvchange command line options to be specified together.
c446a0ff
AK
205 Do not fail pvmove polling if another process cleaned up first.
206 Avoid clvmd incrementing dlm lockspace reference count more than once.
92e6277c 207 Add -f (don't fork) option to clvmd and fix clvmd -d<num> description.
59762452 208
01794a78 209Version 2.02.81 - 17th January 2011
2a66b79d 210===================================
01794a78
AK
211 Do not scan devices in dev_reset_error_count().
212 Skip unnecessary LOCK_NULL unlock call during volume deactivation.
213 Skip fs_unlock when calling exec_cmd within activation code (for modprobe).
214 Extend exec_cmd params to specify when device sync (fs_unlock) is needed.
a8de2765
AK
215 Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80)
216 Introduce sync_local_dev_names and CLVMD_CMD_SYNC_NAMES to issue fs_unlock.
b84bb4d9 217 Accept fusion fio in device type filter.
8f400f5a 218 Add ability to convert mirror log type from disk to mirrored.
2a66b79d 219
606d0858
AK
220Version 2.02.80 - 10th January 2011
221===================================
222 Use same dm cookie for consecutive dm ops in same VG to reduce udev waits.
223 Speed up command processing by caching resolved config tree.
6feecf76 224 Pass config_tree to renamed function import_vg_from_config_tree().
12fbaae0 225 Detect NULL handle in get_property().
349da06c
ZK
226 Fix superfluous /usr in ocf_scriptdir instalation path.
227 Add --with-ocfdir configurable option.
a5920162 228 Add aclocal.m4 (for pkgconfig).
606d0858
AK
229 Fix memory leak in persistent filter creation error path.
230 Check for errors setting up dm_task struct in _setup_task().
231 Fail polldaemon creation when lvmcache_init() fails.
232 Return PERCENT_INVALID for errors in _copy_percent() and _snap_percent().
233 Remove some unused variables.
234 Improve general lvconvert man page description.
235 Return 0 from cmirrord initscript 'start' if daemon is already running.
236 Fix wrongly paired unlocking of VG_GLOBAL in pvchange. (2.02.66)
2ae2ca89 237 Add backtraces for backup and backup_remove fail paths.
4388a09b 238 Detect errors from dm_task_set calls in _get_device_info (dmeventd).
1102378e 239 Add backtraces for archive and backup_locally in check_current_backup().
8382fc3e 240 Fix memory leak in debug mode of restart_clvmd() error path.
1febdf9a 241 Log error message for pthread_join() failure in clvmd.
c37f0c7d 242
ad18cacf
AK
243Version 2.02.79 - 20th December 2010
244====================================
245 Remove some unused variables.
b7149bbe 246 Add missing test for reallocation error in _find_parallel_space().
c37f0c7d 247 Add checks for allocation errors in config node cloning.
9376ec18 248 Fix error path if regex engine cannot be created in _build_matcher().
ad18cacf 249 Use char* arithmetic in target_version(), _process_all() & _targets().
66781f5d 250 Fixing const cast gcc warnings in the code.
9366d4e3 251 Check read() and close() results in _get_cmdline().
760d1fac 252 Add const for struct config_node usage.
bebfa29b 253 Fix NULL pointer check in error path in clvmd do_command(). (2.02.78)
22bb69eb 254 Fix device.c #include to ensure 64-bit fopen64 use. (2.02.51)
ad18cacf
AK
255 Add copy_percent and snap_percent to liblvm.
256 Enhance vg_validate to ensure integrity of LV and PV structs referenced.
257 Enhance vg_validate to check composition of pvmove LVs.
91106a4a 258 Create /var/run/lvm directory during clvmd initialisation if missing.
7dfce0e4 259 Use new dm_prepare_selinux_context instead of dm_set_selinux_context.
acb03765
AK
260 Avoid revalidating the label cache immediately after scanning.
261 Support scanning for a single VG in independent mdas.
262 Don't skip full scan when independent mdas are present even if memlock is set.
263 Set cmd->independent_metadata_areas if metadata/dirs or disk_areas in use.
e8bed35d 264 Cope better with an undefined target_percent operation in _percent_run.
ad18cacf 265 Avoid writing to freed memory in vg_release and rename to free_vg. (2.02.78)
122ba73e 266
9d031322
AK
267Version 2.02.78 - 6th December 2010
268===================================
ea7c621b
AK
269 Abort if segment tag allocation fails in pool format _add_stripe_seg.
270 Abort in _mirrored_transient_status if referenced log/image LV is not active.
166597d9 271 Add backtraces for dev_set() and dev_close_immediate() errors in set_lv().
ea7c621b
AK
272 Log any unlink() error in clvmd remove_lockfile().
273 Log any pipe write() or close() errors in clvmd child_init_signal().
274 Detect if orphan vginfo was lost from cache before _lvmcache_update_vgname().
275 Do a full rescan if some device is missing in lvm1 format read_pvs_in_vg.
276 Add missing check that dm_pool_create succeeded in write_config_node().
277 Use dm_snprintf in clvmd-command.c to ensure an overlong buffer is truncated.
278 Don't write to buffer if its reallocation failed in clvmd do_command().
279 Switch from float to fixed point percentage handling.
280 Avoid misleading missing PV warnings in vgextend --restoremissing.
1415afcd
AK
281 Fix memory leak when VG allocation policy in metadata is invalid.
282 Ignore unrecognised allocation policy found in metadata instead of aborting.
283 Factor out tag printing into _out_tags and avoid leaking string buffer.
284 Remove some unused variables & assignments.
285 Add missing vg_release calls in _vg_read_by_vgid.
ea7c621b 286 Fix debug logging of derived flag LCK_CACHE in clvmd.
1415afcd
AK
287 Fix test for no system_dir in _init_backup().
288 Disallow lvconvert ops that both allocate & free supplied PEs in a single cmd.
289 Fix liblvm seg_size to give bytes not sectors.
290 Add functions to look up LV/PV by name/uuid to liblvm.
291 Free cmd_context if fallback to LVM1 fails in lvm2_main().
292 Free device name buffer in dmsetup parse_loop_device_name() error paths.
293 Close format lib if init_format_fn fails in _init_formats().
294 Don't leave /proc/mounts open after dmeventd snapshot event processing.
295 Fix out-of-scope arg_vgnames use in process_each_lv().
296 Remove incorrect dm_task_destroy(NULL) from _node_clear_table() error path.
297 Add missing closedir in _rm_blks after removing stray LVM1 VG files.
728074ac 298 Suppress 'No PV label' message when removing several PVs without mdas.
9cd9dab0 299 Fix default /etc/lvm permissions to be 0755. (2.02.66)
663886b9 300
2151f044
AK
301Version 2.02.77 - 22nd November 2010
302====================================
303 Allocate a pool for dummy VG in _pvsegs_sub_single.
304 Add PV and LV segment types and functions to liblvm.
305 Add set_property functions to liblvm.
10955b82 306 Remove tag length restriction and allow / = ! : # & characters.
f8452d8c
AK
307 Support repetition of --addtag and --deltag arguments.
308 Add infrastructure for specific cmdline arguments to be repeated in groups.
309 Split the_args cmdline arguments and values into arg_props and arg_values.
2151f044 310 Fix fsadm no longer to require '-f' to resize an unmounted filesystem.
f8452d8c 311 Fix fsadm to detect mounted filesystems on older systems. (2.0.75)
eb82bd05
AK
312 Extend cling allocation policy to recognise PV tags (cling_by_tags).
313 Add allocation/cling_tag_list to lvm.conf.
5a976864 314 Regenerate configure with 'autoreconf' for --enable-ocf. (2.02.76)
ae1a8330 315
962e6781 316Version 2.02.76 - 8th November 2010
779c1100 317===================================
f7e3a19f 318 Clarify error messages when activation fails due to activation filter use.
962e6781
AK
319 Add pacemaker script VolumeGroup.ocf with configure --enable-ocf.
320 Import make.tmpl into include/ Makefile.
2955b913 321 Fix handling of online filesystem resize (using new fsadm return code).
13047cca 322 Add DIAGNOSTICS section to fsadm man page.
4886fa21 323 Modify fsadm to return different status code for check of mounted filesystem.
176bbea0
AK
324 Update VG metadata only once in vgchange when making multiple changes.
325 Allow independent vgchange arguments to be used together.
621a3ac9 326 Automatically unmount invalidated snapshots in dmeventd.
962e6781 327 Suppress some superfluous messages from clang static analysis.
0396ddf3 328 Fix a deadlock caused by double close in clvmd.
176bbea0 329 Fix NULL pointer dereference on too-large MDA error path in _vg_read_raw_area.
84cc478c 330 Use static for internal _align_chunk() and _new_chunk() from pool-fast.c.
178ff2be 331 Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
36a46986 332 Add lvm2app functions to query any pv, vg, or lv property / report field.
779c1100 333
2aa06d73
AK
334Version 2.02.75 - 25th October 2010
335===================================
336 Annotate more variables and parameters as const.
1e34e243 337 Fix missing variable initialization in cluster_send() function from cmirrord.
3cb3f15c 338 Fix pointer for VG name in _pv_resize_single error code path.
d80f8cf4 339 Fix warning for changed alignment requirements for dmeventd read/write func.
b83af516 340 Add global/metadata_read_only to use unrepaired metadata in read-only cmds.
c748bda1
AK
341 Don't take write lock in vgchange --refresh, --poll or --monitor.
342 Skip dm devices in scan if they contain only error targets or are empty.
f7311db6 343 Fix strict-aliasing compile warning in partition table scanning.
2aa06d73
AK
344 Fix pthread mutex usage deadlock in clvmd.
345 Automatically extend snapshots with dmeventd according to policy in lvm.conf.
346 Add activation/snapshot_autoextend_threshold/percent to lvm.conf.
347 Fix liblvm2cmd link order to support --as-needed.
348 Remove dependency on libm by replacing floor() by an integer-based algorithm.
2c33c8b8 349 Fix hang when repairing a mirrored-log that had both devs fail.
9443b5d4 350 Convey need for snapshot-merge target in lvconvert error message and man page.
2aa06d73 351 Add devices/disable_after_error_count config to limit access to failing devs.
d9583b87 352 Give correct error message when creating a too-small snapshot.
2aa06d73
AK
353 Implement vgextend --restoremissing to reinstate missing devs that return.
354 Make lvconvert respect --yes and --force when converting an inactive log.
8b86e09f 355 Refactor and add 'get' functions for lv properties/fields.
6a4b036c 356 Update script for fsadm testing.
bd79af9f 357 Better support of noninteractive shell execution of fsadm.
01143a93 358 Fix usage of --yes flag for ReiserFS resize in fsadm.
55b94bf3 359 Fix detection of mounted filesystems for fsadm when udev is used.
2aa06d73 360 Fix assignment of default value to LVM variable in fsadm.
685940c0 361 Fix support for --yes flag for fsadm.
2aa06d73 362 Do not execute lvresize from fsadm --dry-run.
829fe014 363 Fix fsadm return error code from user's break action.
f42b2d4b 364 Allow CC to be overridden at build time (for 'scan-build make').
637ac19e 365 Rename 'flags' to 'status' in struct metadata_area.
b0485a99 366 Avoid segfault by limiting partial mode for lvm1 metadata. (2.02.74)
2aa06d73 367 Use dm_zalloc and dm_pool_zalloc throughout.
d06b8843
DW
368 Add pv_get_property and create generic internal _get_property function.
369 Add 'get' functions for pv and vg properties/fields.
ac0252ca 370 Make generic GET_*_PROPERTY_FN macros with secondary macro for vg, pv & lv.
d06b8843
DW
371 Add tags_format_and_copy() common function and call from _tags_disp.
372 Add id_format_and_copy() common function and call from _uuid_disp.
d06b8843 373 Refactor report.c '*_disp' functions to call supporting functions.
2aa06d73
AK
374 Move parts of metadata*.[ch] into new {pv|vg|lv}.[ch] files.
375 Fix vg_read memory leak with directory-based metadata.
3d7e8602 376 Fix memory leak of config_tree in reinitialization code path.
2aa06d73 377 Fix pool destruction order in dmeventd_lvm2_exit() to avoid leak debug mesg.
c631be76 378 Read whole /proc/self/maps file before working with maps entries.
f6b1c45b 379 Speed up unquoting of quoted double quotes and backslashes.
44a31a9c
AK
380 Speed up CRC32 calculations by using a larger lookup table.
381
87368c35 382Version 2.02.74 - 24th September 2010
a171bb6e 383=====================================
87368c35
AK
384 Allow : and @ to be escaped with \ in device names of PVs.
385 Replace alloca with dm_malloc in _aligned_io to avoid stack corruption.
980d2d86 386 Fix partial mode operations for lvm1 metadata format.
a171bb6e
AK
387 Track recursive filter iteration to avoid refreshing while in use. (2.02.56)
388 Revert to old glibc vsnprintf behaviour in emit_to_buffer() to catch overflow.
389 Allocate buffer for metadata tags dynamically to remove 4k limit.
d20ce59b 390 Add random suffix to archive file names to prevent races when being created.
dc847845 391 Reinitialize archive and backup handling on toolcontext refresh.
6ec8c522 392 Make poll_mirror_progress report PROGRESS_CHECK_FAILED if LV is not a mirror.
a71d6051 393 Like mirrors, don't scan origins if ignore_suspended_devices() is set.
c7af31db 394 Fix return type qualifier to avoid compiler warning. (2.02.69)
34b6075d 395 Automatically generate LSB Requires-Start for clvmd init script.
e9848871 396 Fix return code of pvmove --abort PV.
cf704d22 397 Fix pvmove --abort to remove even for empty pvmove LV.
762812e7 398 Add configure --with-default-data-alignment.
4efb1d9c
MS
399 Update heuristic used for default and detected data alignment.
400 Add "devices/default_data_alignment" to lvm.conf.
44a31a9c 401 Add implementation for simple numeric 'get' property functions.
aa06d919 402 Define GET_NUM_PROPERTY_FN macro to simplify numeric property 'get' function
a171bb6e 403 Add properties.[ch] to lib/report using columns.h.
aa06d919
DW
404 Add macro definitions to report infrastructure for character array length.
405 Remove explicit double quotes from columns.h 'id' entries.
406 Add 'flags' field to columns.h and define FIELD_MODIFIABLE.
407 Add vg_mda_size and vg_mda_free functions.
2d5e2b52 408 Simplify MD/swap signature detection in pvcreate and allow aborting.
a171bb6e 409 Allow --yes to be used without --force mode.
c37a1450 410 Fix file descriptor leak in swap signature detection error path.
727f7bfa 411 Detect and allow abort in pvcreate if LUKS signature is detected.
a171bb6e 412 Always mask lock flags correctly when checking for LCK_WRITE.
7dbfd06d 413
523fad91
AK
414Version 2.02.73 - 18th August 2010
415==================================
53670b18 416 Fix potential for corruption during cluster mirror device failure.
22149572
AK
417 Use 'SINGLENODE' instead of 'dead' in clvmd singlenode messages.
418 Ignore snapshots when performing mirror recovery beneath an origin.
419 Pass LCK_ORIGIN_ONLY flag around cluster.
420 Add suspend_lv_origin and resume_lv_origin using LCK_ORIGIN_ONLY.
2d6fcbf6 421 Allow internal suspend and resume of origin without its snapshots.
85ed4030 422 Fix dev_manager_transient to access -real device not snapshot-origin.
f92b4f94 423 Monitor origin -real device below snapshot instead of overlay device.
85a80e05 424 Don't really change monitoring status when in test mode.
d1e8046f
AK
425 Fix some exit statuses when starting/stopping monitoring fails.
426 Enable snapshot monitoring by default when dmeventd is enabled.
427 Move cloned libdevmapper-event client code from segments into lib/activate.
d0191bf9 428 Fix 'lvconvert --splitmirrors' in cluster operation.
523fad91 429 Fix clvmd init script exit code to return 4 when executed as non-root user.
b123a82d 430 Change default alignment of pe_start to 1MB.
dff22466
MS
431 Add --norestorefile option to pvcreate.
432 Require --restorefile when using pvcreate --uuid.
626242c1 433 Recognise and give preference to md device partitions (blkext major).
f21beaf2 434 Never scan internal LVM devices.
523fad91 435 Don't ignore user-specified PVs in split-mirror operations. (2.02.71)
498747d7 436 Fix data corruption bug in cluster mirrors.
57d31c99 437 Require logical volume(s) to be explicitly named for lvconvert --merge.
14a97221 438 Avoid changing aligned pe_start as a side-effect of very verbose logging.
523fad91 439 Use built-in rule for device aliases: block/ < dm- < disk/ < mapper/ < other.
3eadbbeb
ZK
440 Fix const warning in dev_manager_info() and _dev_manager_lv_rmnodes().
441 Fix const warning in archive_file structure from archive.c.
56081fe9 442 Clean generated files .exported_symbols_generated, example.conf for distclean.
b3886cb1 443 Handle failure of all mirrored log devices and all but one mirror leg.
efaaf314 444 Disallow 'mirrored' log type for cluster mirrors.
7a7392e1 445 Do not use VPATH in include/Makefile.
0146f0de 446 Fix exported_symbols generation to use standard compiler arguments.
2d696f9e 447 Use #include <> not "" in lvm2app.h which gets installed on the system.
0dfae7e4 448 Make lib and liblvm.device-mapper wait for include file generation.
b1f08e51 449 Fix configure to supply DEFAULT_RUN_DIR to Makefiles.
523fad91 450 Fix allocation of wrong number of mirror logs with 'remove' fault policy.
e9438785 451
8bae0a1e
AK
452Version 2.02.72 - 28th July 2010 [CVE-2010-2526]
453=================================================
454 Change clvmd to communicate with lvm2 via a socket in /var/run/lvm.
455 Return controlled error if clvmd is run by non-root user.
456 Add configure --default-run-dir for /var/run/lvm.
65ce9feb 457 Never use clvmd singlenode unless explicitly requested with -Isinglenode.
8bae0a1e 458
cdb675c0 459Version 2.02.71 - 28th July 2010
111c120e 460================================
09ba95b2 461 Document LVM fault handling in doc/lvm_fault_handling.txt.
82c99fb6 462 Make vgck warn about missing PVs.
81bf06ea 463 Clarify help text for vg_mda_count.
405c4a45 464 Check if cluster log daemon is running before allowing cmirror create.
09ba95b2
AK
465 Add unit-tests dir.
466 Add configure --enable-testing and reports and report-generators dirs.
467 Correct LV list order used by lvconvert when splitting a mirror.
60f425d1 468 Check if LV with specified name already exists when splitting a mirror.
c42b0847 469 Fix suspend/resume logic for LVs resulting from splitting a mirror.
81bf06ea 470 Update pvcreate, {pv|vg}change, and lvm.conf man pages about metadataignore.
8c4e8a18
FDN
471 Switch cmirrord and clvmd to use dm_create_lockfile.
472 Allow clvmd pidfile to be configurable.
da42be4d 473 Update comments about memory handling in lvm2app.h.
fefa4323 474 Add more verbose messages while checking volume_list and hosttags settings.
fde13547
DW
475 Add log_error when strdup fails in {vg|lv}_change_tag().
476 Remove unnecessary includes in liblvm files.
08f1ddea 477 Use __attribute__ consistently throughout.
3e404aea 478 Fix redundant declarations and always compile with -Wredundant-decls.
09ba95b2 479 Fix possible hang when all mirror images of a mirrored log fail.
fde13547
DW
480 Pass metadataignore to pv_create, pv_setup, _mda_setup, and add_mda.
481 Init mda->list in mda_copy.
4ec2ae86
ZK
482 Do not log backtrace in valid _lv_resume() code path.
483 Cleanup help strings in configure.in.
90b96af6
DW
484 Prompt if metadataignore with vgextend or pvchange would adjust vg_mda_copies.
485 Adjust vg_mda_copies if metadataignore given with vgextend or pvchange.
7f7af468 486 Adjust auto-metadata repair and caching logic to try to cope with empty mdas.
6aecef2c 487
9a54c1a7
AK
488Version 2.02.70 - 6th July 2010
489===============================
d28ed36f 490 Remove log directly if all mirror images of a mirrored log fail.
d911ec67
AK
491 Randomly select which mdas to use or ignore.
492 Add some missing standard configure.in checks.
db3c1ac1 493 Add printf format attributes to yes_no_prompt and fix a caller.
9b95a5a9
AK
494 Always pass unsuspended dm devices through persistent filter to other filters.
495 Move test for suspended dm devices ahead of other filters.
6aecef2c 496 Fix another segfault in clvmd -R if no response from daemon. (2.02.68)
185ac73d 497 Remove superfluous suspended device counter from clvmd.
89dd7d52 498 Fix lvm shell crash when input is entirely whitespace.
d67c40f9 499 Update partial mode warning message.
02317333 500 Preserve memlock balance in clvmd when activation triggers a resume.
9a54c1a7 501 Restore the removemissing behaviour of lvconvert --repair --use-policies.
c304818d 502
4e118517 503Version 2.02.69 - 30th June 2010
1ed3c7cc 504================================
6117bfc0 505 Fix vgremove to allow removal of VG with missing PVs. (2.02.52)
4e118517
AK
506 Add metadata/vgmetadatacopies to lvm.conf.
507 Add --metadataignore to pvcreate and vgextend.
508 Add vg_mda_copies, pv_mda_used_count and vg_mda_used_count to reports.
6f0a72fb 509 Describe --vgmetadatacopies in lvm.conf and other man pages.
4e118517 510 Add --[vg]metadatacopies to select number of mdas to use in a VG.
6f0a72fb
DW
511 Make the metadata ignore bit control read/write metadata areas in a PV.
512 Add pvchange --metadataignore to set or clear a metadata ignore bit.
513 Refactor metadata code to prepare for --metadataignore / --vgmetadatacopies.
68c31a2a 514 Ensure region_size of mirrored log does not exceed its full size.
4e118517 515 Generate liblvm2app exported symbols from header file.
d301e591 516 Preload libc locale messages to prevent reading it in memory locked state.
fb99185a 517 Fix handling of simultaneous mirror image and mirrored log image failure.
1ed3c7cc 518
d2cd8375
AK
519Version 2.02.68 - 23rd June 2010
520================================
be2d9395 521 Fix clvmd initscript status to print only active clustered LVs.
07ae1d49 522 Add lv_path to reports to offer full /dev pathname.
f9e177d2 523 Fix typo in warning message about missing device with allocated data areas.
85691c0a
AK
524 Add device name and offset to raw_read_mda_header error messages.
525 Honour log argument when down-converting stacked mirror.
b4ee0035 526 Sleep to workaround clvmd -S race: socket closed early and server drops cmd.
566515c0 527 Use early udev synchronisation and update of dev nodes for clustered mirrors.
b4ee0035
AK
528 Remove incorrect inclusion of kdev_t.h from cmirrord/functions.h.
529 Add man pages for lvmconf and non-existent lvmsadc and lvmsar tools.
530 Exit successfully when using -o help (but not -o +help) with LVM reports.
d2031f6a 531 Do not use internal DLM lock definitions in generic LVM2 clvmd code.
b4ee0035 532 Add --force, --nofsck and --resizefs to lvresize/extend/reduce man pages.
9e0521eb 533 Fix lvm2cmd example in documentation.
b4ee0035 534 Allow use of lvm2app and lvm2cmd headers in C++ code.
07ae1d49
AK
535 Remove unused #includes from clvmd files and introduce clvmd-common.h.
536 Move common inclusions to clvmd-common.h.
b4ee0035 537 Use #include "" for libdevmapper.h and configure.h throughout tree.
d2cd8375 538 Fix LVM_PATH expansion when exec_prefix=NONE. (2.02.67)
4c10ab56 539 Fix segfault in clvmd -R if no response from daemon received.
a5e14884 540
1a526b3c 541Version 2.02.67 - 4th June 2010
ead120eb 542===============================
8d6e0c95 543 Handle failed restart of clvmd using -S switch properly.
850fa823 544 Fix clvmd initscript restart command to start clvmd if not yet running.
1a526b3c 545 Use built-in absolute paths in clvmd (clvmd restart and PV and LV queries).
31943693 546 Require partial option in lvchange --refresh for partial LVs.
e9a87f2e 547 Do not fail lvm_init() if init_logging() or _init_rand() generates an errno.
d0188870 548 Don't merge unchanged persistent cache file before dumping if tool scanned.
03023d39 549 Fix incorrect memory pool deallocation while using vg_read for files.
1a3b5854 550 Add --type parameter description to the lvcreate man page.
ba61f848 551 Replace strncmp kernel version number checks with proper ones.
ed122a96 552 Avoid selecting names under /dev/block if there is an alternative.
5782a385 553 Update clustered log kernel module name to log-userspace for 2.6.31 onwards.
1a526b3c
AK
554 Add replicators' LVs to dtree for activation.
555 Supress activation message if there is a missing replicator VG.
556 Fix scripts/relpath.awk to work in mawk
557 Extend lock_vol to check for missing replicator VGs first.
558 Update _process_one_vg and process_each_lv_in_vg to populate cmd_vg.
559 Add cmd_vg structure and associated functions for replicator.
560 Extend _lv_each_dependency() to handle replicator dependencies.
561 Add check_replicator_segment() to catch internal replicator errors.
562 Initial support for replicator metadata.
563 Extend process_each_lv_in_vg() to provide list of failed lvnames.
564 Consistently return ECMD_FAILED if process_each_*lv() is interrupted.
ead120eb 565
0506f410 566Version 2.02.66 - 20th May 2010
35023237 567===============================
ae6164ce 568 If unable to obtain snapshot percentage leave value blank on reports.
3e730d47 569 Add install_system_dirs and install_initscripts makefile targets.
3399ae32 570 Add configure options for system and locking directories.
da05c479 571 Generate example.conf so default lvm.conf contents can be configured.
52edfba9
AK
572 Install lvmconf script by default.
573 Remove unnecessary versioned dmeventd plugin symlinks.
0a6ddb39
DW
574 Add tests for lvm_vgname_from_{pvid|device}.
575 Add lvm2app interfaces to lookup a vgname from a pvid and pvname.
576 Update pvchange to always obtain a vg handle for each pv to process.
0506f410 577 Add find_vgname_from_{pvname|pvid} functions.
0a6ddb39 578 Add pvid_from_devname and lvmcache_vgname_from_pvid lvmcache functions.
34220fe2 579 Validate orphan and VG_GLOBAL lock order too.
fa305e2e 580 Accept orphan VG names as parameters to lock_vol() and related functions.
1d837442 581 Use is_orphan_vg in place of hard-coded prefix tests and add is_global_vg.
35023237 582
a988efda
AK
583Version 2.02.65 - 17th May 2010
584===============================
585 Fix clvmd init script never to deactivate non-clustered volume groups.
586 Disallow vgchange --clustered if there are active mirrors or snapshots.
587 Introduce lv_is_mirrored.
75153387 588 Use /bin/bash for scripts with bashisms.
a988efda 589 Skip internal lvm devices in scan if ignore_suspended_devices is set.
9ad39e54 590 Do not merge old device cache after we run full scan. (2.02.56)
fff111fe 591 Add pkgconfigdir Makefile variable for make install override.
a988efda
AK
592 Configure pkgconfig udev and selinux dependencies.
593 Switch Libs.private to Requires.private in devmapper.pc and lvm2app.pc.
594 Use pkgconfig Requires.private for devmapper-event.pc.
595 Add libdevmapper to linked libdevmapper-event.so.
596 Link liblvm2cmd.so with libdevmapper-event and libdevmapper.
1641fdf9 597 Fix truncated total size displayed by pvscan.
a988efda
AK
598 Add new --sysinit compound option to vgchange and lvchange.
599 Drop duplicate errors for read failures and missing devices to verbose level.
600 Use $(libdir)/lvm2 with make install_lvm2_plugin.
601 Use $(libdir)/device-mapper with make install_dm_plugin.
3283f817 602 Add dm_list_splice() function to join two lists together.
bde29bc4 603
3ceb7608 604Version 2.02.64 - 30th April 2010
adfdf8bb 605=================================
3ceb7608 606 Avoid pointless initialisation when the 'version' command is run directly.
7147cd9f 607 Fix memory leak for invalid regex pattern input.
8889fda5 608 Display invalid regex pattern for filter configuration in case of error.
54d7741a 609 Remove no-longer-used arg_ptr_value.
3ceb7608 610 Fix -M and --type to use strings, not pointers that change on config refresh.
21e2ab0e 611 Fix lvconvert error message when existing mirrored LV is not found.
6ddb5ecd 612 Set appropriate udev flags for reserved LVs.
3ceb7608 613 Disallow the direct removal of a merging snapshot.
1f661c5d 614 Don't preload the origin when removing a snapshot whose merge is pending.
3c76d9ab 615 Disallow the addition of mirror images while a conversion is happening.
66f79d05 616 Disallow primary mirror image removal when mirror is not in-sync.
ff403ee2 617 Remove obsolete --name parameter from vgcfgrestore.
c407d2bd 618 Add -S command to clvmd to restart the daemon preserving exclusive locks.
4fd3355e 619 Increment lvm2app version from 1 to 2 (memory allocation changes).
5e3285ef 620 Change lvm2app memory alloc/free for pv/vg/lv properties.
81182ac0 621 Change daemon lock filename from lvm2_monitor to lvm2-monitor for consistency.
3ceb7608 622 Install symbolic .so links with relative paths between usrlibdir and libdir.
4fd3355e 623 Add awk script relpath.awk to calculate paths for relative symlinks.
3ceb7608 624 Use @AWK@ in makefiles.
c474c082 625 Fix double DESTDIR usage for infodir and mandir.
adfdf8bb 626
2e79014b
AK
627Version 2.02.63 - 14th April 2010
628=================================
a11ad9cc 629 Rename lvm_dump.sh to lvmdump.sh.
e98c922e 630 Allow incomplete mirror restore in lvconvert --repair upon insufficient space.
1e696b0c 631 Do not reset position in metadata ring buffer on vgrename and vgcfgrestore.
c6469d46 632 Allow VGs with active LVs to be renamed.
bda39820 633 Use UUIDs instead of names while processing event handlers.
e6f562ab 634 Only pass visible LVs to tools in cmdline VG name/tag expansions without -a.
6c4f65fe 635 Use typedefs for toollib process_each functions.
b409df00 636 Use C locales and use_mlockall for clvmd.
fc63498c 637 Refactor code related to vg->pvs list and add pv->vg link.
fadbec99 638 Mask LCK_HOLD flag in cluster VG locks for backwards compatibility.
59131572 639 Add activation/polling_interval to lvm.conf as --interval default.
06930992
AK
640 Don't ignore error if resuming any LV fails in resume_lvs.
641 Skip closing persistent filter cache file if open failed.
fadbec99
AK
642 Install .a and .so links into $(usrlibdir).
643 Add --enable-write_install options to install user-writable files.
23b059e7 644 Use INSTALL_PROGRAM/DATA/WDATA target.
c737d348 645 Switch from using VPATH to vpath in Makefiles.
68176be1 646 Permit mimage LVs to be striped in lvcreate, lvresize and lvconvert.
aab7a397
AK
647 Fix pvmove allocation to take existing parallel stripes into account.
648 Add pvmove_source_seg to struct lv_segment.
f55021f4 649 Fix incorrect removal of symlinks after LV deactivation fails.
6d25082d 650 Fix is_partitioned_dev not to attempt to reopen device.
e199542b 651 Fix another thread race in clvmd.
bf1152ff 652 Refactor management of vg->pvs list.
fd4728e1 653 Fix lcov rules and generate better coverage report.
0640232a 654 Improve vg_validate to detect some loops in lists.
258db3ad 655 Change most remaining log_error WARNING messages to log_warn.
d7cbaae1 656 Always use blocking lock for VGs and orphan locks.
fadbec99 657 Allocate all memory for segments from private VG mempool.
04238875 658 Return newly allocated PV segment after segment split.
fadbec99 659 Optimise searching PV segments for seeking the most recently-added.
c8b09885 660 Remove vg_validate call when parsing cached metadata.
d59a2b61 661 Use hash table of LVs to speed up parsing of text metadata with many LVs.
fadbec99
AK
662 Fix two vg_validate messages, adding whitespace and parentheses.
663 When dmeventd is not forking because of -d flag, don't kill parent process.
0f587ff6 664 Fix 'make install' when $(builddir) is different from $(srcdir).
38737f13
ZK
665 Fix dso resource leak in error path of dmeventd.
666 Use C locales and use_mlockall for dmeventd.
1dee5eb6 667 Fix --alloc contiguous policy only to allocate one set of parallel areas.
b73c1824 668 Do not allow {vg|lv}change --ignoremonitoring if on clustered VG.
b7be589e
ZK
669 Improved dependency tracking for dmeventd and liblvm2cmd sources.
670 Improved Makefile rules for distclean and cflow targets.
7a369d37 671 Add ability to create mirrored logs for mirror LVs.
7b0f529d 672 Fix clvmd cluster propagation of dmeventd monitoring mode.
2abbc07f 673 Allow ALLOC_ANYWHERE to split contiguous areas.
8ca4d443 674 Use INTERNAL_ERROR for internal errors throughout tree.
a7ca3346 675 Add some assertions to allocation code.
8d6722c8
AK
676 Introduce pv_area_used into allocation algorithm and add debug messages.
677 Add activation/monitoring to lvm.conf.
678 Add --monitor and --ignoremonitoring to lvcreate.
36f9d53b 679 Allow dynamic extension of array of areas selected as allocation candidates.
2e08dbcb 680 Export and use only valid cookie value in test suite.
7b45e46a 681 Remove const modifier for struct volume_group* from process_each_lv_in_vg().
fd817ff3 682 Don't allow resizing of internal logical volumes.
94ff21b4 683 Fix libdevmapper-event pkgconfig version string to match libdevmapper.
0699572d 684 Avoid scanning all pvs in the system if operating on a device with mdas.
1091650a 685 Add configure --with-clvmd=singlenode to use clvmd w/o cluster infrastructure.
d0af5def 686 Get stacktrace if testsuite test drops core and lvm was built with debugging.
917c57e7 687 Disable long living process flag in lvm2app.
acb4b5e4 688 Fix pvcreate device md filter check.
0a5182fc
AK
689 Suppress repeated errors about the same missing PV uuids.
690 Bypass full device scans when using internally-cached VG metadata.
b1f9a2f5 691 Only do one full device scan during each read of text format metadata.
38220f9f 692 Remove unnecessary full_scan parameter from get_vgids and get_vgnames calls.
cccae7e6
AK
693 Look up missing PVs by uuid not dev_name in _pvs_single to avoid invalid stat.
694 Make find_pv_in_vg_by_uuid() return same type as related functions.
770dc81b 695 Introduce is_missing_pv().
ec7a7135 696 Fix clvmd Makefile to not overwrite LIBS from template definition.
75b8a10e 697
ba8fd82a
AK
698Version 2.02.62 - 9th March 2010
699================================
700 Add use_mlockall and mlock_filter to activation section of lvm.conf.
701 Add default alternative to mlockall using mlock to reduce pinned memory size.
9f0a5c1d 702 Remove -rdynamic from static builds.
f518aadf
AK
703 Update checks for pthread, readline & selinux libs and link only when needed.
704 Introduce makefile vars UDEV_LIBS, DL_LIBS, SELINUX_LIBS, STATIC_LIBS.
705 Introduce makefile vars LVMINTERNAL_LIBS, READLINE_LIBS, PTHREAD_LIBS.
ba8fd82a
AK
706 Toggle configure help to print --disable-fsadm.
707 Use $() instead of ${} consistently for all Makefile variables.
87d73a9b 708 Replace CFLOW_CMD only in make.tmpl and use it as variable elsewhere.
814aebc4 709 Use $(top_builddir) for inclusion of make.tmpl in Makefiles.
c2fa9fa9 710 Fix autoconf warning about ignored datarootdir.
e24fb506 711 Increase AC_PREREQ version to 2.61 (for AC_PROC_SED, AC_PROG_MKDIR_P).
ba8fd82a 712 Handle misaligned devices that report alignment_offset of -1.
16d9293b 713 Extend core allocation code in preparation for mirrored log areas.
630e13ed 714 Rewrite clvmd init script.
65752052 715 Remove lvs_in_vg_activated_by_uuid_only call.
4c4de324 716 No longer fall back to looking up active devices by name if uuid not found.
ab9663f3 717 Don't touch /dev in vgmknodes if activation is disabled.
1a443ddd
DW
718 Update lvm2app.h Doxygen comments and add lvm2app Doxygen config file.
719 Update nightly tests and lvm2app unit tests to cover tags.
720 Add lvm2app functions lvm_{vg|lv}_{get|add|remove}_tag() functions.
721 Add dm_pool_strdup to allocate and copy memory in tag library function.
722 Refactor vgcreate, vgchange, and lvchange for tag library function.
a5ec3e38 723 Refactor snapshot-merge deptree and device removal to support info-by-uuid.
9e7b0091 724
c97cbf8c
AK
725Version 2.02.61 - 15th February 2010
726====================================
727 Fix some consts and floating point gcc warnings.
728 Fix dm_report_field_uint64 function to accept 64-bit ints.
729 Change readhead display to use 32-bit -1 const instead of 64-bit.
730 Add LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES environment variable.
731 Remove hard-coding that skipped _mimage devices from 11-dm-lvm.rules.
732 Use udev transactions in test suite.
733 Set udev state automatically instead of using LVM_UDEV_DISABLE_CHECKING.
734 Add lvm_pv_get_size, lvm_pv_get_free and lvm_pv_get_dev_size to lvm2app.
735 Change lvm2app to return all sizes in bytes as documented (not sectors).
736 Add 'fail_if_percent_unsupported' arg to _percent and _percent_run.
737 Remove false "failed to find tree node" error when activating merging origin.
738 Exit with success when lvconvert --repair --use-policies performs no action.
739 Accept a list of LVs with 'lvconvert --merge @tag' using process_each_lv.
740 Avoid unnecessary second resync when adding mimage to core-logged mirror.
13d8501f 741 Exclude internal VG names and uuids from lists returned through lvm2app.
c97cbf8c
AK
742 Add %ORIGIN support to lv{create,extend,reduce,resize} --extents.
743 Add _mda_copy to clone a struct metadata_area.
46cabd8a
AK
744 Remove pointless versioned symlinks to dmeventd plugin libraries.
745 Fix dmeventd snapshot plugin build dependency.
c97cbf8c
AK
746 Make clvmd -V return status zero.
747 Remove unnecessary 'dmsetup resume' following 'dmsetup create' in tests.
748 Fix cmirrord segfault in clog_cpg list processing when converting mirror log.
749 Deactivate temporary pvmove mirror cluster-wide when activating it fails.
750 Always query device by uuid and not name in clvmd.
751 Add missing metadata vg_reverts in pvmove error paths.
752 Unlock shared lock in clvmd if activation calls fail.
753 Return success from dev_manager_info with non-existent uuid if ioctl succeeds.
ddd6c357
MS
754
755Version 2.02.60 - 23rd January 2010
756===================================
635983c4
AK
757 Extend cmirrord man page.
758 Sleep before first progress check if pvmove/lvconvert interval has prefix '+'.
759 Default to checking progress before waiting in _wait_for_single_lv.
760 Fix cmirror initscript (including syntax error).
761 Eliminate avoidable ioctls for checking open_count in _add_new_lv_to_dtree.
762 Disable memory debugging if dmeventd is configured. (Not thread-safe.)
ff26b68a
MB
763 Fix first log message prefix in syslog for dmeventd plugins.
764 Fix exported symbols names for dmeventd lvm2 wrapper plugin.
635983c4 765 Make failed locking initialisation messages more descriptive.
59dd8658 766
1014cf87 767Version 2.02.59 - 21st January 2010
80b664f5 768===================================
d3d98fdc 769 Add libdevmapper-event-lvm2.so to serialise dmeventd plugin liblvm2cmd use.
a7ca1015 770 Cleanup memory initialization and freeing in pv_read() and pv_create().
488298a5 771 Clear pointer and counters after their release in _fin_commands().
1014cf87
AK
772 Stop dmeventd trying to access already-removed snapshots.
773 Remove (fallback) /dev mknod from cmirrord.
13ecd94a 774 Add t-topology-support.sh and t-snapshot-merge.sh tests.
7a965168 775 Fix clvmd to never scan suspended devices.
1014cf87
AK
776 Fix dmeventd build outside source tree.
777 Assorted cmirror code changes to remove various compiler warnings.
778 Fix detection of completed snapshot merge.
779 Add Red Hat cmirror initscript (unfinished).
780 Add cmirrord man page (incomplete).
27318b98 781 Make cluster log communication structures architecture independant.
1014cf87
AK
782 Fix cluster log in-memory bitmap handling.
783 Improve snapshot merge metadata import validation.
e47a591d
MS
784 Improve target type compatibility checking in _percent_run().
785 Add 'target_status_compatible' method to 'struct segtype_handler'.
1014cf87 786 Change underscore to hyphen in table line for clustered log type.
80b664f5 787
73c47fae 788Version 2.02.58 - 14th January 2010
726355fe 789===================================
73c47fae 790 Cleanup some minor gcc warnings.
5eb7dfdd 791 Add --merge to lvconvert to merge a snapshot into its origin.
73c47fae
AK
792 Fix clvmd automatic target module loading crash (no reset_locking fn).
793 Fix allocation code not to stop at the first area of a PV that fits.
726355fe 794
b6baf165
AK
795Version 2.02.57 - 12th January 2010
796===================================
12b64654
AK
797 Ensure exactly one process returns from poll_daemon(), never two.
798 Reset _vgs_locked in lvmcache_init() in child after forking.
799 Define {DM, LVM}_UDEV_DISABLE_CHECKING=1 environment variables during tests.
800 Enable udev_sync and udev_rules in lvm.conf by default while running tests.
801 If LVM_UDEV_DISABLE_CHECKING in set in environment, disable udev warnings.
12b64654 802 Add --splitmirrors to lvconvert to split off part of a mirror.
c9f27b1c 803 Change background polldaemon's process name to "(lvm2)".
12b64654
AK
804 Allow vgremove to remove a VG with PVs missing after a prompt.
805 Return success in lvconvert --repair --use-policies on failed allocation.
d011e2cc 806 Keep log type consistent when changing mirror image count.
62ecac81 807 Always set environment variables for an LVM2 device in 11-dm-lvm.rules.
cda69e17 808 Add activation/udev_rules config option in lvm.conf.
12b64654
AK
809 Add consts to text metadata flag structs.
810 Add macros outfc, outsize, outhint and function out_text_with_comment.
811 Reimplement report FIELD macro using offsetof instead of static structs.
812 Fix fsadm man page typo (fsdam).
03984e05 813 Rename mirror_device_fault_policy to mirror_image_fault policy.
bf8c8a6d 814 Remove empty PV devices if lvconvert --repair is using defined policies.
5d196aa4 815 Use fixed buffer to prevent stack overflow in persistent filter dump.
12b64654
AK
816 Use extended status of new kernel snapshot target 1.8.0 to detect when empty.
817 Insert stack macros in suspend_lv, resume_lv & (de)activate_lv callers.
818 Add --poll flag to vgchange and lvchange to control background daemon launch.
819 Propagate metadata commit and revert notifications to other cluster nodes.
c9118a1d 820 Use proper mask for VG lock mode in clvmd.
12b64654 821 Allow precommitted metadata to be dropped from lvmcache.
ac85c2e7 822 Move processing of VG locks to separate function in clvmd.
12b64654
AK
823 Properly decode all flags in clvmd messages including VG locks.
824 Properly handle precommitted cache flag when only committed metadata present.
60494fe7 825 Resume renamed volumes in reverse order to preserve memlock pairing.
12b64654
AK
826 Drop cached metadata after device was auto-repaired and removed from VG.
827 Clear MISSING_PV flag if PV reappeared and is empty.
828 Fix removal of multiple devices from a mirror.
829 Also clean up PVs flagged as missing in vgreduce --removemissing --force.
830 Introduce INTERNAL_ERROR macro for error messages and use throughout.
831 Remove superfluous returns from void functions.
73530869 832 Destroy allocated mempool in _vg_read_orphans() error path.
12b64654 833 Fix some pvresize and toollib error paths with missing VG releases/unlocks.
34de60e4 834 Explicitly call suspend for temporary mirror layer.
12b64654 835 Allow use of precommitted metadata when a PV is missing.
27132718 836 Add memlock information to do_lock_lv debug output.
12b64654
AK
837 Always bypass calls to remote cluster nodes for non-clustered VGs.
838 Permit implicit cluster lock conversion in pre/post callbacks on local node.
839 Permit implicit cluster lock conversion to the lock mode already held.
840 Fix lock flag masking in clvmd so intended code paths get invoked.
cc31b2bd 841 Replace magic masks in cluster locking code by defined masks.
12b64654
AK
842 Remove newly-created mirror log from metadata if initial deactivation fails.
843 Correct activated or deactivated text in vgchange summary message.
844 Improve pvmove error message when all source LVs are skipped.
845 Fix memlock imbalance in lv_suspend if already suspended.
846 Fix pvmove test mode not to poll (and fail).
847 Fix vgcreate error message if VG already exists.
848 Fix tools to use log_error when aborted due to user response to prompt.
849 Fix ignored readahead setting in lvcreate --readahead.
850 Fix clvmd memory leak in lv_info_by_lvid by calling release_vg.
851 If aborting due to internal error, always send that message to stderr.
852 Add global/abort_on_internal_errors to lvm.conf to assist testing.
853 Fix test Makefiles when builddir and srcdir differ.
854 Impose limit of 8 mirror images to match the in-kernel kcopyd restriction.
855 Use locking_type 3 (compiled in) for lvmconf --enable-cluster.
856 Remove list.c and list.h with no-longer-used dm_list macros and functions.
32780caa
AK
857 Log failure type and recognise type 'F' (flush) in dmeventd mirror plugin.
858 Extend internal PV/VG/LV/segment status variables from 32-bit to 64-bit.
b1bee9cd 859
2b2c5617 860Version 2.02.56 - 24th November 2009
b315fcab 861====================================
fed0e904 862 Add missing vg_release to pvs and pvdisplay to fix memory leak.
0025670d 863 Do not try to unlock VG which is not locked in _process_one_vg.
13b665e4 864 Move is_long_lived persistent_filter_dump to happen after every full scan.
e1ab01e3 865 Refresh device filters before full device rescan in lvmcache.
155c608c 866 Return error status if vgchange fails to activate some volume.
13b665e4
AK
867 Fix suspend/resume lock type test causing unbalanced memory locking.
868 Revert vg_read_internal change as clvmd was not ready for vg_read. (2.02.55)
b315fcab 869
31b2e7ed
AK
870Version 2.02.55 - 19th November 2009
871====================================
938cf359
AK
872 Fix deadlock when changing mirrors due to unpaired memlock refcount changes.
873 Use separate memlock counter for dmeventd handlers to permit device scanning.
874 Directly restrict vgchange to activating visible LVs.
875 Fix pvmove region_size overflow for very large PVs.
876 Fix lvcreate and lvresize %PVS argument always to use sensible total size.
a8fb89ad 877 Tidy some uses of arg_count and introduce arg_is_set.
badfe1cf 878 Export outnl and indent functions for modules.
61c146fb 879 Flush stdout after yes/no prompt.
fc7ad9d4 880 Update vgsplit and vgcreate to use vg_set_clustered.
938cf359 881 Add vg_mda_count and vg_set_clustered library functions.
fc7ad9d4 882 Add more vgcreate and vgsplit nightly tests.
75b37a11 883 Insert some missing stack macros into activation code.
938cf359 884 Recognise DRBD devices and handle them like md devices.
cf177380 885
ebc9a27a
AK
886Version 2.02.54 - 26th October 2009
887===================================
7c638cc2
DW
888 Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter.
889 Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.
984abde1 890 Permit snapshots of mirrors.
a3a02a2f 891 Cleanup mimagetmp LV if allocation fails for new lvconvert mimage.
cb63efc6 892 Fix clvmd segfault when refresh_toolcontext fails.
06bb53b1 893 Remember to clear 'global lock held during cache refresh' state after use.
178dcb06 894 Use udev flags support in LVM and apply various fixes to udev rules.
70a0e7ab 895 Delay announcing mirror monitoring to syslog until initialisation succeeded.
b4048242 896 Handle metadata with unknown segment types more gracefully.
39dabc84 897 Set default owner and group to null.
ae1e83aa 898 Add dmeventd.static to the build.
89044bc0 899 Disable realtime support code by default.
c503c83c 900 Make clvmd return 0 on success rather than 1.
0ddb66ef 901 Add --pvmetadatacopies for pvcreate, vgcreate, vgextend, vgconvert.
0175de7f 902 Add implict pvcreate support to vgcreate and vgextend.
cf65a124
AK
903 Correct example.conf to indicate that lvm2 not lvm1 is the default format.
904 Remove an unused stray LVM1_SUPPORT ifdef.
e1b8a236 905 Only include selinux libs in libdevmapper.pc when selinux build enabled.
db8b5af9 906 Allow for a build directory separate from the source.
1ae30159 907 Update distclean target for rename clogd to cmirrord. (2.02.52)
29846c24 908 Only do lock conversions in clvmd if we are explicitly asked for one.
78ad1549 909 Introduce percent_range_t and centralise snapshot full/mirror in-sync checks.
42dd692b 910 Factor out poll_mirror_progress and introduce progress_t.
8e4858cc 911 Distinguish between powers of 1000 and powers of 1024 in unit suffixes.
93bbc31c 912 Restart lvconverts in vgchange by sharing lv_spawn_background_polling.
724de279 913 Generalise polldaemon code by changing mirror-specific variable names.
64a95010 914 Don't attempt to deactivate an LV if any of its snapshots are in use.
178dcb06 915 Return error if lv_deactivate fails to remove device from kernel.
a0f9708e 916 Provide alternative implementation of obsolete siginterrupt().
d5577738 917 Consolidate LV allocation into alloc_lv().
673ecf73 918 Treat input units of both 's' and 'S' as 512-byte sectors. (2.02.49)
95eaa683
AK
919 Use standard output units for 'PE Size' and 'Stripe size' in pv/lvdisplay.
920 Add configure --enable-units-compat to set si_unit_consistency off by default.
921 Add global/si_unit_consistency to enable cleaned-up use of units in output.
ec0b34a9 922
9bc9dacc 923Version 2.02.53 - 25th September 2009
786e32bf 924=====================================
536f0e08 925 Create any directories in /dev with DM_DEV_DIR_UMASK (022).
d9be54ad 926 Enable dmeventd monitoring section of config file by default.
595eaf92 927 Update lvm2 monitoring script to lvm2_monitoring_init_red_hat.in.
5a446cfb 928 Fix lvm2app test to run under test/api subdirectory only when configured.
68fac97a 929 Add vg_is_resizeable() and cleanup reference to VG_RESIZEABLE.
786e32bf 930
4b7033d3
AK
931Version 2.02.52 - 15th September 2009
932=====================================
266214db 933 Update _process_one_vg to cleanup properly after vg_read_error.
651ff9b3
AK
934 Add lots of missing stack debug messages to tools.
935 Make readonly locking available as locking type 4.
936 Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
663bf8f7
AK
937 Add DM_UDEV_RULES_VSN environment variable to udev rules.
938 Update vgsplit, vgmerge, and vgrename to obey new vgname ordering rules.
939 Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t.
940 Enforce an alphabetical lock ordering on vgname locking.
941 Prioritise write locks over read locks by default for file locking.
942 Add local lock files with suffix ':aux' to serialise locking requests.
3c0cfa8f 943 Fix global locking in PV reporting commands (2.02.49).
c2d4398d 944 Fix pvcreate string termination in duplicate uuid warning message.
663bf8f7 945 Don't loop reading sysfs with pvcreate on a non-blkext partition (2.02.51).
cdc8e54e 946 Fix vgcfgrestore error paths when locking fails (2.02.49).
663bf8f7
AK
947 Update Makefile distclean target.
948 Add libudev configuration check.
949 Make clvmd check corosync to see what cluster interface it should use.
950 Add clvmd autodetection check and cleanup related configure messages.
951 Rewrite clvmd configuration code to cope with all combinations of libs.
66fd4529 952 Added configure --enable-cmirrord to build the cluster mirror log daemon.
6087b158 953 Rename clogd to cmirrord.
ea301840 954 Make lvchange --refresh only take a read lock on volume group.
663bf8f7 955 Fix race where non-blocking file locks could be granted in error.
2834bc8e 956 Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49).
defed336 957 Fix compile warning in clvmd.
663bf8f7 958 Clarify use of PE ranges in lv{convert|create|extend|resize} man pages.
2834bc8e 959 Remove useless _pv_write wrapper.
663bf8f7
AK
960 Add lvm2app.sh to tests conditional upon configure --enable-applib.
961 Add lvm_vg_is_clustered, lvm_vg_is_exported, and lvm_vg_is_partial.
962 Update lvm_vg_remove to require lvm_vg_write to commit remove to disk.
2834bc8e 963 Update test/api/test.c to call lvm_vg_create and lvm_vg_remove.
adfb0e34 964
7cec175d
AK
965Version 2.02.51 - 6th August 2009
966=================================
ee1e49ec 967 Fix locking in clvmd (2.02.50).
f3bc056a 968 Add --noudevsync option for relevant LVM tools.
cf8235e0 969 Add activation/udev_sync to lvm.conf.
aaa01e34 970 Only change LV symlinks on ACTIVATE not PRELOAD.
f5cb304a 971 Make lvconvert honour log mirror options combined with downconversion.
0e867038 972 Allow LV suspend while --ignorelockingfailure is in force.
e516e070 973 Update synopsis in lvconvert manpage to mention --repair.
bd90c6b2 974 Set cookies in activation code and wait for udev to complete processing.
78ce7acc
AK
975 Added configure --enable-udev_rules --enable-udev_sync.
976 Added configure --with-udev-prefix --with-udevdir.
5d518f1f 977 Added udev dir to hold udev rules.
2aabcc1c 978 Add devices/data_alignment_detection to lvm.conf.
57b66035 979 Add devices/data_alignment_offset_detection to lvm.conf.
04b2a4bd 980 Add --dataalignmentoffset to pvcreate to shift start of aligned data area.
ad273af9 981 Fix _mda_setup() to not check first mda's size before pe_align rounding.
8b9e5151 982 Document -I option of clvmd in the man page.
82c445b0 983 Fix configure script to handle multiple clvmd selections.
9b6f2391 984 Fix lvm2app.pc installation filename.
9e813cc9
AK
985 Remove pv_t, vg_t & lv_t handles from lib. Only liblvm uses them.
986 Rename lvm.h to lvm2app.h for now.
28ae3fe7 987
29c70fbd 988Version 2.02.50 - 28th July 2009
26d7762b 989================================
b0928986
AK
990 Change test/api/test.c prompt so it's not confused with the main lvm prompt.
991 Update liblvm unit tests in test/api to cover latest liblvm changes.
992 Add unimplemented lvm_lv_resize and lvm_pv_resize skeletons to liblvm.
993 Add lvm_library_get_version to liblvm.
994 Add lvm_config_override to liblvm to allow caller to override LVM config.
995 Add lvm_lv_is_active and lvm_lv_is_suspended to liblvm.
996 Add lvm_lv_activate and lvm_lv_deactivate to liblvm.
997 Add lvm_scan, lvm_vg_reduce and lvm_vg_remove_lv to liblvm.
998 Add functions to get numeric properties to liblvm.
999 Add lvm_{pv|vg|lv}_get_{name|uuid} to liblvm.
1000 Add lvm_vg_list_pvs and lvm_vg_list_lvs to liblvm.
1001 Add lvm_vg_open and lvm_vg_create_lv_linear to liblvm.
1002 Add lvm_list_vg_names/uuids to liblvm.
1003 Add lvm_errno and lvm_errmsg to liblvm to obtain failure information.
1004 Rename lvm_create/destroy to lvm_init/quit.
a44d0046 1005 Rename lvm_reload_config to lvm_config_reload.
b0928986
AK
1006 Refactor _override_settings to use new override_config_tree_from_string.
1007 Add vg_reduce to metadata.c and metadata-exported.h.
9c492aee 1008 Update lvm.h to clarify API behavior and return codes.
a66c95ce 1009 Update lvm_vg_extend to do an implicit pvcreate on the device.
b0928986
AK
1010 Update display.c to use vg_free(vg) instead of duplicating the calculation.
1011 Refactor vg_size, vg_free, and pv_mda_count field calculations for liblvm.
a66c95ce 1012 Refactor pvcreate and lvcreate for liblvm.
1cc59fa4 1013 Add global/wait_for_locks to lvm.conf so blocking for locks can be disabled.
c07d773e 1014 All LV locks are non-blocking so remove LCK_NONBLOCK from separate macros.
e6923120
DW
1015 Fix race condition with vgcreate and vgextend on same device (2.02.49).
1016 Remove redundant validate_name call from vgreduce.
1936861b 1017 Remove unused handles lvseg, pvseg inside liblvm/lvm.h.
70046623
AK
1018 Add liblvm2app Makefile installation targets.
1019 Add liblvm pkgconfig file.
340b6b0f 1020 Use newly-independent LVM_LIBAPI in liblvm soname. E.g. liblvm2app.so.2.1.
bf456146 1021 Add an API version number, LVM_LIBAPI, to the VERSION string for liblvm.
df4b9706 1022 Pass a pointer to struct cmd_context to init_multiple_segtypes
b68cc099 1023 Return EINVALID_CMD_LINE not success when invalid VG name format is used.
e0bd7c76 1024 Remove unnecessary messages after vgcreate/vgsplit refactor (2.02.49).
9fac4435 1025 Add log_errno to set a specific errno and replace log_error in due course.
d917192f
AK
1026 Change create_toolcontext to still return an object if it fails part-way.
1027 Add EUNCLASSIFIED (-1) as the default LVM errno code.
d6146461 1028 Store any errno and error messages issued while processing each command.
b8f47d5f 1029 Use log_error macro consistently throughout in place of log_err.
26d7762b 1030
9386a684 1031Version 2.02.49 - 15th July 2009
4397ad38 1032================================
651ff9b3 1033 Add readonly locking type to replace implementation of --ignorelockingfailure.
7beb03dd 1034 Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again.
867ff246
DW
1035 Add unit test case for liblvm VG create/delete APIs.
1036 Add liblvm APIs to implement creation and deletion of VGs.
7beb03dd
AK
1037 Initialize cmd->cmd_line to "liblvm" in new liblvm library.
1038 Place handles to liblvm objects for pv, vg, lv, lvseg, pvseg inside lvm.h.
cec2a2da 1039 Refactor vgsplit and vgextend to remove READ_REQUIRE_RESIZEABLE flag.
a7aa8b16 1040 Use _exit() not exit() after forking to avoid flushing libc buffers twice.
7beb03dd 1041 Add cast to log_info arg in _find_labeller to avoid Sparc64 warning.
7f355587 1042 Make cmd->cmd_line const.
c4c107f2 1043 Fix dev name mismatch in vgcreate man page example.
a4f5a4cc 1044 Refactor vg_remove_single for use in liblvm.
a7aa8b16
AK
1045 Make all tools use consistent lock ordering obtaining VG_ORPHAN lock second.
1046 Check md devices for a partition table during device scan.
1047 Add extended device (blkext) and md partition (mdp) types to filters.
1048 Make text metadata read errors for segment areas more precise.
1049 Fix text segment metadata read errors to mention correct segment name.
1050 Include segment and LV names in text segment import error messages.
25497e2f 1051 Add parent node to config_node structure.
a7aa8b16 1052 Update vgsplit and vgcreate to call new vg_create and 'set' functions.
0d107e70
DW
1053 Change vg_create to take minimal parameters, obtain a lock, and return vg_t.
1054 Refactor vgchange extent_size, max_lv, max_pv, and alloc_policy for liblvm.
1055 Update t-vgcreate-usage.sh to test for default vg properties.
1056 Fix memory leak in vgsplit when re-reading the vg.
7476b502 1057 Make various exit/cleanup paths more robust after lvm init failures.
a7aa8b16
AK
1058 Use LCK_NONBLOCK implicitly instead of explicit vg_read() flag.
1059 Remove unnecessary locking and existence tests from new vg_read() interface.
dd1d42d5 1060 Permit several segment types to be registered by a single shared object.
c1060e13 1061 Update the man pages to document size units uniformly.
1ad6d98b 1062 Allow commandline sizes to be specified in terms of bytes and sectors.
bb6a3a96 1063 Update 'md_chunk_alignment' to use stripe-width to align PV data area.
6e10090b
DW
1064 Update test/t-inconsistent-metadata.sh to match new vg_read interface.
1065 Add lvmcache_init() to polldaemon initialization.
1066 Convert tools to use new vg_read / vg_read_for_update.
1067 Fix segfault in vg_release when vg->cmd is NULL.
4397ad38 1068
e50c61d8 1069Version 2.02.48 - 30th June 2009
4f901270 1070================================
2f5a1df4 1071 Abort if automatic metadata correction fails when reading VG to update it.
6391d03f 1072 Explicitly request fallback to default major number in device mapper.
a330337a 1073 Ignore suspended devices during repair.
476d4633
AK
1074 Call vgreduce --removemissing automatically to fix missing PVs in dmeventd.
1075 Suggest using lvchange --resync when adding leg to not-yet-synced mirror.
1076 Destroy toolcontext on clvmd exit to avoid memory pool leaks.
1077 Fix lvconvert not to poll mirror if no conversion in progress.
38ddfe7b 1078 Fix memory leaks in toolcontext error path.
476d4633 1079 Reinstate partial activation support in clustered mode. (2.02.40)
2565a5e5 1080 Allow metadata correction even when PVs are missing.
33048414
ZK
1081 Use 'lvm lvresize' instead of 'lvresize' in fsadm.
1082 Do not use '-n' realine option in fsadm for busybox compatiblity.
476d4633 1083 Add vg_lock_newname() library function for vgrename, vgsplit and vgcreate.
12b1f31c 1084 Round up requested readahead to at least one page and print warning.
66086ce9
MB
1085 Try to repair vg before actual vgremove when force flag provided.
1086 Fix possible double release of VG after recovery.
1087 Add parameter to process_each_vg specifying what to do with inconsistent VG.
476d4633 1088 Unify error messages when processing inconsistent volume group.
c26488d3
MB
1089 Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO.
1090 Introduce lvconvert --use_policies (repair policy according to lvm.conf).
476d4633 1091 Update clvmd-corosync to match new corosync API.
b09a20e5 1092 Fix lib Makefile to include any shared libraries in default target.
771e191e 1093 Fix rename of active snapshot with virtual origin.
31f55a07 1094 Fix convert polling to ignore LV with different UUID.
c1fdeec9
MB
1095 Cache underlying device readahead only before activation calls.
1096 Fix segfault when calculating readahead on missing device in vgreduce.
eca971ca 1097 Remove verbose 'visited' messages.
5cffbf0b
AK
1098 Handle multi-extent mirror log allocation when smallest PV has only 1 extent.
1099 Add LSB standard headers and functions (incl. reload) to clvmd initscript.
5746e2e7 1100 When creating new LV, double-check that name is not already in use.
ca51e5d9 1101 Remove /dev/vgname/lvname symlink automatically if LV is no longer visible.
ea0e5e6e 1102 Rename internal vorigin LV to match visible LV.
99113cc5
AK
1103 Suppress 'removed' messages displayed when internal LVs are removed.
1104 Fix lvchange -a and -p for sparse LVs.
1105 Fix lvcreate --virtualsize to activate the new device immediately.
154753db
AK
1106 Make --snapshot optional with lvcreate --virtualsize.
1107 Generalise --virtualoriginsize to --virtualsize.
99113cc5 1108 Skip virtual origins in process_each_lv_in_vg() without --all.
ea91a71b 1109 Fix counting of virtual origin LVs in vg_validate.
4884e0e2 1110 Attempt to load dm-zero module if zero target needed but not present.
49c27642 1111
572fefeb 1112Version 2.02.47 - 22nd May 2009
4b896598 1113===============================
572fefeb 1114 Rename liblvm.so to liblvm2app.so and use configure --enable-applib.
4b896598
AK
1115 Reinstate version in liblvm2cmd.so soname. (2.02.44)
1116
25a2e7b8
AK
1117Version 2.02.46 - 21st May 2009
1118===============================
1119 Inherit readahead setting from underlying devices during activation.
1120 Detect LVs active on remote nodes by querying locks if supported.
eb91c4ee
MB
1121 Enable online resizing of mirrors.
1122 Use suspend with flush when device size was changed during table preload.
25a2e7b8
AK
1123 Implement query_resource_fn for cluster_locking.
1124 Support query_resource_fn in locking modules.
fa6dca9f 1125 Introduce CLVMD_CMD_LOCK_QUERY command for clvmd.
65edd11b 1126 Fix pvmove to revert operation if temporary mirror creation fails.
e1b0dce7 1127 Fix metadata export for VG with missing PVs.
761e5741 1128 Add vgimportclone and install it and the man page by default.
970f241c 1129 Force max_lv restriction only for newly created LV.
82cf9260 1130 Remove unneeded import parameter from lv_create_empty.
afd9ba98 1131 Merge lv_is_displayable and lv_is_visible functions.
25a2e7b8 1132 Introduce lv_set_visible & lv_set_hidden functions.
b14c5af7 1133 Fix lv_is_visible to handle virtual origin.
0b706ac6 1134 Introduce link_lv_to_vg and unlink_lv_from_vg functions.
d60f341d 1135 Remove lv_count from VG and use counter function instead.
4b13d5a8 1136 Fix snapshot segment import to not use duplicate segments & replace.
cfebc626 1137 Do not query nonexistent devices for readahead.
5a820745 1138 Remove NON_BLOCKING lock flag from tools and set a policy to auto-set.
2f9a9d1a 1139 Remove snapshot_count from VG and use function instead.
920e68d6 1140 Fix first_seg() call for empty segment list.
25a2e7b8 1141 Add install_lvm2 makefile target to install only the LVM2 components.
45aff0a2 1142 Reject missing PVs from allocation in toollib.
5c93cdba 1143 Fix PV datalignment for values starting prior to MDA area. (2.02.45)
87f42fda 1144 Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin).
25a2e7b8 1145 Fix minimum width of devices column in reports.
87f42fda
AK
1146 Add lvs origin_size field.
1147 Fix linux configure --enable-debug to exclude -O2.
25a2e7b8 1148 Implement lvconvert --repair for repairing partially-failed mirrors.
cd978f74 1149 Fix vgreduce --removemissing failure exit code.
dfbc015c 1150 Fix remote metadata backup for clvmd.
25a2e7b8
AK
1151 Introduce unlock_and_release_vg macro.
1152 Introduce vg_release() to be called to free every struct volume_group.
e5656d86 1153 Alloc PV internal structure from VG mempool if possible.
8f3fd69f 1154 Fix metadata backup to run after vg_commit always.
c4ff1338 1155 Tidy clvmd volume lock cache functions.
d66abfb8 1156 Fix pvs report for orphan PVs when segment attributes are requested.
81c74829 1157 Fix pvs -a output to not read volume groups from non-PV devices.
1cc75dfb 1158 Add MMC (mmcblk) device type to filters.
8e1d5615 1159 Introduce memory pools per volume group (to reduce memory for large VGs).
25a2e7b8 1160 Use copy of PV structure when manipulating global PV lists.
1b25b6e0 1161 Always return exit error status when locking of volume group fails.
6ce8f8d5 1162 Fix mirror log convert validation question.
9bcd5c2f 1163 Avoid referencing files from DESTDIR during build process.
25a2e7b8 1164 Avoid creating some static libraries unless configured --enable-static_link.
772cac09 1165 Enable use of cached metadata for pvs and pvdisplay commands.
bef749c9 1166 Add missing 'device-mapper' internal subdir build dependency.
e24f357c 1167 Fix memory leak in mirror allocation code.
2691077d 1168 Save and restore the previous logging level when log level is changed.
e69246e1 1169 Fix error message when archive initialization fails.
3330038e 1170 Make sure clvmd-corosync releases the lockspace when it exits.
0ef8308f 1171 Fix segfault for vgcfgrestore on VG with missing PVs.
c35df82d 1172 Block SIGTERM & SIGINT in clvmd subthreads.
3402ccd4 1173 Detect and conditionally wipe swapspace signatures in pvcreate.
7f436a0f 1174 Fix maximal volume count check for snapshots if max_lv set for volume group.
25a2e7b8 1175 Fix lvcreate to remove unused cow volume if the snapshot creation fails.
47e1baf1 1176 Fix error messages when PV uuid or pe_start reading fails.
25a2e7b8
AK
1177 Build new liblvm application-level library.
1178 Rename liblvm.a to liblvm-internal.a.
fe3a28e2 1179 Flush memory pool and fix locking in clvmd refresh and backup command.
25a2e7b8 1180 Fix unlocks in clvmd-corosync. (2.02.45)
1d13e518 1181 Fix error message when adding metadata directory to internal list fails.
6a8feb3c 1182 Fix size and error message of memory allocation at backup initialization.
25a2e7b8 1183 Remove old metadata backup file after renaming VG.
fbd97a34 1184 Restore log_suppress state when metadata backup file is up-to-date.
ab5be5f0 1185
33617240
AK
1186Version 2.02.45 - 3rd March 2009
1187================================
c3b50730 1188 Avoid scanning empty metadata areas for VG names.
ed82bfd2 1189 Attempt proper clean up in child before executing new binary in exec_cmd().
7b1c853b 1190 Do not scan devices if reporting only attributes from PV label.
edf47283 1191 Use pkgconfig to obtain corosync library details during configuration.
b36d715a 1192 Fix error returns in clvmd-corosync interface to DLM.
82c29eed 1193 Add --refresh to vgchange and vgmknodes man pages.
33617240
AK
1194 Pass --test from lvresize to fsadm as --dry-run.
1195 Supply argv[] list to exec_cmd() to allow for variable number of parameters.
1196 Prevent fsadm from checking mounted filesystems.
1197 No longer treats any other key as 'no' when prompting in fsadm.
1198 Tidy fsadm command line processing.
5f4b7a26 1199 Add lib/lvm.h and lib/lvm_base.c for the new library interface.
ec6a6fbe
AK
1200 Move tools/version.h to lib/misc/lvm-version.h.
1201 Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
7ac8b7c3 1202 Add system_dir parameter to create_toolcontext().
8929ce66 1203 Add --dataalignment to pvcreate to specify alignment of data area.
47c0f6ae 1204 Exclude LCK_CACHE locks from _vg_lock_count, fixing interrupt unblocking.
27753447 1205 Provide da and mda locations in debug message when writing text format label.
45bec967 1206 Mention the restriction on file descriptors at invocation on the lvm man page.
9b99f333 1207 Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames.
0f817d38 1208 No longer require kernel and metadata major numbers to match.
9c61679e 1209 Add a fully-functional get_cluster_name() to clvmd corosync interface.
0f1917af 1210 Remove duplicate cpg_initialize from clvmd startup.
d3e282c9 1211 Add option to /etc/sysconfig/cluster to select cluster type for clvmd.
2095de1a 1212 Allow clvmd to start up if its lockspace already exists.
ea0cdd28 1213 Separate PV label attributes which do not need parse metadata when reporting.
33617240 1214 Remove external dependency on the 'cut' command from fsadm.
92a4d6b2 1215 Fix pvs segfault when pv mda attributes requested for not available PV.
33617240 1216 Add fsadm support for reszing ext4 filesysystems.
76cc7b27 1217 Move locking_type reading inside init_locking().
4631e587 1218 Rename get_vgs() to get_vgnames() and clarify related error messages.
fd5c5a97
CC
1219 Allow clvmd to be built with all cluster managers & select one on cmdline.
1220 Mention --with-clvmd=corosync in ./configure.
b8fa5160 1221 Replace internal vg_check_status() implementation.
8544a8a2 1222 Rename vg_read() to vg_read_internal().
30212562 1223
c6a808f1
AK
1224Version 2.02.44 - 26th January 2009
1225===================================
a40fb438 1226 Fix --enable-static_link after the recent repository changes.
c6a808f1 1227 Add corosync/DLM cluster interface to clvmd.
c0f61d7d 1228 Add --nameprefixes, --unquoted, --rows to pvs, vgs, lvs man pages.
c6a808f1 1229 Fix lvresize size conversion for fsadm when block size is not 1K.
9bbd343f 1230 Fix pvs segfault when run with orphan PV and some VG fields.
219b480d 1231 Display a 'dev_size' of zero for missing devices in reports.
c926ea5c 1232 Add pv_mda_size to pvs and vg_mda_size to vgs.
326902f0 1233 Fix lvmdump /sys listing to include virtual devices directory.
6cca7a9f 1234 Add "--refresh" functionality to vgchange and vgmknodes.
c6a808f1 1235 Avoid exceeding LV size when wiping device.
6d1b3b53 1236 Calculate mirror log size instead of using 1 extent.
c6a808f1 1237 Ensure requested device number is available before activating with it.
219b480d
AK
1238 Fix incorrect exit status from 'help <command>'.
1239 Fix vgrename using UUID if there are VGs with identical names.
539f903f 1240 Fix segfault when invalid field given in reporting commands.
f653fb2b 1241 Move is_static from cmd to global is_static().
9db16312 1242 Refactor init_lvm() for lvmcmdline and clvmd.
c7e363f9 1243 Add liblvm interactive test infrastructure to build.
f653fb2b 1244 Add skeleton lvm2.h file in preparation for a shared library interface.
d17a8e36 1245 Use better random seed value in temp file creation.
c6a808f1 1246 Add read_urandom to read /dev/urandom. Use in uuid calculation.
b4795264 1247 Use displayable_lvs_in_vg and lv_is_displayable for consistency throughout.
9d9589d1 1248 Fix race in vgcreate that would result in second caller overwriting first.
89ef434f 1249 Fix uninitialised lv_count in vgdisplay -c.
e2675481 1250 Don't skip updating pvid hash when lvmcache_info struct got swapped.
18dcfb69 1251 Add tinfo to termcap search path for pld-linux.
acc41388 1252 Fix startup race in clvmd.
c6a808f1 1253 Generate Red Hat clvmd startup script at config time with correct paths.
07698bfd 1254 Fix clvmd & dmeventd builds after tree restructuring.
da526553 1255 Cope with snapshot dependencies when removing a whole VG with lvremove.
c6a808f1 1256 Make man pages and tool help text consistent using | for alternative options.
07698bfd
AK
1257
1258Version 2.02.43 - 10th November 2008
1259====================================
b362d126 1260 Merge device-mapper into the lvm2 tree.
40387549
AK
1261 Correct prototype for --permission on lvchange and lvcreate man pages.
1262 Exit with non-zero status from vgdisplay if couldn't show any requested VG.
3e5b6ed2 1263 Move list.c into libdevmapper and rename functions.
965566dc 1264 Rename a couple of variables that matched function names.
597c3f8e 1265 Use simplified x.y.z version number in libdevmapper.pc.
c249597f 1266 Remove ancient debian directory.
fcc5d443 1267 Split out lvm-logging.h from log.h and lvm-globals.[ch] from log.[ch].
d480ed41 1268
5e4b1453 1269Version 2.02.42 - 26th October 2008
44222209 1270===================================
14c9a9ae 1271 Accept locking fallback_to_* options in the global section as documented.
9e71c180
AK
1272 Fix temp table activation in mirror conversions not to happen in other cmds.
1273 Fix temp table in mirror conversions to use always-present error not zero.
44222209 1274
a64041bb
AK
1275Version 2.02.41 - 17th October 2008
1276===================================
5da4feac 1277 Use temp table to set device size when converting mirrors.
3935c3ec 1278 In resume_mirror_images replace activate_lv with resume_lv as workaround.
08b959a5 1279 Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE.
ffc4a05b 1280 Fix snapshot monitoring library to not cancel monitoring invalid snapshot.
5951ef33 1281 Generate man pages from templates and include version.
68f2de6d 1282 Add usrlibdir and usrsbindir to configure.
9c4bf5db 1283 Fix conversion of md chunk size into sectors.
7eb1c3ed 1284 Free text metadata buffer after a failure writing it.
9c4bf5db 1285 Fix misleading error message when there are no allocatable extents in VG.
061fa9c4 1286 Fix handling of PVs which reappeared with old metadata version.
550463b5 1287 Fix mirror DSO to call vgreduce with proper parameters.
ed8c4d99 1288 Fix validation of --minor and --major in lvcreate to require -My always.
b906150a 1289 Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning.
6e410af1 1290
01b1d604
AK
1291Version 2.02.40 - 19th September 2008
1292=====================================
f3fc2386 1293 Allow lvremove to remove LVs from VGs with missing PVs.
8c5bcdab
AK
1294 In VG with PVs missing, by default allow activation of LVs that are complete.
1295 Track PARTIAL_LV and MISSING_PV flags internally.
1296 Require --force with --removemissing in vgreduce to remove partial LVs.
1297 No longer write out PARTIAL flag into metadata backups.
1298 Treat new default activation/missing_stripe_filler "error" as an error target.
1299 Remove internal partial_mode.
2adafc16 1300 Add devices/md_chunk_alignment to lvm.conf.
3c2086ef 1301 Pass struct physical_volume to pe_align and adjust for md chunk size.
225ad191 1302 Store sysfs location in struct cmd_context.
324e23b7 1303 Avoid shuffling remaining mirror images when removing one, retaining primary.
4bb7a2f5 1304 Add missing LV error target activation in _remove_mirror_images.
08b481bb 1305 Prevent resizing an LV while lvconvert is using it.
a0e00ccf 1306 Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
df9c7546 1307 Fix pvresize to not allow resize if PV has two metadata areas.
3a2fb073 1308 Fix setting of volume limit count if converting to lvm1 format.
9c520b11 1309 Fix vgconvert logical volume id metadata validation.
050f5d89 1310 Fix lvmdump metadata gather option (-m) to work correctly.
a4a1cd76 1311 Fix allocation bug in text metadata format write error path.
8df4c374 1312 Fix vgcfgbackup to properly check filename if template is used.
b145d876 1313 configure aborts if lcov or genhtml are missing with --enable-profiling
e2151fb4
ZK
1314 vgremove tries to remove lv snapshot first.
1315 Added function lv_remove_with_dependencies().
b7961bdb 1316 Improve file descriptor leak detection to display likely culprit and filename.
9125b72b 1317 Change clustered mirror kernel module name from cmirror to dm-log-clustered.
131bc6f0 1318 Avoid looping forever in _pv_analyze_mda_raw used by pvck.
021317a5 1319 Change lvchange exit status to indicate if any part of the operation failed.
32a478cb 1320 Fix pvchange and pvremove to handle PVs without mdas.
29f7cbda 1321 Refactor _text_pv_read and always return mda list if requested.
ca822ab4
AK
1322 Fix configure to work w/o readline unless --enable-readline used. (2.02.39)
1323 Remove is_lvm_partition template which has not yet been coded.
1324 Refactor pvcreate to separate parameter parsing from validation logic.
4833ac3d
DW
1325 Check for label_write() failure in _text_pv_write().
1326 Add pvcreate tests and update vgsplit tests to handle lvm1 and lvm2 metadata.
239c4fe6 1327 Fix pvchange -M1 -u to preserve existing extent locations when there's a VG.
82185ada
AK
1328 Cease recognising snapshot-in-use percentages returned by early devt kernels.
1329 Add backward-compatible flags field to on-disk format_text metadata.
367a0ac0 1330 Fix dmeventd monitoring libraries to link against liblvm2cmd again. (2.02.39)
f4fa433e 1331
20ee0a06 1332Version 2.02.39 - 27th June 2008
d47bc382 1333================================
1b523347 1334 Enable readline by default if available.
5556819a
AK
1335 Update autoconf to 2008-01-16.
1336 Add $DISTCLEAN_DIRS to make.tmpl.in.
1337 Create coverage reports with --enable-profiling and make lcov or lcov-dated.
59743245 1338 Fix up cache for PVs without mdas after consistent VG metadata is processed.
6db41363 1339 Update validation of safe mirror log type conversions in lvconvert.
1049bc2f 1340 Fix lvconvert to disallow snapshot and mirror combinations.
36081ccf 1341 Fix reporting of LV fields alongside unallocated PV segments.
1f787aca 1342 Add --unquoted and --rows to reporting tools.
30ef4c73
AK
1343 Add and use uninitialized_var() macro to suppress invalid compiler warnings.
1344 Introduce enum for md minor sb version to suppress compiler warning.
1345 Avoid undefined return value after _memlock manipulation in lvm2_run.
1346 Avoid link failure if configured without --enable-cmdlib or --enable-readline.
1347 Make clvmd return at once if other nodes down in a gulm or openais cluster.
1348 Fix and improve readahead 'auto' calculation for stripe_size.
1349 Fix lvchange output for -r auto setting if auto is already set.
1350 Add test case for readahead.
f4fa433e 1351 Avoid ambiguous use of identifier error_message_produced.
d0191583 1352 Begin syncing configure.in for merge/unification with device-mapper.
ac27ef25 1353 Fix add_mirror_images not to dereference uninitialized log_lv upon failure.
b1f8aa24 1354 Don't call openlog for every debug line output by clvmd.
dc868e56 1355 Add --force to lvextend and lvresize.
f4fa433e 1356 Fix vgchange not to activate component mirror volumes directly.
c8c24ccd 1357 Fix test directory clean up in make distclean.
ac27ef25 1358
88f2c815
AK
1359Version 2.02.38 - 11th June 2008
1360================================
56637f2a 1361 Fix tracking of validity of PVs with no mdas in lvmcache.
3a30d1db 1362 Fix return values for reporting commands when run with no PVs, LVs, or VGs.
a3678fa1 1363 Add omitted unlock_vg() call when sigint_caught() during vg processing.
88f2c815
AK
1364 Fix free_count when reading pool metadata.
1365 Fix segfault when using pvcreate on a device containing pool metadata.
80b7fe0e 1366 Fix segfault after _free_vginfo by remembering to remove vginfo from list.
bfadd213 1367 Tweak detection of invalid fid after changes to PVs in VG in _vg_read.
424dd43e 1368 Revert assuming precommitted metadata is live when activating (unnecessary).
aa769723 1369 Drop cached metadata for disappearing VG in vgmerge.
ec40d928
AK
1370 In script-processing mode, stop if any command fails.
1371 Warn if command exits with non-zero status code without a prior log_error.
1372 Check lv_count in vg_validate.
1373 Add --nameprefixes to reporting tools for field name prefix output format.
1374
0b1a6c4b
AK
1375Version 2.02.37 - 6th June 2008
1376===============================
1377 Make clvmd-cman use a hash rather than an array for node updown info.
1378 Correct config file line numbers in messages when parsing comments.
179b9822 1379 Drop cached metadata when renaming a VG.
57d0dc0d 1380 Allow for vginfo changing during _vg_read.
e350c2f6 1381 Decode numbers in clvmd debugging output.
bdf8c02f 1382 Add missing deactivation after activation failure in lvcreate -Zy.
e4b34bfa 1383 When activating, if precommitted metadata is still cached, assume it's live.
4bfa1324 1384 When removing LV symlinks, skip any where the VG name is not determined.
ad134662 1385 Drop metadata cache if update fails in vg_revert or vg_commit.
bdce11cb
AK
1386 Avoid spurious duplicate VG messages referring to VGs that are gone.
1387 Drop dev_name_confirmed error message to debug level.
1388 Fix setpriority error message to signed int.
ace5664e 1389 Temporarily disable dmeventd mirror monitoring during lvchange --resync.
fc54be10 1390 Refactor some vginfo manipulation code.
98fd1ce3 1391 Add assertions to trap deprecated P_ and V_ lock usage.
3d6af3e3
AK
1392 Add missing mutex around clvmd lvmcache_drop_metadata library call.
1393 Fix uninitialised mutex in clvmd if all daemons are not running at startup.
1394 Avoid using DLM locks with LCK_CACHE type P_ lock requests.
3835ad6b 1395 When asked to drop cached committed VG metadata, invalidate cached PV labels.
d9c0105f
AK
1396 Drop metadata cache before writing precommitted metadata instead of after.
1397 Don't touch /dev in vgrename if activation is disabled.
1398
04ed52f6 1399Version 2.02.36 - 29th April 2008
f6a88f32 1400=================================
04ed52f6
AK
1401 Fix fsadm.sh to work with older blockdev, blkid & readlink binaries.
1402 Fix lvresize to pass new size to fsadm when extending device.
d474909a 1403 Remove unused struct in clvmd-openais, and use correct node count.
746e7dc4 1404 Fix nodes list in clvmd-openais, and allow for broadcast messages.
b5618c07 1405 Exclude VG_GLOBAL from internal concurrent VG lock counter.
8e8baf89 1406 Fix vgsplit internal counting of snapshot LVs.
b5618c07
AK
1407 Fix vgmerge snapshot_count when source VG contains snapshots.
1408 Simplify clvmd-openais by using non-async saLckResourceLock.
fd1b1189 1409 Fix internal LV counter when a snapshot is removed.
a93ae114 1410 Fix metadata corruption writing lvm1-formatted metadata with snapshots.
7e305eda 1411 Fix lvconvert -m0 allocatable space check.
f6a88f32 1412
a34eeced 1413Version 2.02.35 - 15th April 2008
a6b0b935 1414=================================
581b17de 1415 Drop cached VG metadata before and after committing changes to it.
adb57823 1416 Rename P_global to P_#global.
c4afaa05 1417 Don't attempt remote metadata backups of non-clustered VGs. (2.02.29)
8b1ae3c1 1418 Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34)
6920681c
DW
1419 Update vgsplit tests to verify loosening of active LV restriction.
1420 Update vgsplit to only restrict split with active LVs involved in split.
1421 Add lv_is_active() to determine whether an lv is active.
a6b0b935 1422
9d527965
AK
1423Version 2.02.34 - 10th April 2008
1424=================================
3cde54c5 1425 Improve preferred_names lvm.conf example.
2e050bfc
AK
1426 Fix vgdisplay 'Cur LV' field to match lvdisplay output.
1427 Fix lv_count report field to exclude hidden LVs.
985ca02b 1428 Add vg_is_clustered() helper function.
eec663aa 1429 Fix vgsplit to only move hidden 'snapshotN' LVs when necessary.
f2696211 1430 Update vgsplit tests for lvnames on the cmdline.
5656911a
DW
1431 Update vgsplit man page to reflect lvnames on the cmdline.
1432 Update vgsplit to take "-n LogicalVolumeName" on the cmdline.
eb273c7c 1433 Use clustered mirror log with pvmove in clustered VGs, if available.
178e1df2 1434 Fix some pvmove error status codes.
9ac3596d 1435 Fix vgsplit error paths to release vg_to lock.
54396b89
AK
1436 Indicate whether or not VG is clustered in vgcreate log message.
1437 Mention default --clustered setting in vgcreate man page.
1438 Add config file overrides to clvmd when it reads the active LVs list.
6eb44b50
AK
1439 Fix vgreduce to use vg_split_mdas to check sufficient mdas remain.
1440 Add (empty) orphan VGs to lvmcache during initialisation.
1441 Fix orphan VG name used for format_pool.
ad607a23 1442 Create a fid for internal orphan VGs.
d334793f 1443 Update lvmcache VG lock state for all locking types now.
8bf70e11 1444 Fix output if overriding command_names on cmdline.
5619c629 1445 Add detection of clustered mirror log capability.
9da5d7ac 1446 Add check to vg_commit() ensuring VG lock held before writing new VG metadata.
d2901a62 1447 Add validation of LV name to pvmove -n.
ec074fcf 1448 Make clvmd refresh the context correctly when lvm.conf is updated.
906935e5 1449 Add some basic internal VG lock validation.
bf7dea97 1450 Add per-command flags to control which commands use the VG metadata cache.
c6cb6ddf
AK
1451 Fix vgsplit locking of new VG (2.02.30).
1452 Avoid erroneous vgsplit error message for new VG. (2.02.29)
e283bda9 1453 Suppress duplicate message when lvresize fails because of invalid vgname.
6e210a6c 1454 Cache VG metadata internally while VG lock is held.
33842916 1455 Fix redundant lvresize message if vg doesn't exist.
611c0689 1456 Fix another allocation bug with clvmd and large node IDs.
9332d2cb 1457 Add find_lv_in_lv_list() and find_pv_in_pv_list().
2aa5120e 1458 Fix uninitialised variable in clvmd that could cause odd hangs.
4f618eba 1459 Add vgmerge tests.
052bbfba 1460 Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
43aa4637
DW
1461 Add list_move() for moving elements from one list to another.
1462 Add 'is_reserved_lvname()' for identifying hidden LVs.
83465fde 1463 Correct command name in lvmdiskscan man page.
7750a1ad 1464 clvmd no longer crashes if it sees nodeids over 50.
ed070f41 1465 Fix potential deadlock in clvmd thread handling.
dc2bdce1 1466 Refactor text format initialisation into _init_text_import.
d4ce89d9
AK
1467 Escape double quotes and backslashes in external metadata and config data.
1468 Add functions for escaping double quotes in strings.
1469 Rename count_chars_len to count_chars.
bcacf9d0
AK
1470 Use return_0 in a couple more places.
1471 Correct a function name typo in _line_append error message.
66db5dd8 1472 Include limits.h in clvmd so it compiles with newer headers.
810e5001 1473 Add VirtIO disks (virtblk) to filters.
60be88a0 1474 Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30)
4c0f4125 1475 Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
39d3ec0b
AK
1476 Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
1477 Remove redundant non-NULL tests before calling free in clvmd.c.
1478 Avoid a compiler warning: make is_orphan's parameter const.
9790f608 1479 Fix lvconvert detection of mirror conversion in progress. (2.02.30)
b1ec1f87 1480 Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30)
814d9d5b 1481 Fix 'pvs -a' to detect VGs of PVs without metadata areas.
bb097a97 1482 Divide up internal orphan volume group by format type.
08152c90 1483 Update usage message for clvmd.
39d3ec0b
AK
1484 Fix clvmd man page not to print <br> and clarified debug options.
1485 Fix lvresize to support /dev/mapper prefix in the LV name.
1486 Fix unfilled parameter passed to fsadm from lvresize.
1487 Update fsadm to call lvresize if the partition size differs (with option -l).
1488 Fix fsadm to support VG/LV names.
f2f1da18 1489
12aa1a24 1490Version 2.02.33 - 31st January 2008
8abe9ec3 1491===================================
4e9083db
AK
1492 Fix mirror log name construction during lvconvert. (2.02.30)
1493 Make monitor_dev_for_events recurse through the stack of LVs.
1494 Clean up some more compiler warnings.
67cdbd7e 1495 Some whitespace tidy-ups.
c51b9fff 1496 Use stack return macros throughout.
962b2a55 1497 Rely upon internally-cached PV labels while corresponding VG lock is held.
8abe9ec3 1498
0dff5864 1499Version 2.02.32 - 29th January 2008
6903d5b2 1500===================================
5dc6c0de 1501 Fix two check_lv_segments error messages to show whole segment.
3d13b467 1502 Refactor mirror log attachment code.
311961fd 1503 Fix internal metadata corruption in lvchange --resync. (2.02.30)
d39a99b2 1504 Fix new parameter validation in vgsplit and test mode. (2.02.30)
5a3f869f 1505 Remove redundant cnxman-socket.h file from clvmd directory.
8a19ebf4 1506 Fix pvs, vgs, lvs error exit status on some error paths.
6903d5b2 1507
0293b5f1 1508Version 2.02.31 - 19th January 2008
aced269a 1509===================================
0e0a6eb6 1510 Fix lvcreate --nosync not to wait for non-happening sync. (2.02.30)
7644c656 1511 Add very_verbose lvconvert messages.
51581d4d 1512 Avoid readahead error message with default setting of lvcreate -M1. (2.02.29)
aced269a 1513
6860fecb 1514Version 2.02.30 - 17th January 2008
ce9636b2 1515===================================
0c06de63 1516 Set default readahead to twice maximium stripe size.
bdb91441 1517 Reinstate VG extent size and stripe size defaults (halved). (2.02.29)
6860fecb 1518 Add lists of stacked LV segments using each LV to the internal metadata.
72baf0c3 1519 Change vgsplit -l (for unimplemented --list) into --maxlogicalvolumes.
fb3226a3 1520 Fix process_all_pvs to detect non-orphans with no MDAs correctly.
f6dd48b0 1521 Don't use block_on_error with mirror targets version 1.12 and above.
6860fecb 1522 Update vgsplit to accept vgcreate options when new VG is destination.
f9ddc763 1523 Update vgsplit to accept existing VG as destination.
272465ea 1524 lvconvert waits for completion of initial sync by default.
2b0968b7 1525 Refactor vgcreate for parameter validation and add tests.
c9ea4988 1526 Add new convert_lv field to lvs output.
4a898ae9 1527 Print warning when lvm tools are running as non-root.
67961c7c 1528 Add snapshot dmeventd library (enables dmeventd snapshot monitoring).
7415ef77 1529 Prevent pvcreate from overwriting MDA-less PVs belonging to active VGs.
a95892f7 1530 Fix a segfault if using pvs with --all argument. (2.02.29)
48d9a74d 1531 Update --uuid argument description in man pages.
8a77dd46 1532 Fix vgreduce PV list processing not to process every PV in the VG. (2.02.29)
ba0c495d 1533 Extend lvconvert to use polldaemon.
31e9db26 1534 Add support for stacked mirrors.
a69ab652 1535 Major restructuring of pvmove and lvconvert layer manipulation code.
f29e7ac5 1536 Replace tools/fsadm with scripts/fsadm.sh.
dd007cfd
AK
1537 Append fields to report/pvsegs_cols_verbose.
1538 Permit LV segment fields with PV segment reports.
1539 Add seg_start_pe and seg_pe_ranges to reports.
ce9636b2 1540
5e856ed1
AK
1541Version 2.02.29 - 5th December 2007
1542===================================
33032891 1543 Make clvmd backup vg metadata on remote nodes.
3da4613d 1544 Refactor pvmove allocation code.
3e50ea9e
AK
1545 Decode cluster locking state in log message.
1546 Change file locking state messages from debug to very verbose.
b6f4f0c7 1547 Fix --addtag to drop @ prefix from name.
37034fb8 1548 Stop clvmd going haywire if a pre_function fails.
e5f7352b 1549 Convert some vg_reads into vg_lock_and_reads.
223c62e7 1550 Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
204a12e5
AK
1551 Accept sizes with --readahead argument.
1552 Store size arguments as sectors internally.
df322f0b 1553 Attempt to remove incomplete LVs with lvcreate zeroing/activation problems.
a6b22cf3 1554 Add read_ahead activation code.
b4068515
AK
1555 Add activation/readahead configuration option and FMT_RESTRICTED_READAHEAD.
1556 Extend readahead arg to accept "auto" and "none".
a6b22cf3 1557 Add lv_read_ahead and lv_kernel_read_ahead fields to reports and lvdisplay.
19c86543 1558 Prevent lvconvert -s from using same LV as origin and snapshot.
00a7c302
AK
1559 Fix human-readable output of odd numbers of sectors.
1560 Add pv_mda_free and vg_mda_free fields to reports for raw text format.
2b0249ec 1561 Add LVM2 version to 'Generated by' comment in metadata.
fd4ff5d2
AK
1562 Show 'not usable' space when PV is too large for device in pvdisplay.
1563 Ignore and fix up any excessive device size found in metadata.
612548c0 1564 Fix error message when fixing up PV size in lvm2 metadata (2.02.11).
d38bf361
AK
1565 Fix orphan-related locking in pvdisplay and pvs.
1566 Fix missing VG unlocks in some pvchange error paths.
1567 Add some missing validation of VG names.
1568 Rename validate_vg_name() to validate_new_vg_name().
1569 Change orphan lock to VG_ORPHANS.
1570 Change format1 to use ORPHAN as orphan VG name.
9c1dbeb3 1571 Convert pvchange, pvdisplay, pvscan to use is_orphan()
d38bf361 1572 Add is_orphan_vg() and change all hard-coded checks to use it.
47c06763 1573 Detect md superblocks version 1.0, 1.1 and 1.2.
0283c439 1574 Add _alloc_pv() and _free_pv() from _pv_create() code and fix error paths.
1b8de4cb 1575 Add pv_dev_name() to access PV device name.
70d9f98e 1576 Add const attributes to pv accessor functions.
0283c439 1577 Refactor vg_add_snapshot() and lv_create_empty().
6aca8e92 1578 Handle new sysfs subsystem/block/devices directory structure.
5e856ed1 1579 Run test with LVM_SYSTEM_DIR pointing to private root and /dev dirs.
da08e40f 1580 Fix a bug in lvm_dump.sh checks for lvm/dmsetup binaries.
216283b6 1581 Fix underquotations in lvm_dump.sh.
479921f1 1582 Refactor lvcreate stripe and mirror parameter validation.
5e856ed1
AK
1583 Print --help output to stdout, not stderr.
1584 After a cmdline processing error, don't print help text but suggest --help.
dfef7f69 1585 Add %PVS extents option to lvresize, lvextend, and lvcreate.
b680c5c6 1586 Add 'make check' to run tests in new subdirectory 'test'.
d5f554ab 1587 Moved the obsolete test subdirectory to old-tests.
b680c5c6 1588 Cope with relative paths in configure --with-dmdir.
13aba081 1589 Remove no-longer-correct restrictions on PV arg count with stripes/mirrors.
9eea0107 1590 Fix strdup memory leak in str_list_dup().
533a024a
AK
1591 Link with -lpthread when static SELinux libraries require that.
1592 Detect command line PE values that exceed their 32-bit range.
b45b8464 1593 Include strerror string in dev_open_flags' stat failure message.
c6ea067f 1594 Move guts of pvresize into library.
2b849ab4
AK
1595 Avoid error when --corelog is provided without --mirrorlog. (2.02.28)
1596 Correct --mirrorlog argument name in man pages (not --log).
1597 Clear MIRROR_NOTSYNCED LV flag when converting from mirror to linear.
f603fe64
DW
1598 Modify lvremove to prompt for removal if LV active on other cluster nodes.
1599 Add '-f' to vgremove to force removal of VG even if LVs exist.
b45b8464 1600
230948b9
AK
1601Version 2.02.28 - 24th August 2007
1602==================================
d2fb8b66 1603 Fix clvmd logging so you can get lvm-level debugging out of it.
e935d217 1604 Introduce VG_GLOBAL lock type for vgscan/pvscan to trigger clvmd -R.
230948b9 1605 Change locking_flags from int to uint32_t.
88fc506b 1606 Fix clvmd -R, so it fully refreshes the caches.
3b3948f1 1607 Change lvconvert_mirrors to use mirror segtype not striped.
ea041b12 1608 Fix lvconvert_mirrors detection of number of existing mirrors.
230948b9 1609 Clean up numerous compiler warnings that appeared in recent releases.
21bc3664 1610 Remove several unused parameters from _allocate().
edb3374d 1611 Only permit --force, --verbose and --debug arguments to be repeated.
be684599 1612 Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
230948b9
AK
1613 Move guts of vgremove and lvremove into library, including yes_no_prompt.
1614 Allow clvmd debug to be turned on in a running daemon using clvmd -d [-C].
7a197a62 1615 Update to use autoconf 2.61, while still supporting 2.57.
230948b9
AK
1616 Add more cluster info to lvmdump.
1617 Add further const attributes throughout.
48bb503f 1618 Add support for renaming mirrored LVs.
230948b9 1619 Factor out core of lvrename() to library function.
edb3374d 1620 Add --mirrorlog argument to specify log type for mirrors.
230948b9
AK
1621 Don't attempt to monitor devices if their creation failed in _lv_activate.
1622 Don't leak a file descriptor in fcntl_lock_file() when fcntl fails.
edb3374d 1623 Replace create_dir with dm_create_dir.
230948b9 1624 Detect stream write failure reliably with lvm_fclose using dm_fclose.
3c116860 1625 Fix clvmd if compiled with gulm support. (2.02.26)
230948b9 1626 Fix lvdisplay man page to say LV size is reported in sectors, not KB.
891c3d29 1627 Add vg_lock_and_read() external library function.
8a0de6c3 1628 Fix loading of persistent cache if cache_dir is used. (2.02.23)
230948b9
AK
1629 Reduce _compare_paths lstat error message from log_error to log_very_verbose.
1630 Create util.h with last_path_component replacing strdup + basename.
bbcd2460 1631 Use gcc's printf attribute wherever possible.
230948b9 1632 In _line_append, use "sizeof buf - 1" rather than equivalent "4095".
c93e6b5f 1633 Introduce is_same_inode macro, now including a comparison of st_dev.
230948b9 1634 Don't leak a file descriptor in _lock_file() when flock fails.
3579b652 1635 Add SUN's LDOM virtual block device (vdisk) and ps3disk to filters.
03eee0e2 1636 Split metadata-external.h out from metadata.h for the tools to use.
f5840016 1637
6fb02eb2 1638Version 2.02.27 - 17th July 2007
6dee7d31 1639================================
5b7d1629 1640 Fix snapshot cow area deactivation if origin is not active. (2.02.13)
d1158c75 1641 Fix configure libdevmapper.h check when --with-dmdir is used.
0c795e2e 1642 Turn _add_pv_to_vg() into external library function add_pv_to_vg().
33e56019 1643 Add pv_by_path() external library function.
b3ae66ae 1644 Tidy clvmd-openais of redundant bits, and improve an error report.
3c21da17 1645 Cope with find_seg_by_le() failure in check_lv_segments().
fb697f28 1646 Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
d27e1233 1647 Add vg_mda_count and pv_mda_count columns to reports.
68c87619 1648 Fix dumpconfig to use log_print instead of stdout directly.
fba549f8 1649 Remove unused parameter 'fid' from _add_pv_to_vg.
68c87619
AK
1650 Add kernel and device-mapper targets versions to lvmdump.
1651 Replace BSD (r)index with C89 str(r)chr.
1652 Handle vgsplit of an entire VG as a vgrename.
1653 Reinitialise internal lvmdiskscan variables when called repeatedly.
86df68f3 1654 Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23)
69483a8a 1655 Add vg_status function and clean up vg->status in tools directory.
53c774b9 1656 Add --ignoremonitoring to disable all dmeventd interaction.
69483a8a 1657 Remove get_ prefix from get_pv_* functions.
8e2f0361 1658 clvmd-openais now uses cpg_local_get() to get nodeid, rather than Clm.
e7ddf416 1659 Print warnings to stderr instead of stdout.
6dee7d31 1660
8f1fb4ad
AK
1661Version 2.02.26 - 15th June 2007
1662================================
1471bc87 1663 Update vgcfgrestore man page.
8f1fb4ad
AK
1664 Allow keyboard interrupt during user prompts when appropriate.
1665 Remove unused clvmd system-lv code.
1666 Replace many physical_volume struct dereferences with new get_pv_* functions.
1667 Suppress a benign compile-time warning.
b496210d 1668 Convert find_pv_in_vg_by_uuid and pv_create to use PV handles.
4e5f3e73 1669 Add wrappers to some functions in preparation for external LVM library.
8f1fb4ad 1670 Add -f to vgcfgrestore to list metadata backup files.
c221b0bc 1671 Add vg_check_status to consolidate vg status checks and error messages.
5a4ba89a 1672 Add pvdisplay --maps implementation.
8f1fb4ad
AK
1673 Remove unsupported LVM1 options from vgcfgrestore man page.
1674 Update vgcfgrestore man page to show mandatory VG name.
1675 Update vgrename man page to include UUID and be consistent with lvrename.
59231b56 1676 Add (experimental) OpenAIS support to clvmd.
8f1fb4ad 1677 Fix deactivation code to follow dependencies and remove symlinks.
b3b0f199 1678 Fix and clarify vgsplit error messages.
8f1fb4ad
AK
1679 Fix a segfault in device_is_usable() if a device has no table.
1680 Add some more debug messages to clvmd startup.
1681 Misc clvmd cleanups.
ffd5c5c8 1682
e3a12d14 1683Version 2.02.25 - 27th April 2007
a8f51fa2 1684=================================
19eb95f7 1685 Fix get_config_uint64() to read a 64-bit value not a 32-bit one.
7c03887b 1686 Add -Wformat-security and change one fprintf() to fputs().
e6edd1d7 1687 Move regex functions into libdevmapper.
1bf5aae9 1688 Change some #include lines to search only standard system directories.
4f2f566b
AK
1689 Add devices/preferred_names config regex list for displayed device names.
1690 Free a temporary dir string in fcntl_lock_file() after use.
1691 Fix a dm_pool_destroy() in matcher_create().
1692 Introduce goto_bad macro.
1693 Fix warnings on x86_64 involving ptrdiff_t in log_error messages.
1694 Update pvck to include text metadata area and record detection.
1695 Add support functions for token counting in config file extracts.
1696 Update pvck to read labels on disk, with --labelsector parameter.
1697 Add count_chars and count_chars_len functions.
1698 Add /sys/block listings to lvm_dump.sh.
1699 Make lvm_dump.sh list /dev recursively.
05aa860f 1700 Fix thread race in clvmd.
17a6fc0b 1701 Add scan_sector param to label_read and _find_labeller.
4f2f566b
AK
1702 Make clvmd cope with quorum devices.
1703 Add extra internal error checking to clvmd.
662e0238 1704 Add dev_read_circular.
cc5a4e1d 1705 Add pvck command stub.
b4fb5226
AK
1706 Update lists of attribute characters in man pages.
1707 Change cling alloc policy attribute character from 'C' to l'.
5d06515c 1708 Fix creation and conversion of mirrors with tags.
851002b8
MB
1709 Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata).
1710 Split metadata areas in vgsplit properly.
a8f51fa2 1711
91dc07af
AK
1712Version 2.02.24 - 19th March 2007
1713=================================
eca7ef18 1714 Fix processing of exit status in init scripts
d330e660 1715 Fix vgremove to require at least one vg argument.
74e2acb6
AK
1716 Fix reading of striped LVs in LVM1 format.
1717 Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
b9b26011 1718 Add a few missing pieces of vgname command line validation.
9397354a 1719 Support the /dev/mapper prefix on most command lines.
13e5d242
AK
1720
1721Version 2.02.23 - 8th March 2007
1722================================
b45c9f49 1723 Fix vgrename active LV check to ignore differing vgids.
8fe54fdd 1724 Remove no-longer-used uuid_out parameter from activation info functions.
af914569 1725 Fix two more segfaults if an empty config file section encountered.
87cec8eb
AK
1726 Move .cache file into a new /etc/lvm/cache directory by default.
1727 Add devices/cache_dir & devices/cache_file_prefix, deprecating devices/cache.
1728 Create directory in fcntl_lock_file() if required.
f359c9b8 1729 Exclude readline support from lvm.static.
0558b928 1730 Fix a leak in a reporting error path (2.02.19).
2f2c9932 1731
187c689f
AK
1732Version 2.02.22 - 13th February 2007
1733====================================
d8ff86fd
AK
1734 Correct -b and -P on a couple of man pages.
1735 Add global/units to example.conf.
e09dfed8 1736 Fix loading of segment_libraries.
37fb985a
AK
1737 If a PV reappears after it was removed from its VG, make it an orphan.
1738 Don't update metadata automatically if VGIDs don't match.
aa350ef4 1739 Fix some vgreduce --removemissing command line validation.
612209c8 1740
f21f60d5 1741Version 2.02.21 - 30th January 2007
67fa4fd4 1742===================================
319e74e2 1743 Add warning to lvm2_monitoring_init_rhel4 if attempting to stop monitoring.
ce4c3310
AK
1744 Fix vgsplit to handle mirrors.
1745 Reorder fields in reporting field definitions.
898b3d4d 1746 Fix vgs to treat args as VGs even when PV fields are displayed.
fce67134 1747 Fix md signature check to handle both endiannesses.
67fa4fd4 1748
667eb775 1749Version 2.02.20 - 25th January 2007
07473c2b 1750===================================
aca04336 1751 dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors.
f247a4e7 1752 Add devices/ignore_suspended_devices to ignore suspended dm devices.
2e1b92e3
AK
1753 Add some missing close() and fclose() return code checks.
1754 Fix exit statuses of reporting tools (2.02.19).
00fc37f1 1755 Add init script for dmeventd monitoring.
20db8ffc 1756 lvm.static no longer interacts with dmeventd unless explicitly asked to.
57fc4cc0
AK
1757 Add field definitions to report help text.
1758 Remove unnecessary cmd arg from target_*monitor_events().
3329c698 1759 Add private variable to dmeventd shared library interface.
dd9927bc 1760 Long-lived processes write out persistent dev cache in refresh_toolcontext().
f72de1dc
AK
1761 Fix refresh_toolcontext() always to wipe persistent device filter cache.
1762 Add is_long_lived to toolcontext.
147b7d5e 1763 Add --clustered to man pages.
7fee061a 1764 Streamline dm_report_field_* interface.
8a37910d 1765 Change remaining dmeventd terminology 'register' to 'monitor'.
10232bd9 1766 Update reporting man pages.
147b7d5e 1767 No longer necessary to specify alignment type for report fields.
07473c2b 1768
c3afa8df 1769Version 2.02.19 - 17th January 2007
99a4014f 1770===================================
6a91a99b 1771 Fix a segfault if an empty config file section encountered.
d838a1e3 1772 Move basic reporting functions into libdevmapper.
b1ab8b00
AK
1773 Fix partition table processing after sparc changes (2.02.16).
1774 Fix cmdline PE range processing segfault (2.02.13).
02059c81 1775 Some libdevmapper-event interface changes.
8ef6eb30
AK
1776 Report dmeventd mirror monitoring status.
1777 Fix dmeventd mirror status line processing.
99a4014f 1778
96710ad8
AK
1779Version 2.02.18 - 11th January 2007
1780===================================
6b36e863 1781 Revised libdevmapper-event interface for dmeventd.
65e635b6 1782 Remove dmeventd mirror status line word limit.
3b007b27 1783 Use CFLAGS when linking so mixed sparc builds can supply -m64.
fb12fd44
AK
1784 Prevent permission changes on active mirrors.
1785 Print warning instead of error message if lvconvert cannot zero volume.
1786 Add snapshot options to lvconvert man page.
2eeb2a1f
AK
1787 dumpconfig accepts a list of configuration variables to display.
1788 Change dumpconfig to use --file to redirect output to a file.
7c0cd273 1789 Avoid vgreduce error when mirror code removes the log LV.
7cb59417 1790 Remove 3 redundant AC_MSG_RESULTs from configure.in.
e62436fc
AK
1791 Free memory in _raw_read_mda_header() error paths.
1792 Fix ambiguous vgsplit error message for split LV.
1793 Fix lvextend man page typo.
33f732c5
AK
1794 Add configure --with-dmdir to compile against a device-mapper source tree.
1795 Use no flush suspending for mirrors.
6032a223 1796 Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.
aa8a4d96 1797 Fix create mirror with name longer than 22 chars.
0ce83a83 1798 Fix some activate.c prototypes when compiled without devmapper.
0c8569ed 1799 Fix dmeventd mirror to cope if monitored device disappears.
1a42d65a 1800
dced1554
AK
1801Version 2.02.17 - 14th December 2006
1802====================================
67e6c7e7 1803 Add missing pvremove error message when device doesn't exist.
5b61ca72
AK
1804 When lvconvert allocates a mirror log, respect parallel area constraints.
1805 Use loop to iterate through the now-ordered policy list in _allocate().
1806 Check for failure to allocate just the mirror log.
1807 Introduce calc_area_multiple().
1808 Support mirror log allocation when there is only one PV: area_count now 0.
948ee3e3 1809 Fix detection of smallest area in _alloc_parallel_area() for cling policy.
699b275a 1810 Add manpage entry for clvmd -T
e3e6eba1 1811 Fix gulm operation of clvmd, including a hang when doing lvchange -aey
47436a42 1812 Fix hang in clvmd if a pre-command failed.
193992de 1813
b3bafefd
AK
1814Version 2.02.16 - 1st December 2006
1815===================================
0357f18e 1816 Fix VG clustered read locks to use PR not CR.
4dc0ec22 1817 Adjust some alignments for ia64/sparc.
6c48fe74 1818 Fix mirror segment removal to use temporary error segment.
a16f48e3
PC
1819 Always compile debug logging into clvmd.
1820 Add startup timeout to RHEL4 clvmd startup script.
bd8be78c 1821 Add -T (startup timeout) switch to clvmd.
d9cc9173 1822 Improve lvm_dump.sh robustness.
066ac2ef 1823 Update lvm2create_initrd to support gentoo.
55b5ce87 1824
efecd5c1 1825Version 2.02.15 - 21st November 2006
3b276539 1826====================================
efecd5c1 1827 Fix clvmd_init_rhel4 line truncation (2.02.14).
4eee5764 1828 Install lvmdump by default.
25375165 1829 Fix check for snapshot module when activating snapshot.
ba4f5d80 1830 Fix pvremove error path for case when PV is in use.
9f7e7709 1831 Warn if certain duplicate config file entries are seen.
15545b91 1832 Enhance lvm_dump.sh for sysreport integration and add man page.
b65e33f4 1833 Fix --autobackup argument which could never disable backups.
deb202bd 1834 Fix a label_verify error path.
3b276539 1835
9f74b2fc
AK
1836Version 2.02.14 - 10th November 2006
1837====================================
f96cde8c
AK
1838 Fix adjusted_mirror_region_size() to handle 64-bit size.
1839 Add some missing bounds checks on 32-bit extent counters.
a89d6014
AK
1840 Add Petabyte and Exabyte support.
1841 Fix lvcreate error message when 0 extents requested.
581e8111 1842 lvremove man page: volumes must be cluster inactive before being removed.
c1c16a8f
AK
1843 Protect .cache manipulations with fcntl locking.
1844 Change .cache timestamp comparisons to use ctime.
1c3c2df9 1845 Fix mirror log LV writing to set all bits in whole LV.
df52a8b5 1846 Fix clustered VG detection and default runlevels in clvmd_init_rhel4.
c8902451 1847 Fix high-level free space check for partial allocations.
7d1c3fcd 1848
ffe524cc 1849Version 2.02.13 - 27th October 2006
38a5f0b6 1850===================================
7f31917d 1851 Add couple of missing files to tools/Makefile CLEAN_TARGETS.
013577fb 1852 When adding snapshot leave cow LV mapped device active after zeroing.
99d00efa 1853 Fix a clvmd debug message.
4098f628 1854 Add dev_flush() to set_lv().
e51d50a1 1855 Add lvchange --resync.
2bdc8e12 1856 Perform high-level free space check before each allocation attempt.
77fcc207 1857 Don't allow a node to remove an LV that's exclusively active on anther node.
9766c3c9 1858 Cope if same PV is included more than once in cmdline PE range list.
b16b9c2b 1859 Set PV size to current device size if it is found to be zero.
7c5ec126 1860 Add segment parameter to target_present functions.
38a5f0b6 1861
0b0fd330 1862Version 2.02.12 - 16th October 2006
89a4e806 1863===================================
e663b4e8 1864 Fix pvdisplay to use vg_read() for non-orphans.
04dabc15 1865 Fall back to internal locking if external locking lib is missing or fails.
a590f3b6
AK
1866 Retain activation state after changing LV minor number with --force.
1867 Propagate clustered flag in vgsplit and require resizeable flag.
89a4e806 1868
181b5f00
AK
1869Version 2.02.11 - 12th October 2006
1870===================================
efa483c5 1871 Add clvmd function to return the cluster name. not used by LVM yet.
de5c82a0 1872 Add cling allocation policy.
4a2ca1b9 1873 Change _check_contiguous() to use _for_each_pv().
b6f85520
AK
1874 Extend _for_each_pv() to allow termination without error.
1875 Abstract _is_contiguous().
68d7c0e6 1876 Remove duplicated pv arg from _check_contiguous().
705eabf7 1877 Accept regionsize with lvconvert.
d547cbb0
AK
1878 Add report columns with underscore before field names ending 'size'.
1879 Correct regionsize default on lvcreate man page (MB).
e37a2415 1880 Fix clvmd bug that could cause it to die when a node with a long name crashed.
b4e2a0e1 1881 Add device size to text metadata.
209f03f2 1882 Fix format_text mda_setup pv->size and pv_setup pe_count calculations.
8d18637e 1883 Fix _for_each_pv() for mirror with core log.
92921054 1884 Add lvm_dump.sh script to create a tarball of debugging info from a system.
2a7f7fc1 1885 Capture error messages in clvmd and pass them back to the user.
7089e02c 1886 Remove unused #defines from filter-md.c.
dc9dcb3d 1887 Make clvmd restart init script wait until clvmd has died before starting it.
13583874 1888 Add -R to clvmd which tells running clvmds to reload their device cache.
6c81ed26 1889 Add LV column to reports listing kernel modules needed for activation.
1baed0e1 1890 Show available fields if report given invalid field. (e.g. lvs -o list)
8b1a3214 1891 Add timestamp functions with --disable-realtime configure option.
34fadac4 1892 Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.
5095de51 1893 Fix two potential NULL pointer derefs in error cases in vg_read().
e0a26692 1894 Separate --enable-cluster from locking lib options in lvmconf.sh.
d1a1e1a3 1895 Add a missing comma in lvcreate man page.
71fc0206 1896
19513ad8
AK
1897Version 2.02.10 - 19th September 2006
1898=====================================
13ba0f94
AK
1899 Fix lvconvert mirror change case detection logic.
1900 Fix mirror log detachment so it correctly becomes a standalone LV.
bbb06856
AK
1901 Extend _check_contiguous() to detect single-area LVs.
1902 Include mirror log (untested) in _for_each_pv() processing.
1903 Use MIRROR_LOG_SIZE constant.
1904 Remove struct seg_pvs from _for_each_pv() to generalise.
1905 Avoid adding duplicates to list of parallel PVs to avoid.
d9c6bbab
AK
1906 Fix several incorrect comparisons in parallel area avoidance code.
1907 Fix segment lengths when flattening existing parallel areas.
1908 Log existing parallel areas prior to allocation.
1909 Fix mirror log creation when activation disabled.
fe748f00 1910 Don't attempt automatic recovery without proper locking.
dc4d7417
AK
1911 When using local file locking, skip clustered VGs.
1912 Add fallback_to_clustered_locking and fallback_to_local_locking parameters.
a45da5f6
AK
1913 lvm.static uses built-in cluster locking instead of external locking.
1914 Don't attempt to load shared libraries if built statically.
1c792fad 1915 Change default locking_lib to liblvm2clusterlock.so.
08c060cf
AK
1916 Add skip_dev_dir() to process command line VGs.
1917 Stop clvmd complaining about nodes that have left the cluster.
0550c1b6 1918 Move lvm_snprintf(), split_words() and split_dm_name() into libdevmapper.
48432c88
AK
1919 Add lvconvert man page.
1920 Add mirror options to man pages.
d68336a5 1921 Prevent mirror renames.
6711231a 1922 Move CMDLIB code into separate file and record whether static build.
ade81b8a 1923
086b63ca 1924Version 2.02.09 - 17th August 2006
64c84579 1925==================================
94d501ed 1926 Fix PE_ALIGN for pagesize over 32KB.
b5d761e1 1927 Separate out LVM1_PE_ALIGN and pe_align().
916490f8 1928 Add lvm_getpagesize wrapper.
e95d8284 1929 Add --maxphysicalvolumes to vgchange.
64c84579 1930
a9a6934b
AK
1931Version 2.02.08 - 15th August 2006
1932==================================
438abca8
AK
1933 Add checks for duplicate LV name, lvid and PV id before writing metadata.
1934 Report all sanity check failures, not just the first.
9cd3426d 1935 Fix missing lockfs on first snapshot creation.
e3ad1d19 1936 Add unreliable --trustcache option to reporting commands.
8b0d546f 1937 Fix locking for mimage removal.
b813f533 1938 Fix clvmd_init_rhel4 'status' exit code.
7a21367d 1939
cecdabd9
AK
1940Version 2.02.07 - 17th July 2006
1941================================
443a8f76 1942 Fix activation logic in lvchange --persistent.
fe686a51 1943 Don't ignore persistent minor numbers when activating.
0b431b8a 1944 Use RTLD_GLOBAL when loading shared libraries.
e67ed94b 1945 Add some forgotten memlock checks to _vg_read to protect against full scans.
f1dc5cc9
AK
1946 Add mutex to dmeventd_mirror to avoid concurrent execution.
1947 Fix vgreduce --removemissing to return success if VG is already consistent.
4bfab20a 1948 Fix return code if VG specified on command line is not found.
2415c1ef
AK
1949 Fix PV tools to include orphaned PVs in default output again.
1950 Fixed unaligned access when using clvm.
9f100d60 1951 Fix an extra dev_close in a label_read error path.
4cd33f98 1952 Append patches to commit emails.
4aae7246 1953 Fix target_register_events args.
83de5aa6 1954 Prevent snapshots of mirrors.
aba30ebc
AK
1955 Add DISTCLEAN_TARGETS to make template for configure.h.
1956 More fixes to error paths.
2293567c
AK
1957 Fix lvcreate corelog validation.
1958 Add --config for overriding most config file settings from cmdline.
1959 Quote arguments when printing command line.
1960 Remove linefeed from 'initialising logging' message.
1961 Add 'Completed' debug message.
1962 Don't attempt library exit after reloading config files.
1963 Always compile with libdevmapper, even if device-mapper is disabled.
476d09d0 1964
396cbbde
AK
1965Version 2.02.06 - 12th May 2006
1966===============================
3e3d5d85
AK
1967 Propagate --monitor around cluster.
1968 Add --monitor to vgcreate and lvcreate to control dmeventd registration.
1969 Filter LCK_NONBLOCK in clvmd lock_vg.
de828433 1970 Add --nosync to lvcreate with LV flag NOTSYNCED.
49fba23c 1971 Use mirror's uuid for a core log.
aeb2c277
AK
1972 Add mirror log fault-handling policy.
1973 Improve mirror warning messages and tidy dmeventd syslog output.
526a3c21 1974 Propagate nosync flag around cluster.
532dae48 1975 Allow vgreduce to handle mirror log failures.
f17f6814 1976 Add --corelog to lvcreate and lvconvert.
5c9d70c9
AK
1977 Create a log header for replacement in-sync mirror log.
1978 Use set_lv() and dev_set() to wipe sections of devices.
1979 Add mirror_in_sync() flag to avoid unnecessary resync on activation.
898e6f8e 1980 Add mirror_library description to example.conf.
eba586f0 1981 Fix uuid_from_num() buffer overrun.
72b2cb61
AK
1982 Make SIZE_SHORT the default for display_size().
1983 Fix some memory leaks in error paths found by coverity.
1984 Use C99 struct initialisers.
1985 Move DEFS into configure.h.
1986 Clean-ups to remove miscellaneous compiler warnings.
12de747d
AK
1987 Improve stripe size validation.
1988 Increase maximum stripe size limit to physical extent size for lvm2 metadata.
2f1489a6 1989 Fix activation code to check for pre-existing mirror logs.
089ae9a5 1990 Tighten region size validation.
81b4308b 1991 Ignore empty strings in config files.
12ccdb25 1992 Require non-zero regionsize and document parameter on lvcreate man page.
26b25249
AK
1993 Invalidate cache if composition of VG changed externally.
1994
05ffaffe 1995Version 2.02.05 - 21st April 2006
c05fbac2 1996=================================
05ffaffe 1997 Fix vgid string termination in recent cache code.
c05fbac2 1998
13eadfc9 1999Version 2.02.04 - 19th April 2006
3ab3766f 2000=================================
8a2fc586
AK
2001 Check for libsepol.
2002 Add some cflow & scope support.
2003 Separate out DEFS from CFLAGS.
2004 Remove inlines and use unique function names.
3ab3766f 2005
7fae84d7
AK
2006Version 2.02.03 - 14th April 2006
2007=================================
dbd3026f 2008 vgrename accepts vgid and exported VG.
f855ac38 2009 Add --partial to pvs.
2ab16287
AK
2010 When choosing between identically-named VGs, also consider creation_host.
2011 Provide total log suppression with 2.
a5fe5a7c
AK
2012 Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.
2013 Add vgid to struct physical_volume and pass with vg_name to some functions.
e8db7023 2014 If two or more VGs are found with the same name, use one that is not exported.
f084e627 2015 Whenever vgname is captured, also capture vgid and whether exported.
cced28da 2016 Remove an incorrect unlock_vg() from process_each_lv().
76f97cd7 2017 Update extent size information in vgchange and vgcreate man pages.
ace652e6 2018 Introduce origin_from_cow() and lv_is_visible().
7810d55d 2019 pvremove without -f now fails if there's no PV label.
1c8b86c7 2020 Support lvconvert -s.
1a01b0c1 2021 Suppress locking library load failure message if --ignorelockingfailure.
9f5d8283 2022 Propagate partial mode around cluster.
d6207798 2023 Fix archive file expiration.
ed2b1bc5 2024 Fix dmeventd build.
e7f55bb4 2025 clvmd now uses libcman rather than cman ioctls.
a3167672 2026 clvmd will allow new cman to shutdown on request.
ed2b1bc5 2027
b5f90860
AK
2028Version 2.02.02 - 7th February 2006
2029===================================
f0c9fe01 2030 Add %.so: %.a make template rule.
e4c11ad1
AK
2031 Switchover library building to use LIB_SUFFIX.
2032 Only do lockfs filesystem sync when suspending snapshots.
bfe2b548 2033 Always print warning if activation is disabled.
079ac15e 2034 vgreduce removes mirror images.
c9dcba6b 2035 Add --mirrorsonly to vgreduce.
3fc3e48c 2036 vgreduce replaces active LVs with error segment before removing them.
bbf83db1
AK
2037 Set block_on_error parameter if available.
2038 Add target_version.
cad9fac9 2039 Add details to format1 'Invalid LV in extent map' error message.
e6493477 2040 Fix lvscan snapshot full display.
15d91f5a 2041 Bring lvdisplay man page example into line.
06f62ad1 2042 Add mirror dmeventd library.
e2619d9e
AK
2043 Add some activation logic to remove_mirror_images().
2044 lvconvert can remove specified PVs from a mirror.
2045 lvconvert turns an existing LV into a mirror.
2046 Allow signed mirrors arguments.
2047 Move create_mirror_log() into toollib.
c27920b1 2048 Determine parallel PVs to avoid with ALLOC_NORMAL allocation.
2fb492f6 2049 Fix lv_empty.
ebf78e7d 2050
20e5495e 2051Version 2.02.01 - 23rd November 2005
0c32d9db 2052====================================
f3ce273f 2053 Fix lvdisplay cmdline to accept snapshots.
349216a6 2054 Fix open RO->RW promotion.
749caf94 2055 Fix missing vg_revert in lvcreate error path.
0c32d9db 2056
da5edd8e
AK
2057Version 2.02.00 - 10th November 2005
2058====================================
b79c897e 2059 Extend allocation areas to avoid overflow with contiguous with other PVs.
ad6b0ebb
AK
2060 Stop lvcreate attempting to wipe zero or error segments.
2061 Added new lvs table attributes.
2062 Separated out activation preload.
2063 Moved activation functions into libdevmapper.
2064 Fixed build_dm_name.
2065 Add return macros.
436d3694 2066 Added xen xvd devices.
7a593325 2067 Clear up precommitted metadata better.
3bf5f6f5 2068 A pvresize implementation.
a78c7609 2069 Fix contiguous allocation when there are no preceding segments.
5727a8fa 2070 Add mirror_seg pointer to lv_segment struct.
5f5355cb 2071 Only keep a device open if it's known to belong to a locked VG.
f9a8e6ee 2072 Fix lvdisplay to show all mirror destinations.
76c8ddc0 2073 Replacement suspend code using libdevmapper dependency tree.
352a99b9
AK
2074 Add DEFS to make.tmpl.
2075 Use dm_is_dm_major instead of local copy.
2076 Allow mapped devices to be used as PVs.
ffbfce30 2077 Move set_selinux_context into libdevmapper.
78aa12e1
AK
2078 Fix automatic text metadata buffer expansion (using macro).
2079 Cache formatted text metadata buffer between metadata area writes.
31b5c6e6 2080 Add pe_start field to pvs.
03b49fe1 2081 Add 'LVM-' prefix to uuids.
06820362 2082 Split lv_segment_area from lv_segment to permit extension.
9fdc84c3 2083 Replacement deactivation code using libdevmapper dependency tree.
f894b4b1 2084 Simplify dev_manager_info().
a653923f 2085 Attempt to load missing targets using modprobe.
191abde9 2086 Add -a to lvscan.
2262b320
AK
2087 Move mknodes into libdevmapper.
2088 Move bitset, hash, pool and dbg_malloc into libdevmapper.
58d83f1a 2089
9aa2fec0
AK
2090Version 2.01.15 - 16th October 2005
2091===================================
9b02bdbc 2092 Refuse to run pvcreate/pvremove on devices we can't open exclusively.
9c9e30cd 2093 Use ORPHAN lock definition throughout.
0858a992 2094 Validate chunksize in lvcreate.
2b96712a 2095 Reduce chunksize limit to 512k.
88d2bdc6 2096 Fix chunksize field in reports.
540b3799 2097 Don't hide snapshots from default 'lvs' output.
68366c99
AK
2098 Add is_dm_major() for use in duplicate device detection in lvmcache_add().
2099 Really switch device number in lvmcache when it says it is doing so.
2100 Option for bitset memory allocation using malloc as well as pool.
dbb43034 2101 Don't assume exactly two mirrors when parsing mirror status.
40ec1e8a 2102 Suppress fsync() error message on filesystems that don't support it.
ae9c3f16
AK
2103 Fix yes_no_prompt() error handling.
2104 Add lvm.conf comment warning against multiple filter lines.
721b61a4 2105 Tidy lvmconf.sh.
fd0eec20 2106 Add format1 dev_write debug messages.
3d387697 2107 Add clustered VG attribute to report.
2d9e596f 2108 Move lvconvert parameters into struct lvconvert_params.
4c60a352 2109 Add clustered VG flag to LV lock requests.
0fb173aa 2110 Change LV locking macros to take lv instead of lvid.
07d31831
AK
2111 Prepend 'cluster' activation parameter to mirror log when appropriate.
2112 Pass exclusive flag to lv_activate and on to target activation code.
2113 Prevent snapshot creation in a clustered VG for now.
fb9d44da 2114 Factor out adjusted_mirror_region_size() and generate_log_name_format().
19763200 2115 Move compose_log_line() into mirror directory.
4bf57ace 2116 Factor out _get_library_path().
0c09c9d9 2117 Don't kill idling clvmd threads.
fe6c7862 2118 clvmd no longer takes out locks for non-clustered LVs.
0b63cc1e 2119 Recognise ATA over Ethernet (aoe) devices.
3bb7a8c8
AK
2120
2121Version 2.01.14 - 4th August 2005
2122=================================
190f6945 2123 Fix lvconvert PV parameter in help string.
78a352c2 2124 Prevent snapshots getting activated in a clustered VG.
a4be2c01 2125 Separate out _build_dev_string.
a9b5af1d
AK
2126 Move zero_lv to toollib.
2127 Fix pool format handler to work with pv segment code.
d87b3a61 2128
42043c23 2129Version 2.01.13 - 13th July 2005
f92853b4 2130================================
0440a206
AK
2131 Fix pvmove segment splitting.
2132 Abstract vg_validate.
10b44b2d 2133 Only make one attempt at contiguous allocation.
4f878105
AK
2134 Fix lvm1 format metadata read.
2135 Fix lvm1 format non-mirror lvcreate.
f92853b4 2136
1956b7be 2137Version 2.01.12 - 14th June 2005
3a373791 2138================================
5e947dac 2139 Various allocation-related pvmove fixes.
1956b7be
AK
2140 Log an error if clvmd can't resolve a host name got from CCS.
2141 Fix potential spin loop in clvmd.
3a373791 2142
5e2a6b8f
AK
2143Version 2.01.11 - 13th June 2005
2144================================
5e947dac 2145 Added lvmconf.sh.
56c3d1f7
AK
2146 Use matchpathcon mode parameter.
2147 Don't defer closing dead FDs in clvmd.
5748cb17 2148 Remove hard-coded 64k text metadata writing restriction.
8b80d2a5 2149 Make VG name restrictions consistent.
1a1f3d3e 2150 Introduce lvconvert. So far only removes mirror images.
ffb0e538 2151 Allow mirror images to be resized.
c77de777 2152 Allow mirror images to have more than one segment.
8211a13c
AK
2153 Centralise restrictions on LV names.
2154 Always insert an intermediate layer for mirrors.
2155 Suppress hidden LVs from reports unless --all is given.
2156 Use square brackets for hidden LVs in reports.
60f13f01
AK
2157 Allow the creation of mirrors with contiguous extents.
2158 Always perform sanity checks against metadata before committing it to disk.
2159 Split lv_extend into two steps: choosing extents + allocation to LV(s).
2160 Add mirror log region size to metadata.
2161 Use list_iterate_items throughout and add list*back macros.
2162 Introduce seg_ macros to access areas.
2163 Add segtype_is_ macros.
2164 Support tiny metadata areas for pool conversions.
2165 Mirror activation handles disk log as well as core.
2166 Activation code recognises mirror log dependency.
2167 Add mirror_log and regionsize fields to report.
bd236f65 2168 Fix non-orphan pvchange -u.
21ca3b12 2169 Fix vgmerge to handle duplicate LVIDs.
7ac8c238 2170 Move archiver code from tools into library.
24e65464 2171 vgscan/change/display/vgs automatically create metadata backups if needed.
e7c47a5d 2172 Merge cloned allocation functions.
0888dc43 2173 Fix contiguous allocation policy with linear.
17ae61cc 2174 Cope with missing format1 PVs again.
7f2def9e
AK
2175 Remove lists of free PV segments.
2176 Simplify pv_maps code and remove slow bitset algorithm.
2177 Red-Hat-ify the clvmd rhel4 initscript.
c44c04a6 2178 %Zu->%zu
c708ec79 2179 Fix loopfiles alias alloc & mem debugging.
4d122676 2180 Un-inline dbg_strdup.
32469fb2
AK
2181 lv_reduce tidying.
2182 Remove some unnecessary parameters.
2183 Introduce seg_is macros.
b8e2ad3d 2184
f81656fd
AK
2185Version 2.01.10 - 3rd May 2005
2186==============================
abe198c0 2187 Don't create backup and archive dirs till needed.
15db9fcf
AK
2188 Reinstate full PV size when removing from VG.
2189 Support loopfiles for testing.
e40d124e 2190 Tidy lv_segment interface.
15db9fcf 2191 pv_segment support.
66278a80 2192 vgchange --physicalextentsize
90395b8d 2193 Internal snapshot restructuring.
69b2cc0e 2194 Remove unused internal non-persistent snapshot option.
864de9ce 2195 Allow offline extension of snapshot volumes.
367b9cb1 2196 Move from 2-step to 3-step on-disk metadata commit.
864de9ce 2197 Scan ramdisks too and allow non-O_DIRECT fallback.
1128f56b 2198 Annotate, tidy and extend list.h.
1165258c 2199 Alignment tidying.
2b7e4013 2200 Make clvmd work around some "bugs" in gulm's node state notifications.
30bda776 2201 Tidy clvmd's SIGHUP handler
4a0623f9 2202
37baa586
AK
2203Version 2.01.09 - 4th April 2005
2204================================
0a0f13e6 2205 Add --ignorelockingfailure to vgmknodes.
11270d07 2206 clvmd: Don't allow user operations to start until the lvm thread is fully up.
a478de3d 2207 clvmd-gulm: set KEEPALIVE on sockets.
11270d07 2208
c8f9c82d
AK
2209Version 2.01.08 - 22nd March 2005
2210=================================
343a8c92 2211 Add clustered attribute so vgchange can identify clustered VGs w/o locking.
e5b836d2 2212 Improve detection of external changes affecting internal cache.
162d85b9 2213 Add 'already in device cache' debug message.
200ef4db 2214 Add -a to pvdisplay -C.
0aa8e5be 2215 Avoid rmdir opendir error messsages when dir was already removed.
779b7713 2216 Tighten signal handlers.
7e0b7fd0 2217 Avoid some compiler warnings.
e5def0ba 2218 Additional rename failure error message.
1cbfe699 2219 read/write may be macros.
02c6d3f2 2220 clvmd: don't take out lvm thread lock at startup, it only protects jobs list.
47de3990 2221
b9565b40 2222Version 2.01.07 - 8th March 2005
4c908521 2223================================
b9565b40 2224 Cope with new devices appearing by rescanning /dev if a uuid can't be found.
8f5d81cb 2225 Remove DESTDIR from LVM_SHARED_PATH.
3329bbfd
PC
2226 clvmd fixes: make FDs close-on-exec
2227 gulm unlocks VG & orphan locks at startup in case they are stale
2228 gulm now unlocks VG & orphan locks if client dies.
4c908521 2229
9a56fc81
AK
2230Version 2.01.06 - 1st March 2005
2231================================
aa70fe8b 2232 Suppress 'open failed' error messages during scanning.
432cd1e4 2233 Option to suppress warnings of file descriptors left open.
f3b0ea28 2234 Fix default value of metadatacopies in documentation (2->1).
ce1aa2c3 2235 Fix clvmd-gulm locking.
eb3037dd
PC
2236 ./configure --enable-debug now enables debugging code in clvmd.
2237 Fix clvmd-gulm node up/down code so it actually works.
2238 clvmd-gulm now releases locks when shut down.
8b307a08 2239
8e3a97ba
AK
2240Version 2.01.05 - 18th February 2005
2241====================================
2242 Static binary invokes dynamic binary if appropriate.
a3dfa1c7 2243 Make clvmd config check a little more tolerant.
c9808c32 2244 gulm clvmd can now cope with >1 message arriving in a TCP message.
50e3a3f3 2245
f1b2dad4 2246Version 2.01.04 - 9th February 2005
939a307d 2247===================================
f1b2dad4
AK
2248 Add fixed offset to imported pool minor numbers.
2249 Update binary pathnames in clvmd_init_rhel4.
3ef1acee 2250 lvm2cmd.so should skip the check for open fds.
421c2a6a 2251 Remove unused -f from pvmove.
28b4320c 2252 Gulm clvmd doesn't report "connection refused" errors.
d9656543 2253 clvmd does a basic config file sanity check at startup.
ceda2b14 2254 Fix potential thread shutdown race in clvmd.
939a307d 2255
07a2b9f8 2256Version 2.01.03 - 1st February 2005
2efec8b2 2257===================================
274c88be 2258 More 64-bit display/report fixes.
51c2a813 2259 More informative startup mesg if can't create /etc/lvm.
7851b13b 2260 Fix snapshot device size bug (since 2.01.01).
c9f9a8b2 2261 clvmd announces startup and cluster connection in syslog.
4e224cf0 2262 Gulm clvmd doesn't hang trying to talk to a rebooted node.
9549da27 2263 Gulm clvmd doesn't print cman error on startup.
2efec8b2 2264
a918e733 2265Version 2.01.02 - 21st January 2005
c44c015a 2266===================================
eaafeaaa 2267 Update clvmd_init_rhel4: use lvm.static and don't load dlm.
ed2799e7 2268 Fix some size_t printing.
894a05ff 2269 Fix 64 bit xlate consts.
da73b38d 2270 Split out pool sptype_names to avoid unused const.
52f9afec 2271 Always fail if random id generation fails.
c44c015a 2272 Recognise gnbd devices.
6f4d25ec
PC
2273 Fix clvmd startup bug introduced in cman/gulm amalgamation.
2274 Improve reporting of node-specific locking errors.
c44c015a 2275
5d0b9f47 2276Version 2.01.01 - 19th January 2005
34d9b431 2277===================================
5d0b9f47 2278 Fix clvmd lv_info_by_lvid open_count.
c45a8a2c 2279 Store snapshot and origin sizes separately.
73a9487f 2280 Update vgcreate man page.
34d9b431 2281
3833b9cc
AK
2282Version 2.01.00 - 17th January 2005
2283===================================
73543ee7 2284 Fix vgscan metadata auto-correction.
e9c761b8 2285 Only ask libdevmapper for open_count when we need it.
bfe848e1 2286 Adjust RHEL4 clvmd init script priority.
5c7fc7c4 2287 Enable building of CMAN & GULM versions of clvmd into a single binary
968b11a9 2288
b7b17625
AK
2289Version 2.00.33 - 7th January 2005
2290==================================
2245e1c4 2291 pvcreate wipes first 4 sectors unless given --zero n.
a057a834 2292 gulm clvmd now uses new ccsd key names.
67443fad 2293 gulm clvmd now doesn't ignore the first node in cluster.conf
0d194755
PC
2294 Improve clvmd failure message if it's already running.
2295 Allow user to kill clvmd during initialisation.
b9fb9b20 2296 Fix off-by-one error in cluster_locking that could cause read hangs.
a057a834 2297
01a0beed 2298Version 2.00.32 - 22nd December 2004
158fe3d3 2299====================================
7e9e9502 2300 Drop static/dl restriction for now.
01a0beed 2301 Fix an error fprintf.
bc0d0ce0 2302 Fix vgdisplay -s. Breaks (undocumented) lvs/pvs/vgs -s instead for now.
165f49ba 2303 Fix device reference counting on re-opens.
f6ab00eb 2304 Ignore sysfs symlinks when DT_UNKNOWN.
57b08371 2305 Add clvmd init script for RHEL4.
d46fd67f 2306 Skip devices that are too small to be PVs.
8c9a1d6a 2307 Fix pvchange -x segfault with lvm2-format orphan.
9ec48461 2308 Cope with empty msdos partition tables.
db1cd377 2309 Add CONTRIBUTORS file.
158fe3d3 2310
9a2abb82 2311Version 2.00.31 - 12th December 2004
6aad6545 2312====================================
9a2abb82 2313 Reopen RO file descriptors RW if necessary.
6aad6545 2314
c4bb9aa6 2315Version 2.00.30 - 10th December 2004
0ef6cc3f 2316====================================
09a7dce6
AK
2317 Additional device-handling debug messages.
2318 Additional verbosity level -vvvv includes line numbers and backtraces.
2319 Verbose messages now go to stderr not stdout.
2320 Close any stray file descriptors before starting.
2321 Refine partitionable checks for certain device types.
2322 Allow devices/types to override built-ins.
21c42c7f 2323 Fix lvreduce man page .i->.I
80b04895 2324 Fix vgsplit man page title.
db7e9905 2325 Fix clvmd man makefile.
39de4a2a
AK
2326 Extend dev_open logging.
2327 Make clvmd_fix_conf.sh UNDOable.
0ef6cc3f 2328
66f04084
AK
2329Version 2.00.29 - 27th November 2004
2330====================================
2331 xlate compilation fix.
2332
bbdab3fc 2333Version 2.00.28 - 27th November 2004
a266258f 2334====================================
bbdab3fc 2335 Fix partition table & md signature detection.
a266258f
AK
2336 Minor configure/makefile tidy.
2337 Export version.h from tools for clvmd.
2338
2e605167 2339Version 2.00.27 - 24th November 2004
a614641a 2340====================================
c3a4c63c 2341 Trap large memory allocation requests.
2e605167 2342 Fix to partition table detection code.
7f1e8db7 2343 Improve filter debug mesgs.
838ebb83 2344 Make clvmd_fix_conf.sh UNDOable
a614641a 2345
d528aaa6
AK
2346Version 2.00.26 - 23rd November 2004
2347====================================
bd46a496 2348 Improve pool debugging stats.
985ef461 2349 Detect partition table signature.
5ab925de 2350 pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.)
b2dd0bb1 2351 Separate out md superblock detection code.
0ec78e98
AK
2352 Prevent snapshot origin resizing.
2353 Improve a vgremove error message.
fcac0642
AK
2354 Update some man pages.
2355 Allow y/n with -ae args (exclusive activation).
cb8920e6 2356 Fixes to lvcreate vgname parsing.
56f5c04d 2357 Fix dm_name string size calculation.
bfd4b014 2358 Improve clvmd error reporting during startup.
cf541774 2359 Make clvmd cope with large gaps in node numbers IDs.
bfd4b014 2360 Make clvmd initialisation cope better with debugging output.
63bea03e 2361 Tidy clvmd socket callbacks so all work happens outside main loop.
3d4159b6 2362 clvmd -V now displays lvm version too.
b1098701 2363 Add optional gulm build for clvmd
b44dc25e 2364
c3c9d9b0 2365Version 2.00.25 - 29th September 2004
f2b2f485 2366=====================================
be495a46
AK
2367 Fix return code from rm_link for vgmknodes.
2368 Make clvmd LV hash table thread-safe.
c3c9d9b0
AK
2369 Fix clvmd locking so it will lock out multiple users on the same node.
2370 Fix clvmd VG locking to it can cope with multiple VG locks.
2371 Remove spurious trailing dot in lvreduce man page.
2372 Fix vgremove locking.
f2b2f485 2373
f663e437 2374Version 2.00.24 - 16th September 2004
5b3d93c8 2375=====================================
2b176f90 2376 Fix pool_empty so it really does empty the memory pool.
c4ddb31a 2377 Rename old segtypes files to segtype.
e26c4fd2
AK
2378 Some fixes to memory debugging code.
2379 Exclude internal commands formats & segtypes from install.
5b3d93c8 2380
47ded66e
AK
2381Version 2.00.23 - 15th September 2004
2382=====================================
7f64c8e5 2383 Export dm name build & split functions.
60bd7179 2384 Use O_NOATIME on devices if available.
19d1e710 2385 Write log message when each segtype/format gets initialised.
156dd4f1 2386 New commands 'segtypes' and 'formats'.
17d1ae7e 2387 Suppress pvmove abort message in test mode.
b9ade4bc 2388 Improve pvcreate/remove device not found error message.
00b47204 2389 Allow pvmove to move data within the same PV.
05503c5e 2390 Describe how pvmove works on man page.
68eb9e3b 2391 Test for incompatible format/segtype combinations in lv_extend.
075ab744
PC
2392 Fix lvchange example on man page.
2393
6e047bb5
AK
2394Version 2.00.22 - 3rd September 2004
2395====================================
b588726e 2396 Fix /dev/vgname perms.
f15c75cb
AK
2397 Restructure xlate.h.
2398 Add clvmd man page.
9c2f42bd 2399
311cea83
AK
2400Version 2.00.21 - 19th August 2004
2401==================================
2402 Update cnxman-socket.h from cman.
acac21c4 2403 Recognise iseries/vd devices.
cab8ea7c 2404 Use 'make install_cluster' to install cluster extensions only.
cf076dd3 2405 Cope with DT_UNKNOWN in sysfs.
392b28ec
AK
2406 Fix extents_moved metadata size comment.
2407 Remove duplicate line in pvremove help text.
2408 Support variable mirror region size.
2409 Support PE ranges in pvmove source PV.
2410 Fixes to as-yet-unused LV segment splitting code.
eabaa339 2411 Change alloc_areas to pe_ranges and allow suppression of availability checks.
a303dcde 2412 Add dev_size column to pvs.
5fd24a89 2413 Add report columns for in-kernel device number.
3b55d300 2414
ad6254c5
AK
2415Version 2.00.20 - 3 July 2004
2416=============================
2417 More autoconf fixes.
8bad0339 2418 Fix device number handling for 2.6 kernels.
8630c7fb 2419
8ce0cbda 2420Version 2.00.19 - 29 June 2004
2e15e5e4 2421==============================
8ce0cbda
AK
2422 Reduce severity of setlocale failure message.
2423 Recognise argv[0] "initrd-lvm" (pld-linux).
2424 Make -O2 configurable.
80992638
AK
2425 Added --disable-selinux to configure script.
2426 LD_FLAGS->LDFLAGS & LD_DEPS->LDDEPS in configure script.
2427 Add init_debug to clvmd.
2e15e5e4 2428
d3c8211f
AK
2429Version 2.00.18 - 24 June 2004
2430==============================
88be836f 2431 Fix vgchange activation.
d3c8211f
AK
2432 Add cluster support.
2433
809fae91
AK
2434Version 2.00.17 - 20 June 2004
2435==============================
2436 configure --enable-fsadm to try out fsadm. fsadm is not tested yet.
c29d2465 2437 Display all filtered devices, not just PVs, with pvs -a.
01c263e9 2438 Fix sync_dir() when no / in filename
8d267798 2439 vgcfgbackup -f accepts template with %s for VG name.
374df1cf 2440 Extend hash functions to handle non-null-terminated data.
b86ef8e2 2441 Add local activation support.
b7d0982a 2442 Tidy relative paths in makefile includes.
1a9ea74d 2443 fsadm support for fsck and resizing - needs testing.
d8ac0fbc 2444 Add read-only GFS pool support.
8c670f83 2445 Add lvm2create_initrd script from http://poochiereds.net/svn/lvm2/
30bab85b 2446 Fix rounding of large diplayed sizes.
7d36b514 2447 Suppress decimal point when using units of sectors/bytes.
abaf083d 2448 Additional kernel target checks before pvmove & snapshot creation.
2ea0f30f 2449 Add i2o_block.
abaf083d 2450
ea556d1f 2451Version 2.00.16 - 24 May 2004
25579907 2452=============================
bfa258b3 2453 Set area_count within alloc_lv_segment.
7f0dc9c4 2454 Remove error labels from lvresize.
199fa12a 2455 Fix a pvs error path.
36cfd887 2456 xxchange -ae for exclusive activation.
29e94d95 2457 Don't return non-zero status if there aren't any volume groups.
a0a23eff
AK
2458 Add --alloc argument to tools.
2459 Rename allocation policies to contiguous, normal, anywhere, inherit.
2460 nextfree becomes normal; anywhere isn't implemented yet.
2461 LV inherits allocation policy from VG. Defaults: LV - inherit; VG - normal
2462 Additional status character added to vgs to indicate allocation policy.
b61702ce 2463 Add reset_fn to external_locking.
e0a86d8c
AK
2464 Ensure presence of virtual targets before attempting activating.
2465 Attempt to fix resizing of snapshot origins.
241913fe 2466 Restructure lvresize, bringing it closer to lvcreate.
6925cbe6 2467 A quick sanity check on vg_disk struct when read in. More checks needed.
ff4b8b64 2468 Only include visible LVs in active/open counts.
1832f310
AK
2469 Add virtual segment types, zero and error. A large sparse device can be
2470constructed as a writeable snapshot of a large zero segment.
2471 Add --type to lvcreate/resize.
1d2ebf62
AK
2472 Push lv_create & alloc policy up to tool level.
2473 Fix pvdisplay return code.
e3adcd79 2474 Detect invalid LV names in arg lists.
0e3d9452
AK
2475 Reporting uses line-at-a-time output.
2476 lvm2 format sets unlimited_vols format flag.
ea601b75
AK
2477 Internal-only metadata flag support.
2478 Basic checking for presence of device-mapper targets.
cb919290 2479 Separate out polldaemon.
23289e6d
AK
2480 Revise internal locking semantics.
2481 Move find_pv_by_name to library.
0b2b87b7
AK
2482 Rename move->copy.
2483 Add devices to segments report.
4922197a
AK
2484 Begin separating out segment code. There's a lot of change here.
2485 Compress any (obsolete) long LVM1 pvids encountered.
25579907
AK
2486 Support for tagged config files.
2487 Don't abort operations if selinux present but disabled.
2488 Fix typo in configure which left HAVE_LIBDL unset.
2489
a38df97f
AK
2490Version 2.00.15 - 19 Apr 2004
2491=============================
2492 configure --with-owner= --with-group= to avoid -o and -g args to 'install'
2493
96185e9c
AK
2494Version 2.00.14 - 16 Apr 2004
2495=============================
2496 Use 64-bit file functions by default.
2497
01c6121b 2498Version 2.00.13 - 16 Apr 2004
121c5c06 2499=============================
01c6121b
AK
2500 Set devices/md_component_detection = 1 to ignore devices containing md
2501 superblocks. [Luca Berra]
121c5c06
AK
2502 Ignore error setting selinux file context if fs doesn't support it.
2503
a218a29c
AK
2504Version 2.00.12 - 14 Apr 2004
2505=============================
4563e036
AK
2506 Install a default lvm.conf into /etc/lvm if there isn't one already.
2507 Allow different installation dir for lvm.static (configure --staticdir=)
2508 Fix inverted selinux error check.
2509 Recognise power2 in /proc/devices.
2510 Fix counting in lvs_in_vg_opened. [It ignored devices open more than once.]
2511
e5b28125
AK
2512Version 2.00.11 - 8 Apr 2004
2513============================
2514 Set fallback_to_lvm1 in lvm.conf (or configure --enable-lvm1_fallback)
2515 to run lvm1 binaries if running a 2.4 kernel without device-mapper.
2516
0d0b3357 2517Version 2.00.10 - 7 Apr 2004
35030bb0
AK
2518============================
2519 More fixes for static build.
0d0b3357
AK
2520 Add basic selinux support.
2521 Fix sysfs detection.
35030bb0 2522
6b493d07
AK
2523Version 2.00.09 - 31 Mar 2004
2524=============================
cd242223
AK
2525 Update copyright notices for Red Hat.
2526 Fix vgmknodes to remove dud /dev/mapper entries. (libdevmapper update reqd).
2527 Add LVM1-style colon output to vgdisplay.
2528 lvchange --refresh to reload active LVs.
2529 Add string display to memory leak dump.
2530 Add locking flags & memlock option.
2531 Add list_versions to library.
2532 Ignore open hidden LVs when checking if deactivation is OK.
2533 Suppress move percentage when device inactive.
2534 Add lv_info_by_lvid.
2535 Various tidy-ups to the build process.
2536 Rebaseline internal verbose level.
2537 Add --nolocking option for read operations if locking is failing.
2538 Add option to compile into a library.
2539 When compiled without libdevmapper, only print warning message once.
2540 Fix lvreduce PV extent calculations.
2541 Fix DESTDIR to work with configure path overrides.
2542 Always use / as config file separator & rename internal config file variables.
2543 Add support for tagging PV/VG/LVs and hosts.
2544 Fix rare bug in recognition of long cmdline argument forms.
2545 Add basic internationalisation infrastructure.
2546 Don't recurse symlinked dirs such as /dev/fd on 2.6 kernels.
2547 Update autoconf files.
2548 Add sysfs block device filtering for 2.6 kernels.
2549 Update refs for move to sources.redhat.com.
2550
f74d51d9
AK
2551Friday 14th November 2003
2552=========================
2553Some bug fixes & minor enhancements, including:
2554 Backwards compatibility with LVM1 metadata improved.
2555 Missing man pages written.
2556 Tool error codes made more consistent.
2557 vgmknodes written.
2558 O_DIRECT can be turned off if it doesn't work in your kernel.
b2bb7264 2559 dumpconfig to display the active configuration file
f74d51d9
AK
2560
2561You need to update libdevmapper before using 'vgmknodes' or 'vgscan --mknodes'.
2562If your root filesystem is on an LV, you should run one of those two
57015b12 2563commands to fix up the special files in /dev in your real root filesystem
f74d51d9
AK
2564after finishing with your initrd. Also, remember you can use
2565'vgchange --ignorelockingfailure' on your initrd if the tool fails because
2566it can't write a lock file to a read-only filesystem.
2567
541f8753
AK
2568Wednesday 30th April 2003
2569=========================
2570A pvmove implementation is now available for the new metadata format.
2571
2572When running a command that allocates space (e.g. lvcreate), you can now
57015b12 2573restrict not only which disk(s) may be used but also the Physical Extents
541f8753
AK
2574on those disks. e.g. lvcreate -L 10 vg1 /dev/hda6:1000-2000:3000-4000
2575
2576
2577Monday 18th November 2002
5a52dca9
AK
2578========================
2579
2580The new format of LVM metadata is ready for you to test!
2581 We expect it to be more efficient and more robust than the original format.
2582 It's more compact and supports transactional changes and replication.
2583 Should things go wrong on a system, it's human-readable (and editable).
2584
57015b12 2585Please report any problems you find to the mailing list,
5a52dca9
AK
2586linux-lvm@sistina.com. The software has NOT yet been thoroughly
2587tested and so quite possibly there'll still be some bugs in it.
2588Be aware of the disclaimer in the COPYING file.
2589
57015b12 2590While testing, we recommend turning logging on in the configuration file
5a52dca9
AK
2591to provide us with diagnostic information:
2592 log {
2593 file="/tmp/lvm2.log"
541f8753 2594 level=7
5518374b 2595 activation=1
5a52dca9
AK
2596 }
2597
2598You should schedule regular backups of your configuration file and
2599metadata backups and archives (normally kept under /etc/lvm).
2600
57015b12 2601Please read docs/example.conf and "man lvm.conf" to find out more about
5a52dca9
AK
2602the configuration file.
2603
2604To convert an existing volume group called vg1 to the new format using
2605the default settings, use "vgconvert -M2 vg1". See "man vgconvert".
2606
2607-M (or --metadatatype in its long form) is a new flag to indicate which
2608format of metadata the command should use for anything it creates.
2609Currently, the valid types are "lvm1" and "lvm2" and they can be
2610abbreviated to "1" and "2" respectively. The default value for this
2611flag can be changed in the global section in the config file.
2612
2613Backwards-compatible support for the original LVM1 metadata format is
2614maintained, but it can be moved into a shared library or removed
2615completely with configure's --with-lvm1 option.
2616
2617Under LVM2, the basic unit of metadata is the volume group. Different
2618volume groups can use different formats of metadata - vg1 could use
2619the original LVM1 format while vg2 used the new format - but you can't
2620mix formats within a volume group. So to add a PV to an LVM2-format
2621volume group you must run "pvcreate -M2" on it, followed by "vgextend".
2622
2623With LVM2-format metadata, lvextend will let you specify striping
2624parameters. So an LV could consist of two or more "segments" - the
2625first segment could have 3 stripes while the second segment has just 2.
2626
2627LVM2 maintains a backup of the current metadata for each volume group
2628in /etc/lvm/backup, and puts copies of previous versions in
2629/etc/lvm/archive. "vgcfgbackup" and "vgcfgrestore" can be used to
57015b12 2630create and restore from these files. If you fully understand what
5a52dca9
AK
2631you're doing, metadata can be changed by editing a copy of a current
2632backup file and using vgcfgrestore to reload it.
2633
2634Please read the pvcreate man page for more information on the new
2635format for metadata.
2636
2637All tools that can change things have a --test flag which can be used
2638to check the effect of a set of cmdline args without really making the
2639changes.
2640
2641
2642What's not finished?
2643====================
2644The internal cache. If you turn on debugging output you'll see lots of
914c9723 2645repeated messages, many of which will eventually get optimised out.
5a52dca9 2646
57015b12
JM
2647--test sometimes causes a command to fail (e.g. vgconvert --test) even
2648though the real command would work: again, fixing this is waiting for
5a52dca9
AK
2649the work on the cache.
2650
2651Several of the tools do not yet contain the logic to handle full
2652recovery: combinations of pvcreate and vgcfgrestore may sometimes be
2653needed to restore metadata if a tool gets interrupted or crashes or
2654finds something unexpected. This applies particularly to tools that
2655work on more than one volume group at once (e.g. vgsplit).
2656
2657Display output. Some metadata information cannot yet be displayed.
5a52dca9
AK
2658
2659Recovery tools to salvage "lost" metadata directly from the disks:
2660but we hope the new format will mean such tools are hardly ever needed!
This page took 0.559674 seconds and 5 git commands to generate.