186d7f5d3SJohn MarinoVersion 2.02.56 - 24th November 2009 286d7f5d3SJohn Marino==================================== 386d7f5d3SJohn Marino Add missing vg_release to pvs and pvdisplay to fix memory leak. 486d7f5d3SJohn Marino Do not try to unlock VG which is not locked in _process_one_vg. 586d7f5d3SJohn Marino Move is_long_lived persistent_filter_dump to happen after every full scan. 686d7f5d3SJohn Marino Refresh device filters before full device rescan in lvmcache. 786d7f5d3SJohn Marino Return error status if vgchange fails to activate some volume. 886d7f5d3SJohn Marino Fix suspend/resume lock type test causing unbalanced memory locking. 986d7f5d3SJohn Marino Revert vg_read_internal change as clvmd was not ready for vg_read. (2.02.55) 1086d7f5d3SJohn Marino 1186d7f5d3SJohn MarinoVersion 2.02.55 - 19th November 2009 1286d7f5d3SJohn Marino==================================== 1386d7f5d3SJohn Marino Fix deadlock when changing mirrors due to unpaired memlock refcount changes. 1486d7f5d3SJohn Marino Use separate memlock counter for dmeventd handlers to permit device scanning. 1586d7f5d3SJohn Marino Directly restrict vgchange to activating visible LVs. 1686d7f5d3SJohn Marino Fix pvmove region_size overflow for very large PVs. 1786d7f5d3SJohn Marino Fix lvcreate and lvresize %PVS argument always to use sensible total size. 1886d7f5d3SJohn Marino Tidy some uses of arg_count and introduce arg_is_set. 1986d7f5d3SJohn Marino Export outnl and indent functions for modules. 2086d7f5d3SJohn Marino Flush stdout after yes/no prompt. 2186d7f5d3SJohn Marino Update vgsplit and vgcreate to use vg_set_clustered. 2286d7f5d3SJohn Marino Add vg_mda_count and vg_set_clustered library functions. 2386d7f5d3SJohn Marino Add more vgcreate and vgsplit nightly tests. 2486d7f5d3SJohn Marino Insert some missing stack macros into activation code. 2586d7f5d3SJohn Marino Recognise DRBD devices and handle them like md devices. 2686d7f5d3SJohn Marino 2786d7f5d3SJohn MarinoVersion 2.02.54 - 26th October 2009 2886d7f5d3SJohn Marino=================================== 2986d7f5d3SJohn Marino Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter. 3086d7f5d3SJohn Marino Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 3186d7f5d3SJohn Marino Permit snapshots of mirrors. 3286d7f5d3SJohn Marino Cleanup mimagetmp LV if allocation fails for new lvconvert mimage. 3386d7f5d3SJohn Marino Fix clvmd segfault when refresh_toolcontext fails. 3486d7f5d3SJohn Marino Remember to clear 'global lock held during cache refresh' state after use. 3586d7f5d3SJohn Marino Use udev flags support in LVM and apply various fixes to udev rules. 3686d7f5d3SJohn Marino Delay announcing mirror monitoring to syslog until initialisation succeeded. 3786d7f5d3SJohn Marino Handle metadata with unknown segment types more gracefully. 3886d7f5d3SJohn Marino Set default owner and group to null. 3986d7f5d3SJohn Marino Add dmeventd.static to the build. 4086d7f5d3SJohn Marino Disable realtime support code by default. 4186d7f5d3SJohn Marino Make clvmd return 0 on success rather than 1. 4286d7f5d3SJohn Marino Add --pvmetadatacopies for pvcreate, vgcreate, vgextend, vgconvert. 4386d7f5d3SJohn Marino Add implict pvcreate support to vgcreate and vgextend. 4486d7f5d3SJohn Marino Correct example.conf to indicate that lvm2 not lvm1 is the default format. 4586d7f5d3SJohn Marino Remove an unused stray LVM1_SUPPORT ifdef. 4686d7f5d3SJohn Marino Only include selinux libs in libdevmapper.pc when selinux build enabled. 4786d7f5d3SJohn Marino Allow for a build directory separate from the source. 4886d7f5d3SJohn Marino Update distclean target for rename clogd to cmirrord. (2.02.52) 4986d7f5d3SJohn Marino Only do lock conversions in clvmd if we are explicitly asked for one. 5086d7f5d3SJohn Marino Introduce percent_range_t and centralise snapshot full/mirror in-sync checks. 5186d7f5d3SJohn Marino Factor out poll_mirror_progress and introduce progress_t. 5286d7f5d3SJohn Marino Distinguish between powers of 1000 and powers of 1024 in unit suffixes. 5386d7f5d3SJohn Marino Restart lvconverts in vgchange by sharing lv_spawn_background_polling. 5486d7f5d3SJohn Marino Generalise polldaemon code by changing mirror-specific variable names. 5586d7f5d3SJohn Marino Don't attempt to deactivate an LV if any of its snapshots are in use. 5686d7f5d3SJohn Marino Return error if lv_deactivate fails to remove device from kernel. 5786d7f5d3SJohn Marino Provide alternative implementation of obsolete siginterrupt(). 5886d7f5d3SJohn Marino Consolidate LV allocation into alloc_lv(). 5986d7f5d3SJohn Marino Treat input units of both 's' and 'S' as 512-byte sectors. (2.02.49) 6086d7f5d3SJohn Marino Use standard output units for 'PE Size' and 'Stripe size' in pv/lvdisplay. 6186d7f5d3SJohn Marino Add configure --enable-units-compat to set si_unit_consistency off by default. 6286d7f5d3SJohn Marino Add global/si_unit_consistency to enable cleaned-up use of units in output. 6386d7f5d3SJohn Marino 6486d7f5d3SJohn MarinoVersion 2.02.53 - 25th September 2009 6586d7f5d3SJohn Marino===================================== 6686d7f5d3SJohn Marino Create any directories in /dev with DM_DEV_DIR_UMASK (022). 6786d7f5d3SJohn Marino Enable dmeventd monitoring section of config file by default. 6886d7f5d3SJohn Marino Update lvm2 monitoring script to lvm2_monitoring_init_red_hat.in. 6986d7f5d3SJohn Marino Fix lvm2app test to run under test/api subdirectory only when configured. 7086d7f5d3SJohn Marino Add vg_is_resizeable() and cleanup reference to VG_RESIZEABLE. 7186d7f5d3SJohn Marino 7286d7f5d3SJohn MarinoVersion 2.02.52 - 15th September 2009 7386d7f5d3SJohn Marino===================================== 7486d7f5d3SJohn Marino Update _process_one_vg to cleanup properly after vg_read_error. 7586d7f5d3SJohn Marino Add lots of missing stack debug messages to tools. 7686d7f5d3SJohn Marino Make readonly locking available as locking type 4. 7786d7f5d3SJohn Marino Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49) 7886d7f5d3SJohn Marino Add DM_UDEV_RULES_VSN environment variable to udev rules. 7986d7f5d3SJohn Marino Update vgsplit, vgmerge, and vgrename to obey new vgname ordering rules. 8086d7f5d3SJohn Marino Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t. 8186d7f5d3SJohn Marino Enforce an alphabetical lock ordering on vgname locking. 8286d7f5d3SJohn Marino Prioritise write locks over read locks by default for file locking. 8386d7f5d3SJohn Marino Add local lock files with suffix ':aux' to serialise locking requests. 8486d7f5d3SJohn Marino Fix global locking in PV reporting commands (2.02.49). 8586d7f5d3SJohn Marino Fix pvcreate string termination in duplicate uuid warning message. 8686d7f5d3SJohn Marino Don't loop reading sysfs with pvcreate on a non-blkext partition (2.02.51). 8786d7f5d3SJohn Marino Fix vgcfgrestore error paths when locking fails (2.02.49). 8886d7f5d3SJohn Marino Update Makefile distclean target. 8986d7f5d3SJohn Marino Add libudev configuration check. 9086d7f5d3SJohn Marino Make clvmd check corosync to see what cluster interface it should use. 9186d7f5d3SJohn Marino Add clvmd autodetection check and cleanup related configure messages. 9286d7f5d3SJohn Marino Rewrite clvmd configuration code to cope with all combinations of libs. 9386d7f5d3SJohn Marino Added configure --enable-cmirrord to build the cluster mirror log daemon. 9486d7f5d3SJohn Marino Rename clogd to cmirrord. 9586d7f5d3SJohn Marino Make lvchange --refresh only take a read lock on volume group. 9686d7f5d3SJohn Marino Fix race where non-blocking file locks could be granted in error. 9786d7f5d3SJohn Marino Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49). 9886d7f5d3SJohn Marino Fix compile warning in clvmd. 9986d7f5d3SJohn Marino Clarify use of PE ranges in lv{convert|create|extend|resize} man pages. 10086d7f5d3SJohn Marino Remove useless _pv_write wrapper. 10186d7f5d3SJohn Marino Add lvm2app.sh to tests conditional upon configure --enable-applib. 10286d7f5d3SJohn Marino Add lvm_vg_is_clustered, lvm_vg_is_exported, and lvm_vg_is_partial. 10386d7f5d3SJohn Marino Update lvm_vg_remove to require lvm_vg_write to commit remove to disk. 10486d7f5d3SJohn Marino Update test/api/test.c to call lvm_vg_create and lvm_vg_remove. 10586d7f5d3SJohn Marino 10686d7f5d3SJohn MarinoVersion 2.02.51 - 6th August 2009 10786d7f5d3SJohn Marino================================= 10886d7f5d3SJohn Marino Fix locking in clvmd (2.02.50). 10986d7f5d3SJohn Marino Add --noudevsync option for relevant LVM tools. 11086d7f5d3SJohn Marino Add activation/udev_sync to lvm.conf. 11186d7f5d3SJohn Marino Only change LV symlinks on ACTIVATE not PRELOAD. 11286d7f5d3SJohn Marino Make lvconvert honour log mirror options combined with downconversion. 11386d7f5d3SJohn Marino Allow LV suspend while --ignorelockingfailure is in force. 11486d7f5d3SJohn Marino Update synopsis in lvconvert manpage to mention --repair. 11586d7f5d3SJohn Marino Set cookies in activation code and wait for udev to complete processing. 11686d7f5d3SJohn Marino Added configure --enable-udev_rules --enable-udev_sync. 11786d7f5d3SJohn Marino Added configure --with-udev-prefix --with-udevdir. 11886d7f5d3SJohn Marino Added udev dir to hold udev rules. 11986d7f5d3SJohn Marino Add devices/data_alignment_detection to lvm.conf. 12086d7f5d3SJohn Marino Add devices/data_alignment_offset_detection to lvm.conf. 12186d7f5d3SJohn Marino Add --dataalignmentoffset to pvcreate to shift start of aligned data area. 12286d7f5d3SJohn Marino Fix _mda_setup() to not check first mda's size before pe_align rounding. 12386d7f5d3SJohn Marino Document -I option of clvmd in the man page. 12486d7f5d3SJohn Marino Fix configure script to handle multiple clvmd selections. 12586d7f5d3SJohn Marino Fix lvm2app.pc installation filename. 12686d7f5d3SJohn Marino Remove pv_t, vg_t & lv_t handles from lib. Only liblvm uses them. 12786d7f5d3SJohn Marino Rename lvm.h to lvm2app.h for now. 12886d7f5d3SJohn Marino 12986d7f5d3SJohn MarinoVersion 2.02.50 - 28th July 2009 13086d7f5d3SJohn Marino================================ 13186d7f5d3SJohn Marino Change test/api/test.c prompt so it's not confused with the main lvm prompt. 13286d7f5d3SJohn Marino Update liblvm unit tests in test/api to cover latest liblvm changes. 13386d7f5d3SJohn Marino Add unimplemented lvm_lv_resize and lvm_pv_resize skeletons to liblvm. 13486d7f5d3SJohn Marino Add lvm_library_get_version to liblvm. 13586d7f5d3SJohn Marino Add lvm_config_override to liblvm to allow caller to override LVM config. 13686d7f5d3SJohn Marino Add lvm_lv_is_active and lvm_lv_is_suspended to liblvm. 13786d7f5d3SJohn Marino Add lvm_lv_activate and lvm_lv_deactivate to liblvm. 13886d7f5d3SJohn Marino Add lvm_scan, lvm_vg_reduce and lvm_vg_remove_lv to liblvm. 13986d7f5d3SJohn Marino Add functions to get numeric properties to liblvm. 14086d7f5d3SJohn Marino Add lvm_{pv|vg|lv}_get_{name|uuid} to liblvm. 14186d7f5d3SJohn Marino Add lvm_vg_list_pvs and lvm_vg_list_lvs to liblvm. 14286d7f5d3SJohn Marino Add lvm_vg_open and lvm_vg_create_lv_linear to liblvm. 14386d7f5d3SJohn Marino Add lvm_list_vg_names/uuids to liblvm. 14486d7f5d3SJohn Marino Add lvm_errno and lvm_errmsg to liblvm to obtain failure information. 14586d7f5d3SJohn Marino Rename lvm_create/destroy to lvm_init/quit. 14686d7f5d3SJohn Marino Rename lvm_reload_config to lvm_config_reload. 14786d7f5d3SJohn Marino Refactor _override_settings to use new override_config_tree_from_string. 14886d7f5d3SJohn Marino Add vg_reduce to metadata.c and metadata-exported.h. 14986d7f5d3SJohn Marino Update lvm.h to clarify API behavior and return codes. 15086d7f5d3SJohn Marino Update lvm_vg_extend to do an implicit pvcreate on the device. 15186d7f5d3SJohn Marino Update display.c to use vg_free(vg) instead of duplicating the calculation. 15286d7f5d3SJohn Marino Refactor vg_size, vg_free, and pv_mda_count field calculations for liblvm. 15386d7f5d3SJohn Marino Refactor pvcreate and lvcreate for liblvm. 15486d7f5d3SJohn Marino Add global/wait_for_locks to lvm.conf so blocking for locks can be disabled. 15586d7f5d3SJohn Marino All LV locks are non-blocking so remove LCK_NONBLOCK from separate macros. 15686d7f5d3SJohn Marino Fix race condition with vgcreate and vgextend on same device (2.02.49). 15786d7f5d3SJohn Marino Remove redundant validate_name call from vgreduce. 15886d7f5d3SJohn Marino Remove unused handles lvseg, pvseg inside liblvm/lvm.h. 15986d7f5d3SJohn Marino Add liblvm2app Makefile installation targets. 16086d7f5d3SJohn Marino Add liblvm pkgconfig file. 16186d7f5d3SJohn Marino Use newly-independent LVM_LIBAPI in liblvm soname. E.g. liblvm2app.so.2.1. 16286d7f5d3SJohn Marino Add an API version number, LVM_LIBAPI, to the VERSION string for liblvm. 16386d7f5d3SJohn Marino Pass a pointer to struct cmd_context to init_multiple_segtypes 16486d7f5d3SJohn Marino Return EINVALID_CMD_LINE not success when invalid VG name format is used. 16586d7f5d3SJohn Marino Remove unnecessary messages after vgcreate/vgsplit refactor (2.02.49). 16686d7f5d3SJohn Marino Add log_errno to set a specific errno and replace log_error in due course. 16786d7f5d3SJohn Marino Change create_toolcontext to still return an object if it fails part-way. 16886d7f5d3SJohn Marino Add EUNCLASSIFIED (-1) as the default LVM errno code. 16986d7f5d3SJohn Marino Store any errno and error messages issued while processing each command. 17086d7f5d3SJohn Marino Use log_error macro consistently throughout in place of log_err. 17186d7f5d3SJohn Marino 17286d7f5d3SJohn MarinoVersion 2.02.49 - 15th July 2009 17386d7f5d3SJohn Marino================================ 17486d7f5d3SJohn Marino Add readonly locking type to replace implementation of --ignorelockingfailure. 17586d7f5d3SJohn Marino Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again. 17686d7f5d3SJohn Marino Add unit test case for liblvm VG create/delete APIs. 17786d7f5d3SJohn Marino Add liblvm APIs to implement creation and deletion of VGs. 17886d7f5d3SJohn Marino Initialize cmd->cmd_line to "liblvm" in new liblvm library. 17986d7f5d3SJohn Marino Place handles to liblvm objects for pv, vg, lv, lvseg, pvseg inside lvm.h. 18086d7f5d3SJohn Marino Refactor vgsplit and vgextend to remove READ_REQUIRE_RESIZEABLE flag. 18186d7f5d3SJohn Marino Use _exit() not exit() after forking to avoid flushing libc buffers twice. 18286d7f5d3SJohn Marino Add cast to log_info arg in _find_labeller to avoid Sparc64 warning. 18386d7f5d3SJohn Marino Make cmd->cmd_line const. 18486d7f5d3SJohn Marino Fix dev name mismatch in vgcreate man page example. 18586d7f5d3SJohn Marino Refactor vg_remove_single for use in liblvm. 18686d7f5d3SJohn Marino Make all tools use consistent lock ordering obtaining VG_ORPHAN lock second. 18786d7f5d3SJohn Marino Check md devices for a partition table during device scan. 18886d7f5d3SJohn Marino Add extended device (blkext) and md partition (mdp) types to filters. 18986d7f5d3SJohn Marino Make text metadata read errors for segment areas more precise. 19086d7f5d3SJohn Marino Fix text segment metadata read errors to mention correct segment name. 19186d7f5d3SJohn Marino Include segment and LV names in text segment import error messages. 19286d7f5d3SJohn Marino Add parent node to config_node structure. 19386d7f5d3SJohn Marino Update vgsplit and vgcreate to call new vg_create and 'set' functions. 19486d7f5d3SJohn Marino Change vg_create to take minimal parameters, obtain a lock, and return vg_t. 19586d7f5d3SJohn Marino Refactor vgchange extent_size, max_lv, max_pv, and alloc_policy for liblvm. 19686d7f5d3SJohn Marino Update t-vgcreate-usage.sh to test for default vg properties. 19786d7f5d3SJohn Marino Fix memory leak in vgsplit when re-reading the vg. 19886d7f5d3SJohn Marino Make various exit/cleanup paths more robust after lvm init failures. 19986d7f5d3SJohn Marino Use LCK_NONBLOCK implicitly instead of explicit vg_read() flag. 20086d7f5d3SJohn Marino Remove unnecessary locking and existence tests from new vg_read() interface. 20186d7f5d3SJohn Marino Permit several segment types to be registered by a single shared object. 20286d7f5d3SJohn Marino Update the man pages to document size units uniformly. 20386d7f5d3SJohn Marino Allow commandline sizes to be specified in terms of bytes and sectors. 20486d7f5d3SJohn Marino Update 'md_chunk_alignment' to use stripe-width to align PV data area. 20586d7f5d3SJohn Marino Update test/t-inconsistent-metadata.sh to match new vg_read interface. 20686d7f5d3SJohn Marino Add lvmcache_init() to polldaemon initialization. 20786d7f5d3SJohn Marino Convert tools to use new vg_read / vg_read_for_update. 20886d7f5d3SJohn Marino Fix segfault in vg_release when vg->cmd is NULL. 20986d7f5d3SJohn Marino 21086d7f5d3SJohn MarinoVersion 2.02.48 - 30th June 2009 21186d7f5d3SJohn Marino================================ 21286d7f5d3SJohn Marino Abort if automatic metadata correction fails when reading VG to update it. 21386d7f5d3SJohn Marino Explicitly request fallback to default major number in device mapper. 21486d7f5d3SJohn Marino Ignore suspended devices during repair. 21586d7f5d3SJohn Marino Call vgreduce --removemissing automatically to fix missing PVs in dmeventd. 21686d7f5d3SJohn Marino Suggest using lvchange --resync when adding leg to not-yet-synced mirror. 21786d7f5d3SJohn Marino Destroy toolcontext on clvmd exit to avoid memory pool leaks. 21886d7f5d3SJohn Marino Fix lvconvert not to poll mirror if no conversion in progress. 21986d7f5d3SJohn Marino Fix memory leaks in toolcontext error path. 22086d7f5d3SJohn Marino Reinstate partial activation support in clustered mode. (2.02.40) 22186d7f5d3SJohn Marino Allow metadata correction even when PVs are missing. 22286d7f5d3SJohn Marino Use 'lvm lvresize' instead of 'lvresize' in fsadm. 22386d7f5d3SJohn Marino Do not use '-n' realine option in fsadm for busybox compatiblity. 22486d7f5d3SJohn Marino Add vg_lock_newname() library function for vgrename, vgsplit and vgcreate. 22586d7f5d3SJohn Marino Round up requested readahead to at least one page and print warning. 22686d7f5d3SJohn Marino Try to repair vg before actual vgremove when force flag provided. 22786d7f5d3SJohn Marino Fix possible double release of VG after recovery. 22886d7f5d3SJohn Marino Add parameter to process_each_vg specifying what to do with inconsistent VG. 22986d7f5d3SJohn Marino Unify error messages when processing inconsistent volume group. 23086d7f5d3SJohn Marino Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO. 23186d7f5d3SJohn Marino Introduce lvconvert --use_policies (repair policy according to lvm.conf). 23286d7f5d3SJohn Marino Update clvmd-corosync to match new corosync API. 23386d7f5d3SJohn Marino Fix lib Makefile to include any shared libraries in default target. 23486d7f5d3SJohn Marino Fix rename of active snapshot with virtual origin. 23586d7f5d3SJohn Marino Fix convert polling to ignore LV with different UUID. 23686d7f5d3SJohn Marino Cache underlying device readahead only before activation calls. 23786d7f5d3SJohn Marino Fix segfault when calculating readahead on missing device in vgreduce. 23886d7f5d3SJohn Marino Remove verbose 'visited' messages. 23986d7f5d3SJohn Marino Handle multi-extent mirror log allocation when smallest PV has only 1 extent. 24086d7f5d3SJohn Marino Add LSB standard headers and functions (incl. reload) to clvmd initscript. 24186d7f5d3SJohn Marino When creating new LV, double-check that name is not already in use. 24286d7f5d3SJohn Marino Remove /dev/vgname/lvname symlink automatically if LV is no longer visible. 24386d7f5d3SJohn Marino Rename internal vorigin LV to match visible LV. 24486d7f5d3SJohn Marino Suppress 'removed' messages displayed when internal LVs are removed. 24586d7f5d3SJohn Marino Fix lvchange -a and -p for sparse LVs. 24686d7f5d3SJohn Marino Fix lvcreate --virtualsize to activate the new device immediately. 24786d7f5d3SJohn Marino Make --snapshot optional with lvcreate --virtualsize. 24886d7f5d3SJohn Marino Generalise --virtualoriginsize to --virtualsize. 24986d7f5d3SJohn Marino Skip virtual origins in process_each_lv_in_vg() without --all. 25086d7f5d3SJohn Marino Fix counting of virtual origin LVs in vg_validate. 25186d7f5d3SJohn Marino Attempt to load dm-zero module if zero target needed but not present. 25286d7f5d3SJohn Marino 25386d7f5d3SJohn MarinoVersion 2.02.47 - 22nd May 2009 25486d7f5d3SJohn Marino=============================== 25586d7f5d3SJohn Marino Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 25686d7f5d3SJohn Marino Reinstate version in liblvm2cmd.so soname. (2.02.44) 25786d7f5d3SJohn Marino 25886d7f5d3SJohn MarinoVersion 2.02.46 - 21st May 2009 25986d7f5d3SJohn Marino=============================== 26086d7f5d3SJohn Marino Inherit readahead setting from underlying devices during activation. 26186d7f5d3SJohn Marino Detect LVs active on remote nodes by querying locks if supported. 26286d7f5d3SJohn Marino Enable online resizing of mirrors. 26386d7f5d3SJohn Marino Use suspend with flush when device size was changed during table preload. 26486d7f5d3SJohn Marino Implement query_resource_fn for cluster_locking. 26586d7f5d3SJohn Marino Support query_resource_fn in locking modules. 26686d7f5d3SJohn Marino Introduce CLVMD_CMD_LOCK_QUERY command for clvmd. 26786d7f5d3SJohn Marino Fix pvmove to revert operation if temporary mirror creation fails. 26886d7f5d3SJohn Marino Fix metadata export for VG with missing PVs. 26986d7f5d3SJohn Marino Add vgimportclone and install it and the man page by default. 27086d7f5d3SJohn Marino Force max_lv restriction only for newly created LV. 27186d7f5d3SJohn Marino Remove unneeded import parameter from lv_create_empty. 27286d7f5d3SJohn Marino Merge lv_is_displayable and lv_is_visible functions. 27386d7f5d3SJohn Marino Introduce lv_set_visible & lv_set_hidden functions. 27486d7f5d3SJohn Marino Fix lv_is_visible to handle virtual origin. 27586d7f5d3SJohn Marino Introduce link_lv_to_vg and unlink_lv_from_vg functions. 27686d7f5d3SJohn Marino Remove lv_count from VG and use counter function instead. 27786d7f5d3SJohn Marino Fix snapshot segment import to not use duplicate segments & replace. 27886d7f5d3SJohn Marino Do not query nonexistent devices for readahead. 27986d7f5d3SJohn Marino Remove NON_BLOCKING lock flag from tools and set a policy to auto-set. 28086d7f5d3SJohn Marino Remove snapshot_count from VG and use function instead. 28186d7f5d3SJohn Marino Fix first_seg() call for empty segment list. 28286d7f5d3SJohn Marino Add install_lvm2 makefile target to install only the LVM2 components. 28386d7f5d3SJohn Marino Reject missing PVs from allocation in toollib. 28486d7f5d3SJohn Marino Fix PV datalignment for values starting prior to MDA area. (2.02.45) 28586d7f5d3SJohn Marino Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin). 28686d7f5d3SJohn Marino Fix minimum width of devices column in reports. 28786d7f5d3SJohn Marino Add lvs origin_size field. 28886d7f5d3SJohn Marino Fix linux configure --enable-debug to exclude -O2. 28986d7f5d3SJohn Marino Implement lvconvert --repair for repairing partially-failed mirrors. 29086d7f5d3SJohn Marino Fix vgreduce --removemissing failure exit code. 29186d7f5d3SJohn Marino Fix remote metadata backup for clvmd. 29286d7f5d3SJohn Marino Introduce unlock_and_release_vg macro. 29386d7f5d3SJohn Marino Introduce vg_release() to be called to free every struct volume_group. 29486d7f5d3SJohn Marino Alloc PV internal structure from VG mempool if possible. 29586d7f5d3SJohn Marino Fix metadata backup to run after vg_commit always. 29686d7f5d3SJohn Marino Tidy clvmd volume lock cache functions. 29786d7f5d3SJohn Marino Fix pvs report for orphan PVs when segment attributes are requested. 29886d7f5d3SJohn Marino Fix pvs -a output to not read volume groups from non-PV devices. 29986d7f5d3SJohn Marino Add MMC (mmcblk) device type to filters. 30086d7f5d3SJohn Marino Introduce memory pools per volume group (to reduce memory for large VGs). 30186d7f5d3SJohn Marino Use copy of PV structure when manipulating global PV lists. 30286d7f5d3SJohn Marino Always return exit error status when locking of volume group fails. 30386d7f5d3SJohn Marino Fix mirror log convert validation question. 30486d7f5d3SJohn Marino Avoid referencing files from DESTDIR during build process. 30586d7f5d3SJohn Marino Avoid creating some static libraries unless configured --enable-static_link. 30686d7f5d3SJohn Marino Enable use of cached metadata for pvs and pvdisplay commands. 30786d7f5d3SJohn Marino Add missing 'device-mapper' internal subdir build dependency. 30886d7f5d3SJohn Marino Fix memory leak in mirror allocation code. 30986d7f5d3SJohn Marino Save and restore the previous logging level when log level is changed. 31086d7f5d3SJohn Marino Fix error message when archive initialization fails. 31186d7f5d3SJohn Marino Make sure clvmd-corosync releases the lockspace when it exits. 31286d7f5d3SJohn Marino Fix segfault for vgcfgrestore on VG with missing PVs. 31386d7f5d3SJohn Marino Block SIGTERM & SIGINT in clvmd subthreads. 31486d7f5d3SJohn Marino Detect and conditionally wipe swapspace signatures in pvcreate. 31586d7f5d3SJohn Marino Fix maximal volume count check for snapshots if max_lv set for volume group. 31686d7f5d3SJohn Marino Fix lvcreate to remove unused cow volume if the snapshot creation fails. 31786d7f5d3SJohn Marino Fix error messages when PV uuid or pe_start reading fails. 31886d7f5d3SJohn Marino Build new liblvm application-level library. 31986d7f5d3SJohn Marino Rename liblvm.a to liblvm-internal.a. 32086d7f5d3SJohn Marino Flush memory pool and fix locking in clvmd refresh and backup command. 32186d7f5d3SJohn Marino Fix unlocks in clvmd-corosync. (2.02.45) 32286d7f5d3SJohn Marino Fix error message when adding metadata directory to internal list fails. 32386d7f5d3SJohn Marino Fix size and error message of memory allocation at backup initialization. 32486d7f5d3SJohn Marino Remove old metadata backup file after renaming VG. 32586d7f5d3SJohn Marino Restore log_suppress state when metadata backup file is up-to-date. 32686d7f5d3SJohn Marino 32786d7f5d3SJohn MarinoVersion 2.02.45 - 3rd March 2009 32886d7f5d3SJohn Marino================================ 32986d7f5d3SJohn Marino Avoid scanning empty metadata areas for VG names. 33086d7f5d3SJohn Marino Attempt proper clean up in child before executing new binary in exec_cmd(). 33186d7f5d3SJohn Marino Do not scan devices if reporting only attributes from PV label. 33286d7f5d3SJohn Marino Use pkgconfig to obtain corosync library details during configuration. 33386d7f5d3SJohn Marino Fix error returns in clvmd-corosync interface to DLM. 33486d7f5d3SJohn Marino Add --refresh to vgchange and vgmknodes man pages. 33586d7f5d3SJohn Marino Pass --test from lvresize to fsadm as --dry-run. 33686d7f5d3SJohn Marino Supply argv[] list to exec_cmd() to allow for variable number of parameters. 33786d7f5d3SJohn Marino Prevent fsadm from checking mounted filesystems. 33886d7f5d3SJohn Marino No longer treats any other key as 'no' when prompting in fsadm. 33986d7f5d3SJohn Marino Tidy fsadm command line processing. 34086d7f5d3SJohn Marino Add lib/lvm.h and lib/lvm_base.c for the new library interface. 34186d7f5d3SJohn Marino Move tools/version.h to lib/misc/lvm-version.h. 34286d7f5d3SJohn Marino Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE. 34386d7f5d3SJohn Marino Add system_dir parameter to create_toolcontext(). 34486d7f5d3SJohn Marino Add --dataalignment to pvcreate to specify alignment of data area. 34586d7f5d3SJohn Marino Exclude LCK_CACHE locks from _vg_lock_count, fixing interrupt unblocking. 34686d7f5d3SJohn Marino Provide da and mda locations in debug message when writing text format label. 34786d7f5d3SJohn Marino Mention the restriction on file descriptors at invocation on the lvm man page. 34886d7f5d3SJohn Marino Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames. 34986d7f5d3SJohn Marino No longer require kernel and metadata major numbers to match. 35086d7f5d3SJohn Marino Add a fully-functional get_cluster_name() to clvmd corosync interface. 35186d7f5d3SJohn Marino Remove duplicate cpg_initialize from clvmd startup. 35286d7f5d3SJohn Marino Add option to /etc/sysconfig/cluster to select cluster type for clvmd. 35386d7f5d3SJohn Marino Allow clvmd to start up if its lockspace already exists. 35486d7f5d3SJohn Marino Separate PV label attributes which do not need parse metadata when reporting. 35586d7f5d3SJohn Marino Remove external dependency on the 'cut' command from fsadm. 35686d7f5d3SJohn Marino Fix pvs segfault when pv mda attributes requested for not available PV. 35786d7f5d3SJohn Marino Add fsadm support for reszing ext4 filesysystems. 35886d7f5d3SJohn Marino Move locking_type reading inside init_locking(). 35986d7f5d3SJohn Marino Rename get_vgs() to get_vgnames() and clarify related error messages. 36086d7f5d3SJohn Marino Allow clvmd to be built with all cluster managers & select one on cmdline. 36186d7f5d3SJohn Marino Mention --with-clvmd=corosync in ./configure. 36286d7f5d3SJohn Marino Replace internal vg_check_status() implementation. 36386d7f5d3SJohn Marino Rename vg_read() to vg_read_internal(). 36486d7f5d3SJohn Marino 36586d7f5d3SJohn MarinoVersion 2.02.44 - 26th January 2009 36686d7f5d3SJohn Marino=================================== 36786d7f5d3SJohn Marino Fix --enable-static_link after the recent repository changes. 36886d7f5d3SJohn Marino Add corosync/DLM cluster interface to clvmd. 36986d7f5d3SJohn Marino Add --nameprefixes, --unquoted, --rows to pvs, vgs, lvs man pages. 37086d7f5d3SJohn Marino Fix lvresize size conversion for fsadm when block size is not 1K. 37186d7f5d3SJohn Marino Fix pvs segfault when run with orphan PV and some VG fields. 37286d7f5d3SJohn Marino Display a 'dev_size' of zero for missing devices in reports. 37386d7f5d3SJohn Marino Add pv_mda_size to pvs and vg_mda_size to vgs. 37486d7f5d3SJohn Marino Fix lvmdump /sys listing to include virtual devices directory. 37586d7f5d3SJohn Marino Add "--refresh" functionality to vgchange and vgmknodes. 37686d7f5d3SJohn Marino Avoid exceeding LV size when wiping device. 37786d7f5d3SJohn Marino Calculate mirror log size instead of using 1 extent. 37886d7f5d3SJohn Marino Ensure requested device number is available before activating with it. 37986d7f5d3SJohn Marino Fix incorrect exit status from 'help <command>'. 38086d7f5d3SJohn Marino Fix vgrename using UUID if there are VGs with identical names. 38186d7f5d3SJohn Marino Fix segfault when invalid field given in reporting commands. 38286d7f5d3SJohn Marino Move is_static from cmd to global is_static(). 38386d7f5d3SJohn Marino Refactor init_lvm() for lvmcmdline and clvmd. 38486d7f5d3SJohn Marino Add liblvm interactive test infrastructure to build. 38586d7f5d3SJohn Marino Add skeleton lvm2.h file in preparation for a shared library interface. 38686d7f5d3SJohn Marino Use better random seed value in temp file creation. 38786d7f5d3SJohn Marino Add read_urandom to read /dev/urandom. Use in uuid calculation. 38886d7f5d3SJohn Marino Use displayable_lvs_in_vg and lv_is_displayable for consistency throughout. 38986d7f5d3SJohn Marino Fix race in vgcreate that would result in second caller overwriting first. 39086d7f5d3SJohn Marino Fix uninitialised lv_count in vgdisplay -c. 39186d7f5d3SJohn Marino Don't skip updating pvid hash when lvmcache_info struct got swapped. 39286d7f5d3SJohn Marino Add tinfo to termcap search path for pld-linux. 39386d7f5d3SJohn Marino Fix startup race in clvmd. 39486d7f5d3SJohn Marino Generate Red Hat clvmd startup script at config time with correct paths. 39586d7f5d3SJohn Marino Fix clvmd & dmeventd builds after tree restructuring. 39686d7f5d3SJohn Marino Cope with snapshot dependencies when removing a whole VG with lvremove. 39786d7f5d3SJohn Marino Make man pages and tool help text consistent using | for alternative options. 39886d7f5d3SJohn Marino 39986d7f5d3SJohn MarinoVersion 2.02.43 - 10th November 2008 40086d7f5d3SJohn Marino==================================== 40186d7f5d3SJohn Marino Merge device-mapper into the lvm2 tree. 40286d7f5d3SJohn Marino Correct prototype for --permission on lvchange and lvcreate man pages. 40386d7f5d3SJohn Marino Exit with non-zero status from vgdisplay if couldn't show any requested VG. 40486d7f5d3SJohn Marino Move list.c into libdevmapper and rename functions. 40586d7f5d3SJohn Marino Rename a couple of variables that matched function names. 40686d7f5d3SJohn Marino Use simplified x.y.z version number in libdevmapper.pc. 40786d7f5d3SJohn Marino Remove ancient debian directory. 40886d7f5d3SJohn Marino Split out lvm-logging.h from log.h and lvm-globals.[ch] from log.[ch]. 40986d7f5d3SJohn Marino 41086d7f5d3SJohn MarinoVersion 2.02.42 - 26th October 2008 41186d7f5d3SJohn Marino=================================== 41286d7f5d3SJohn Marino Accept locking fallback_to_* options in the global section as documented. 41386d7f5d3SJohn Marino Fix temp table activation in mirror conversions not to happen in other cmds. 41486d7f5d3SJohn Marino Fix temp table in mirror conversions to use always-present error not zero. 41586d7f5d3SJohn Marino 41686d7f5d3SJohn MarinoVersion 2.02.41 - 17th October 2008 41786d7f5d3SJohn Marino=================================== 41886d7f5d3SJohn Marino Use temp table to set device size when converting mirrors. 41986d7f5d3SJohn Marino In resume_mirror_images replace activate_lv with resume_lv as workaround. 42086d7f5d3SJohn Marino Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE. 42186d7f5d3SJohn Marino Fix snapshot monitoring library to not cancel monitoring invalid snapshot. 42286d7f5d3SJohn Marino Generate man pages from templates and include version. 42386d7f5d3SJohn Marino Add usrlibdir and usrsbindir to configure. 42486d7f5d3SJohn Marino Fix conversion of md chunk size into sectors. 42586d7f5d3SJohn Marino Free text metadata buffer after a failure writing it. 42686d7f5d3SJohn Marino Fix misleading error message when there are no allocatable extents in VG. 42786d7f5d3SJohn Marino Fix handling of PVs which reappeared with old metadata version. 42886d7f5d3SJohn Marino Fix mirror DSO to call vgreduce with proper parameters. 42986d7f5d3SJohn Marino Fix validation of --minor and --major in lvcreate to require -My always. 43086d7f5d3SJohn Marino Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning. 43186d7f5d3SJohn Marino 43286d7f5d3SJohn MarinoVersion 2.02.40 - 19th September 2008 43386d7f5d3SJohn Marino===================================== 43486d7f5d3SJohn Marino Allow lvremove to remove LVs from VGs with missing PVs. 43586d7f5d3SJohn Marino In VG with PVs missing, by default allow activation of LVs that are complete. 43686d7f5d3SJohn Marino Track PARTIAL_LV and MISSING_PV flags internally. 43786d7f5d3SJohn Marino Require --force with --removemissing in vgreduce to remove partial LVs. 43886d7f5d3SJohn Marino No longer write out PARTIAL flag into metadata backups. 43986d7f5d3SJohn Marino Treat new default activation/missing_stripe_filler "error" as an error target. 44086d7f5d3SJohn Marino Remove internal partial_mode. 44186d7f5d3SJohn Marino Add devices/md_chunk_alignment to lvm.conf. 44286d7f5d3SJohn Marino Pass struct physical_volume to pe_align and adjust for md chunk size. 44386d7f5d3SJohn Marino Store sysfs location in struct cmd_context. 44486d7f5d3SJohn Marino Avoid shuffling remaining mirror images when removing one, retaining primary. 44586d7f5d3SJohn Marino Add missing LV error target activation in _remove_mirror_images. 44686d7f5d3SJohn Marino Prevent resizing an LV while lvconvert is using it. 44786d7f5d3SJohn Marino Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan. 44886d7f5d3SJohn Marino Fix pvresize to not allow resize if PV has two metadata areas. 44986d7f5d3SJohn Marino Fix setting of volume limit count if converting to lvm1 format. 45086d7f5d3SJohn Marino Fix vgconvert logical volume id metadata validation. 45186d7f5d3SJohn Marino Fix lvmdump metadata gather option (-m) to work correctly. 45286d7f5d3SJohn Marino Fix allocation bug in text metadata format write error path. 45386d7f5d3SJohn Marino Fix vgcfgbackup to properly check filename if template is used. 45486d7f5d3SJohn Marino configure aborts if lcov or genhtml are missing with --enable-profiling 45586d7f5d3SJohn Marino vgremove tries to remove lv snapshot first. 45686d7f5d3SJohn Marino Added function lv_remove_with_dependencies(). 45786d7f5d3SJohn Marino Improve file descriptor leak detection to display likely culprit and filename. 45886d7f5d3SJohn Marino Change clustered mirror kernel module name from cmirror to dm-log-clustered. 45986d7f5d3SJohn Marino Avoid looping forever in _pv_analyze_mda_raw used by pvck. 46086d7f5d3SJohn Marino Change lvchange exit status to indicate if any part of the operation failed. 46186d7f5d3SJohn Marino Fix pvchange and pvremove to handle PVs without mdas. 46286d7f5d3SJohn Marino Refactor _text_pv_read and always return mda list if requested. 46386d7f5d3SJohn Marino Fix configure to work w/o readline unless --enable-readline used. (2.02.39) 46486d7f5d3SJohn Marino Remove is_lvm_partition template which has not yet been coded. 46586d7f5d3SJohn Marino Refactor pvcreate to separate parameter parsing from validation logic. 46686d7f5d3SJohn Marino Check for label_write() failure in _text_pv_write(). 46786d7f5d3SJohn Marino Add pvcreate tests and update vgsplit tests to handle lvm1 and lvm2 metadata. 46886d7f5d3SJohn Marino Fix pvchange -M1 -u to preserve existing extent locations when there's a VG. 46986d7f5d3SJohn Marino Cease recognising snapshot-in-use percentages returned by early devt kernels. 47086d7f5d3SJohn Marino Add backward-compatible flags field to on-disk format_text metadata. 47186d7f5d3SJohn Marino Fix dmeventd monitoring libraries to link against liblvm2cmd again. (2.02.39) 47286d7f5d3SJohn Marino 47386d7f5d3SJohn MarinoVersion 2.02.39 - 27th June 2008 47486d7f5d3SJohn Marino================================ 47586d7f5d3SJohn Marino Enable readline by default if available. 47686d7f5d3SJohn Marino Update autoconf to 2008-01-16. 47786d7f5d3SJohn Marino Add $DISTCLEAN_DIRS to make.tmpl.in. 47886d7f5d3SJohn Marino Create coverage reports with --enable-profiling and make lcov or lcov-dated. 47986d7f5d3SJohn Marino Fix up cache for PVs without mdas after consistent VG metadata is processed. 48086d7f5d3SJohn Marino Update validation of safe mirror log type conversions in lvconvert. 48186d7f5d3SJohn Marino Fix lvconvert to disallow snapshot and mirror combinations. 48286d7f5d3SJohn Marino Fix reporting of LV fields alongside unallocated PV segments. 48386d7f5d3SJohn Marino Add --unquoted and --rows to reporting tools. 48486d7f5d3SJohn Marino Add and use uninitialized_var() macro to suppress invalid compiler warnings. 48586d7f5d3SJohn Marino Introduce enum for md minor sb version to suppress compiler warning. 48686d7f5d3SJohn Marino Avoid undefined return value after _memlock manipulation in lvm2_run. 48786d7f5d3SJohn Marino Avoid link failure if configured without --enable-cmdlib or --enable-readline. 48886d7f5d3SJohn Marino Make clvmd return at once if other nodes down in a gulm or openais cluster. 48986d7f5d3SJohn Marino Fix and improve readahead 'auto' calculation for stripe_size. 49086d7f5d3SJohn Marino Fix lvchange output for -r auto setting if auto is already set. 49186d7f5d3SJohn Marino Add test case for readahead. 49286d7f5d3SJohn Marino Avoid ambiguous use of identifier error_message_produced. 49386d7f5d3SJohn Marino Begin syncing configure.in for merge/unification with device-mapper. 49486d7f5d3SJohn Marino Fix add_mirror_images not to dereference uninitialized log_lv upon failure. 49586d7f5d3SJohn Marino Don't call openlog for every debug line output by clvmd. 49686d7f5d3SJohn Marino Add --force to lvextend and lvresize. 49786d7f5d3SJohn Marino Fix vgchange not to activate component mirror volumes directly. 49886d7f5d3SJohn Marino Fix test directory clean up in make distclean. 49986d7f5d3SJohn Marino 50086d7f5d3SJohn MarinoVersion 2.02.38 - 11th June 2008 50186d7f5d3SJohn Marino================================ 50286d7f5d3SJohn Marino Fix tracking of validity of PVs with no mdas in lvmcache. 50386d7f5d3SJohn Marino Fix return values for reporting commands when run with no PVs, LVs, or VGs. 50486d7f5d3SJohn Marino Add omitted unlock_vg() call when sigint_caught() during vg processing. 50586d7f5d3SJohn Marino Fix free_count when reading pool metadata. 50686d7f5d3SJohn Marino Fix segfault when using pvcreate on a device containing pool metadata. 50786d7f5d3SJohn Marino Fix segfault after _free_vginfo by remembering to remove vginfo from list. 50886d7f5d3SJohn Marino Tweak detection of invalid fid after changes to PVs in VG in _vg_read. 50986d7f5d3SJohn Marino Revert assuming precommitted metadata is live when activating (unnecessary). 51086d7f5d3SJohn Marino Drop cached metadata for disappearing VG in vgmerge. 51186d7f5d3SJohn Marino In script-processing mode, stop if any command fails. 51286d7f5d3SJohn Marino Warn if command exits with non-zero status code without a prior log_error. 51386d7f5d3SJohn Marino Check lv_count in vg_validate. 51486d7f5d3SJohn Marino Add --nameprefixes to reporting tools for field name prefix output format. 51586d7f5d3SJohn Marino 51686d7f5d3SJohn MarinoVersion 2.02.37 - 6th June 2008 51786d7f5d3SJohn Marino=============================== 51886d7f5d3SJohn Marino Make clvmd-cman use a hash rather than an array for node updown info. 51986d7f5d3SJohn Marino Correct config file line numbers in messages when parsing comments. 52086d7f5d3SJohn Marino Drop cached metadata when renaming a VG. 52186d7f5d3SJohn Marino Allow for vginfo changing during _vg_read. 52286d7f5d3SJohn Marino Decode numbers in clvmd debugging output. 52386d7f5d3SJohn Marino Add missing deactivation after activation failure in lvcreate -Zy. 52486d7f5d3SJohn Marino When activating, if precommitted metadata is still cached, assume it's live. 52586d7f5d3SJohn Marino When removing LV symlinks, skip any where the VG name is not determined. 52686d7f5d3SJohn Marino Drop metadata cache if update fails in vg_revert or vg_commit. 52786d7f5d3SJohn Marino Avoid spurious duplicate VG messages referring to VGs that are gone. 52886d7f5d3SJohn Marino Drop dev_name_confirmed error message to debug level. 52986d7f5d3SJohn Marino Fix setpriority error message to signed int. 53086d7f5d3SJohn Marino Temporarily disable dmeventd mirror monitoring during lvchange --resync. 53186d7f5d3SJohn Marino Refactor some vginfo manipulation code. 53286d7f5d3SJohn Marino Add assertions to trap deprecated P_ and V_ lock usage. 53386d7f5d3SJohn Marino Add missing mutex around clvmd lvmcache_drop_metadata library call. 53486d7f5d3SJohn Marino Fix uninitialised mutex in clvmd if all daemons are not running at startup. 53586d7f5d3SJohn Marino Avoid using DLM locks with LCK_CACHE type P_ lock requests. 53686d7f5d3SJohn Marino When asked to drop cached committed VG metadata, invalidate cached PV labels. 53786d7f5d3SJohn Marino Drop metadata cache before writing precommitted metadata instead of after. 53886d7f5d3SJohn Marino Don't touch /dev in vgrename if activation is disabled. 53986d7f5d3SJohn Marino 54086d7f5d3SJohn MarinoVersion 2.02.36 - 29th April 2008 54186d7f5d3SJohn Marino================================= 54286d7f5d3SJohn Marino Fix fsadm.sh to work with older blockdev, blkid & readlink binaries. 54386d7f5d3SJohn Marino Fix lvresize to pass new size to fsadm when extending device. 54486d7f5d3SJohn Marino Remove unused struct in clvmd-openais, and use correct node count. 54586d7f5d3SJohn Marino Fix nodes list in clvmd-openais, and allow for broadcast messages. 54686d7f5d3SJohn Marino Exclude VG_GLOBAL from internal concurrent VG lock counter. 54786d7f5d3SJohn Marino Fix vgsplit internal counting of snapshot LVs. 54886d7f5d3SJohn Marino Fix vgmerge snapshot_count when source VG contains snapshots. 54986d7f5d3SJohn Marino Simplify clvmd-openais by using non-async saLckResourceLock. 55086d7f5d3SJohn Marino Fix internal LV counter when a snapshot is removed. 55186d7f5d3SJohn Marino Fix metadata corruption writing lvm1-formatted metadata with snapshots. 55286d7f5d3SJohn Marino Fix lvconvert -m0 allocatable space check. 55386d7f5d3SJohn Marino 55486d7f5d3SJohn MarinoVersion 2.02.35 - 15th April 2008 55586d7f5d3SJohn Marino================================= 55686d7f5d3SJohn Marino Drop cached VG metadata before and after committing changes to it. 55786d7f5d3SJohn Marino Rename P_global to P_#global. 55886d7f5d3SJohn Marino Don't attempt remote metadata backups of non-clustered VGs. (2.02.29) 55986d7f5d3SJohn Marino Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34) 56086d7f5d3SJohn Marino Update vgsplit tests to verify loosening of active LV restriction. 56186d7f5d3SJohn Marino Update vgsplit to only restrict split with active LVs involved in split. 56286d7f5d3SJohn Marino Add lv_is_active() to determine whether an lv is active. 56386d7f5d3SJohn Marino 56486d7f5d3SJohn MarinoVersion 2.02.34 - 10th April 2008 56586d7f5d3SJohn Marino================================= 56686d7f5d3SJohn Marino Improve preferred_names lvm.conf example. 56786d7f5d3SJohn Marino Fix vgdisplay 'Cur LV' field to match lvdisplay output. 56886d7f5d3SJohn Marino Fix lv_count report field to exclude hidden LVs. 56986d7f5d3SJohn Marino Add vg_is_clustered() helper function. 57086d7f5d3SJohn Marino Fix vgsplit to only move hidden 'snapshotN' LVs when necessary. 57186d7f5d3SJohn Marino Update vgsplit tests for lvnames on the cmdline. 57286d7f5d3SJohn Marino Update vgsplit man page to reflect lvnames on the cmdline. 57386d7f5d3SJohn Marino Update vgsplit to take "-n LogicalVolumeName" on the cmdline. 57486d7f5d3SJohn Marino Use clustered mirror log with pvmove in clustered VGs, if available. 57586d7f5d3SJohn Marino Fix some pvmove error status codes. 57686d7f5d3SJohn Marino Fix vgsplit error paths to release vg_to lock. 57786d7f5d3SJohn Marino Indicate whether or not VG is clustered in vgcreate log message. 57886d7f5d3SJohn Marino Mention default --clustered setting in vgcreate man page. 57986d7f5d3SJohn Marino Add config file overrides to clvmd when it reads the active LVs list. 58086d7f5d3SJohn Marino Fix vgreduce to use vg_split_mdas to check sufficient mdas remain. 58186d7f5d3SJohn Marino Add (empty) orphan VGs to lvmcache during initialisation. 58286d7f5d3SJohn Marino Fix orphan VG name used for format_pool. 58386d7f5d3SJohn Marino Create a fid for internal orphan VGs. 58486d7f5d3SJohn Marino Update lvmcache VG lock state for all locking types now. 58586d7f5d3SJohn Marino Fix output if overriding command_names on cmdline. 58686d7f5d3SJohn Marino Add detection of clustered mirror log capability. 58786d7f5d3SJohn Marino Add check to vg_commit() ensuring VG lock held before writing new VG metadata. 58886d7f5d3SJohn Marino Add validation of LV name to pvmove -n. 58986d7f5d3SJohn Marino Make clvmd refresh the context correctly when lvm.conf is updated. 59086d7f5d3SJohn Marino Add some basic internal VG lock validation. 59186d7f5d3SJohn Marino Add per-command flags to control which commands use the VG metadata cache. 59286d7f5d3SJohn Marino Fix vgsplit locking of new VG (2.02.30). 59386d7f5d3SJohn Marino Avoid erroneous vgsplit error message for new VG. (2.02.29) 59486d7f5d3SJohn Marino Suppress duplicate message when lvresize fails because of invalid vgname. 59586d7f5d3SJohn Marino Cache VG metadata internally while VG lock is held. 59686d7f5d3SJohn Marino Fix redundant lvresize message if vg doesn't exist. 59786d7f5d3SJohn Marino Fix another allocation bug with clvmd and large node IDs. 59886d7f5d3SJohn Marino Add find_lv_in_lv_list() and find_pv_in_pv_list(). 59986d7f5d3SJohn Marino Fix uninitialised variable in clvmd that could cause odd hangs. 60086d7f5d3SJohn Marino Add vgmerge tests. 60186d7f5d3SJohn Marino Add pvseg_is_allocated() for identifying a PV segment allocated to a LV. 60286d7f5d3SJohn Marino Add list_move() for moving elements from one list to another. 60386d7f5d3SJohn Marino Add 'is_reserved_lvname()' for identifying hidden LVs. 60486d7f5d3SJohn Marino Correct command name in lvmdiskscan man page. 60586d7f5d3SJohn Marino clvmd no longer crashes if it sees nodeids over 50. 60686d7f5d3SJohn Marino Fix potential deadlock in clvmd thread handling. 60786d7f5d3SJohn Marino Refactor text format initialisation into _init_text_import. 60886d7f5d3SJohn Marino Escape double quotes and backslashes in external metadata and config data. 60986d7f5d3SJohn Marino Add functions for escaping double quotes in strings. 61086d7f5d3SJohn Marino Rename count_chars_len to count_chars. 61186d7f5d3SJohn Marino Use return_0 in a couple more places. 61286d7f5d3SJohn Marino Correct a function name typo in _line_append error message. 61386d7f5d3SJohn Marino Include limits.h in clvmd so it compiles with newer headers. 61486d7f5d3SJohn Marino Add VirtIO disks (virtblk) to filters. 61586d7f5d3SJohn Marino Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30) 61686d7f5d3SJohn Marino Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30) 61786d7f5d3SJohn Marino Add missing no-longer-used segs_using_this_lv test to check_lv_segments. 61886d7f5d3SJohn Marino Remove redundant non-NULL tests before calling free in clvmd.c. 61986d7f5d3SJohn Marino Avoid a compiler warning: make is_orphan's parameter const. 62086d7f5d3SJohn Marino Fix lvconvert detection of mirror conversion in progress. (2.02.30) 62186d7f5d3SJohn Marino Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30) 62286d7f5d3SJohn Marino Fix 'pvs -a' to detect VGs of PVs without metadata areas. 62386d7f5d3SJohn Marino Divide up internal orphan volume group by format type. 62486d7f5d3SJohn Marino Update usage message for clvmd. 62586d7f5d3SJohn Marino Fix clvmd man page not to print <br> and clarified debug options. 62686d7f5d3SJohn Marino Fix lvresize to support /dev/mapper prefix in the LV name. 62786d7f5d3SJohn Marino Fix unfilled parameter passed to fsadm from lvresize. 62886d7f5d3SJohn Marino Update fsadm to call lvresize if the partition size differs (with option -l). 62986d7f5d3SJohn Marino Fix fsadm to support VG/LV names. 63086d7f5d3SJohn Marino 63186d7f5d3SJohn MarinoVersion 2.02.33 - 31st January 2008 63286d7f5d3SJohn Marino=================================== 63386d7f5d3SJohn Marino Fix mirror log name construction during lvconvert. (2.02.30) 63486d7f5d3SJohn Marino Make monitor_dev_for_events recurse through the stack of LVs. 63586d7f5d3SJohn Marino Clean up some more compiler warnings. 63686d7f5d3SJohn Marino Some whitespace tidy-ups. 63786d7f5d3SJohn Marino Use stack return macros throughout. 63886d7f5d3SJohn Marino Rely upon internally-cached PV labels while corresponding VG lock is held. 63986d7f5d3SJohn Marino 64086d7f5d3SJohn MarinoVersion 2.02.32 - 29th January 2008 64186d7f5d3SJohn Marino=================================== 64286d7f5d3SJohn Marino Fix two check_lv_segments error messages to show whole segment. 64386d7f5d3SJohn Marino Refactor mirror log attachment code. 64486d7f5d3SJohn Marino Fix internal metadata corruption in lvchange --resync. (2.02.30) 64586d7f5d3SJohn Marino Fix new parameter validation in vgsplit and test mode. (2.02.30) 64686d7f5d3SJohn Marino Remove redundant cnxman-socket.h file from clvmd directory. 64786d7f5d3SJohn Marino Fix pvs, vgs, lvs error exit status on some error paths. 64886d7f5d3SJohn Marino 64986d7f5d3SJohn MarinoVersion 2.02.31 - 19th January 2008 65086d7f5d3SJohn Marino=================================== 65186d7f5d3SJohn Marino Fix lvcreate --nosync not to wait for non-happening sync. (2.02.30) 65286d7f5d3SJohn Marino Add very_verbose lvconvert messages. 65386d7f5d3SJohn Marino Avoid readahead error message with default setting of lvcreate -M1. (2.02.29) 65486d7f5d3SJohn Marino 65586d7f5d3SJohn MarinoVersion 2.02.30 - 17th January 2008 65686d7f5d3SJohn Marino=================================== 65786d7f5d3SJohn Marino Set default readahead to twice maximium stripe size. 65886d7f5d3SJohn Marino Reinstate VG extent size and stripe size defaults (halved). (2.02.29) 65986d7f5d3SJohn Marino Add lists of stacked LV segments using each LV to the internal metadata. 66086d7f5d3SJohn Marino Change vgsplit -l (for unimplemented --list) into --maxlogicalvolumes. 66186d7f5d3SJohn Marino Fix process_all_pvs to detect non-orphans with no MDAs correctly. 66286d7f5d3SJohn Marino Don't use block_on_error with mirror targets version 1.12 and above. 66386d7f5d3SJohn Marino Update vgsplit to accept vgcreate options when new VG is destination. 66486d7f5d3SJohn Marino Update vgsplit to accept existing VG as destination. 66586d7f5d3SJohn Marino lvconvert waits for completion of initial sync by default. 66686d7f5d3SJohn Marino Refactor vgcreate for parameter validation and add tests. 66786d7f5d3SJohn Marino Add new convert_lv field to lvs output. 66886d7f5d3SJohn Marino Print warning when lvm tools are running as non-root. 66986d7f5d3SJohn Marino Add snapshot dmeventd library (enables dmeventd snapshot monitoring). 67086d7f5d3SJohn Marino Prevent pvcreate from overwriting MDA-less PVs belonging to active VGs. 67186d7f5d3SJohn Marino Fix a segfault if using pvs with --all argument. (2.02.29) 67286d7f5d3SJohn Marino Update --uuid argument description in man pages. 67386d7f5d3SJohn Marino Fix vgreduce PV list processing not to process every PV in the VG. (2.02.29) 67486d7f5d3SJohn Marino Extend lvconvert to use polldaemon. 67586d7f5d3SJohn Marino Add support for stacked mirrors. 67686d7f5d3SJohn Marino Major restructuring of pvmove and lvconvert layer manipulation code. 67786d7f5d3SJohn Marino Replace tools/fsadm with scripts/fsadm.sh. 67886d7f5d3SJohn Marino Append fields to report/pvsegs_cols_verbose. 67986d7f5d3SJohn Marino Permit LV segment fields with PV segment reports. 68086d7f5d3SJohn Marino Add seg_start_pe and seg_pe_ranges to reports. 68186d7f5d3SJohn Marino 68286d7f5d3SJohn MarinoVersion 2.02.29 - 5th December 2007 68386d7f5d3SJohn Marino=================================== 68486d7f5d3SJohn Marino Make clvmd backup vg metadata on remote nodes. 68586d7f5d3SJohn Marino Refactor pvmove allocation code. 68686d7f5d3SJohn Marino Decode cluster locking state in log message. 68786d7f5d3SJohn Marino Change file locking state messages from debug to very verbose. 68886d7f5d3SJohn Marino Fix --addtag to drop @ prefix from name. 68986d7f5d3SJohn Marino Stop clvmd going haywire if a pre_function fails. 69086d7f5d3SJohn Marino Convert some vg_reads into vg_lock_and_reads. 69186d7f5d3SJohn Marino Avoid nested vg_reads when processing PVs in VGs and fix associated locking. 69286d7f5d3SJohn Marino Accept sizes with --readahead argument. 69386d7f5d3SJohn Marino Store size arguments as sectors internally. 69486d7f5d3SJohn Marino Attempt to remove incomplete LVs with lvcreate zeroing/activation problems. 69586d7f5d3SJohn Marino Add read_ahead activation code. 69686d7f5d3SJohn Marino Add activation/readahead configuration option and FMT_RESTRICTED_READAHEAD. 69786d7f5d3SJohn Marino Extend readahead arg to accept "auto" and "none". 69886d7f5d3SJohn Marino Add lv_read_ahead and lv_kernel_read_ahead fields to reports and lvdisplay. 69986d7f5d3SJohn Marino Prevent lvconvert -s from using same LV as origin and snapshot. 70086d7f5d3SJohn Marino Fix human-readable output of odd numbers of sectors. 70186d7f5d3SJohn Marino Add pv_mda_free and vg_mda_free fields to reports for raw text format. 70286d7f5d3SJohn Marino Add LVM2 version to 'Generated by' comment in metadata. 70386d7f5d3SJohn Marino Show 'not usable' space when PV is too large for device in pvdisplay. 70486d7f5d3SJohn Marino Ignore and fix up any excessive device size found in metadata. 70586d7f5d3SJohn Marino Fix error message when fixing up PV size in lvm2 metadata (2.02.11). 70686d7f5d3SJohn Marino Fix orphan-related locking in pvdisplay and pvs. 70786d7f5d3SJohn Marino Fix missing VG unlocks in some pvchange error paths. 70886d7f5d3SJohn Marino Add some missing validation of VG names. 70986d7f5d3SJohn Marino Rename validate_vg_name() to validate_new_vg_name(). 71086d7f5d3SJohn Marino Change orphan lock to VG_ORPHANS. 71186d7f5d3SJohn Marino Change format1 to use ORPHAN as orphan VG name. 71286d7f5d3SJohn Marino Convert pvchange, pvdisplay, pvscan to use is_orphan() 71386d7f5d3SJohn Marino Add is_orphan_vg() and change all hard-coded checks to use it. 71486d7f5d3SJohn Marino Detect md superblocks version 1.0, 1.1 and 1.2. 71586d7f5d3SJohn Marino Add _alloc_pv() and _free_pv() from _pv_create() code and fix error paths. 71686d7f5d3SJohn Marino Add pv_dev_name() to access PV device name. 71786d7f5d3SJohn Marino Add const attributes to pv accessor functions. 71886d7f5d3SJohn Marino Refactor vg_add_snapshot() and lv_create_empty(). 71986d7f5d3SJohn Marino Handle new sysfs subsystem/block/devices directory structure. 72086d7f5d3SJohn Marino Run test with LVM_SYSTEM_DIR pointing to private root and /dev dirs. 72186d7f5d3SJohn Marino Fix a bug in lvm_dump.sh checks for lvm/dmsetup binaries. 72286d7f5d3SJohn Marino Fix underquotations in lvm_dump.sh. 72386d7f5d3SJohn Marino Refactor lvcreate stripe and mirror parameter validation. 72486d7f5d3SJohn Marino Print --help output to stdout, not stderr. 72586d7f5d3SJohn Marino After a cmdline processing error, don't print help text but suggest --help. 72686d7f5d3SJohn Marino Add %PVS extents option to lvresize, lvextend, and lvcreate. 72786d7f5d3SJohn Marino Add 'make check' to run tests in new subdirectory 'test'. 72886d7f5d3SJohn Marino Moved the obsolete test subdirectory to old-tests. 72986d7f5d3SJohn Marino Cope with relative paths in configure --with-dmdir. 73086d7f5d3SJohn Marino Remove no-longer-correct restrictions on PV arg count with stripes/mirrors. 73186d7f5d3SJohn Marino Fix strdup memory leak in str_list_dup(). 73286d7f5d3SJohn Marino Link with -lpthread when static SELinux libraries require that. 73386d7f5d3SJohn Marino Detect command line PE values that exceed their 32-bit range. 73486d7f5d3SJohn Marino Include strerror string in dev_open_flags' stat failure message. 73586d7f5d3SJohn Marino Move guts of pvresize into library. 73686d7f5d3SJohn Marino Avoid error when --corelog is provided without --mirrorlog. (2.02.28) 73786d7f5d3SJohn Marino Correct --mirrorlog argument name in man pages (not --log). 73886d7f5d3SJohn Marino Clear MIRROR_NOTSYNCED LV flag when converting from mirror to linear. 73986d7f5d3SJohn Marino Modify lvremove to prompt for removal if LV active on other cluster nodes. 74086d7f5d3SJohn Marino Add '-f' to vgremove to force removal of VG even if LVs exist. 74186d7f5d3SJohn Marino 74286d7f5d3SJohn MarinoVersion 2.02.28 - 24th August 2007 74386d7f5d3SJohn Marino================================== 74486d7f5d3SJohn Marino Fix clvmd logging so you can get lvm-level debugging out of it. 74586d7f5d3SJohn Marino Introduce VG_GLOBAL lock type for vgscan/pvscan to trigger clvmd -R. 74686d7f5d3SJohn Marino Change locking_flags from int to uint32_t. 74786d7f5d3SJohn Marino Fix clvmd -R, so it fully refreshes the caches. 74886d7f5d3SJohn Marino Change lvconvert_mirrors to use mirror segtype not striped. 74986d7f5d3SJohn Marino Fix lvconvert_mirrors detection of number of existing mirrors. 75086d7f5d3SJohn Marino Clean up numerous compiler warnings that appeared in recent releases. 75186d7f5d3SJohn Marino Remove several unused parameters from _allocate(). 75286d7f5d3SJohn Marino Only permit --force, --verbose and --debug arguments to be repeated. 75386d7f5d3SJohn Marino Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 75486d7f5d3SJohn Marino Move guts of vgremove and lvremove into library, including yes_no_prompt. 75586d7f5d3SJohn Marino Allow clvmd debug to be turned on in a running daemon using clvmd -d [-C]. 75686d7f5d3SJohn Marino Update to use autoconf 2.61, while still supporting 2.57. 75786d7f5d3SJohn Marino Add more cluster info to lvmdump. 75886d7f5d3SJohn Marino Add further const attributes throughout. 75986d7f5d3SJohn Marino Add support for renaming mirrored LVs. 76086d7f5d3SJohn Marino Factor out core of lvrename() to library function. 76186d7f5d3SJohn Marino Add --mirrorlog argument to specify log type for mirrors. 76286d7f5d3SJohn Marino Don't attempt to monitor devices if their creation failed in _lv_activate. 76386d7f5d3SJohn Marino Don't leak a file descriptor in fcntl_lock_file() when fcntl fails. 76486d7f5d3SJohn Marino Replace create_dir with dm_create_dir. 76586d7f5d3SJohn Marino Detect stream write failure reliably with lvm_fclose using dm_fclose. 76686d7f5d3SJohn Marino Fix clvmd if compiled with gulm support. (2.02.26) 76786d7f5d3SJohn Marino Fix lvdisplay man page to say LV size is reported in sectors, not KB. 76886d7f5d3SJohn Marino Add vg_lock_and_read() external library function. 76986d7f5d3SJohn Marino Fix loading of persistent cache if cache_dir is used. (2.02.23) 77086d7f5d3SJohn Marino Reduce _compare_paths lstat error message from log_error to log_very_verbose. 77186d7f5d3SJohn Marino Create util.h with last_path_component replacing strdup + basename. 77286d7f5d3SJohn Marino Use gcc's printf attribute wherever possible. 77386d7f5d3SJohn Marino In _line_append, use "sizeof buf - 1" rather than equivalent "4095". 77486d7f5d3SJohn Marino Introduce is_same_inode macro, now including a comparison of st_dev. 77586d7f5d3SJohn Marino Don't leak a file descriptor in _lock_file() when flock fails. 77686d7f5d3SJohn Marino Add SUN's LDOM virtual block device (vdisk) and ps3disk to filters. 77786d7f5d3SJohn Marino Split metadata-external.h out from metadata.h for the tools to use. 77886d7f5d3SJohn Marino 77986d7f5d3SJohn MarinoVersion 2.02.27 - 17th July 2007 78086d7f5d3SJohn Marino================================ 78186d7f5d3SJohn Marino Fix snapshot cow area deactivation if origin is not active. (2.02.13) 78286d7f5d3SJohn Marino Fix configure libdevmapper.h check when --with-dmdir is used. 78386d7f5d3SJohn Marino Turn _add_pv_to_vg() into external library function add_pv_to_vg(). 78486d7f5d3SJohn Marino Add pv_by_path() external library function. 78586d7f5d3SJohn Marino Tidy clvmd-openais of redundant bits, and improve an error report. 78686d7f5d3SJohn Marino Cope with find_seg_by_le() failure in check_lv_segments(). 78786d7f5d3SJohn Marino Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint. 78886d7f5d3SJohn Marino Add vg_mda_count and pv_mda_count columns to reports. 78986d7f5d3SJohn Marino Fix dumpconfig to use log_print instead of stdout directly. 79086d7f5d3SJohn Marino Remove unused parameter 'fid' from _add_pv_to_vg. 79186d7f5d3SJohn Marino Add kernel and device-mapper targets versions to lvmdump. 79286d7f5d3SJohn Marino Replace BSD (r)index with C89 str(r)chr. 79386d7f5d3SJohn Marino Handle vgsplit of an entire VG as a vgrename. 79486d7f5d3SJohn Marino Reinitialise internal lvmdiskscan variables when called repeatedly. 79586d7f5d3SJohn Marino Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23) 79686d7f5d3SJohn Marino Add vg_status function and clean up vg->status in tools directory. 79786d7f5d3SJohn Marino Add --ignoremonitoring to disable all dmeventd interaction. 79886d7f5d3SJohn Marino Remove get_ prefix from get_pv_* functions. 79986d7f5d3SJohn Marino clvmd-openais now uses cpg_local_get() to get nodeid, rather than Clm. 80086d7f5d3SJohn Marino Print warnings to stderr instead of stdout. 80186d7f5d3SJohn Marino 80286d7f5d3SJohn MarinoVersion 2.02.26 - 15th June 2007 80386d7f5d3SJohn Marino================================ 80486d7f5d3SJohn Marino Update vgcfgrestore man page. 80586d7f5d3SJohn Marino Allow keyboard interrupt during user prompts when appropriate. 80686d7f5d3SJohn Marino Remove unused clvmd system-lv code. 80786d7f5d3SJohn Marino Replace many physical_volume struct dereferences with new get_pv_* functions. 80886d7f5d3SJohn Marino Suppress a benign compile-time warning. 80986d7f5d3SJohn Marino Convert find_pv_in_vg_by_uuid and pv_create to use PV handles. 81086d7f5d3SJohn Marino Add wrappers to some functions in preparation for external LVM library. 81186d7f5d3SJohn Marino Add -f to vgcfgrestore to list metadata backup files. 81286d7f5d3SJohn Marino Add vg_check_status to consolidate vg status checks and error messages. 81386d7f5d3SJohn Marino Add pvdisplay --maps implementation. 81486d7f5d3SJohn Marino Remove unsupported LVM1 options from vgcfgrestore man page. 81586d7f5d3SJohn Marino Update vgcfgrestore man page to show mandatory VG name. 81686d7f5d3SJohn Marino Update vgrename man page to include UUID and be consistent with lvrename. 81786d7f5d3SJohn Marino Add (experimental) OpenAIS support to clvmd. 81886d7f5d3SJohn Marino Fix deactivation code to follow dependencies and remove symlinks. 81986d7f5d3SJohn Marino Fix and clarify vgsplit error messages. 82086d7f5d3SJohn Marino Fix a segfault in device_is_usable() if a device has no table. 82186d7f5d3SJohn Marino Add some more debug messages to clvmd startup. 82286d7f5d3SJohn Marino Misc clvmd cleanups. 82386d7f5d3SJohn Marino 82486d7f5d3SJohn MarinoVersion 2.02.25 - 27th April 2007 82586d7f5d3SJohn Marino================================= 82686d7f5d3SJohn Marino Fix get_config_uint64() to read a 64-bit value not a 32-bit one. 82786d7f5d3SJohn Marino Add -Wformat-security and change one fprintf() to fputs(). 82886d7f5d3SJohn Marino Move regex functions into libdevmapper. 82986d7f5d3SJohn Marino Change some #include lines to search only standard system directories. 83086d7f5d3SJohn Marino Add devices/preferred_names config regex list for displayed device names. 83186d7f5d3SJohn Marino Free a temporary dir string in fcntl_lock_file() after use. 83286d7f5d3SJohn Marino Fix a dm_pool_destroy() in matcher_create(). 83386d7f5d3SJohn Marino Introduce goto_bad macro. 83486d7f5d3SJohn Marino Fix warnings on x86_64 involving ptrdiff_t in log_error messages. 83586d7f5d3SJohn Marino Update pvck to include text metadata area and record detection. 83686d7f5d3SJohn Marino Add support functions for token counting in config file extracts. 83786d7f5d3SJohn Marino Update pvck to read labels on disk, with --labelsector parameter. 83886d7f5d3SJohn Marino Add count_chars and count_chars_len functions. 83986d7f5d3SJohn Marino Add /sys/block listings to lvm_dump.sh. 84086d7f5d3SJohn Marino Make lvm_dump.sh list /dev recursively. 84186d7f5d3SJohn Marino Fix thread race in clvmd. 84286d7f5d3SJohn Marino Add scan_sector param to label_read and _find_labeller. 84386d7f5d3SJohn Marino Make clvmd cope with quorum devices. 84486d7f5d3SJohn Marino Add extra internal error checking to clvmd. 84586d7f5d3SJohn Marino Add dev_read_circular. 84686d7f5d3SJohn Marino Add pvck command stub. 84786d7f5d3SJohn Marino Update lists of attribute characters in man pages. 84886d7f5d3SJohn Marino Change cling alloc policy attribute character from 'C' to l'. 84986d7f5d3SJohn Marino Fix creation and conversion of mirrors with tags. 85086d7f5d3SJohn Marino Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata). 85186d7f5d3SJohn Marino Split metadata areas in vgsplit properly. 85286d7f5d3SJohn Marino 85386d7f5d3SJohn MarinoVersion 2.02.24 - 19th March 2007 85486d7f5d3SJohn Marino================================= 85586d7f5d3SJohn Marino Fix processing of exit status in init scripts 85686d7f5d3SJohn Marino Fix vgremove to require at least one vg argument. 85786d7f5d3SJohn Marino Fix reading of striped LVs in LVM1 format. 85886d7f5d3SJohn Marino Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10) 85986d7f5d3SJohn Marino Add a few missing pieces of vgname command line validation. 86086d7f5d3SJohn Marino Support the /dev/mapper prefix on most command lines. 86186d7f5d3SJohn Marino 86286d7f5d3SJohn MarinoVersion 2.02.23 - 8th March 2007 86386d7f5d3SJohn Marino================================ 86486d7f5d3SJohn Marino Fix vgrename active LV check to ignore differing vgids. 86586d7f5d3SJohn Marino Remove no-longer-used uuid_out parameter from activation info functions. 86686d7f5d3SJohn Marino Fix two more segfaults if an empty config file section encountered. 86786d7f5d3SJohn Marino Move .cache file into a new /etc/lvm/cache directory by default. 86886d7f5d3SJohn Marino Add devices/cache_dir & devices/cache_file_prefix, deprecating devices/cache. 86986d7f5d3SJohn Marino Create directory in fcntl_lock_file() if required. 87086d7f5d3SJohn Marino Exclude readline support from lvm.static. 87186d7f5d3SJohn Marino Fix a leak in a reporting error path (2.02.19). 87286d7f5d3SJohn Marino 87386d7f5d3SJohn MarinoVersion 2.02.22 - 13th February 2007 87486d7f5d3SJohn Marino==================================== 87586d7f5d3SJohn Marino Correct -b and -P on a couple of man pages. 87686d7f5d3SJohn Marino Add global/units to example.conf. 87786d7f5d3SJohn Marino Fix loading of segment_libraries. 87886d7f5d3SJohn Marino If a PV reappears after it was removed from its VG, make it an orphan. 87986d7f5d3SJohn Marino Don't update metadata automatically if VGIDs don't match. 88086d7f5d3SJohn Marino Fix some vgreduce --removemissing command line validation. 88186d7f5d3SJohn Marino 88286d7f5d3SJohn MarinoVersion 2.02.21 - 30th January 2007 88386d7f5d3SJohn Marino=================================== 88486d7f5d3SJohn Marino Add warning to lvm2_monitoring_init_rhel4 if attempting to stop monitoring. 88586d7f5d3SJohn Marino Fix vgsplit to handle mirrors. 88686d7f5d3SJohn Marino Reorder fields in reporting field definitions. 88786d7f5d3SJohn Marino Fix vgs to treat args as VGs even when PV fields are displayed. 88886d7f5d3SJohn Marino Fix md signature check to handle both endiannesses. 88986d7f5d3SJohn Marino 89086d7f5d3SJohn MarinoVersion 2.02.20 - 25th January 2007 89186d7f5d3SJohn Marino=================================== 89286d7f5d3SJohn Marino dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors. 89386d7f5d3SJohn Marino Add devices/ignore_suspended_devices to ignore suspended dm devices. 89486d7f5d3SJohn Marino Add some missing close() and fclose() return code checks. 89586d7f5d3SJohn Marino Fix exit statuses of reporting tools (2.02.19). 89686d7f5d3SJohn Marino Add init script for dmeventd monitoring. 89786d7f5d3SJohn Marino lvm.static no longer interacts with dmeventd unless explicitly asked to. 89886d7f5d3SJohn Marino Add field definitions to report help text. 89986d7f5d3SJohn Marino Remove unnecessary cmd arg from target_*monitor_events(). 90086d7f5d3SJohn Marino Add private variable to dmeventd shared library interface. 90186d7f5d3SJohn Marino Long-lived processes write out persistent dev cache in refresh_toolcontext(). 90286d7f5d3SJohn Marino Fix refresh_toolcontext() always to wipe persistent device filter cache. 90386d7f5d3SJohn Marino Add is_long_lived to toolcontext. 90486d7f5d3SJohn Marino Add --clustered to man pages. 90586d7f5d3SJohn Marino Streamline dm_report_field_* interface. 90686d7f5d3SJohn Marino Change remaining dmeventd terminology 'register' to 'monitor'. 90786d7f5d3SJohn Marino Update reporting man pages. 90886d7f5d3SJohn Marino No longer necessary to specify alignment type for report fields. 90986d7f5d3SJohn Marino 91086d7f5d3SJohn MarinoVersion 2.02.19 - 17th January 2007 91186d7f5d3SJohn Marino=================================== 91286d7f5d3SJohn Marino Fix a segfault if an empty config file section encountered. 91386d7f5d3SJohn Marino Move basic reporting functions into libdevmapper. 91486d7f5d3SJohn Marino Fix partition table processing after sparc changes (2.02.16). 91586d7f5d3SJohn Marino Fix cmdline PE range processing segfault (2.02.13). 91686d7f5d3SJohn Marino Some libdevmapper-event interface changes. 91786d7f5d3SJohn Marino Report dmeventd mirror monitoring status. 91886d7f5d3SJohn Marino Fix dmeventd mirror status line processing. 91986d7f5d3SJohn Marino 92086d7f5d3SJohn MarinoVersion 2.02.18 - 11th January 2007 92186d7f5d3SJohn Marino=================================== 92286d7f5d3SJohn Marino Revised libdevmapper-event interface for dmeventd. 92386d7f5d3SJohn Marino Remove dmeventd mirror status line word limit. 92486d7f5d3SJohn Marino Use CFLAGS when linking so mixed sparc builds can supply -m64. 92586d7f5d3SJohn Marino Prevent permission changes on active mirrors. 92686d7f5d3SJohn Marino Print warning instead of error message if lvconvert cannot zero volume. 92786d7f5d3SJohn Marino Add snapshot options to lvconvert man page. 92886d7f5d3SJohn Marino dumpconfig accepts a list of configuration variables to display. 92986d7f5d3SJohn Marino Change dumpconfig to use --file to redirect output to a file. 93086d7f5d3SJohn Marino Avoid vgreduce error when mirror code removes the log LV. 93186d7f5d3SJohn Marino Remove 3 redundant AC_MSG_RESULTs from configure.in. 93286d7f5d3SJohn Marino Free memory in _raw_read_mda_header() error paths. 93386d7f5d3SJohn Marino Fix ambiguous vgsplit error message for split LV. 93486d7f5d3SJohn Marino Fix lvextend man page typo. 93586d7f5d3SJohn Marino Add configure --with-dmdir to compile against a device-mapper source tree. 93686d7f5d3SJohn Marino Use no flush suspending for mirrors. 93786d7f5d3SJohn Marino Add dmeventd_mirror register_mutex, tidy initialisation & add memlock. 93886d7f5d3SJohn Marino Fix create mirror with name longer than 22 chars. 93986d7f5d3SJohn Marino Fix some activate.c prototypes when compiled without devmapper. 94086d7f5d3SJohn Marino Fix dmeventd mirror to cope if monitored device disappears. 94186d7f5d3SJohn Marino 94286d7f5d3SJohn MarinoVersion 2.02.17 - 14th December 2006 94386d7f5d3SJohn Marino==================================== 94486d7f5d3SJohn Marino Add missing pvremove error message when device doesn't exist. 94586d7f5d3SJohn Marino When lvconvert allocates a mirror log, respect parallel area constraints. 94686d7f5d3SJohn Marino Use loop to iterate through the now-ordered policy list in _allocate(). 94786d7f5d3SJohn Marino Check for failure to allocate just the mirror log. 94886d7f5d3SJohn Marino Introduce calc_area_multiple(). 94986d7f5d3SJohn Marino Support mirror log allocation when there is only one PV: area_count now 0. 95086d7f5d3SJohn Marino Fix detection of smallest area in _alloc_parallel_area() for cling policy. 95186d7f5d3SJohn Marino Add manpage entry for clvmd -T 95286d7f5d3SJohn Marino Fix gulm operation of clvmd, including a hang when doing lvchange -aey 95386d7f5d3SJohn Marino Fix hang in clvmd if a pre-command failed. 95486d7f5d3SJohn Marino 95586d7f5d3SJohn MarinoVersion 2.02.16 - 1st December 2006 95686d7f5d3SJohn Marino=================================== 95786d7f5d3SJohn Marino Fix VG clustered read locks to use PR not CR. 95886d7f5d3SJohn Marino Adjust some alignments for ia64/sparc. 95986d7f5d3SJohn Marino Fix mirror segment removal to use temporary error segment. 96086d7f5d3SJohn Marino Always compile debug logging into clvmd. 96186d7f5d3SJohn Marino Add startup timeout to RHEL4 clvmd startup script. 96286d7f5d3SJohn Marino Add -T (startup timeout) switch to clvmd. 96386d7f5d3SJohn Marino Improve lvm_dump.sh robustness. 96486d7f5d3SJohn Marino Update lvm2create_initrd to support gentoo. 96586d7f5d3SJohn Marino 96686d7f5d3SJohn MarinoVersion 2.02.15 - 21st November 2006 96786d7f5d3SJohn Marino==================================== 96886d7f5d3SJohn Marino Fix clvmd_init_rhel4 line truncation (2.02.14). 96986d7f5d3SJohn Marino Install lvmdump by default. 97086d7f5d3SJohn Marino Fix check for snapshot module when activating snapshot. 97186d7f5d3SJohn Marino Fix pvremove error path for case when PV is in use. 97286d7f5d3SJohn Marino Warn if certain duplicate config file entries are seen. 97386d7f5d3SJohn Marino Enhance lvm_dump.sh for sysreport integration and add man page. 97486d7f5d3SJohn Marino Fix --autobackup argument which could never disable backups. 97586d7f5d3SJohn Marino Fix a label_verify error path. 97686d7f5d3SJohn Marino 97786d7f5d3SJohn MarinoVersion 2.02.14 - 10th November 2006 97886d7f5d3SJohn Marino==================================== 97986d7f5d3SJohn Marino Fix adjusted_mirror_region_size() to handle 64-bit size. 98086d7f5d3SJohn Marino Add some missing bounds checks on 32-bit extent counters. 98186d7f5d3SJohn Marino Add Petabyte and Exabyte support. 98286d7f5d3SJohn Marino Fix lvcreate error message when 0 extents requested. 98386d7f5d3SJohn Marino lvremove man page: volumes must be cluster inactive before being removed. 98486d7f5d3SJohn Marino Protect .cache manipulations with fcntl locking. 98586d7f5d3SJohn Marino Change .cache timestamp comparisons to use ctime. 98686d7f5d3SJohn Marino Fix mirror log LV writing to set all bits in whole LV. 98786d7f5d3SJohn Marino Fix clustered VG detection and default runlevels in clvmd_init_rhel4. 98886d7f5d3SJohn Marino Fix high-level free space check for partial allocations. 98986d7f5d3SJohn Marino 99086d7f5d3SJohn MarinoVersion 2.02.13 - 27th October 2006 99186d7f5d3SJohn Marino=================================== 99286d7f5d3SJohn Marino Add couple of missing files to tools/Makefile CLEAN_TARGETS. 99386d7f5d3SJohn Marino When adding snapshot leave cow LV mapped device active after zeroing. 99486d7f5d3SJohn Marino Fix a clvmd debug message. 99586d7f5d3SJohn Marino Add dev_flush() to set_lv(). 99686d7f5d3SJohn Marino Add lvchange --resync. 99786d7f5d3SJohn Marino Perform high-level free space check before each allocation attempt. 99886d7f5d3SJohn Marino Don't allow a node to remove an LV that's exclusively active on anther node. 99986d7f5d3SJohn Marino Cope if same PV is included more than once in cmdline PE range list. 100086d7f5d3SJohn Marino Set PV size to current device size if it is found to be zero. 100186d7f5d3SJohn Marino Add segment parameter to target_present functions. 100286d7f5d3SJohn Marino 100386d7f5d3SJohn MarinoVersion 2.02.12 - 16th October 2006 100486d7f5d3SJohn Marino=================================== 100586d7f5d3SJohn Marino Fix pvdisplay to use vg_read() for non-orphans. 100686d7f5d3SJohn Marino Fall back to internal locking if external locking lib is missing or fails. 100786d7f5d3SJohn Marino Retain activation state after changing LV minor number with --force. 100886d7f5d3SJohn Marino Propagate clustered flag in vgsplit and require resizeable flag. 100986d7f5d3SJohn Marino 101086d7f5d3SJohn MarinoVersion 2.02.11 - 12th October 2006 101186d7f5d3SJohn Marino=================================== 101286d7f5d3SJohn Marino Add clvmd function to return the cluster name. not used by LVM yet. 101386d7f5d3SJohn Marino Add cling allocation policy. 101486d7f5d3SJohn Marino Change _check_contiguous() to use _for_each_pv(). 101586d7f5d3SJohn Marino Extend _for_each_pv() to allow termination without error. 101686d7f5d3SJohn Marino Abstract _is_contiguous(). 101786d7f5d3SJohn Marino Remove duplicated pv arg from _check_contiguous(). 101886d7f5d3SJohn Marino Accept regionsize with lvconvert. 101986d7f5d3SJohn Marino Add report columns with underscore before field names ending 'size'. 102086d7f5d3SJohn Marino Correct regionsize default on lvcreate man page (MB). 102186d7f5d3SJohn Marino Fix clvmd bug that could cause it to die when a node with a long name crashed. 102286d7f5d3SJohn Marino Add device size to text metadata. 102386d7f5d3SJohn Marino Fix format_text mda_setup pv->size and pv_setup pe_count calculations. 102486d7f5d3SJohn Marino Fix _for_each_pv() for mirror with core log. 102586d7f5d3SJohn Marino Add lvm_dump.sh script to create a tarball of debugging info from a system. 102686d7f5d3SJohn Marino Capture error messages in clvmd and pass them back to the user. 102786d7f5d3SJohn Marino Remove unused #defines from filter-md.c. 102886d7f5d3SJohn Marino Make clvmd restart init script wait until clvmd has died before starting it. 102986d7f5d3SJohn Marino Add -R to clvmd which tells running clvmds to reload their device cache. 103086d7f5d3SJohn Marino Add LV column to reports listing kernel modules needed for activation. 103186d7f5d3SJohn Marino Show available fields if report given invalid field. (e.g. lvs -o list) 103286d7f5d3SJohn Marino Add timestamp functions with --disable-realtime configure option. 103386d7f5d3SJohn Marino Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg. 103486d7f5d3SJohn Marino Fix two potential NULL pointer derefs in error cases in vg_read(). 103586d7f5d3SJohn Marino Separate --enable-cluster from locking lib options in lvmconf.sh. 103686d7f5d3SJohn Marino Add a missing comma in lvcreate man page. 103786d7f5d3SJohn Marino 103886d7f5d3SJohn MarinoVersion 2.02.10 - 19th September 2006 103986d7f5d3SJohn Marino===================================== 104086d7f5d3SJohn Marino Fix lvconvert mirror change case detection logic. 104186d7f5d3SJohn Marino Fix mirror log detachment so it correctly becomes a standalone LV. 104286d7f5d3SJohn Marino Extend _check_contiguous() to detect single-area LVs. 104386d7f5d3SJohn Marino Include mirror log (untested) in _for_each_pv() processing. 104486d7f5d3SJohn Marino Use MIRROR_LOG_SIZE constant. 104586d7f5d3SJohn Marino Remove struct seg_pvs from _for_each_pv() to generalise. 104686d7f5d3SJohn Marino Avoid adding duplicates to list of parallel PVs to avoid. 104786d7f5d3SJohn Marino Fix several incorrect comparisons in parallel area avoidance code. 104886d7f5d3SJohn Marino Fix segment lengths when flattening existing parallel areas. 104986d7f5d3SJohn Marino Log existing parallel areas prior to allocation. 105086d7f5d3SJohn Marino Fix mirror log creation when activation disabled. 105186d7f5d3SJohn Marino Don't attempt automatic recovery without proper locking. 105286d7f5d3SJohn Marino When using local file locking, skip clustered VGs. 105386d7f5d3SJohn Marino Add fallback_to_clustered_locking and fallback_to_local_locking parameters. 105486d7f5d3SJohn Marino lvm.static uses built-in cluster locking instead of external locking. 105586d7f5d3SJohn Marino Don't attempt to load shared libraries if built statically. 105686d7f5d3SJohn Marino Change default locking_lib to liblvm2clusterlock.so. 105786d7f5d3SJohn Marino Add skip_dev_dir() to process command line VGs. 105886d7f5d3SJohn Marino Stop clvmd complaining about nodes that have left the cluster. 105986d7f5d3SJohn Marino Move lvm_snprintf(), split_words() and split_dm_name() into libdevmapper. 106086d7f5d3SJohn Marino Add lvconvert man page. 106186d7f5d3SJohn Marino Add mirror options to man pages. 106286d7f5d3SJohn Marino Prevent mirror renames. 106386d7f5d3SJohn Marino Move CMDLIB code into separate file and record whether static build. 106486d7f5d3SJohn Marino 106586d7f5d3SJohn MarinoVersion 2.02.09 - 17th August 2006 106686d7f5d3SJohn Marino================================== 106786d7f5d3SJohn Marino Fix PE_ALIGN for pagesize over 32KB. 106886d7f5d3SJohn Marino Separate out LVM1_PE_ALIGN and pe_align(). 106986d7f5d3SJohn Marino Add lvm_getpagesize wrapper. 107086d7f5d3SJohn Marino Add --maxphysicalvolumes to vgchange. 107186d7f5d3SJohn Marino 107286d7f5d3SJohn MarinoVersion 2.02.08 - 15th August 2006 107386d7f5d3SJohn Marino================================== 107486d7f5d3SJohn Marino Add checks for duplicate LV name, lvid and PV id before writing metadata. 107586d7f5d3SJohn Marino Report all sanity check failures, not just the first. 107686d7f5d3SJohn Marino Fix missing lockfs on first snapshot creation. 107786d7f5d3SJohn Marino Add unreliable --trustcache option to reporting commands. 107886d7f5d3SJohn Marino Fix locking for mimage removal. 107986d7f5d3SJohn Marino Fix clvmd_init_rhel4 'status' exit code. 108086d7f5d3SJohn Marino 108186d7f5d3SJohn MarinoVersion 2.02.07 - 17th July 2006 108286d7f5d3SJohn Marino================================ 108386d7f5d3SJohn Marino Fix activation logic in lvchange --persistent. 108486d7f5d3SJohn Marino Don't ignore persistent minor numbers when activating. 108586d7f5d3SJohn Marino Use RTLD_GLOBAL when loading shared libraries. 108686d7f5d3SJohn Marino Add some forgotten memlock checks to _vg_read to protect against full scans. 108786d7f5d3SJohn Marino Add mutex to dmeventd_mirror to avoid concurrent execution. 108886d7f5d3SJohn Marino Fix vgreduce --removemissing to return success if VG is already consistent. 108986d7f5d3SJohn Marino Fix return code if VG specified on command line is not found. 109086d7f5d3SJohn Marino Fix PV tools to include orphaned PVs in default output again. 109186d7f5d3SJohn Marino Fixed unaligned access when using clvm. 109286d7f5d3SJohn Marino Fix an extra dev_close in a label_read error path. 109386d7f5d3SJohn Marino Append patches to commit emails. 109486d7f5d3SJohn Marino Fix target_register_events args. 109586d7f5d3SJohn Marino Prevent snapshots of mirrors. 109686d7f5d3SJohn Marino Add DISTCLEAN_TARGETS to make template for configure.h. 109786d7f5d3SJohn Marino More fixes to error paths. 109886d7f5d3SJohn Marino Fix lvcreate corelog validation. 109986d7f5d3SJohn Marino Add --config for overriding most config file settings from cmdline. 110086d7f5d3SJohn Marino Quote arguments when printing command line. 110186d7f5d3SJohn Marino Remove linefeed from 'initialising logging' message. 110286d7f5d3SJohn Marino Add 'Completed' debug message. 110386d7f5d3SJohn Marino Don't attempt library exit after reloading config files. 110486d7f5d3SJohn Marino Always compile with libdevmapper, even if device-mapper is disabled. 110586d7f5d3SJohn Marino 110686d7f5d3SJohn MarinoVersion 2.02.06 - 12th May 2006 110786d7f5d3SJohn Marino=============================== 110886d7f5d3SJohn Marino Propagate --monitor around cluster. 110986d7f5d3SJohn Marino Add --monitor to vgcreate and lvcreate to control dmeventd registration. 111086d7f5d3SJohn Marino Filter LCK_NONBLOCK in clvmd lock_vg. 111186d7f5d3SJohn Marino Add --nosync to lvcreate with LV flag NOTSYNCED. 111286d7f5d3SJohn Marino Use mirror's uuid for a core log. 111386d7f5d3SJohn Marino Add mirror log fault-handling policy. 111486d7f5d3SJohn Marino Improve mirror warning messages and tidy dmeventd syslog output. 111586d7f5d3SJohn Marino Propagate nosync flag around cluster. 111686d7f5d3SJohn Marino Allow vgreduce to handle mirror log failures. 111786d7f5d3SJohn Marino Add --corelog to lvcreate and lvconvert. 111886d7f5d3SJohn Marino Create a log header for replacement in-sync mirror log. 111986d7f5d3SJohn Marino Use set_lv() and dev_set() to wipe sections of devices. 112086d7f5d3SJohn Marino Add mirror_in_sync() flag to avoid unnecessary resync on activation. 112186d7f5d3SJohn Marino Add mirror_library description to example.conf. 112286d7f5d3SJohn Marino Fix uuid_from_num() buffer overrun. 112386d7f5d3SJohn Marino Make SIZE_SHORT the default for display_size(). 112486d7f5d3SJohn Marino Fix some memory leaks in error paths found by coverity. 112586d7f5d3SJohn Marino Use C99 struct initialisers. 112686d7f5d3SJohn Marino Move DEFS into configure.h. 112786d7f5d3SJohn Marino Clean-ups to remove miscellaneous compiler warnings. 112886d7f5d3SJohn Marino Improve stripe size validation. 112986d7f5d3SJohn Marino Increase maximum stripe size limit to physical extent size for lvm2 metadata. 113086d7f5d3SJohn Marino Fix activation code to check for pre-existing mirror logs. 113186d7f5d3SJohn Marino Tighten region size validation. 113286d7f5d3SJohn Marino Ignore empty strings in config files. 113386d7f5d3SJohn Marino Require non-zero regionsize and document parameter on lvcreate man page. 113486d7f5d3SJohn Marino Invalidate cache if composition of VG changed externally. 113586d7f5d3SJohn Marino 113686d7f5d3SJohn MarinoVersion 2.02.05 - 21st April 2006 113786d7f5d3SJohn Marino================================= 113886d7f5d3SJohn Marino Fix vgid string termination in recent cache code. 113986d7f5d3SJohn Marino 114086d7f5d3SJohn MarinoVersion 2.02.04 - 19th April 2006 114186d7f5d3SJohn Marino================================= 114286d7f5d3SJohn Marino Check for libsepol. 114386d7f5d3SJohn Marino Add some cflow & scope support. 114486d7f5d3SJohn Marino Separate out DEFS from CFLAGS. 114586d7f5d3SJohn Marino Remove inlines and use unique function names. 114686d7f5d3SJohn Marino 114786d7f5d3SJohn MarinoVersion 2.02.03 - 14th April 2006 114886d7f5d3SJohn Marino================================= 114986d7f5d3SJohn Marino vgrename accepts vgid and exported VG. 115086d7f5d3SJohn Marino Add --partial to pvs. 115186d7f5d3SJohn Marino When choosing between identically-named VGs, also consider creation_host. 115286d7f5d3SJohn Marino Provide total log suppression with 2. 115386d7f5d3SJohn Marino Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct. 115486d7f5d3SJohn Marino Add vgid to struct physical_volume and pass with vg_name to some functions. 115586d7f5d3SJohn Marino If two or more VGs are found with the same name, use one that is not exported. 115686d7f5d3SJohn Marino Whenever vgname is captured, also capture vgid and whether exported. 115786d7f5d3SJohn Marino Remove an incorrect unlock_vg() from process_each_lv(). 115886d7f5d3SJohn Marino Update extent size information in vgchange and vgcreate man pages. 115986d7f5d3SJohn Marino Introduce origin_from_cow() and lv_is_visible(). 116086d7f5d3SJohn Marino pvremove without -f now fails if there's no PV label. 116186d7f5d3SJohn Marino Support lvconvert -s. 116286d7f5d3SJohn Marino Suppress locking library load failure message if --ignorelockingfailure. 116386d7f5d3SJohn Marino Propagate partial mode around cluster. 116486d7f5d3SJohn Marino Fix archive file expiration. 116586d7f5d3SJohn Marino Fix dmeventd build. 116686d7f5d3SJohn Marino clvmd now uses libcman rather than cman ioctls. 116786d7f5d3SJohn Marino clvmd will allow new cman to shutdown on request. 116886d7f5d3SJohn Marino 116986d7f5d3SJohn MarinoVersion 2.02.02 - 7th February 2006 117086d7f5d3SJohn Marino=================================== 117186d7f5d3SJohn Marino Add %.so: %.a make template rule. 117286d7f5d3SJohn Marino Switchover library building to use LIB_SUFFIX. 117386d7f5d3SJohn Marino Only do lockfs filesystem sync when suspending snapshots. 117486d7f5d3SJohn Marino Always print warning if activation is disabled. 117586d7f5d3SJohn Marino vgreduce removes mirror images. 117686d7f5d3SJohn Marino Add --mirrorsonly to vgreduce. 117786d7f5d3SJohn Marino vgreduce replaces active LVs with error segment before removing them. 117886d7f5d3SJohn Marino Set block_on_error parameter if available. 117986d7f5d3SJohn Marino Add target_version. 118086d7f5d3SJohn Marino Add details to format1 'Invalid LV in extent map' error message. 118186d7f5d3SJohn Marino Fix lvscan snapshot full display. 118286d7f5d3SJohn Marino Bring lvdisplay man page example into line. 118386d7f5d3SJohn Marino Add mirror dmeventd library. 118486d7f5d3SJohn Marino Add some activation logic to remove_mirror_images(). 118586d7f5d3SJohn Marino lvconvert can remove specified PVs from a mirror. 118686d7f5d3SJohn Marino lvconvert turns an existing LV into a mirror. 118786d7f5d3SJohn Marino Allow signed mirrors arguments. 118886d7f5d3SJohn Marino Move create_mirror_log() into toollib. 118986d7f5d3SJohn Marino Determine parallel PVs to avoid with ALLOC_NORMAL allocation. 119086d7f5d3SJohn Marino Fix lv_empty. 119186d7f5d3SJohn Marino 119286d7f5d3SJohn MarinoVersion 2.02.01 - 23rd November 2005 119386d7f5d3SJohn Marino==================================== 119486d7f5d3SJohn Marino Fix lvdisplay cmdline to accept snapshots. 119586d7f5d3SJohn Marino Fix open RO->RW promotion. 119686d7f5d3SJohn Marino Fix missing vg_revert in lvcreate error path. 119786d7f5d3SJohn Marino 119886d7f5d3SJohn MarinoVersion 2.02.00 - 10th November 2005 119986d7f5d3SJohn Marino==================================== 120086d7f5d3SJohn Marino Extend allocation areas to avoid overflow with contiguous with other PVs. 120186d7f5d3SJohn Marino Stop lvcreate attempting to wipe zero or error segments. 120286d7f5d3SJohn Marino Added new lvs table attributes. 120386d7f5d3SJohn Marino Separated out activation preload. 120486d7f5d3SJohn Marino Moved activation functions into libdevmapper. 120586d7f5d3SJohn Marino Fixed build_dm_name. 120686d7f5d3SJohn Marino Add return macros. 120786d7f5d3SJohn Marino Added xen xvd devices. 120886d7f5d3SJohn Marino Clear up precommitted metadata better. 120986d7f5d3SJohn Marino A pvresize implementation. 121086d7f5d3SJohn Marino Fix contiguous allocation when there are no preceding segments. 121186d7f5d3SJohn Marino Add mirror_seg pointer to lv_segment struct. 121286d7f5d3SJohn Marino Only keep a device open if it's known to belong to a locked VG. 121386d7f5d3SJohn Marino Fix lvdisplay to show all mirror destinations. 121486d7f5d3SJohn Marino Replacement suspend code using libdevmapper dependency tree. 121586d7f5d3SJohn Marino Add DEFS to make.tmpl. 121686d7f5d3SJohn Marino Use dm_is_dm_major instead of local copy. 121786d7f5d3SJohn Marino Allow mapped devices to be used as PVs. 121886d7f5d3SJohn Marino Move set_selinux_context into libdevmapper. 121986d7f5d3SJohn Marino Fix automatic text metadata buffer expansion (using macro). 122086d7f5d3SJohn Marino Cache formatted text metadata buffer between metadata area writes. 122186d7f5d3SJohn Marino Add pe_start field to pvs. 122286d7f5d3SJohn Marino Add 'LVM-' prefix to uuids. 122386d7f5d3SJohn Marino Split lv_segment_area from lv_segment to permit extension. 122486d7f5d3SJohn Marino Replacement deactivation code using libdevmapper dependency tree. 122586d7f5d3SJohn Marino Simplify dev_manager_info(). 122686d7f5d3SJohn Marino Attempt to load missing targets using modprobe. 122786d7f5d3SJohn Marino Add -a to lvscan. 122886d7f5d3SJohn Marino Move mknodes into libdevmapper. 122986d7f5d3SJohn Marino Move bitset, hash, pool and dbg_malloc into libdevmapper. 123086d7f5d3SJohn Marino 123186d7f5d3SJohn MarinoVersion 2.01.15 - 16th October 2005 123286d7f5d3SJohn Marino=================================== 123386d7f5d3SJohn Marino Refuse to run pvcreate/pvremove on devices we can't open exclusively. 123486d7f5d3SJohn Marino Use ORPHAN lock definition throughout. 123586d7f5d3SJohn Marino Validate chunksize in lvcreate. 123686d7f5d3SJohn Marino Reduce chunksize limit to 512k. 123786d7f5d3SJohn Marino Fix chunksize field in reports. 123886d7f5d3SJohn Marino Don't hide snapshots from default 'lvs' output. 123986d7f5d3SJohn Marino Add is_dm_major() for use in duplicate device detection in lvmcache_add(). 124086d7f5d3SJohn Marino Really switch device number in lvmcache when it says it is doing so. 124186d7f5d3SJohn Marino Option for bitset memory allocation using malloc as well as pool. 124286d7f5d3SJohn Marino Don't assume exactly two mirrors when parsing mirror status. 124386d7f5d3SJohn Marino Suppress fsync() error message on filesystems that don't support it. 124486d7f5d3SJohn Marino Fix yes_no_prompt() error handling. 124586d7f5d3SJohn Marino Add lvm.conf comment warning against multiple filter lines. 124686d7f5d3SJohn Marino Tidy lvmconf.sh. 124786d7f5d3SJohn Marino Add format1 dev_write debug messages. 124886d7f5d3SJohn Marino Add clustered VG attribute to report. 124986d7f5d3SJohn Marino Move lvconvert parameters into struct lvconvert_params. 125086d7f5d3SJohn Marino Add clustered VG flag to LV lock requests. 125186d7f5d3SJohn Marino Change LV locking macros to take lv instead of lvid. 125286d7f5d3SJohn Marino Prepend 'cluster' activation parameter to mirror log when appropriate. 125386d7f5d3SJohn Marino Pass exclusive flag to lv_activate and on to target activation code. 125486d7f5d3SJohn Marino Prevent snapshot creation in a clustered VG for now. 125586d7f5d3SJohn Marino Factor out adjusted_mirror_region_size() and generate_log_name_format(). 125686d7f5d3SJohn Marino Move compose_log_line() into mirror directory. 125786d7f5d3SJohn Marino Factor out _get_library_path(). 125886d7f5d3SJohn Marino Don't kill idling clvmd threads. 125986d7f5d3SJohn Marino clvmd no longer takes out locks for non-clustered LVs. 126086d7f5d3SJohn Marino Recognise ATA over Ethernet (aoe) devices. 126186d7f5d3SJohn Marino 126286d7f5d3SJohn MarinoVersion 2.01.14 - 4th August 2005 126386d7f5d3SJohn Marino================================= 126486d7f5d3SJohn Marino Fix lvconvert PV parameter in help string. 126586d7f5d3SJohn Marino Prevent snapshots getting activated in a clustered VG. 126686d7f5d3SJohn Marino Separate out _build_dev_string. 126786d7f5d3SJohn Marino Move zero_lv to toollib. 126886d7f5d3SJohn Marino Fix pool format handler to work with pv segment code. 126986d7f5d3SJohn Marino 127086d7f5d3SJohn MarinoVersion 2.01.13 - 13th July 2005 127186d7f5d3SJohn Marino================================ 127286d7f5d3SJohn Marino Fix pvmove segment splitting. 127386d7f5d3SJohn Marino Abstract vg_validate. 127486d7f5d3SJohn Marino Only make one attempt at contiguous allocation. 127586d7f5d3SJohn Marino Fix lvm1 format metadata read. 127686d7f5d3SJohn Marino Fix lvm1 format non-mirror lvcreate. 127786d7f5d3SJohn Marino 127886d7f5d3SJohn MarinoVersion 2.01.12 - 14th June 2005 127986d7f5d3SJohn Marino================================ 128086d7f5d3SJohn Marino Various allocation-related pvmove fixes. 128186d7f5d3SJohn Marino Log an error if clvmd can't resolve a host name got from CCS. 128286d7f5d3SJohn Marino Fix potential spin loop in clvmd. 128386d7f5d3SJohn Marino 128486d7f5d3SJohn MarinoVersion 2.01.11 - 13th June 2005 128586d7f5d3SJohn Marino================================ 128686d7f5d3SJohn Marino Added lvmconf.sh. 128786d7f5d3SJohn Marino Use matchpathcon mode parameter. 128886d7f5d3SJohn Marino Don't defer closing dead FDs in clvmd. 128986d7f5d3SJohn Marino Remove hard-coded 64k text metadata writing restriction. 129086d7f5d3SJohn Marino Make VG name restrictions consistent. 129186d7f5d3SJohn Marino Introduce lvconvert. So far only removes mirror images. 129286d7f5d3SJohn Marino Allow mirror images to be resized. 129386d7f5d3SJohn Marino Allow mirror images to have more than one segment. 129486d7f5d3SJohn Marino Centralise restrictions on LV names. 129586d7f5d3SJohn Marino Always insert an intermediate layer for mirrors. 129686d7f5d3SJohn Marino Suppress hidden LVs from reports unless --all is given. 129786d7f5d3SJohn Marino Use square brackets for hidden LVs in reports. 129886d7f5d3SJohn Marino Allow the creation of mirrors with contiguous extents. 129986d7f5d3SJohn Marino Always perform sanity checks against metadata before committing it to disk. 130086d7f5d3SJohn Marino Split lv_extend into two steps: choosing extents + allocation to LV(s). 130186d7f5d3SJohn Marino Add mirror log region size to metadata. 130286d7f5d3SJohn Marino Use list_iterate_items throughout and add list*back macros. 130386d7f5d3SJohn Marino Introduce seg_ macros to access areas. 130486d7f5d3SJohn Marino Add segtype_is_ macros. 130586d7f5d3SJohn Marino Support tiny metadata areas for pool conversions. 130686d7f5d3SJohn Marino Mirror activation handles disk log as well as core. 130786d7f5d3SJohn Marino Activation code recognises mirror log dependency. 130886d7f5d3SJohn Marino Add mirror_log and regionsize fields to report. 130986d7f5d3SJohn Marino Fix non-orphan pvchange -u. 131086d7f5d3SJohn Marino Fix vgmerge to handle duplicate LVIDs. 131186d7f5d3SJohn Marino Move archiver code from tools into library. 131286d7f5d3SJohn Marino vgscan/change/display/vgs automatically create metadata backups if needed. 131386d7f5d3SJohn Marino Merge cloned allocation functions. 131486d7f5d3SJohn Marino Fix contiguous allocation policy with linear. 131586d7f5d3SJohn Marino Cope with missing format1 PVs again. 131686d7f5d3SJohn Marino Remove lists of free PV segments. 131786d7f5d3SJohn Marino Simplify pv_maps code and remove slow bitset algorithm. 131886d7f5d3SJohn Marino Red-Hat-ify the clvmd rhel4 initscript. 131986d7f5d3SJohn Marino %Zu->%zu 132086d7f5d3SJohn Marino Fix loopfiles alias alloc & mem debugging. 132186d7f5d3SJohn Marino Un-inline dbg_strdup. 132286d7f5d3SJohn Marino lv_reduce tidying. 132386d7f5d3SJohn Marino Remove some unnecessary parameters. 132486d7f5d3SJohn Marino Introduce seg_is macros. 132586d7f5d3SJohn Marino 132686d7f5d3SJohn MarinoVersion 2.01.10 - 3rd May 2005 132786d7f5d3SJohn Marino============================== 132886d7f5d3SJohn Marino Don't create backup and archive dirs till needed. 132986d7f5d3SJohn Marino Reinstate full PV size when removing from VG. 133086d7f5d3SJohn Marino Support loopfiles for testing. 133186d7f5d3SJohn Marino Tidy lv_segment interface. 133286d7f5d3SJohn Marino pv_segment support. 133386d7f5d3SJohn Marino vgchange --physicalextentsize 133486d7f5d3SJohn Marino Internal snapshot restructuring. 133586d7f5d3SJohn Marino Remove unused internal non-persistent snapshot option. 133686d7f5d3SJohn Marino Allow offline extension of snapshot volumes. 133786d7f5d3SJohn Marino Move from 2-step to 3-step on-disk metadata commit. 133886d7f5d3SJohn Marino Scan ramdisks too and allow non-O_DIRECT fallback. 133986d7f5d3SJohn Marino Annotate, tidy and extend list.h. 134086d7f5d3SJohn Marino Alignment tidying. 134186d7f5d3SJohn Marino Make clvmd work around some "bugs" in gulm's node state notifications. 134286d7f5d3SJohn Marino Tidy clvmd's SIGHUP handler 134386d7f5d3SJohn Marino 134486d7f5d3SJohn MarinoVersion 2.01.09 - 4th April 2005 134586d7f5d3SJohn Marino================================ 134686d7f5d3SJohn Marino Add --ignorelockingfailure to vgmknodes. 134786d7f5d3SJohn Marino clvmd: Don't allow user operations to start until the lvm thread is fully up. 134886d7f5d3SJohn Marino clvmd-gulm: set KEEPALIVE on sockets. 134986d7f5d3SJohn Marino 135086d7f5d3SJohn MarinoVersion 2.01.08 - 22nd March 2005 135186d7f5d3SJohn Marino================================= 135286d7f5d3SJohn Marino Add clustered attribute so vgchange can identify clustered VGs w/o locking. 135386d7f5d3SJohn Marino Improve detection of external changes affecting internal cache. 135486d7f5d3SJohn Marino Add 'already in device cache' debug message. 135586d7f5d3SJohn Marino Add -a to pvdisplay -C. 135686d7f5d3SJohn Marino Avoid rmdir opendir error messsages when dir was already removed. 135786d7f5d3SJohn Marino Tighten signal handlers. 135886d7f5d3SJohn Marino Avoid some compiler warnings. 135986d7f5d3SJohn Marino Additional rename failure error message. 136086d7f5d3SJohn Marino read/write may be macros. 136186d7f5d3SJohn Marino clvmd: don't take out lvm thread lock at startup, it only protects jobs list. 136286d7f5d3SJohn Marino 136386d7f5d3SJohn MarinoVersion 2.01.07 - 8th March 2005 136486d7f5d3SJohn Marino================================ 136586d7f5d3SJohn Marino Cope with new devices appearing by rescanning /dev if a uuid can't be found. 136686d7f5d3SJohn Marino Remove DESTDIR from LVM_SHARED_PATH. 136786d7f5d3SJohn Marino clvmd fixes: make FDs close-on-exec 136886d7f5d3SJohn Marino gulm unlocks VG & orphan locks at startup in case they are stale 136986d7f5d3SJohn Marino gulm now unlocks VG & orphan locks if client dies. 137086d7f5d3SJohn Marino 137186d7f5d3SJohn MarinoVersion 2.01.06 - 1st March 2005 137286d7f5d3SJohn Marino================================ 137386d7f5d3SJohn Marino Suppress 'open failed' error messages during scanning. 137486d7f5d3SJohn Marino Option to suppress warnings of file descriptors left open. 137586d7f5d3SJohn Marino Fix default value of metadatacopies in documentation (2->1). 137686d7f5d3SJohn Marino Fix clvmd-gulm locking. 137786d7f5d3SJohn Marino ./configure --enable-debug now enables debugging code in clvmd. 137886d7f5d3SJohn Marino Fix clvmd-gulm node up/down code so it actually works. 137986d7f5d3SJohn Marino clvmd-gulm now releases locks when shut down. 138086d7f5d3SJohn Marino 138186d7f5d3SJohn MarinoVersion 2.01.05 - 18th February 2005 138286d7f5d3SJohn Marino==================================== 138386d7f5d3SJohn Marino Static binary invokes dynamic binary if appropriate. 138486d7f5d3SJohn Marino Make clvmd config check a little more tolerant. 138586d7f5d3SJohn Marino gulm clvmd can now cope with >1 message arriving in a TCP message. 138686d7f5d3SJohn Marino 138786d7f5d3SJohn MarinoVersion 2.01.04 - 9th February 2005 138886d7f5d3SJohn Marino=================================== 138986d7f5d3SJohn Marino Add fixed offset to imported pool minor numbers. 139086d7f5d3SJohn Marino Update binary pathnames in clvmd_init_rhel4. 139186d7f5d3SJohn Marino lvm2cmd.so should skip the check for open fds. 139286d7f5d3SJohn Marino Remove unused -f from pvmove. 139386d7f5d3SJohn Marino Gulm clvmd doesn't report "connection refused" errors. 139486d7f5d3SJohn Marino clvmd does a basic config file sanity check at startup. 139586d7f5d3SJohn Marino Fix potential thread shutdown race in clvmd. 139686d7f5d3SJohn Marino 139786d7f5d3SJohn MarinoVersion 2.01.03 - 1st February 2005 139886d7f5d3SJohn Marino=================================== 139986d7f5d3SJohn Marino More 64-bit display/report fixes. 140086d7f5d3SJohn Marino More informative startup mesg if can't create /etc/lvm. 140186d7f5d3SJohn Marino Fix snapshot device size bug (since 2.01.01). 140286d7f5d3SJohn Marino clvmd announces startup and cluster connection in syslog. 140386d7f5d3SJohn Marino Gulm clvmd doesn't hang trying to talk to a rebooted node. 140486d7f5d3SJohn Marino Gulm clvmd doesn't print cman error on startup. 140586d7f5d3SJohn Marino 140686d7f5d3SJohn MarinoVersion 2.01.02 - 21st January 2005 140786d7f5d3SJohn Marino=================================== 140886d7f5d3SJohn Marino Update clvmd_init_rhel4: use lvm.static and don't load dlm. 140986d7f5d3SJohn Marino Fix some size_t printing. 141086d7f5d3SJohn Marino Fix 64 bit xlate consts. 141186d7f5d3SJohn Marino Split out pool sptype_names to avoid unused const. 141286d7f5d3SJohn Marino Always fail if random id generation fails. 141386d7f5d3SJohn Marino Recognise gnbd devices. 141486d7f5d3SJohn Marino Fix clvmd startup bug introduced in cman/gulm amalgamation. 141586d7f5d3SJohn Marino Improve reporting of node-specific locking errors. 141686d7f5d3SJohn Marino 141786d7f5d3SJohn MarinoVersion 2.01.01 - 19th January 2005 141886d7f5d3SJohn Marino=================================== 141986d7f5d3SJohn Marino Fix clvmd lv_info_by_lvid open_count. 142086d7f5d3SJohn Marino Store snapshot and origin sizes separately. 142186d7f5d3SJohn Marino Update vgcreate man page. 142286d7f5d3SJohn Marino 142386d7f5d3SJohn MarinoVersion 2.01.00 - 17th January 2005 142486d7f5d3SJohn Marino=================================== 142586d7f5d3SJohn Marino Fix vgscan metadata auto-correction. 142686d7f5d3SJohn Marino Only ask libdevmapper for open_count when we need it. 142786d7f5d3SJohn Marino Adjust RHEL4 clvmd init script priority. 142886d7f5d3SJohn Marino Enable building of CMAN & GULM versions of clvmd into a single binary 142986d7f5d3SJohn Marino 143086d7f5d3SJohn MarinoVersion 2.00.33 - 7th January 2005 143186d7f5d3SJohn Marino================================== 143286d7f5d3SJohn Marino pvcreate wipes first 4 sectors unless given --zero n. 143386d7f5d3SJohn Marino gulm clvmd now uses new ccsd key names. 143486d7f5d3SJohn Marino gulm clvmd now doesn't ignore the first node in cluster.conf 143586d7f5d3SJohn Marino Improve clvmd failure message if it's already running. 143686d7f5d3SJohn Marino Allow user to kill clvmd during initialisation. 143786d7f5d3SJohn Marino Fix off-by-one error in cluster_locking that could cause read hangs. 143886d7f5d3SJohn Marino 143986d7f5d3SJohn MarinoVersion 2.00.32 - 22nd December 2004 144086d7f5d3SJohn Marino==================================== 144186d7f5d3SJohn Marino Drop static/dl restriction for now. 144286d7f5d3SJohn Marino Fix an error fprintf. 144386d7f5d3SJohn Marino Fix vgdisplay -s. Breaks (undocumented) lvs/pvs/vgs -s instead for now. 144486d7f5d3SJohn Marino Fix device reference counting on re-opens. 144586d7f5d3SJohn Marino Ignore sysfs symlinks when DT_UNKNOWN. 144686d7f5d3SJohn Marino Add clvmd init script for RHEL4. 144786d7f5d3SJohn Marino Skip devices that are too small to be PVs. 144886d7f5d3SJohn Marino Fix pvchange -x segfault with lvm2-format orphan. 144986d7f5d3SJohn Marino Cope with empty msdos partition tables. 145086d7f5d3SJohn Marino Add CONTRIBUTORS file. 145186d7f5d3SJohn Marino 145286d7f5d3SJohn MarinoVersion 2.00.31 - 12th December 2004 145386d7f5d3SJohn Marino==================================== 145486d7f5d3SJohn Marino Reopen RO file descriptors RW if necessary. 145586d7f5d3SJohn Marino 145686d7f5d3SJohn MarinoVersion 2.00.30 - 10th December 2004 145786d7f5d3SJohn Marino==================================== 145886d7f5d3SJohn Marino Additional device-handling debug messages. 145986d7f5d3SJohn Marino Additional verbosity level -vvvv includes line numbers and backtraces. 146086d7f5d3SJohn Marino Verbose messages now go to stderr not stdout. 146186d7f5d3SJohn Marino Close any stray file descriptors before starting. 146286d7f5d3SJohn Marino Refine partitionable checks for certain device types. 146386d7f5d3SJohn Marino Allow devices/types to override built-ins. 146486d7f5d3SJohn Marino Fix lvreduce man page .i->.I 146586d7f5d3SJohn Marino Fix vgsplit man page title. 146686d7f5d3SJohn Marino Fix clvmd man makefile. 146786d7f5d3SJohn Marino Extend dev_open logging. 146886d7f5d3SJohn Marino Make clvmd_fix_conf.sh UNDOable. 146986d7f5d3SJohn Marino 147086d7f5d3SJohn MarinoVersion 2.00.29 - 27th November 2004 147186d7f5d3SJohn Marino==================================== 147286d7f5d3SJohn Marino xlate compilation fix. 147386d7f5d3SJohn Marino 147486d7f5d3SJohn MarinoVersion 2.00.28 - 27th November 2004 147586d7f5d3SJohn Marino==================================== 147686d7f5d3SJohn Marino Fix partition table & md signature detection. 147786d7f5d3SJohn Marino Minor configure/makefile tidy. 147886d7f5d3SJohn Marino Export version.h from tools for clvmd. 147986d7f5d3SJohn Marino 148086d7f5d3SJohn MarinoVersion 2.00.27 - 24th November 2004 148186d7f5d3SJohn Marino==================================== 148286d7f5d3SJohn Marino Trap large memory allocation requests. 148386d7f5d3SJohn Marino Fix to partition table detection code. 148486d7f5d3SJohn Marino Improve filter debug mesgs. 148586d7f5d3SJohn Marino Make clvmd_fix_conf.sh UNDOable 148686d7f5d3SJohn Marino 148786d7f5d3SJohn MarinoVersion 2.00.26 - 23rd November 2004 148886d7f5d3SJohn Marino==================================== 148986d7f5d3SJohn Marino Improve pool debugging stats. 149086d7f5d3SJohn Marino Detect partition table signature. 149186d7f5d3SJohn Marino pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.) 149286d7f5d3SJohn Marino Separate out md superblock detection code. 149386d7f5d3SJohn Marino Prevent snapshot origin resizing. 149486d7f5d3SJohn Marino Improve a vgremove error message. 149586d7f5d3SJohn Marino Update some man pages. 149686d7f5d3SJohn Marino Allow y/n with -ae args (exclusive activation). 149786d7f5d3SJohn Marino Fixes to lvcreate vgname parsing. 149886d7f5d3SJohn Marino Fix dm_name string size calculation. 149986d7f5d3SJohn Marino Improve clvmd error reporting during startup. 150086d7f5d3SJohn Marino Make clvmd cope with large gaps in node numbers IDs. 150186d7f5d3SJohn Marino Make clvmd initialisation cope better with debugging output. 150286d7f5d3SJohn Marino Tidy clvmd socket callbacks so all work happens outside main loop. 150386d7f5d3SJohn Marino clvmd -V now displays lvm version too. 150486d7f5d3SJohn Marino Add optional gulm build for clvmd 150586d7f5d3SJohn Marino 150686d7f5d3SJohn MarinoVersion 2.00.25 - 29th September 2004 150786d7f5d3SJohn Marino===================================== 150886d7f5d3SJohn Marino Fix return code from rm_link for vgmknodes. 150986d7f5d3SJohn Marino Make clvmd LV hash table thread-safe. 151086d7f5d3SJohn Marino Fix clvmd locking so it will lock out multiple users on the same node. 151186d7f5d3SJohn Marino Fix clvmd VG locking to it can cope with multiple VG locks. 151286d7f5d3SJohn Marino Remove spurious trailing dot in lvreduce man page. 151386d7f5d3SJohn Marino Fix vgremove locking. 151486d7f5d3SJohn Marino 151586d7f5d3SJohn MarinoVersion 2.00.24 - 16th September 2004 151686d7f5d3SJohn Marino===================================== 151786d7f5d3SJohn Marino Fix pool_empty so it really does empty the memory pool. 151886d7f5d3SJohn Marino Rename old segtypes files to segtype. 151986d7f5d3SJohn Marino Some fixes to memory debugging code. 152086d7f5d3SJohn Marino Exclude internal commands formats & segtypes from install. 152186d7f5d3SJohn Marino 152286d7f5d3SJohn MarinoVersion 2.00.23 - 15th September 2004 152386d7f5d3SJohn Marino===================================== 152486d7f5d3SJohn Marino Export dm name build & split functions. 152586d7f5d3SJohn Marino Use O_NOATIME on devices if available. 152686d7f5d3SJohn Marino Write log message when each segtype/format gets initialised. 152786d7f5d3SJohn Marino New commands 'segtypes' and 'formats'. 152886d7f5d3SJohn Marino Suppress pvmove abort message in test mode. 152986d7f5d3SJohn Marino Improve pvcreate/remove device not found error message. 153086d7f5d3SJohn Marino Allow pvmove to move data within the same PV. 153186d7f5d3SJohn Marino Describe how pvmove works on man page. 153286d7f5d3SJohn Marino Test for incompatible format/segtype combinations in lv_extend. 153386d7f5d3SJohn Marino Fix lvchange example on man page. 153486d7f5d3SJohn Marino 153586d7f5d3SJohn MarinoVersion 2.00.22 - 3rd September 2004 153686d7f5d3SJohn Marino==================================== 153786d7f5d3SJohn Marino Fix /dev/vgname perms. 153886d7f5d3SJohn Marino Restructure xlate.h. 153986d7f5d3SJohn Marino Add clvmd man page. 154086d7f5d3SJohn Marino 154186d7f5d3SJohn MarinoVersion 2.00.21 - 19th August 2004 154286d7f5d3SJohn Marino================================== 154386d7f5d3SJohn Marino Update cnxman-socket.h from cman. 154486d7f5d3SJohn Marino Recognise iseries/vd devices. 154586d7f5d3SJohn Marino Use 'make install_cluster' to install cluster extensions only. 154686d7f5d3SJohn Marino Cope with DT_UNKNOWN in sysfs. 154786d7f5d3SJohn Marino Fix extents_moved metadata size comment. 154886d7f5d3SJohn Marino Remove duplicate line in pvremove help text. 154986d7f5d3SJohn Marino Support variable mirror region size. 155086d7f5d3SJohn Marino Support PE ranges in pvmove source PV. 155186d7f5d3SJohn Marino Fixes to as-yet-unused LV segment splitting code. 155286d7f5d3SJohn Marino Change alloc_areas to pe_ranges and allow suppression of availability checks. 155386d7f5d3SJohn Marino Add dev_size column to pvs. 155486d7f5d3SJohn Marino Add report columns for in-kernel device number. 155586d7f5d3SJohn Marino 155686d7f5d3SJohn MarinoVersion 2.00.20 - 3 July 2004 155786d7f5d3SJohn Marino============================= 155886d7f5d3SJohn Marino More autoconf fixes. 155986d7f5d3SJohn Marino Fix device number handling for 2.6 kernels. 156086d7f5d3SJohn Marino 156186d7f5d3SJohn MarinoVersion 2.00.19 - 29 June 2004 156286d7f5d3SJohn Marino============================== 156386d7f5d3SJohn Marino Reduce severity of setlocale failure message. 156486d7f5d3SJohn Marino Recognise argv[0] "initrd-lvm" (pld-linux). 156586d7f5d3SJohn Marino Make -O2 configurable. 156686d7f5d3SJohn Marino Added --disable-selinux to configure script. 156786d7f5d3SJohn Marino LD_FLAGS->LDFLAGS & LD_DEPS->LDDEPS in configure script. 156886d7f5d3SJohn Marino Add init_debug to clvmd. 156986d7f5d3SJohn Marino 157086d7f5d3SJohn MarinoVersion 2.00.18 - 24 June 2004 157186d7f5d3SJohn Marino============================== 157286d7f5d3SJohn Marino Fix vgchange activation. 157386d7f5d3SJohn Marino Add cluster support. 157486d7f5d3SJohn Marino 157586d7f5d3SJohn MarinoVersion 2.00.17 - 20 June 2004 157686d7f5d3SJohn Marino============================== 157786d7f5d3SJohn Marino configure --enable-fsadm to try out fsadm. fsadm is not tested yet. 157886d7f5d3SJohn Marino Display all filtered devices, not just PVs, with pvs -a. 157986d7f5d3SJohn Marino Fix sync_dir() when no / in filename 158086d7f5d3SJohn Marino vgcfgbackup -f accepts template with %s for VG name. 158186d7f5d3SJohn Marino Extend hash functions to handle non-null-terminated data. 158286d7f5d3SJohn Marino Add local activation support. 158386d7f5d3SJohn Marino Tidy relative paths in makefile includes. 158486d7f5d3SJohn Marino fsadm support for fsck and resizing - needs testing. 158586d7f5d3SJohn Marino Add read-only GFS pool support. 158686d7f5d3SJohn Marino Add lvm2create_initrd script from http://poochiereds.net/svn/lvm2/ 158786d7f5d3SJohn Marino Fix rounding of large diplayed sizes. 158886d7f5d3SJohn Marino Suppress decimal point when using units of sectors/bytes. 158986d7f5d3SJohn Marino Additional kernel target checks before pvmove & snapshot creation. 159086d7f5d3SJohn Marino Add i2o_block. 159186d7f5d3SJohn Marino 159286d7f5d3SJohn MarinoVersion 2.00.16 - 24 May 2004 159386d7f5d3SJohn Marino============================= 159486d7f5d3SJohn Marino Set area_count within alloc_lv_segment. 159586d7f5d3SJohn Marino Remove error labels from lvresize. 159686d7f5d3SJohn Marino Fix a pvs error path. 159786d7f5d3SJohn Marino xxchange -ae for exclusive activation. 159886d7f5d3SJohn Marino Don't return non-zero status if there aren't any volume groups. 159986d7f5d3SJohn Marino Add --alloc argument to tools. 160086d7f5d3SJohn Marino Rename allocation policies to contiguous, normal, anywhere, inherit. 160186d7f5d3SJohn Marino nextfree becomes normal; anywhere isn't implemented yet. 160286d7f5d3SJohn Marino LV inherits allocation policy from VG. Defaults: LV - inherit; VG - normal 160386d7f5d3SJohn Marino Additional status character added to vgs to indicate allocation policy. 160486d7f5d3SJohn Marino Add reset_fn to external_locking. 160586d7f5d3SJohn Marino Ensure presence of virtual targets before attempting activating. 160686d7f5d3SJohn Marino Attempt to fix resizing of snapshot origins. 160786d7f5d3SJohn Marino Restructure lvresize, bringing it closer to lvcreate. 160886d7f5d3SJohn Marino A quick sanity check on vg_disk struct when read in. More checks needed. 160986d7f5d3SJohn Marino Only include visible LVs in active/open counts. 161086d7f5d3SJohn Marino Add virtual segment types, zero and error. A large sparse device can be 161186d7f5d3SJohn Marinoconstructed as a writeable snapshot of a large zero segment. 161286d7f5d3SJohn Marino Add --type to lvcreate/resize. 161386d7f5d3SJohn Marino Push lv_create & alloc policy up to tool level. 161486d7f5d3SJohn Marino Fix pvdisplay return code. 161586d7f5d3SJohn Marino Detect invalid LV names in arg lists. 161686d7f5d3SJohn Marino Reporting uses line-at-a-time output. 161786d7f5d3SJohn Marino lvm2 format sets unlimited_vols format flag. 161886d7f5d3SJohn Marino Internal-only metadata flag support. 161986d7f5d3SJohn Marino Basic checking for presence of device-mapper targets. 162086d7f5d3SJohn Marino Separate out polldaemon. 162186d7f5d3SJohn Marino Revise internal locking semantics. 162286d7f5d3SJohn Marino Move find_pv_by_name to library. 162386d7f5d3SJohn Marino Rename move->copy. 162486d7f5d3SJohn Marino Add devices to segments report. 162586d7f5d3SJohn Marino Begin separating out segment code. There's a lot of change here. 162686d7f5d3SJohn Marino Compress any (obsolete) long LVM1 pvids encountered. 162786d7f5d3SJohn Marino Support for tagged config files. 162886d7f5d3SJohn Marino Don't abort operations if selinux present but disabled. 162986d7f5d3SJohn Marino Fix typo in configure which left HAVE_LIBDL unset. 163086d7f5d3SJohn Marino 163186d7f5d3SJohn MarinoVersion 2.00.15 - 19 Apr 2004 163286d7f5d3SJohn Marino============================= 163386d7f5d3SJohn Marino configure --with-owner= --with-group= to avoid -o and -g args to 'install' 163486d7f5d3SJohn Marino 163586d7f5d3SJohn MarinoVersion 2.00.14 - 16 Apr 2004 163686d7f5d3SJohn Marino============================= 163786d7f5d3SJohn Marino Use 64-bit file functions by default. 163886d7f5d3SJohn Marino 163986d7f5d3SJohn MarinoVersion 2.00.13 - 16 Apr 2004 164086d7f5d3SJohn Marino============================= 164186d7f5d3SJohn Marino Set devices/md_component_detection = 1 to ignore devices containing md 164286d7f5d3SJohn Marino superblocks. [Luca Berra] 164386d7f5d3SJohn Marino Ignore error setting selinux file context if fs doesn't support it. 164486d7f5d3SJohn Marino 164586d7f5d3SJohn MarinoVersion 2.00.12 - 14 Apr 2004 164686d7f5d3SJohn Marino============================= 164786d7f5d3SJohn Marino Install a default lvm.conf into /etc/lvm if there isn't one already. 164886d7f5d3SJohn Marino Allow different installation dir for lvm.static (configure --staticdir=) 164986d7f5d3SJohn Marino Fix inverted selinux error check. 165086d7f5d3SJohn Marino Recognise power2 in /proc/devices. 165186d7f5d3SJohn Marino Fix counting in lvs_in_vg_opened. [It ignored devices open more than once.] 165286d7f5d3SJohn Marino 165386d7f5d3SJohn MarinoVersion 2.00.11 - 8 Apr 2004 165486d7f5d3SJohn Marino============================ 165586d7f5d3SJohn Marino Set fallback_to_lvm1 in lvm.conf (or configure --enable-lvm1_fallback) 165686d7f5d3SJohn Marino to run lvm1 binaries if running a 2.4 kernel without device-mapper. 165786d7f5d3SJohn Marino 165886d7f5d3SJohn MarinoVersion 2.00.10 - 7 Apr 2004 165986d7f5d3SJohn Marino============================ 166086d7f5d3SJohn Marino More fixes for static build. 166186d7f5d3SJohn Marino Add basic selinux support. 166286d7f5d3SJohn Marino Fix sysfs detection. 166386d7f5d3SJohn Marino 166486d7f5d3SJohn MarinoVersion 2.00.09 - 31 Mar 2004 166586d7f5d3SJohn Marino============================= 166686d7f5d3SJohn Marino Update copyright notices for Red Hat. 166786d7f5d3SJohn Marino Fix vgmknodes to remove dud /dev/mapper entries. (libdevmapper update reqd). 166886d7f5d3SJohn Marino Add LVM1-style colon output to vgdisplay. 166986d7f5d3SJohn Marino lvchange --refresh to reload active LVs. 167086d7f5d3SJohn Marino Add string display to memory leak dump. 167186d7f5d3SJohn Marino Add locking flags & memlock option. 167286d7f5d3SJohn Marino Add list_versions to library. 167386d7f5d3SJohn Marino Ignore open hidden LVs when checking if deactivation is OK. 167486d7f5d3SJohn Marino Suppress move percentage when device inactive. 167586d7f5d3SJohn Marino Add lv_info_by_lvid. 167686d7f5d3SJohn Marino Various tidy-ups to the build process. 167786d7f5d3SJohn Marino Rebaseline internal verbose level. 167886d7f5d3SJohn Marino Add --nolocking option for read operations if locking is failing. 167986d7f5d3SJohn Marino Add option to compile into a library. 168086d7f5d3SJohn Marino When compiled without libdevmapper, only print warning message once. 168186d7f5d3SJohn Marino Fix lvreduce PV extent calculations. 168286d7f5d3SJohn Marino Fix DESTDIR to work with configure path overrides. 168386d7f5d3SJohn Marino Always use / as config file separator & rename internal config file variables. 168486d7f5d3SJohn Marino Add support for tagging PV/VG/LVs and hosts. 168586d7f5d3SJohn Marino Fix rare bug in recognition of long cmdline argument forms. 168686d7f5d3SJohn Marino Add basic internationalisation infrastructure. 168786d7f5d3SJohn Marino Don't recurse symlinked dirs such as /dev/fd on 2.6 kernels. 168886d7f5d3SJohn Marino Update autoconf files. 168986d7f5d3SJohn Marino Add sysfs block device filtering for 2.6 kernels. 169086d7f5d3SJohn Marino Update refs for move to sources.redhat.com. 169186d7f5d3SJohn Marino 169286d7f5d3SJohn MarinoFriday 14th November 2003 169386d7f5d3SJohn Marino========================= 169486d7f5d3SJohn MarinoSome bug fixes & minor enhancements, including: 169586d7f5d3SJohn Marino Backwards compatibility with LVM1 metadata improved. 169686d7f5d3SJohn Marino Missing man pages written. 169786d7f5d3SJohn Marino Tool error codes made more consistent. 169886d7f5d3SJohn Marino vgmknodes written. 169986d7f5d3SJohn Marino O_DIRECT can be turned off if it doesn't work in your kernel. 170086d7f5d3SJohn Marino dumpconfig to display the active configuration file 170186d7f5d3SJohn Marino 170286d7f5d3SJohn MarinoYou need to update libdevmapper before using 'vgmknodes' or 'vgscan --mknodes'. 170386d7f5d3SJohn MarinoIf your root filesystem is on an LV, you should run one of those two 170486d7f5d3SJohn Marinocommands to fix up the special files in /dev in your real root filesystem 170586d7f5d3SJohn Marinoafter finishing with your initrd. Also, remember you can use 170686d7f5d3SJohn Marino'vgchange --ignorelockingfailure' on your initrd if the tool fails because 170786d7f5d3SJohn Marinoit can't write a lock file to a read-only filesystem. 170886d7f5d3SJohn Marino 170986d7f5d3SJohn MarinoWednesday 30th April 2003 171086d7f5d3SJohn Marino========================= 171186d7f5d3SJohn MarinoA pvmove implementation is now available for the new metadata format. 171286d7f5d3SJohn Marino 171386d7f5d3SJohn MarinoWhen running a command that allocates space (e.g. lvcreate), you can now 171486d7f5d3SJohn Marinorestrict not only which disk(s) may be used but also the Physical Extents 171586d7f5d3SJohn Marinoon those disks. e.g. lvcreate -L 10 vg1 /dev/hda6:1000-2000:3000-4000 171686d7f5d3SJohn Marino 171786d7f5d3SJohn Marino 171886d7f5d3SJohn MarinoMonday 18th November 2002 171986d7f5d3SJohn Marino======================== 172086d7f5d3SJohn Marino 172186d7f5d3SJohn MarinoThe new format of LVM metadata is ready for you to test! 172286d7f5d3SJohn Marino We expect it to be more efficient and more robust than the original format. 172386d7f5d3SJohn Marino It's more compact and supports transactional changes and replication. 172486d7f5d3SJohn Marino Should things go wrong on a system, it's human-readable (and editable). 172586d7f5d3SJohn Marino 172686d7f5d3SJohn MarinoPlease report any problems you find to the mailing list, 172786d7f5d3SJohn Marinolinux-lvm@sistina.com. The software has NOT yet been thoroughly 172886d7f5d3SJohn Marinotested and so quite possibly there'll still be some bugs in it. 172986d7f5d3SJohn MarinoBe aware of the disclaimer in the COPYING file. 173086d7f5d3SJohn Marino 173186d7f5d3SJohn MarinoWhile testing, we recommend turning logging on in the configuration file 173286d7f5d3SJohn Marinoto provide us with diagnostic information: 173386d7f5d3SJohn Marino log { 173486d7f5d3SJohn Marino file="/tmp/lvm2.log" 173586d7f5d3SJohn Marino level=7 173686d7f5d3SJohn Marino activation=1 173786d7f5d3SJohn Marino } 173886d7f5d3SJohn Marino 173986d7f5d3SJohn MarinoYou should schedule regular backups of your configuration file and 174086d7f5d3SJohn Marinometadata backups and archives (normally kept under /etc/lvm). 174186d7f5d3SJohn Marino 174286d7f5d3SJohn MarinoPlease read docs/example.conf and "man lvm.conf" to find out more about 174386d7f5d3SJohn Marinothe configuration file. 174486d7f5d3SJohn Marino 174586d7f5d3SJohn MarinoTo convert an existing volume group called vg1 to the new format using 174686d7f5d3SJohn Marinothe default settings, use "vgconvert -M2 vg1". See "man vgconvert". 174786d7f5d3SJohn Marino 174886d7f5d3SJohn Marino-M (or --metadatatype in its long form) is a new flag to indicate which 174986d7f5d3SJohn Marinoformat of metadata the command should use for anything it creates. 175086d7f5d3SJohn MarinoCurrently, the valid types are "lvm1" and "lvm2" and they can be 175186d7f5d3SJohn Marinoabbreviated to "1" and "2" respectively. The default value for this 175286d7f5d3SJohn Marinoflag can be changed in the global section in the config file. 175386d7f5d3SJohn Marino 175486d7f5d3SJohn MarinoBackwards-compatible support for the original LVM1 metadata format is 175586d7f5d3SJohn Marinomaintained, but it can be moved into a shared library or removed 175686d7f5d3SJohn Marinocompletely with configure's --with-lvm1 option. 175786d7f5d3SJohn Marino 175886d7f5d3SJohn MarinoUnder LVM2, the basic unit of metadata is the volume group. Different 175986d7f5d3SJohn Marinovolume groups can use different formats of metadata - vg1 could use 176086d7f5d3SJohn Marinothe original LVM1 format while vg2 used the new format - but you can't 176186d7f5d3SJohn Marinomix formats within a volume group. So to add a PV to an LVM2-format 176286d7f5d3SJohn Marinovolume group you must run "pvcreate -M2" on it, followed by "vgextend". 176386d7f5d3SJohn Marino 176486d7f5d3SJohn MarinoWith LVM2-format metadata, lvextend will let you specify striping 176586d7f5d3SJohn Marinoparameters. So an LV could consist of two or more "segments" - the 176686d7f5d3SJohn Marinofirst segment could have 3 stripes while the second segment has just 2. 176786d7f5d3SJohn Marino 176886d7f5d3SJohn MarinoLVM2 maintains a backup of the current metadata for each volume group 176986d7f5d3SJohn Marinoin /etc/lvm/backup, and puts copies of previous versions in 177086d7f5d3SJohn Marino/etc/lvm/archive. "vgcfgbackup" and "vgcfgrestore" can be used to 177186d7f5d3SJohn Marinocreate and restore from these files. If you fully understand what 177286d7f5d3SJohn Marinoyou're doing, metadata can be changed by editing a copy of a current 177386d7f5d3SJohn Marinobackup file and using vgcfgrestore to reload it. 177486d7f5d3SJohn Marino 177586d7f5d3SJohn MarinoPlease read the pvcreate man page for more information on the new 177686d7f5d3SJohn Marinoformat for metadata. 177786d7f5d3SJohn Marino 177886d7f5d3SJohn MarinoAll tools that can change things have a --test flag which can be used 177986d7f5d3SJohn Marinoto check the effect of a set of cmdline args without really making the 178086d7f5d3SJohn Marinochanges. 178186d7f5d3SJohn Marino 178286d7f5d3SJohn Marino 178386d7f5d3SJohn MarinoWhat's not finished? 178486d7f5d3SJohn Marino==================== 178586d7f5d3SJohn MarinoThe internal cache. If you turn on debugging output you'll see lots of 178686d7f5d3SJohn Marinorepeated messages, many of which will eventually get optimised out. 178786d7f5d3SJohn Marino 178886d7f5d3SJohn Marino--test sometimes causes a command to fail (e.g. vgconvert --test) even 178986d7f5d3SJohn Marinothough the real command would work: again, fixing this is waiting for 179086d7f5d3SJohn Marinothe work on the cache. 179186d7f5d3SJohn Marino 179286d7f5d3SJohn MarinoSeveral of the tools do not yet contain the logic to handle full 179386d7f5d3SJohn Marinorecovery: combinations of pvcreate and vgcfgrestore may sometimes be 179486d7f5d3SJohn Marinoneeded to restore metadata if a tool gets interrupted or crashes or 179586d7f5d3SJohn Marinofinds something unexpected. This applies particularly to tools that 179686d7f5d3SJohn Marinowork on more than one volume group at once (e.g. vgsplit). 179786d7f5d3SJohn Marino 179886d7f5d3SJohn MarinoDisplay output. Some metadata information cannot yet be displayed. 179986d7f5d3SJohn Marino 180086d7f5d3SJohn MarinoRecovery tools to salvage "lost" metadata directly from the disks: 180186d7f5d3SJohn Marinobut we hope the new format will mean such tools are hardly ever needed! 1802