1*7c604eeaShaadVersion 2.02.56 - 24th November 2009 2*7c604eeaShaad==================================== 3*7c604eeaShaad Add missing vg_release to pvs and pvdisplay to fix memory leak. 4*7c604eeaShaad Do not try to unlock VG which is not locked in _process_one_vg. 5*7c604eeaShaad Move is_long_lived persistent_filter_dump to happen after every full scan. 6*7c604eeaShaad Refresh device filters before full device rescan in lvmcache. 7*7c604eeaShaad Return error status if vgchange fails to activate some volume. 8*7c604eeaShaad Fix suspend/resume lock type test causing unbalanced memory locking. 9*7c604eeaShaad Revert vg_read_internal change as clvmd was not ready for vg_read. (2.02.55) 10*7c604eeaShaad 11*7c604eeaShaadVersion 2.02.55 - 19th November 2009 12*7c604eeaShaad==================================== 13*7c604eeaShaad Fix deadlock when changing mirrors due to unpaired memlock refcount changes. 14*7c604eeaShaad Use separate memlock counter for dmeventd handlers to permit device scanning. 15*7c604eeaShaad Directly restrict vgchange to activating visible LVs. 16*7c604eeaShaad Fix pvmove region_size overflow for very large PVs. 17*7c604eeaShaad Fix lvcreate and lvresize %PVS argument always to use sensible total size. 18*7c604eeaShaad Tidy some uses of arg_count and introduce arg_is_set. 19*7c604eeaShaad Export outnl and indent functions for modules. 20*7c604eeaShaad Flush stdout after yes/no prompt. 21*7c604eeaShaad Update vgsplit and vgcreate to use vg_set_clustered. 22*7c604eeaShaad Add vg_mda_count and vg_set_clustered library functions. 23*7c604eeaShaad Add more vgcreate and vgsplit nightly tests. 24*7c604eeaShaad Insert some missing stack macros into activation code. 25*7c604eeaShaad Recognise DRBD devices and handle them like md devices. 26*7c604eeaShaad 27*7c604eeaShaadVersion 2.02.54 - 26th October 2009 28*7c604eeaShaad=================================== 29*7c604eeaShaad Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter. 30*7c604eeaShaad Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 31*7c604eeaShaad Permit snapshots of mirrors. 32*7c604eeaShaad Cleanup mimagetmp LV if allocation fails for new lvconvert mimage. 33*7c604eeaShaad Fix clvmd segfault when refresh_toolcontext fails. 34*7c604eeaShaad Remember to clear 'global lock held during cache refresh' state after use. 35*7c604eeaShaad Use udev flags support in LVM and apply various fixes to udev rules. 36*7c604eeaShaad Delay announcing mirror monitoring to syslog until initialisation succeeded. 37*7c604eeaShaad Handle metadata with unknown segment types more gracefully. 38*7c604eeaShaad Set default owner and group to null. 39*7c604eeaShaad Add dmeventd.static to the build. 40*7c604eeaShaad Disable realtime support code by default. 41*7c604eeaShaad Make clvmd return 0 on success rather than 1. 42*7c604eeaShaad Add --pvmetadatacopies for pvcreate, vgcreate, vgextend, vgconvert. 43*7c604eeaShaad Add implict pvcreate support to vgcreate and vgextend. 44*7c604eeaShaad Correct example.conf to indicate that lvm2 not lvm1 is the default format. 45*7c604eeaShaad Remove an unused stray LVM1_SUPPORT ifdef. 46*7c604eeaShaad Only include selinux libs in libdevmapper.pc when selinux build enabled. 47*7c604eeaShaad Allow for a build directory separate from the source. 48*7c604eeaShaad Update distclean target for rename clogd to cmirrord. (2.02.52) 49*7c604eeaShaad Only do lock conversions in clvmd if we are explicitly asked for one. 50*7c604eeaShaad Introduce percent_range_t and centralise snapshot full/mirror in-sync checks. 51*7c604eeaShaad Factor out poll_mirror_progress and introduce progress_t. 52*7c604eeaShaad Distinguish between powers of 1000 and powers of 1024 in unit suffixes. 53*7c604eeaShaad Restart lvconverts in vgchange by sharing lv_spawn_background_polling. 54*7c604eeaShaad Generalise polldaemon code by changing mirror-specific variable names. 55*7c604eeaShaad Don't attempt to deactivate an LV if any of its snapshots are in use. 56*7c604eeaShaad Return error if lv_deactivate fails to remove device from kernel. 57*7c604eeaShaad Provide alternative implementation of obsolete siginterrupt(). 58*7c604eeaShaad Consolidate LV allocation into alloc_lv(). 59*7c604eeaShaad Treat input units of both 's' and 'S' as 512-byte sectors. (2.02.49) 60*7c604eeaShaad Use standard output units for 'PE Size' and 'Stripe size' in pv/lvdisplay. 61*7c604eeaShaad Add configure --enable-units-compat to set si_unit_consistency off by default. 62*7c604eeaShaad Add global/si_unit_consistency to enable cleaned-up use of units in output. 63*7c604eeaShaad 64*7c604eeaShaadVersion 2.02.53 - 25th September 2009 65*7c604eeaShaad===================================== 66*7c604eeaShaad Create any directories in /dev with DM_DEV_DIR_UMASK (022). 67*7c604eeaShaad Enable dmeventd monitoring section of config file by default. 68*7c604eeaShaad Update lvm2 monitoring script to lvm2_monitoring_init_red_hat.in. 69*7c604eeaShaad Fix lvm2app test to run under test/api subdirectory only when configured. 70*7c604eeaShaad Add vg_is_resizeable() and cleanup reference to VG_RESIZEABLE. 71*7c604eeaShaad 72*7c604eeaShaadVersion 2.02.52 - 15th September 2009 73*7c604eeaShaad===================================== 74*7c604eeaShaad Update _process_one_vg to cleanup properly after vg_read_error. 75*7c604eeaShaad Add lots of missing stack debug messages to tools. 76*7c604eeaShaad Make readonly locking available as locking type 4. 77*7c604eeaShaad Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49) 78*7c604eeaShaad Add DM_UDEV_RULES_VSN environment variable to udev rules. 79*7c604eeaShaad Update vgsplit, vgmerge, and vgrename to obey new vgname ordering rules. 80*7c604eeaShaad Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t. 81*7c604eeaShaad Enforce an alphabetical lock ordering on vgname locking. 82*7c604eeaShaad Prioritise write locks over read locks by default for file locking. 83*7c604eeaShaad Add local lock files with suffix ':aux' to serialise locking requests. 84*7c604eeaShaad Fix global locking in PV reporting commands (2.02.49). 85*7c604eeaShaad Fix pvcreate string termination in duplicate uuid warning message. 86*7c604eeaShaad Don't loop reading sysfs with pvcreate on a non-blkext partition (2.02.51). 87*7c604eeaShaad Fix vgcfgrestore error paths when locking fails (2.02.49). 88*7c604eeaShaad Update Makefile distclean target. 89*7c604eeaShaad Add libudev configuration check. 90*7c604eeaShaad Make clvmd check corosync to see what cluster interface it should use. 91*7c604eeaShaad Add clvmd autodetection check and cleanup related configure messages. 92*7c604eeaShaad Rewrite clvmd configuration code to cope with all combinations of libs. 93*7c604eeaShaad Added configure --enable-cmirrord to build the cluster mirror log daemon. 94*7c604eeaShaad Rename clogd to cmirrord. 95*7c604eeaShaad Make lvchange --refresh only take a read lock on volume group. 96*7c604eeaShaad Fix race where non-blocking file locks could be granted in error. 97*7c604eeaShaad Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49). 98*7c604eeaShaad Fix compile warning in clvmd. 99*7c604eeaShaad Clarify use of PE ranges in lv{convert|create|extend|resize} man pages. 100*7c604eeaShaad Remove useless _pv_write wrapper. 101*7c604eeaShaad Add lvm2app.sh to tests conditional upon configure --enable-applib. 102*7c604eeaShaad Add lvm_vg_is_clustered, lvm_vg_is_exported, and lvm_vg_is_partial. 103*7c604eeaShaad Update lvm_vg_remove to require lvm_vg_write to commit remove to disk. 104*7c604eeaShaad Update test/api/test.c to call lvm_vg_create and lvm_vg_remove. 105*7c604eeaShaad 106*7c604eeaShaadVersion 2.02.51 - 6th August 2009 107*7c604eeaShaad================================= 108*7c604eeaShaad Fix locking in clvmd (2.02.50). 109*7c604eeaShaad Add --noudevsync option for relevant LVM tools. 110*7c604eeaShaad Add activation/udev_sync to lvm.conf. 111*7c604eeaShaad Only change LV symlinks on ACTIVATE not PRELOAD. 112*7c604eeaShaad Make lvconvert honour log mirror options combined with downconversion. 113*7c604eeaShaad Allow LV suspend while --ignorelockingfailure is in force. 114*7c604eeaShaad Update synopsis in lvconvert manpage to mention --repair. 115*7c604eeaShaad Set cookies in activation code and wait for udev to complete processing. 116*7c604eeaShaad Added configure --enable-udev_rules --enable-udev_sync. 117*7c604eeaShaad Added configure --with-udev-prefix --with-udevdir. 118*7c604eeaShaad Added udev dir to hold udev rules. 119*7c604eeaShaad Add devices/data_alignment_detection to lvm.conf. 120*7c604eeaShaad Add devices/data_alignment_offset_detection to lvm.conf. 121*7c604eeaShaad Add --dataalignmentoffset to pvcreate to shift start of aligned data area. 122*7c604eeaShaad Fix _mda_setup() to not check first mda's size before pe_align rounding. 123*7c604eeaShaad Document -I option of clvmd in the man page. 124*7c604eeaShaad Fix configure script to handle multiple clvmd selections. 125*7c604eeaShaad Fix lvm2app.pc installation filename. 126*7c604eeaShaad Remove pv_t, vg_t & lv_t handles from lib. Only liblvm uses them. 127*7c604eeaShaad Rename lvm.h to lvm2app.h for now. 128*7c604eeaShaad 129*7c604eeaShaadVersion 2.02.50 - 28th July 2009 130*7c604eeaShaad================================ 131*7c604eeaShaad Change test/api/test.c prompt so it's not confused with the main lvm prompt. 132*7c604eeaShaad Update liblvm unit tests in test/api to cover latest liblvm changes. 133*7c604eeaShaad Add unimplemented lvm_lv_resize and lvm_pv_resize skeletons to liblvm. 134*7c604eeaShaad Add lvm_library_get_version to liblvm. 135*7c604eeaShaad Add lvm_config_override to liblvm to allow caller to override LVM config. 136*7c604eeaShaad Add lvm_lv_is_active and lvm_lv_is_suspended to liblvm. 137*7c604eeaShaad Add lvm_lv_activate and lvm_lv_deactivate to liblvm. 138*7c604eeaShaad Add lvm_scan, lvm_vg_reduce and lvm_vg_remove_lv to liblvm. 139*7c604eeaShaad Add functions to get numeric properties to liblvm. 140*7c604eeaShaad Add lvm_{pv|vg|lv}_get_{name|uuid} to liblvm. 141*7c604eeaShaad Add lvm_vg_list_pvs and lvm_vg_list_lvs to liblvm. 142*7c604eeaShaad Add lvm_vg_open and lvm_vg_create_lv_linear to liblvm. 143*7c604eeaShaad Add lvm_list_vg_names/uuids to liblvm. 144*7c604eeaShaad Add lvm_errno and lvm_errmsg to liblvm to obtain failure information. 145*7c604eeaShaad Rename lvm_create/destroy to lvm_init/quit. 146*7c604eeaShaad Rename lvm_reload_config to lvm_config_reload. 147*7c604eeaShaad Refactor _override_settings to use new override_config_tree_from_string. 148*7c604eeaShaad Add vg_reduce to metadata.c and metadata-exported.h. 149*7c604eeaShaad Update lvm.h to clarify API behavior and return codes. 150*7c604eeaShaad Update lvm_vg_extend to do an implicit pvcreate on the device. 151*7c604eeaShaad Update display.c to use vg_free(vg) instead of duplicating the calculation. 152*7c604eeaShaad Refactor vg_size, vg_free, and pv_mda_count field calculations for liblvm. 153*7c604eeaShaad Refactor pvcreate and lvcreate for liblvm. 154*7c604eeaShaad Add global/wait_for_locks to lvm.conf so blocking for locks can be disabled. 155*7c604eeaShaad All LV locks are non-blocking so remove LCK_NONBLOCK from separate macros. 156*7c604eeaShaad Fix race condition with vgcreate and vgextend on same device (2.02.49). 157*7c604eeaShaad Remove redundant validate_name call from vgreduce. 158*7c604eeaShaad Remove unused handles lvseg, pvseg inside liblvm/lvm.h. 159*7c604eeaShaad Add liblvm2app Makefile installation targets. 160*7c604eeaShaad Add liblvm pkgconfig file. 161*7c604eeaShaad Use newly-independent LVM_LIBAPI in liblvm soname. E.g. liblvm2app.so.2.1. 162*7c604eeaShaad Add an API version number, LVM_LIBAPI, to the VERSION string for liblvm. 163*7c604eeaShaad Pass a pointer to struct cmd_context to init_multiple_segtypes 164*7c604eeaShaad Return EINVALID_CMD_LINE not success when invalid VG name format is used. 165*7c604eeaShaad Remove unnecessary messages after vgcreate/vgsplit refactor (2.02.49). 166*7c604eeaShaad Add log_errno to set a specific errno and replace log_error in due course. 167*7c604eeaShaad Change create_toolcontext to still return an object if it fails part-way. 168*7c604eeaShaad Add EUNCLASSIFIED (-1) as the default LVM errno code. 169*7c604eeaShaad Store any errno and error messages issued while processing each command. 170*7c604eeaShaad Use log_error macro consistently throughout in place of log_err. 171*7c604eeaShaad 172*7c604eeaShaadVersion 2.02.49 - 15th July 2009 173*7c604eeaShaad================================ 174*7c604eeaShaad Add readonly locking type to replace implementation of --ignorelockingfailure. 175*7c604eeaShaad Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again. 176*7c604eeaShaad Add unit test case for liblvm VG create/delete APIs. 177*7c604eeaShaad Add liblvm APIs to implement creation and deletion of VGs. 178*7c604eeaShaad Initialize cmd->cmd_line to "liblvm" in new liblvm library. 179*7c604eeaShaad Place handles to liblvm objects for pv, vg, lv, lvseg, pvseg inside lvm.h. 180*7c604eeaShaad Refactor vgsplit and vgextend to remove READ_REQUIRE_RESIZEABLE flag. 181*7c604eeaShaad Use _exit() not exit() after forking to avoid flushing libc buffers twice. 182*7c604eeaShaad Add cast to log_info arg in _find_labeller to avoid Sparc64 warning. 183*7c604eeaShaad Make cmd->cmd_line const. 184*7c604eeaShaad Fix dev name mismatch in vgcreate man page example. 185*7c604eeaShaad Refactor vg_remove_single for use in liblvm. 186*7c604eeaShaad Make all tools use consistent lock ordering obtaining VG_ORPHAN lock second. 187*7c604eeaShaad Check md devices for a partition table during device scan. 188*7c604eeaShaad Add extended device (blkext) and md partition (mdp) types to filters. 189*7c604eeaShaad Make text metadata read errors for segment areas more precise. 190*7c604eeaShaad Fix text segment metadata read errors to mention correct segment name. 191*7c604eeaShaad Include segment and LV names in text segment import error messages. 192*7c604eeaShaad Add parent node to config_node structure. 193*7c604eeaShaad Update vgsplit and vgcreate to call new vg_create and 'set' functions. 194*7c604eeaShaad Change vg_create to take minimal parameters, obtain a lock, and return vg_t. 195*7c604eeaShaad Refactor vgchange extent_size, max_lv, max_pv, and alloc_policy for liblvm. 196*7c604eeaShaad Update t-vgcreate-usage.sh to test for default vg properties. 197*7c604eeaShaad Fix memory leak in vgsplit when re-reading the vg. 198*7c604eeaShaad Make various exit/cleanup paths more robust after lvm init failures. 199*7c604eeaShaad Use LCK_NONBLOCK implicitly instead of explicit vg_read() flag. 200*7c604eeaShaad Remove unnecessary locking and existence tests from new vg_read() interface. 201*7c604eeaShaad Permit several segment types to be registered by a single shared object. 202*7c604eeaShaad Update the man pages to document size units uniformly. 203*7c604eeaShaad Allow commandline sizes to be specified in terms of bytes and sectors. 204*7c604eeaShaad Update 'md_chunk_alignment' to use stripe-width to align PV data area. 205*7c604eeaShaad Update test/t-inconsistent-metadata.sh to match new vg_read interface. 206*7c604eeaShaad Add lvmcache_init() to polldaemon initialization. 207*7c604eeaShaad Convert tools to use new vg_read / vg_read_for_update. 208*7c604eeaShaad Fix segfault in vg_release when vg->cmd is NULL. 209*7c604eeaShaad 210*7c604eeaShaadVersion 2.02.48 - 30th June 2009 211*7c604eeaShaad================================ 212*7c604eeaShaad Abort if automatic metadata correction fails when reading VG to update it. 213*7c604eeaShaad Explicitly request fallback to default major number in device mapper. 214*7c604eeaShaad Ignore suspended devices during repair. 215*7c604eeaShaad Call vgreduce --removemissing automatically to fix missing PVs in dmeventd. 216*7c604eeaShaad Suggest using lvchange --resync when adding leg to not-yet-synced mirror. 217*7c604eeaShaad Destroy toolcontext on clvmd exit to avoid memory pool leaks. 218*7c604eeaShaad Fix lvconvert not to poll mirror if no conversion in progress. 219*7c604eeaShaad Fix memory leaks in toolcontext error path. 220*7c604eeaShaad Reinstate partial activation support in clustered mode. (2.02.40) 221*7c604eeaShaad Allow metadata correction even when PVs are missing. 222*7c604eeaShaad Use 'lvm lvresize' instead of 'lvresize' in fsadm. 223*7c604eeaShaad Do not use '-n' realine option in fsadm for busybox compatiblity. 224*7c604eeaShaad Add vg_lock_newname() library function for vgrename, vgsplit and vgcreate. 225*7c604eeaShaad Round up requested readahead to at least one page and print warning. 226*7c604eeaShaad Try to repair vg before actual vgremove when force flag provided. 227*7c604eeaShaad Fix possible double release of VG after recovery. 228*7c604eeaShaad Add parameter to process_each_vg specifying what to do with inconsistent VG. 229*7c604eeaShaad Unify error messages when processing inconsistent volume group. 230*7c604eeaShaad Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO. 231*7c604eeaShaad Introduce lvconvert --use_policies (repair policy according to lvm.conf). 232*7c604eeaShaad Update clvmd-corosync to match new corosync API. 233*7c604eeaShaad Fix lib Makefile to include any shared libraries in default target. 234*7c604eeaShaad Fix rename of active snapshot with virtual origin. 235*7c604eeaShaad Fix convert polling to ignore LV with different UUID. 236*7c604eeaShaad Cache underlying device readahead only before activation calls. 237*7c604eeaShaad Fix segfault when calculating readahead on missing device in vgreduce. 238*7c604eeaShaad Remove verbose 'visited' messages. 239*7c604eeaShaad Handle multi-extent mirror log allocation when smallest PV has only 1 extent. 240*7c604eeaShaad Add LSB standard headers and functions (incl. reload) to clvmd initscript. 241*7c604eeaShaad When creating new LV, double-check that name is not already in use. 242*7c604eeaShaad Remove /dev/vgname/lvname symlink automatically if LV is no longer visible. 243*7c604eeaShaad Rename internal vorigin LV to match visible LV. 244*7c604eeaShaad Suppress 'removed' messages displayed when internal LVs are removed. 245*7c604eeaShaad Fix lvchange -a and -p for sparse LVs. 246*7c604eeaShaad Fix lvcreate --virtualsize to activate the new device immediately. 247*7c604eeaShaad Make --snapshot optional with lvcreate --virtualsize. 248*7c604eeaShaad Generalise --virtualoriginsize to --virtualsize. 249*7c604eeaShaad Skip virtual origins in process_each_lv_in_vg() without --all. 250*7c604eeaShaad Fix counting of virtual origin LVs in vg_validate. 251*7c604eeaShaad Attempt to load dm-zero module if zero target needed but not present. 252*7c604eeaShaad 253*7c604eeaShaadVersion 2.02.47 - 22nd May 2009 254*7c604eeaShaad=============================== 255*7c604eeaShaad Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 256*7c604eeaShaad Reinstate version in liblvm2cmd.so soname. (2.02.44) 257*7c604eeaShaad 258*7c604eeaShaadVersion 2.02.46 - 21st May 2009 259*7c604eeaShaad=============================== 260*7c604eeaShaad Inherit readahead setting from underlying devices during activation. 261*7c604eeaShaad Detect LVs active on remote nodes by querying locks if supported. 262*7c604eeaShaad Enable online resizing of mirrors. 263*7c604eeaShaad Use suspend with flush when device size was changed during table preload. 264*7c604eeaShaad Implement query_resource_fn for cluster_locking. 265*7c604eeaShaad Support query_resource_fn in locking modules. 266*7c604eeaShaad Introduce CLVMD_CMD_LOCK_QUERY command for clvmd. 267*7c604eeaShaad Fix pvmove to revert operation if temporary mirror creation fails. 268*7c604eeaShaad Fix metadata export for VG with missing PVs. 269*7c604eeaShaad Add vgimportclone and install it and the man page by default. 270*7c604eeaShaad Force max_lv restriction only for newly created LV. 271*7c604eeaShaad Remove unneeded import parameter from lv_create_empty. 272*7c604eeaShaad Merge lv_is_displayable and lv_is_visible functions. 273*7c604eeaShaad Introduce lv_set_visible & lv_set_hidden functions. 274*7c604eeaShaad Fix lv_is_visible to handle virtual origin. 275*7c604eeaShaad Introduce link_lv_to_vg and unlink_lv_from_vg functions. 276*7c604eeaShaad Remove lv_count from VG and use counter function instead. 277*7c604eeaShaad Fix snapshot segment import to not use duplicate segments & replace. 278*7c604eeaShaad Do not query nonexistent devices for readahead. 279*7c604eeaShaad Remove NON_BLOCKING lock flag from tools and set a policy to auto-set. 280*7c604eeaShaad Remove snapshot_count from VG and use function instead. 281*7c604eeaShaad Fix first_seg() call for empty segment list. 282*7c604eeaShaad Add install_lvm2 makefile target to install only the LVM2 components. 283*7c604eeaShaad Reject missing PVs from allocation in toollib. 284*7c604eeaShaad Fix PV datalignment for values starting prior to MDA area. (2.02.45) 285*7c604eeaShaad Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin). 286*7c604eeaShaad Fix minimum width of devices column in reports. 287*7c604eeaShaad Add lvs origin_size field. 288*7c604eeaShaad Fix linux configure --enable-debug to exclude -O2. 289*7c604eeaShaad Implement lvconvert --repair for repairing partially-failed mirrors. 290*7c604eeaShaad Fix vgreduce --removemissing failure exit code. 291*7c604eeaShaad Fix remote metadata backup for clvmd. 292*7c604eeaShaad Introduce unlock_and_release_vg macro. 293*7c604eeaShaad Introduce vg_release() to be called to free every struct volume_group. 294*7c604eeaShaad Alloc PV internal structure from VG mempool if possible. 295*7c604eeaShaad Fix metadata backup to run after vg_commit always. 296*7c604eeaShaad Tidy clvmd volume lock cache functions. 297*7c604eeaShaad Fix pvs report for orphan PVs when segment attributes are requested. 298*7c604eeaShaad Fix pvs -a output to not read volume groups from non-PV devices. 299*7c604eeaShaad Add MMC (mmcblk) device type to filters. 300*7c604eeaShaad Introduce memory pools per volume group (to reduce memory for large VGs). 301*7c604eeaShaad Use copy of PV structure when manipulating global PV lists. 302*7c604eeaShaad Always return exit error status when locking of volume group fails. 303*7c604eeaShaad Fix mirror log convert validation question. 304*7c604eeaShaad Avoid referencing files from DESTDIR during build process. 305*7c604eeaShaad Avoid creating some static libraries unless configured --enable-static_link. 306*7c604eeaShaad Enable use of cached metadata for pvs and pvdisplay commands. 307*7c604eeaShaad Add missing 'device-mapper' internal subdir build dependency. 308*7c604eeaShaad Fix memory leak in mirror allocation code. 309*7c604eeaShaad Save and restore the previous logging level when log level is changed. 310*7c604eeaShaad Fix error message when archive initialization fails. 311*7c604eeaShaad Make sure clvmd-corosync releases the lockspace when it exits. 312*7c604eeaShaad Fix segfault for vgcfgrestore on VG with missing PVs. 313*7c604eeaShaad Block SIGTERM & SIGINT in clvmd subthreads. 314*7c604eeaShaad Detect and conditionally wipe swapspace signatures in pvcreate. 315*7c604eeaShaad Fix maximal volume count check for snapshots if max_lv set for volume group. 316*7c604eeaShaad Fix lvcreate to remove unused cow volume if the snapshot creation fails. 317*7c604eeaShaad Fix error messages when PV uuid or pe_start reading fails. 318*7c604eeaShaad Build new liblvm application-level library. 319*7c604eeaShaad Rename liblvm.a to liblvm-internal.a. 320*7c604eeaShaad Flush memory pool and fix locking in clvmd refresh and backup command. 321*7c604eeaShaad Fix unlocks in clvmd-corosync. (2.02.45) 322*7c604eeaShaad Fix error message when adding metadata directory to internal list fails. 323*7c604eeaShaad Fix size and error message of memory allocation at backup initialization. 324*7c604eeaShaad Remove old metadata backup file after renaming VG. 325*7c604eeaShaad Restore log_suppress state when metadata backup file is up-to-date. 326*7c604eeaShaad 327*7c604eeaShaadVersion 2.02.45 - 3rd March 2009 328*7c604eeaShaad================================ 329*7c604eeaShaad Avoid scanning empty metadata areas for VG names. 330*7c604eeaShaad Attempt proper clean up in child before executing new binary in exec_cmd(). 331*7c604eeaShaad Do not scan devices if reporting only attributes from PV label. 332*7c604eeaShaad Use pkgconfig to obtain corosync library details during configuration. 333*7c604eeaShaad Fix error returns in clvmd-corosync interface to DLM. 334*7c604eeaShaad Add --refresh to vgchange and vgmknodes man pages. 335*7c604eeaShaad Pass --test from lvresize to fsadm as --dry-run. 336*7c604eeaShaad Supply argv[] list to exec_cmd() to allow for variable number of parameters. 337*7c604eeaShaad Prevent fsadm from checking mounted filesystems. 338*7c604eeaShaad No longer treats any other key as 'no' when prompting in fsadm. 339*7c604eeaShaad Tidy fsadm command line processing. 340*7c604eeaShaad Add lib/lvm.h and lib/lvm_base.c for the new library interface. 341*7c604eeaShaad Move tools/version.h to lib/misc/lvm-version.h. 342*7c604eeaShaad Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE. 343*7c604eeaShaad Add system_dir parameter to create_toolcontext(). 344*7c604eeaShaad Add --dataalignment to pvcreate to specify alignment of data area. 345*7c604eeaShaad Exclude LCK_CACHE locks from _vg_lock_count, fixing interrupt unblocking. 346*7c604eeaShaad Provide da and mda locations in debug message when writing text format label. 347*7c604eeaShaad Mention the restriction on file descriptors at invocation on the lvm man page. 348*7c604eeaShaad Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames. 349*7c604eeaShaad No longer require kernel and metadata major numbers to match. 350*7c604eeaShaad Add a fully-functional get_cluster_name() to clvmd corosync interface. 351*7c604eeaShaad Remove duplicate cpg_initialize from clvmd startup. 352*7c604eeaShaad Add option to /etc/sysconfig/cluster to select cluster type for clvmd. 353*7c604eeaShaad Allow clvmd to start up if its lockspace already exists. 354*7c604eeaShaad Separate PV label attributes which do not need parse metadata when reporting. 355*7c604eeaShaad Remove external dependency on the 'cut' command from fsadm. 356*7c604eeaShaad Fix pvs segfault when pv mda attributes requested for not available PV. 357*7c604eeaShaad Add fsadm support for reszing ext4 filesysystems. 358*7c604eeaShaad Move locking_type reading inside init_locking(). 359*7c604eeaShaad Rename get_vgs() to get_vgnames() and clarify related error messages. 360*7c604eeaShaad Allow clvmd to be built with all cluster managers & select one on cmdline. 361*7c604eeaShaad Mention --with-clvmd=corosync in ./configure. 362*7c604eeaShaad Replace internal vg_check_status() implementation. 363*7c604eeaShaad Rename vg_read() to vg_read_internal(). 364*7c604eeaShaad 365bec4d750ShaadVersion 2.02.44 - 26th January 2009 366bec4d750Shaad=================================== 367bec4d750Shaad Fix --enable-static_link after the recent repository changes. 368bec4d750Shaad Add corosync/DLM cluster interface to clvmd. 369bec4d750Shaad Add --nameprefixes, --unquoted, --rows to pvs, vgs, lvs man pages. 370bec4d750Shaad Fix lvresize size conversion for fsadm when block size is not 1K. 371bec4d750Shaad Fix pvs segfault when run with orphan PV and some VG fields. 372bec4d750Shaad Display a 'dev_size' of zero for missing devices in reports. 373bec4d750Shaad Add pv_mda_size to pvs and vg_mda_size to vgs. 374bec4d750Shaad Fix lvmdump /sys listing to include virtual devices directory. 375bec4d750Shaad Add "--refresh" functionality to vgchange and vgmknodes. 376bec4d750Shaad Avoid exceeding LV size when wiping device. 377bec4d750Shaad Calculate mirror log size instead of using 1 extent. 378bec4d750Shaad Ensure requested device number is available before activating with it. 379bec4d750Shaad Fix incorrect exit status from 'help <command>'. 380bec4d750Shaad Fix vgrename using UUID if there are VGs with identical names. 381bec4d750Shaad Fix segfault when invalid field given in reporting commands. 382bec4d750Shaad Move is_static from cmd to global is_static(). 383bec4d750Shaad Refactor init_lvm() for lvmcmdline and clvmd. 384bec4d750Shaad Add liblvm interactive test infrastructure to build. 385bec4d750Shaad Add skeleton lvm2.h file in preparation for a shared library interface. 386bec4d750Shaad Use better random seed value in temp file creation. 387bec4d750Shaad Add read_urandom to read /dev/urandom. Use in uuid calculation. 388bec4d750Shaad Use displayable_lvs_in_vg and lv_is_displayable for consistency throughout. 389bec4d750Shaad Fix race in vgcreate that would result in second caller overwriting first. 390bec4d750Shaad Fix uninitialised lv_count in vgdisplay -c. 391bec4d750Shaad Don't skip updating pvid hash when lvmcache_info struct got swapped. 392bec4d750Shaad Add tinfo to termcap search path for pld-linux. 393bec4d750Shaad Fix startup race in clvmd. 394bec4d750Shaad Generate Red Hat clvmd startup script at config time with correct paths. 395bec4d750Shaad Fix clvmd & dmeventd builds after tree restructuring. 396bec4d750Shaad Cope with snapshot dependencies when removing a whole VG with lvremove. 397bec4d750Shaad Make man pages and tool help text consistent using | for alternative options. 398bec4d750Shaad 39956a34939ShaadVersion 2.02.43 - 10th November 2008 40056a34939Shaad==================================== 40156a34939Shaad Merge device-mapper into the lvm2 tree. 40256a34939Shaad Correct prototype for --permission on lvchange and lvcreate man pages. 40356a34939Shaad Exit with non-zero status from vgdisplay if couldn't show any requested VG. 40456a34939Shaad Move list.c into libdevmapper and rename functions. 40556a34939Shaad Rename a couple of variables that matched function names. 40656a34939Shaad Use simplified x.y.z version number in libdevmapper.pc. 40756a34939Shaad Remove ancient debian directory. 40856a34939Shaad Split out lvm-logging.h from log.h and lvm-globals.[ch] from log.[ch]. 40956a34939Shaad 41056a34939ShaadVersion 2.02.42 - 26th October 2008 41156a34939Shaad=================================== 41256a34939Shaad Accept locking fallback_to_* options in the global section as documented. 41356a34939Shaad Fix temp table activation in mirror conversions not to happen in other cmds. 41456a34939Shaad Fix temp table in mirror conversions to use always-present error not zero. 41556a34939Shaad 41656a34939ShaadVersion 2.02.41 - 17th October 2008 41756a34939Shaad=================================== 41856a34939Shaad Use temp table to set device size when converting mirrors. 41956a34939Shaad In resume_mirror_images replace activate_lv with resume_lv as workaround. 42056a34939Shaad Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE. 42156a34939Shaad Fix snapshot monitoring library to not cancel monitoring invalid snapshot. 42256a34939Shaad Generate man pages from templates and include version. 42356a34939Shaad Add usrlibdir and usrsbindir to configure. 42456a34939Shaad Fix conversion of md chunk size into sectors. 42556a34939Shaad Free text metadata buffer after a failure writing it. 42656a34939Shaad Fix misleading error message when there are no allocatable extents in VG. 42756a34939Shaad Fix handling of PVs which reappeared with old metadata version. 42856a34939Shaad Fix mirror DSO to call vgreduce with proper parameters. 42956a34939Shaad Fix validation of --minor and --major in lvcreate to require -My always. 43056a34939Shaad Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning. 43156a34939Shaad 43256a34939ShaadVersion 2.02.40 - 19th September 2008 43356a34939Shaad===================================== 43456a34939Shaad Allow lvremove to remove LVs from VGs with missing PVs. 43556a34939Shaad In VG with PVs missing, by default allow activation of LVs that are complete. 43656a34939Shaad Track PARTIAL_LV and MISSING_PV flags internally. 43756a34939Shaad Require --force with --removemissing in vgreduce to remove partial LVs. 43856a34939Shaad No longer write out PARTIAL flag into metadata backups. 43956a34939Shaad Treat new default activation/missing_stripe_filler "error" as an error target. 44056a34939Shaad Remove internal partial_mode. 44156a34939Shaad Add devices/md_chunk_alignment to lvm.conf. 44256a34939Shaad Pass struct physical_volume to pe_align and adjust for md chunk size. 44356a34939Shaad Store sysfs location in struct cmd_context. 44456a34939Shaad Avoid shuffling remaining mirror images when removing one, retaining primary. 44556a34939Shaad Add missing LV error target activation in _remove_mirror_images. 44656a34939Shaad Prevent resizing an LV while lvconvert is using it. 44756a34939Shaad Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan. 44856a34939Shaad Fix pvresize to not allow resize if PV has two metadata areas. 44956a34939Shaad Fix setting of volume limit count if converting to lvm1 format. 45056a34939Shaad Fix vgconvert logical volume id metadata validation. 45156a34939Shaad Fix lvmdump metadata gather option (-m) to work correctly. 45256a34939Shaad Fix allocation bug in text metadata format write error path. 45356a34939Shaad Fix vgcfgbackup to properly check filename if template is used. 45456a34939Shaad configure aborts if lcov or genhtml are missing with --enable-profiling 45556a34939Shaad vgremove tries to remove lv snapshot first. 45656a34939Shaad Added function lv_remove_with_dependencies(). 45756a34939Shaad Improve file descriptor leak detection to display likely culprit and filename. 45856a34939Shaad Change clustered mirror kernel module name from cmirror to dm-log-clustered. 45956a34939Shaad Avoid looping forever in _pv_analyze_mda_raw used by pvck. 46056a34939Shaad Change lvchange exit status to indicate if any part of the operation failed. 46156a34939Shaad Fix pvchange and pvremove to handle PVs without mdas. 46256a34939Shaad Refactor _text_pv_read and always return mda list if requested. 46356a34939Shaad Fix configure to work w/o readline unless --enable-readline used. (2.02.39) 46456a34939Shaad Remove is_lvm_partition template which has not yet been coded. 46556a34939Shaad Refactor pvcreate to separate parameter parsing from validation logic. 46656a34939Shaad Check for label_write() failure in _text_pv_write(). 46756a34939Shaad Add pvcreate tests and update vgsplit tests to handle lvm1 and lvm2 metadata. 46856a34939Shaad Fix pvchange -M1 -u to preserve existing extent locations when there's a VG. 46956a34939Shaad Cease recognising snapshot-in-use percentages returned by early devt kernels. 47056a34939Shaad Add backward-compatible flags field to on-disk format_text metadata. 47156a34939Shaad Fix dmeventd monitoring libraries to link against liblvm2cmd again. (2.02.39) 47256a34939Shaad 47356a34939ShaadVersion 2.02.39 - 27th June 2008 47456a34939Shaad================================ 47556a34939Shaad Enable readline by default if available. 47656a34939Shaad Update autoconf to 2008-01-16. 47756a34939Shaad Add $DISTCLEAN_DIRS to make.tmpl.in. 47856a34939Shaad Create coverage reports with --enable-profiling and make lcov or lcov-dated. 47956a34939Shaad Fix up cache for PVs without mdas after consistent VG metadata is processed. 48056a34939Shaad Update validation of safe mirror log type conversions in lvconvert. 48156a34939Shaad Fix lvconvert to disallow snapshot and mirror combinations. 48256a34939Shaad Fix reporting of LV fields alongside unallocated PV segments. 48356a34939Shaad Add --unquoted and --rows to reporting tools. 48456a34939Shaad Add and use uninitialized_var() macro to suppress invalid compiler warnings. 48556a34939Shaad Introduce enum for md minor sb version to suppress compiler warning. 48656a34939Shaad Avoid undefined return value after _memlock manipulation in lvm2_run. 48756a34939Shaad Avoid link failure if configured without --enable-cmdlib or --enable-readline. 48856a34939Shaad Make clvmd return at once if other nodes down in a gulm or openais cluster. 48956a34939Shaad Fix and improve readahead 'auto' calculation for stripe_size. 49056a34939Shaad Fix lvchange output for -r auto setting if auto is already set. 49156a34939Shaad Add test case for readahead. 49256a34939Shaad Avoid ambiguous use of identifier error_message_produced. 49356a34939Shaad Begin syncing configure.in for merge/unification with device-mapper. 49456a34939Shaad Fix add_mirror_images not to dereference uninitialized log_lv upon failure. 49556a34939Shaad Don't call openlog for every debug line output by clvmd. 49656a34939Shaad Add --force to lvextend and lvresize. 49756a34939Shaad Fix vgchange not to activate component mirror volumes directly. 49856a34939Shaad Fix test directory clean up in make distclean. 49956a34939Shaad 50056a34939ShaadVersion 2.02.38 - 11th June 2008 50156a34939Shaad================================ 50256a34939Shaad Fix tracking of validity of PVs with no mdas in lvmcache. 50356a34939Shaad Fix return values for reporting commands when run with no PVs, LVs, or VGs. 50456a34939Shaad Add omitted unlock_vg() call when sigint_caught() during vg processing. 50556a34939Shaad Fix free_count when reading pool metadata. 50656a34939Shaad Fix segfault when using pvcreate on a device containing pool metadata. 50756a34939Shaad Fix segfault after _free_vginfo by remembering to remove vginfo from list. 50856a34939Shaad Tweak detection of invalid fid after changes to PVs in VG in _vg_read. 50956a34939Shaad Revert assuming precommitted metadata is live when activating (unnecessary). 51056a34939Shaad Drop cached metadata for disappearing VG in vgmerge. 51156a34939Shaad In script-processing mode, stop if any command fails. 51256a34939Shaad Warn if command exits with non-zero status code without a prior log_error. 51356a34939Shaad Check lv_count in vg_validate. 51456a34939Shaad Add --nameprefixes to reporting tools for field name prefix output format. 51556a34939Shaad 51656a34939ShaadVersion 2.02.37 - 6th June 2008 51756a34939Shaad=============================== 51856a34939Shaad Make clvmd-cman use a hash rather than an array for node updown info. 51956a34939Shaad Correct config file line numbers in messages when parsing comments. 52056a34939Shaad Drop cached metadata when renaming a VG. 52156a34939Shaad Allow for vginfo changing during _vg_read. 52256a34939Shaad Decode numbers in clvmd debugging output. 52356a34939Shaad Add missing deactivation after activation failure in lvcreate -Zy. 52456a34939Shaad When activating, if precommitted metadata is still cached, assume it's live. 52556a34939Shaad When removing LV symlinks, skip any where the VG name is not determined. 52656a34939Shaad Drop metadata cache if update fails in vg_revert or vg_commit. 52756a34939Shaad Avoid spurious duplicate VG messages referring to VGs that are gone. 52856a34939Shaad Drop dev_name_confirmed error message to debug level. 52956a34939Shaad Fix setpriority error message to signed int. 53056a34939Shaad Temporarily disable dmeventd mirror monitoring during lvchange --resync. 53156a34939Shaad Refactor some vginfo manipulation code. 53256a34939Shaad Add assertions to trap deprecated P_ and V_ lock usage. 53356a34939Shaad Add missing mutex around clvmd lvmcache_drop_metadata library call. 53456a34939Shaad Fix uninitialised mutex in clvmd if all daemons are not running at startup. 53556a34939Shaad Avoid using DLM locks with LCK_CACHE type P_ lock requests. 53656a34939Shaad When asked to drop cached committed VG metadata, invalidate cached PV labels. 53756a34939Shaad Drop metadata cache before writing precommitted metadata instead of after. 53856a34939Shaad Don't touch /dev in vgrename if activation is disabled. 53956a34939Shaad 54056a34939ShaadVersion 2.02.36 - 29th April 2008 54156a34939Shaad================================= 54256a34939Shaad Fix fsadm.sh to work with older blockdev, blkid & readlink binaries. 54356a34939Shaad Fix lvresize to pass new size to fsadm when extending device. 54456a34939Shaad Remove unused struct in clvmd-openais, and use correct node count. 54556a34939Shaad Fix nodes list in clvmd-openais, and allow for broadcast messages. 54656a34939Shaad Exclude VG_GLOBAL from internal concurrent VG lock counter. 54756a34939Shaad Fix vgsplit internal counting of snapshot LVs. 54856a34939Shaad Fix vgmerge snapshot_count when source VG contains snapshots. 54956a34939Shaad Simplify clvmd-openais by using non-async saLckResourceLock. 55056a34939Shaad Fix internal LV counter when a snapshot is removed. 55156a34939Shaad Fix metadata corruption writing lvm1-formatted metadata with snapshots. 55256a34939Shaad Fix lvconvert -m0 allocatable space check. 55356a34939Shaad 55456a34939ShaadVersion 2.02.35 - 15th April 2008 55556a34939Shaad================================= 55656a34939Shaad Drop cached VG metadata before and after committing changes to it. 55756a34939Shaad Rename P_global to P_#global. 55856a34939Shaad Don't attempt remote metadata backups of non-clustered VGs. (2.02.29) 55956a34939Shaad Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34) 56056a34939Shaad Update vgsplit tests to verify loosening of active LV restriction. 56156a34939Shaad Update vgsplit to only restrict split with active LVs involved in split. 56256a34939Shaad Add lv_is_active() to determine whether an lv is active. 56356a34939Shaad 56456a34939ShaadVersion 2.02.34 - 10th April 2008 56556a34939Shaad================================= 56656a34939Shaad Improve preferred_names lvm.conf example. 56756a34939Shaad Fix vgdisplay 'Cur LV' field to match lvdisplay output. 56856a34939Shaad Fix lv_count report field to exclude hidden LVs. 56956a34939Shaad Add vg_is_clustered() helper function. 57056a34939Shaad Fix vgsplit to only move hidden 'snapshotN' LVs when necessary. 57156a34939Shaad Update vgsplit tests for lvnames on the cmdline. 57256a34939Shaad Update vgsplit man page to reflect lvnames on the cmdline. 57356a34939Shaad Update vgsplit to take "-n LogicalVolumeName" on the cmdline. 57456a34939Shaad Use clustered mirror log with pvmove in clustered VGs, if available. 57556a34939Shaad Fix some pvmove error status codes. 57656a34939Shaad Fix vgsplit error paths to release vg_to lock. 57756a34939Shaad Indicate whether or not VG is clustered in vgcreate log message. 57856a34939Shaad Mention default --clustered setting in vgcreate man page. 57956a34939Shaad Add config file overrides to clvmd when it reads the active LVs list. 58056a34939Shaad Fix vgreduce to use vg_split_mdas to check sufficient mdas remain. 58156a34939Shaad Add (empty) orphan VGs to lvmcache during initialisation. 58256a34939Shaad Fix orphan VG name used for format_pool. 58356a34939Shaad Create a fid for internal orphan VGs. 58456a34939Shaad Update lvmcache VG lock state for all locking types now. 58556a34939Shaad Fix output if overriding command_names on cmdline. 58656a34939Shaad Add detection of clustered mirror log capability. 58756a34939Shaad Add check to vg_commit() ensuring VG lock held before writing new VG metadata. 58856a34939Shaad Add validation of LV name to pvmove -n. 58956a34939Shaad Make clvmd refresh the context correctly when lvm.conf is updated. 59056a34939Shaad Add some basic internal VG lock validation. 59156a34939Shaad Add per-command flags to control which commands use the VG metadata cache. 59256a34939Shaad Fix vgsplit locking of new VG (2.02.30). 59356a34939Shaad Avoid erroneous vgsplit error message for new VG. (2.02.29) 59456a34939Shaad Suppress duplicate message when lvresize fails because of invalid vgname. 59556a34939Shaad Cache VG metadata internally while VG lock is held. 59656a34939Shaad Fix redundant lvresize message if vg doesn't exist. 59756a34939Shaad Fix another allocation bug with clvmd and large node IDs. 59856a34939Shaad Add find_lv_in_lv_list() and find_pv_in_pv_list(). 59956a34939Shaad Fix uninitialised variable in clvmd that could cause odd hangs. 60056a34939Shaad Add vgmerge tests. 60156a34939Shaad Add pvseg_is_allocated() for identifying a PV segment allocated to a LV. 60256a34939Shaad Add list_move() for moving elements from one list to another. 60356a34939Shaad Add 'is_reserved_lvname()' for identifying hidden LVs. 60456a34939Shaad Correct command name in lvmdiskscan man page. 60556a34939Shaad clvmd no longer crashes if it sees nodeids over 50. 60656a34939Shaad Fix potential deadlock in clvmd thread handling. 60756a34939Shaad Refactor text format initialisation into _init_text_import. 60856a34939Shaad Escape double quotes and backslashes in external metadata and config data. 60956a34939Shaad Add functions for escaping double quotes in strings. 61056a34939Shaad Rename count_chars_len to count_chars. 61156a34939Shaad Use return_0 in a couple more places. 61256a34939Shaad Correct a function name typo in _line_append error message. 61356a34939Shaad Include limits.h in clvmd so it compiles with newer headers. 61456a34939Shaad Add VirtIO disks (virtblk) to filters. 61556a34939Shaad Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30) 61656a34939Shaad Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30) 61756a34939Shaad Add missing no-longer-used segs_using_this_lv test to check_lv_segments. 61856a34939Shaad Remove redundant non-NULL tests before calling free in clvmd.c. 61956a34939Shaad Avoid a compiler warning: make is_orphan's parameter const. 62056a34939Shaad Fix lvconvert detection of mirror conversion in progress. (2.02.30) 62156a34939Shaad Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30) 62256a34939Shaad Fix 'pvs -a' to detect VGs of PVs without metadata areas. 62356a34939Shaad Divide up internal orphan volume group by format type. 62456a34939Shaad Update usage message for clvmd. 62556a34939Shaad Fix clvmd man page not to print <br> and clarified debug options. 62656a34939Shaad Fix lvresize to support /dev/mapper prefix in the LV name. 62756a34939Shaad Fix unfilled parameter passed to fsadm from lvresize. 62856a34939Shaad Update fsadm to call lvresize if the partition size differs (with option -l). 62956a34939Shaad Fix fsadm to support VG/LV names. 63056a34939Shaad 63156a34939ShaadVersion 2.02.33 - 31st January 2008 63256a34939Shaad=================================== 63356a34939Shaad Fix mirror log name construction during lvconvert. (2.02.30) 63456a34939Shaad Make monitor_dev_for_events recurse through the stack of LVs. 63556a34939Shaad Clean up some more compiler warnings. 63656a34939Shaad Some whitespace tidy-ups. 63756a34939Shaad Use stack return macros throughout. 63856a34939Shaad Rely upon internally-cached PV labels while corresponding VG lock is held. 63956a34939Shaad 64056a34939ShaadVersion 2.02.32 - 29th January 2008 64156a34939Shaad=================================== 64256a34939Shaad Fix two check_lv_segments error messages to show whole segment. 64356a34939Shaad Refactor mirror log attachment code. 64456a34939Shaad Fix internal metadata corruption in lvchange --resync. (2.02.30) 64556a34939Shaad Fix new parameter validation in vgsplit and test mode. (2.02.30) 64656a34939Shaad Remove redundant cnxman-socket.h file from clvmd directory. 64756a34939Shaad Fix pvs, vgs, lvs error exit status on some error paths. 64856a34939Shaad 64956a34939ShaadVersion 2.02.31 - 19th January 2008 65056a34939Shaad=================================== 65156a34939Shaad Fix lvcreate --nosync not to wait for non-happening sync. (2.02.30) 65256a34939Shaad Add very_verbose lvconvert messages. 65356a34939Shaad Avoid readahead error message with default setting of lvcreate -M1. (2.02.29) 65456a34939Shaad 65556a34939ShaadVersion 2.02.30 - 17th January 2008 65656a34939Shaad=================================== 65756a34939Shaad Set default readahead to twice maximium stripe size. 65856a34939Shaad Reinstate VG extent size and stripe size defaults (halved). (2.02.29) 65956a34939Shaad Add lists of stacked LV segments using each LV to the internal metadata. 66056a34939Shaad Change vgsplit -l (for unimplemented --list) into --maxlogicalvolumes. 66156a34939Shaad Fix process_all_pvs to detect non-orphans with no MDAs correctly. 66256a34939Shaad Don't use block_on_error with mirror targets version 1.12 and above. 66356a34939Shaad Update vgsplit to accept vgcreate options when new VG is destination. 66456a34939Shaad Update vgsplit to accept existing VG as destination. 66556a34939Shaad lvconvert waits for completion of initial sync by default. 66656a34939Shaad Refactor vgcreate for parameter validation and add tests. 66756a34939Shaad Add new convert_lv field to lvs output. 66856a34939Shaad Print warning when lvm tools are running as non-root. 66956a34939Shaad Add snapshot dmeventd library (enables dmeventd snapshot monitoring). 67056a34939Shaad Prevent pvcreate from overwriting MDA-less PVs belonging to active VGs. 67156a34939Shaad Fix a segfault if using pvs with --all argument. (2.02.29) 67256a34939Shaad Update --uuid argument description in man pages. 67356a34939Shaad Fix vgreduce PV list processing not to process every PV in the VG. (2.02.29) 67456a34939Shaad Extend lvconvert to use polldaemon. 67556a34939Shaad Add support for stacked mirrors. 67656a34939Shaad Major restructuring of pvmove and lvconvert layer manipulation code. 67756a34939Shaad Replace tools/fsadm with scripts/fsadm.sh. 67856a34939Shaad Append fields to report/pvsegs_cols_verbose. 67956a34939Shaad Permit LV segment fields with PV segment reports. 68056a34939Shaad Add seg_start_pe and seg_pe_ranges to reports. 68156a34939Shaad 68256a34939ShaadVersion 2.02.29 - 5th December 2007 68356a34939Shaad=================================== 68456a34939Shaad Make clvmd backup vg metadata on remote nodes. 68556a34939Shaad Refactor pvmove allocation code. 68656a34939Shaad Decode cluster locking state in log message. 68756a34939Shaad Change file locking state messages from debug to very verbose. 68856a34939Shaad Fix --addtag to drop @ prefix from name. 68956a34939Shaad Stop clvmd going haywire if a pre_function fails. 69056a34939Shaad Convert some vg_reads into vg_lock_and_reads. 69156a34939Shaad Avoid nested vg_reads when processing PVs in VGs and fix associated locking. 69256a34939Shaad Accept sizes with --readahead argument. 69356a34939Shaad Store size arguments as sectors internally. 69456a34939Shaad Attempt to remove incomplete LVs with lvcreate zeroing/activation problems. 69556a34939Shaad Add read_ahead activation code. 69656a34939Shaad Add activation/readahead configuration option and FMT_RESTRICTED_READAHEAD. 69756a34939Shaad Extend readahead arg to accept "auto" and "none". 69856a34939Shaad Add lv_read_ahead and lv_kernel_read_ahead fields to reports and lvdisplay. 69956a34939Shaad Prevent lvconvert -s from using same LV as origin and snapshot. 70056a34939Shaad Fix human-readable output of odd numbers of sectors. 70156a34939Shaad Add pv_mda_free and vg_mda_free fields to reports for raw text format. 70256a34939Shaad Add LVM2 version to 'Generated by' comment in metadata. 70356a34939Shaad Show 'not usable' space when PV is too large for device in pvdisplay. 70456a34939Shaad Ignore and fix up any excessive device size found in metadata. 70556a34939Shaad Fix error message when fixing up PV size in lvm2 metadata (2.02.11). 70656a34939Shaad Fix orphan-related locking in pvdisplay and pvs. 70756a34939Shaad Fix missing VG unlocks in some pvchange error paths. 70856a34939Shaad Add some missing validation of VG names. 70956a34939Shaad Rename validate_vg_name() to validate_new_vg_name(). 71056a34939Shaad Change orphan lock to VG_ORPHANS. 71156a34939Shaad Change format1 to use ORPHAN as orphan VG name. 71256a34939Shaad Convert pvchange, pvdisplay, pvscan to use is_orphan() 71356a34939Shaad Add is_orphan_vg() and change all hard-coded checks to use it. 71456a34939Shaad Detect md superblocks version 1.0, 1.1 and 1.2. 71556a34939Shaad Add _alloc_pv() and _free_pv() from _pv_create() code and fix error paths. 71656a34939Shaad Add pv_dev_name() to access PV device name. 71756a34939Shaad Add const attributes to pv accessor functions. 71856a34939Shaad Refactor vg_add_snapshot() and lv_create_empty(). 71956a34939Shaad Handle new sysfs subsystem/block/devices directory structure. 72056a34939Shaad Run test with LVM_SYSTEM_DIR pointing to private root and /dev dirs. 72156a34939Shaad Fix a bug in lvm_dump.sh checks for lvm/dmsetup binaries. 72256a34939Shaad Fix underquotations in lvm_dump.sh. 72356a34939Shaad Refactor lvcreate stripe and mirror parameter validation. 72456a34939Shaad Print --help output to stdout, not stderr. 72556a34939Shaad After a cmdline processing error, don't print help text but suggest --help. 72656a34939Shaad Add %PVS extents option to lvresize, lvextend, and lvcreate. 72756a34939Shaad Add 'make check' to run tests in new subdirectory 'test'. 72856a34939Shaad Moved the obsolete test subdirectory to old-tests. 72956a34939Shaad Cope with relative paths in configure --with-dmdir. 73056a34939Shaad Remove no-longer-correct restrictions on PV arg count with stripes/mirrors. 73156a34939Shaad Fix strdup memory leak in str_list_dup(). 73256a34939Shaad Link with -lpthread when static SELinux libraries require that. 73356a34939Shaad Detect command line PE values that exceed their 32-bit range. 73456a34939Shaad Include strerror string in dev_open_flags' stat failure message. 73556a34939Shaad Move guts of pvresize into library. 73656a34939Shaad Avoid error when --corelog is provided without --mirrorlog. (2.02.28) 73756a34939Shaad Correct --mirrorlog argument name in man pages (not --log). 73856a34939Shaad Clear MIRROR_NOTSYNCED LV flag when converting from mirror to linear. 73956a34939Shaad Modify lvremove to prompt for removal if LV active on other cluster nodes. 74056a34939Shaad Add '-f' to vgremove to force removal of VG even if LVs exist. 74156a34939Shaad 74256a34939ShaadVersion 2.02.28 - 24th August 2007 74356a34939Shaad================================== 74456a34939Shaad Fix clvmd logging so you can get lvm-level debugging out of it. 74556a34939Shaad Introduce VG_GLOBAL lock type for vgscan/pvscan to trigger clvmd -R. 74656a34939Shaad Change locking_flags from int to uint32_t. 74756a34939Shaad Fix clvmd -R, so it fully refreshes the caches. 74856a34939Shaad Change lvconvert_mirrors to use mirror segtype not striped. 74956a34939Shaad Fix lvconvert_mirrors detection of number of existing mirrors. 75056a34939Shaad Clean up numerous compiler warnings that appeared in recent releases. 75156a34939Shaad Remove several unused parameters from _allocate(). 75256a34939Shaad Only permit --force, --verbose and --debug arguments to be repeated. 75356a34939Shaad Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 75456a34939Shaad Move guts of vgremove and lvremove into library, including yes_no_prompt. 75556a34939Shaad Allow clvmd debug to be turned on in a running daemon using clvmd -d [-C]. 75656a34939Shaad Update to use autoconf 2.61, while still supporting 2.57. 75756a34939Shaad Add more cluster info to lvmdump. 75856a34939Shaad Add further const attributes throughout. 75956a34939Shaad Add support for renaming mirrored LVs. 76056a34939Shaad Factor out core of lvrename() to library function. 76156a34939Shaad Add --mirrorlog argument to specify log type for mirrors. 76256a34939Shaad Don't attempt to monitor devices if their creation failed in _lv_activate. 76356a34939Shaad Don't leak a file descriptor in fcntl_lock_file() when fcntl fails. 76456a34939Shaad Replace create_dir with dm_create_dir. 76556a34939Shaad Detect stream write failure reliably with lvm_fclose using dm_fclose. 76656a34939Shaad Fix clvmd if compiled with gulm support. (2.02.26) 76756a34939Shaad Fix lvdisplay man page to say LV size is reported in sectors, not KB. 76856a34939Shaad Add vg_lock_and_read() external library function. 76956a34939Shaad Fix loading of persistent cache if cache_dir is used. (2.02.23) 77056a34939Shaad Reduce _compare_paths lstat error message from log_error to log_very_verbose. 77156a34939Shaad Create util.h with last_path_component replacing strdup + basename. 77256a34939Shaad Use gcc's printf attribute wherever possible. 77356a34939Shaad In _line_append, use "sizeof buf - 1" rather than equivalent "4095". 77456a34939Shaad Introduce is_same_inode macro, now including a comparison of st_dev. 77556a34939Shaad Don't leak a file descriptor in _lock_file() when flock fails. 77656a34939Shaad Add SUN's LDOM virtual block device (vdisk) and ps3disk to filters. 77756a34939Shaad Split metadata-external.h out from metadata.h for the tools to use. 77856a34939Shaad 77956a34939ShaadVersion 2.02.27 - 17th July 2007 78056a34939Shaad================================ 78156a34939Shaad Fix snapshot cow area deactivation if origin is not active. (2.02.13) 78256a34939Shaad Fix configure libdevmapper.h check when --with-dmdir is used. 78356a34939Shaad Turn _add_pv_to_vg() into external library function add_pv_to_vg(). 78456a34939Shaad Add pv_by_path() external library function. 78556a34939Shaad Tidy clvmd-openais of redundant bits, and improve an error report. 78656a34939Shaad Cope with find_seg_by_le() failure in check_lv_segments(). 78756a34939Shaad Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint. 78856a34939Shaad Add vg_mda_count and pv_mda_count columns to reports. 78956a34939Shaad Fix dumpconfig to use log_print instead of stdout directly. 79056a34939Shaad Remove unused parameter 'fid' from _add_pv_to_vg. 79156a34939Shaad Add kernel and device-mapper targets versions to lvmdump. 79256a34939Shaad Replace BSD (r)index with C89 str(r)chr. 79356a34939Shaad Handle vgsplit of an entire VG as a vgrename. 79456a34939Shaad Reinitialise internal lvmdiskscan variables when called repeatedly. 79556a34939Shaad Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23) 79656a34939Shaad Add vg_status function and clean up vg->status in tools directory. 79756a34939Shaad Add --ignoremonitoring to disable all dmeventd interaction. 79856a34939Shaad Remove get_ prefix from get_pv_* functions. 79956a34939Shaad clvmd-openais now uses cpg_local_get() to get nodeid, rather than Clm. 80056a34939Shaad Print warnings to stderr instead of stdout. 80156a34939Shaad 80256a34939ShaadVersion 2.02.26 - 15th June 2007 80356a34939Shaad================================ 80456a34939Shaad Update vgcfgrestore man page. 80556a34939Shaad Allow keyboard interrupt during user prompts when appropriate. 80656a34939Shaad Remove unused clvmd system-lv code. 80756a34939Shaad Replace many physical_volume struct dereferences with new get_pv_* functions. 80856a34939Shaad Suppress a benign compile-time warning. 80956a34939Shaad Convert find_pv_in_vg_by_uuid and pv_create to use PV handles. 81056a34939Shaad Add wrappers to some functions in preparation for external LVM library. 81156a34939Shaad Add -f to vgcfgrestore to list metadata backup files. 81256a34939Shaad Add vg_check_status to consolidate vg status checks and error messages. 81356a34939Shaad Add pvdisplay --maps implementation. 81456a34939Shaad Remove unsupported LVM1 options from vgcfgrestore man page. 81556a34939Shaad Update vgcfgrestore man page to show mandatory VG name. 81656a34939Shaad Update vgrename man page to include UUID and be consistent with lvrename. 81756a34939Shaad Add (experimental) OpenAIS support to clvmd. 81856a34939Shaad Fix deactivation code to follow dependencies and remove symlinks. 81956a34939Shaad Fix and clarify vgsplit error messages. 82056a34939Shaad Fix a segfault in device_is_usable() if a device has no table. 82156a34939Shaad Add some more debug messages to clvmd startup. 82256a34939Shaad Misc clvmd cleanups. 82356a34939Shaad 82456a34939ShaadVersion 2.02.25 - 27th April 2007 82556a34939Shaad================================= 82656a34939Shaad Fix get_config_uint64() to read a 64-bit value not a 32-bit one. 82756a34939Shaad Add -Wformat-security and change one fprintf() to fputs(). 82856a34939Shaad Move regex functions into libdevmapper. 82956a34939Shaad Change some #include lines to search only standard system directories. 83056a34939Shaad Add devices/preferred_names config regex list for displayed device names. 83156a34939Shaad Free a temporary dir string in fcntl_lock_file() after use. 83256a34939Shaad Fix a dm_pool_destroy() in matcher_create(). 83356a34939Shaad Introduce goto_bad macro. 83456a34939Shaad Fix warnings on x86_64 involving ptrdiff_t in log_error messages. 83556a34939Shaad Update pvck to include text metadata area and record detection. 83656a34939Shaad Add support functions for token counting in config file extracts. 83756a34939Shaad Update pvck to read labels on disk, with --labelsector parameter. 83856a34939Shaad Add count_chars and count_chars_len functions. 83956a34939Shaad Add /sys/block listings to lvm_dump.sh. 84056a34939Shaad Make lvm_dump.sh list /dev recursively. 84156a34939Shaad Fix thread race in clvmd. 84256a34939Shaad Add scan_sector param to label_read and _find_labeller. 84356a34939Shaad Make clvmd cope with quorum devices. 84456a34939Shaad Add extra internal error checking to clvmd. 84556a34939Shaad Add dev_read_circular. 84656a34939Shaad Add pvck command stub. 84756a34939Shaad Update lists of attribute characters in man pages. 84856a34939Shaad Change cling alloc policy attribute character from 'C' to l'. 84956a34939Shaad Fix creation and conversion of mirrors with tags. 85056a34939Shaad Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata). 85156a34939Shaad Split metadata areas in vgsplit properly. 85256a34939Shaad 85356a34939ShaadVersion 2.02.24 - 19th March 2007 85456a34939Shaad================================= 85556a34939Shaad Fix processing of exit status in init scripts 85656a34939Shaad Fix vgremove to require at least one vg argument. 85756a34939Shaad Fix reading of striped LVs in LVM1 format. 85856a34939Shaad Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10) 85956a34939Shaad Add a few missing pieces of vgname command line validation. 86056a34939Shaad Support the /dev/mapper prefix on most command lines. 86156a34939Shaad 86256a34939ShaadVersion 2.02.23 - 8th March 2007 86356a34939Shaad================================ 86456a34939Shaad Fix vgrename active LV check to ignore differing vgids. 86556a34939Shaad Remove no-longer-used uuid_out parameter from activation info functions. 86656a34939Shaad Fix two more segfaults if an empty config file section encountered. 86756a34939Shaad Move .cache file into a new /etc/lvm/cache directory by default. 86856a34939Shaad Add devices/cache_dir & devices/cache_file_prefix, deprecating devices/cache. 86956a34939Shaad Create directory in fcntl_lock_file() if required. 87056a34939Shaad Exclude readline support from lvm.static. 87156a34939Shaad Fix a leak in a reporting error path (2.02.19). 87256a34939Shaad 87356a34939ShaadVersion 2.02.22 - 13th February 2007 87456a34939Shaad==================================== 87556a34939Shaad Correct -b and -P on a couple of man pages. 87656a34939Shaad Add global/units to example.conf. 87756a34939Shaad Fix loading of segment_libraries. 87856a34939Shaad If a PV reappears after it was removed from its VG, make it an orphan. 87956a34939Shaad Don't update metadata automatically if VGIDs don't match. 88056a34939Shaad Fix some vgreduce --removemissing command line validation. 88156a34939Shaad 88256a34939ShaadVersion 2.02.21 - 30th January 2007 88356a34939Shaad=================================== 88456a34939Shaad Add warning to lvm2_monitoring_init_rhel4 if attempting to stop monitoring. 88556a34939Shaad Fix vgsplit to handle mirrors. 88656a34939Shaad Reorder fields in reporting field definitions. 88756a34939Shaad Fix vgs to treat args as VGs even when PV fields are displayed. 88856a34939Shaad Fix md signature check to handle both endiannesses. 88956a34939Shaad 89056a34939ShaadVersion 2.02.20 - 25th January 2007 89156a34939Shaad=================================== 89256a34939Shaad dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors. 89356a34939Shaad Add devices/ignore_suspended_devices to ignore suspended dm devices. 89456a34939Shaad Add some missing close() and fclose() return code checks. 89556a34939Shaad Fix exit statuses of reporting tools (2.02.19). 89656a34939Shaad Add init script for dmeventd monitoring. 89756a34939Shaad lvm.static no longer interacts with dmeventd unless explicitly asked to. 89856a34939Shaad Add field definitions to report help text. 89956a34939Shaad Remove unnecessary cmd arg from target_*monitor_events(). 90056a34939Shaad Add private variable to dmeventd shared library interface. 90156a34939Shaad Long-lived processes write out persistent dev cache in refresh_toolcontext(). 90256a34939Shaad Fix refresh_toolcontext() always to wipe persistent device filter cache. 90356a34939Shaad Add is_long_lived to toolcontext. 90456a34939Shaad Add --clustered to man pages. 90556a34939Shaad Streamline dm_report_field_* interface. 90656a34939Shaad Change remaining dmeventd terminology 'register' to 'monitor'. 90756a34939Shaad Update reporting man pages. 90856a34939Shaad No longer necessary to specify alignment type for report fields. 90956a34939Shaad 91056a34939ShaadVersion 2.02.19 - 17th January 2007 91156a34939Shaad=================================== 91256a34939Shaad Fix a segfault if an empty config file section encountered. 91356a34939Shaad Move basic reporting functions into libdevmapper. 91456a34939Shaad Fix partition table processing after sparc changes (2.02.16). 91556a34939Shaad Fix cmdline PE range processing segfault (2.02.13). 91656a34939Shaad Some libdevmapper-event interface changes. 91756a34939Shaad Report dmeventd mirror monitoring status. 91856a34939Shaad Fix dmeventd mirror status line processing. 91956a34939Shaad 92056a34939ShaadVersion 2.02.18 - 11th January 2007 92156a34939Shaad=================================== 92256a34939Shaad Revised libdevmapper-event interface for dmeventd. 92356a34939Shaad Remove dmeventd mirror status line word limit. 92456a34939Shaad Use CFLAGS when linking so mixed sparc builds can supply -m64. 92556a34939Shaad Prevent permission changes on active mirrors. 92656a34939Shaad Print warning instead of error message if lvconvert cannot zero volume. 92756a34939Shaad Add snapshot options to lvconvert man page. 92856a34939Shaad dumpconfig accepts a list of configuration variables to display. 92956a34939Shaad Change dumpconfig to use --file to redirect output to a file. 93056a34939Shaad Avoid vgreduce error when mirror code removes the log LV. 93156a34939Shaad Remove 3 redundant AC_MSG_RESULTs from configure.in. 93256a34939Shaad Free memory in _raw_read_mda_header() error paths. 93356a34939Shaad Fix ambiguous vgsplit error message for split LV. 93456a34939Shaad Fix lvextend man page typo. 93556a34939Shaad Add configure --with-dmdir to compile against a device-mapper source tree. 93656a34939Shaad Use no flush suspending for mirrors. 93756a34939Shaad Add dmeventd_mirror register_mutex, tidy initialisation & add memlock. 93856a34939Shaad Fix create mirror with name longer than 22 chars. 93956a34939Shaad Fix some activate.c prototypes when compiled without devmapper. 94056a34939Shaad Fix dmeventd mirror to cope if monitored device disappears. 94156a34939Shaad 94256a34939ShaadVersion 2.02.17 - 14th December 2006 94356a34939Shaad==================================== 94456a34939Shaad Add missing pvremove error message when device doesn't exist. 94556a34939Shaad When lvconvert allocates a mirror log, respect parallel area constraints. 94656a34939Shaad Use loop to iterate through the now-ordered policy list in _allocate(). 94756a34939Shaad Check for failure to allocate just the mirror log. 94856a34939Shaad Introduce calc_area_multiple(). 94956a34939Shaad Support mirror log allocation when there is only one PV: area_count now 0. 95056a34939Shaad Fix detection of smallest area in _alloc_parallel_area() for cling policy. 95156a34939Shaad Add manpage entry for clvmd -T 95256a34939Shaad Fix gulm operation of clvmd, including a hang when doing lvchange -aey 95356a34939Shaad Fix hang in clvmd if a pre-command failed. 95456a34939Shaad 95556a34939ShaadVersion 2.02.16 - 1st December 2006 95656a34939Shaad=================================== 95756a34939Shaad Fix VG clustered read locks to use PR not CR. 95856a34939Shaad Adjust some alignments for ia64/sparc. 95956a34939Shaad Fix mirror segment removal to use temporary error segment. 96056a34939Shaad Always compile debug logging into clvmd. 96156a34939Shaad Add startup timeout to RHEL4 clvmd startup script. 96256a34939Shaad Add -T (startup timeout) switch to clvmd. 96356a34939Shaad Improve lvm_dump.sh robustness. 96456a34939Shaad Update lvm2create_initrd to support gentoo. 96556a34939Shaad 96656a34939ShaadVersion 2.02.15 - 21st November 2006 96756a34939Shaad==================================== 96856a34939Shaad Fix clvmd_init_rhel4 line truncation (2.02.14). 96956a34939Shaad Install lvmdump by default. 97056a34939Shaad Fix check for snapshot module when activating snapshot. 97156a34939Shaad Fix pvremove error path for case when PV is in use. 97256a34939Shaad Warn if certain duplicate config file entries are seen. 97356a34939Shaad Enhance lvm_dump.sh for sysreport integration and add man page. 97456a34939Shaad Fix --autobackup argument which could never disable backups. 97556a34939Shaad Fix a label_verify error path. 97656a34939Shaad 97756a34939ShaadVersion 2.02.14 - 10th November 2006 97856a34939Shaad==================================== 97956a34939Shaad Fix adjusted_mirror_region_size() to handle 64-bit size. 98056a34939Shaad Add some missing bounds checks on 32-bit extent counters. 98156a34939Shaad Add Petabyte and Exabyte support. 98256a34939Shaad Fix lvcreate error message when 0 extents requested. 98356a34939Shaad lvremove man page: volumes must be cluster inactive before being removed. 98456a34939Shaad Protect .cache manipulations with fcntl locking. 98556a34939Shaad Change .cache timestamp comparisons to use ctime. 98656a34939Shaad Fix mirror log LV writing to set all bits in whole LV. 98756a34939Shaad Fix clustered VG detection and default runlevels in clvmd_init_rhel4. 98856a34939Shaad Fix high-level free space check for partial allocations. 98956a34939Shaad 99056a34939ShaadVersion 2.02.13 - 27th October 2006 99156a34939Shaad=================================== 99256a34939Shaad Add couple of missing files to tools/Makefile CLEAN_TARGETS. 99356a34939Shaad When adding snapshot leave cow LV mapped device active after zeroing. 99456a34939Shaad Fix a clvmd debug message. 99556a34939Shaad Add dev_flush() to set_lv(). 99656a34939Shaad Add lvchange --resync. 99756a34939Shaad Perform high-level free space check before each allocation attempt. 99856a34939Shaad Don't allow a node to remove an LV that's exclusively active on anther node. 99956a34939Shaad Cope if same PV is included more than once in cmdline PE range list. 100056a34939Shaad Set PV size to current device size if it is found to be zero. 100156a34939Shaad Add segment parameter to target_present functions. 100256a34939Shaad 100356a34939ShaadVersion 2.02.12 - 16th October 2006 100456a34939Shaad=================================== 100556a34939Shaad Fix pvdisplay to use vg_read() for non-orphans. 100656a34939Shaad Fall back to internal locking if external locking lib is missing or fails. 100756a34939Shaad Retain activation state after changing LV minor number with --force. 100856a34939Shaad Propagate clustered flag in vgsplit and require resizeable flag. 100956a34939Shaad 101056a34939ShaadVersion 2.02.11 - 12th October 2006 101156a34939Shaad=================================== 101256a34939Shaad Add clvmd function to return the cluster name. not used by LVM yet. 101356a34939Shaad Add cling allocation policy. 101456a34939Shaad Change _check_contiguous() to use _for_each_pv(). 101556a34939Shaad Extend _for_each_pv() to allow termination without error. 101656a34939Shaad Abstract _is_contiguous(). 101756a34939Shaad Remove duplicated pv arg from _check_contiguous(). 101856a34939Shaad Accept regionsize with lvconvert. 101956a34939Shaad Add report columns with underscore before field names ending 'size'. 102056a34939Shaad Correct regionsize default on lvcreate man page (MB). 102156a34939Shaad Fix clvmd bug that could cause it to die when a node with a long name crashed. 102256a34939Shaad Add device size to text metadata. 102356a34939Shaad Fix format_text mda_setup pv->size and pv_setup pe_count calculations. 102456a34939Shaad Fix _for_each_pv() for mirror with core log. 102556a34939Shaad Add lvm_dump.sh script to create a tarball of debugging info from a system. 102656a34939Shaad Capture error messages in clvmd and pass them back to the user. 102756a34939Shaad Remove unused #defines from filter-md.c. 102856a34939Shaad Make clvmd restart init script wait until clvmd has died before starting it. 102956a34939Shaad Add -R to clvmd which tells running clvmds to reload their device cache. 103056a34939Shaad Add LV column to reports listing kernel modules needed for activation. 103156a34939Shaad Show available fields if report given invalid field. (e.g. lvs -o list) 103256a34939Shaad Add timestamp functions with --disable-realtime configure option. 103356a34939Shaad Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg. 103456a34939Shaad Fix two potential NULL pointer derefs in error cases in vg_read(). 103556a34939Shaad Separate --enable-cluster from locking lib options in lvmconf.sh. 103656a34939Shaad Add a missing comma in lvcreate man page. 103756a34939Shaad 103856a34939ShaadVersion 2.02.10 - 19th September 2006 103956a34939Shaad===================================== 104056a34939Shaad Fix lvconvert mirror change case detection logic. 104156a34939Shaad Fix mirror log detachment so it correctly becomes a standalone LV. 104256a34939Shaad Extend _check_contiguous() to detect single-area LVs. 104356a34939Shaad Include mirror log (untested) in _for_each_pv() processing. 104456a34939Shaad Use MIRROR_LOG_SIZE constant. 104556a34939Shaad Remove struct seg_pvs from _for_each_pv() to generalise. 104656a34939Shaad Avoid adding duplicates to list of parallel PVs to avoid. 104756a34939Shaad Fix several incorrect comparisons in parallel area avoidance code. 104856a34939Shaad Fix segment lengths when flattening existing parallel areas. 104956a34939Shaad Log existing parallel areas prior to allocation. 105056a34939Shaad Fix mirror log creation when activation disabled. 105156a34939Shaad Don't attempt automatic recovery without proper locking. 105256a34939Shaad When using local file locking, skip clustered VGs. 105356a34939Shaad Add fallback_to_clustered_locking and fallback_to_local_locking parameters. 105456a34939Shaad lvm.static uses built-in cluster locking instead of external locking. 105556a34939Shaad Don't attempt to load shared libraries if built statically. 105656a34939Shaad Change default locking_lib to liblvm2clusterlock.so. 105756a34939Shaad Add skip_dev_dir() to process command line VGs. 105856a34939Shaad Stop clvmd complaining about nodes that have left the cluster. 105956a34939Shaad Move lvm_snprintf(), split_words() and split_dm_name() into libdevmapper. 106056a34939Shaad Add lvconvert man page. 106156a34939Shaad Add mirror options to man pages. 106256a34939Shaad Prevent mirror renames. 106356a34939Shaad Move CMDLIB code into separate file and record whether static build. 106456a34939Shaad 106556a34939ShaadVersion 2.02.09 - 17th August 2006 106656a34939Shaad================================== 106756a34939Shaad Fix PE_ALIGN for pagesize over 32KB. 106856a34939Shaad Separate out LVM1_PE_ALIGN and pe_align(). 106956a34939Shaad Add lvm_getpagesize wrapper. 107056a34939Shaad Add --maxphysicalvolumes to vgchange. 107156a34939Shaad 107256a34939ShaadVersion 2.02.08 - 15th August 2006 107356a34939Shaad================================== 107456a34939Shaad Add checks for duplicate LV name, lvid and PV id before writing metadata. 107556a34939Shaad Report all sanity check failures, not just the first. 107656a34939Shaad Fix missing lockfs on first snapshot creation. 107756a34939Shaad Add unreliable --trustcache option to reporting commands. 107856a34939Shaad Fix locking for mimage removal. 107956a34939Shaad Fix clvmd_init_rhel4 'status' exit code. 108056a34939Shaad 108156a34939ShaadVersion 2.02.07 - 17th July 2006 108256a34939Shaad================================ 108356a34939Shaad Fix activation logic in lvchange --persistent. 108456a34939Shaad Don't ignore persistent minor numbers when activating. 108556a34939Shaad Use RTLD_GLOBAL when loading shared libraries. 108656a34939Shaad Add some forgotten memlock checks to _vg_read to protect against full scans. 108756a34939Shaad Add mutex to dmeventd_mirror to avoid concurrent execution. 108856a34939Shaad Fix vgreduce --removemissing to return success if VG is already consistent. 108956a34939Shaad Fix return code if VG specified on command line is not found. 109056a34939Shaad Fix PV tools to include orphaned PVs in default output again. 109156a34939Shaad Fixed unaligned access when using clvm. 109256a34939Shaad Fix an extra dev_close in a label_read error path. 109356a34939Shaad Append patches to commit emails. 109456a34939Shaad Fix target_register_events args. 109556a34939Shaad Prevent snapshots of mirrors. 109656a34939Shaad Add DISTCLEAN_TARGETS to make template for configure.h. 109756a34939Shaad More fixes to error paths. 109856a34939Shaad Fix lvcreate corelog validation. 109956a34939Shaad Add --config for overriding most config file settings from cmdline. 110056a34939Shaad Quote arguments when printing command line. 110156a34939Shaad Remove linefeed from 'initialising logging' message. 110256a34939Shaad Add 'Completed' debug message. 110356a34939Shaad Don't attempt library exit after reloading config files. 110456a34939Shaad Always compile with libdevmapper, even if device-mapper is disabled. 110556a34939Shaad 110656a34939ShaadVersion 2.02.06 - 12th May 2006 110756a34939Shaad=============================== 110856a34939Shaad Propagate --monitor around cluster. 110956a34939Shaad Add --monitor to vgcreate and lvcreate to control dmeventd registration. 111056a34939Shaad Filter LCK_NONBLOCK in clvmd lock_vg. 111156a34939Shaad Add --nosync to lvcreate with LV flag NOTSYNCED. 111256a34939Shaad Use mirror's uuid for a core log. 111356a34939Shaad Add mirror log fault-handling policy. 111456a34939Shaad Improve mirror warning messages and tidy dmeventd syslog output. 111556a34939Shaad Propagate nosync flag around cluster. 111656a34939Shaad Allow vgreduce to handle mirror log failures. 111756a34939Shaad Add --corelog to lvcreate and lvconvert. 111856a34939Shaad Create a log header for replacement in-sync mirror log. 111956a34939Shaad Use set_lv() and dev_set() to wipe sections of devices. 112056a34939Shaad Add mirror_in_sync() flag to avoid unnecessary resync on activation. 112156a34939Shaad Add mirror_library description to example.conf. 112256a34939Shaad Fix uuid_from_num() buffer overrun. 112356a34939Shaad Make SIZE_SHORT the default for display_size(). 112456a34939Shaad Fix some memory leaks in error paths found by coverity. 112556a34939Shaad Use C99 struct initialisers. 112656a34939Shaad Move DEFS into configure.h. 112756a34939Shaad Clean-ups to remove miscellaneous compiler warnings. 112856a34939Shaad Improve stripe size validation. 112956a34939Shaad Increase maximum stripe size limit to physical extent size for lvm2 metadata. 113056a34939Shaad Fix activation code to check for pre-existing mirror logs. 113156a34939Shaad Tighten region size validation. 113256a34939Shaad Ignore empty strings in config files. 113356a34939Shaad Require non-zero regionsize and document parameter on lvcreate man page. 113456a34939Shaad Invalidate cache if composition of VG changed externally. 113556a34939Shaad 113656a34939ShaadVersion 2.02.05 - 21st April 2006 113756a34939Shaad================================= 113856a34939Shaad Fix vgid string termination in recent cache code. 113956a34939Shaad 114056a34939ShaadVersion 2.02.04 - 19th April 2006 114156a34939Shaad================================= 114256a34939Shaad Check for libsepol. 114356a34939Shaad Add some cflow & scope support. 114456a34939Shaad Separate out DEFS from CFLAGS. 114556a34939Shaad Remove inlines and use unique function names. 114656a34939Shaad 114756a34939ShaadVersion 2.02.03 - 14th April 2006 114856a34939Shaad================================= 114956a34939Shaad vgrename accepts vgid and exported VG. 115056a34939Shaad Add --partial to pvs. 115156a34939Shaad When choosing between identically-named VGs, also consider creation_host. 115256a34939Shaad Provide total log suppression with 2. 115356a34939Shaad Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct. 115456a34939Shaad Add vgid to struct physical_volume and pass with vg_name to some functions. 115556a34939Shaad If two or more VGs are found with the same name, use one that is not exported. 115656a34939Shaad Whenever vgname is captured, also capture vgid and whether exported. 115756a34939Shaad Remove an incorrect unlock_vg() from process_each_lv(). 115856a34939Shaad Update extent size information in vgchange and vgcreate man pages. 115956a34939Shaad Introduce origin_from_cow() and lv_is_visible(). 116056a34939Shaad pvremove without -f now fails if there's no PV label. 116156a34939Shaad Support lvconvert -s. 116256a34939Shaad Suppress locking library load failure message if --ignorelockingfailure. 116356a34939Shaad Propagate partial mode around cluster. 116456a34939Shaad Fix archive file expiration. 116556a34939Shaad Fix dmeventd build. 116656a34939Shaad clvmd now uses libcman rather than cman ioctls. 116756a34939Shaad clvmd will allow new cman to shutdown on request. 116856a34939Shaad 116956a34939ShaadVersion 2.02.02 - 7th February 2006 117056a34939Shaad=================================== 117156a34939Shaad Add %.so: %.a make template rule. 117256a34939Shaad Switchover library building to use LIB_SUFFIX. 117356a34939Shaad Only do lockfs filesystem sync when suspending snapshots. 117456a34939Shaad Always print warning if activation is disabled. 117556a34939Shaad vgreduce removes mirror images. 117656a34939Shaad Add --mirrorsonly to vgreduce. 117756a34939Shaad vgreduce replaces active LVs with error segment before removing them. 117856a34939Shaad Set block_on_error parameter if available. 117956a34939Shaad Add target_version. 118056a34939Shaad Add details to format1 'Invalid LV in extent map' error message. 118156a34939Shaad Fix lvscan snapshot full display. 118256a34939Shaad Bring lvdisplay man page example into line. 118356a34939Shaad Add mirror dmeventd library. 118456a34939Shaad Add some activation logic to remove_mirror_images(). 118556a34939Shaad lvconvert can remove specified PVs from a mirror. 118656a34939Shaad lvconvert turns an existing LV into a mirror. 118756a34939Shaad Allow signed mirrors arguments. 118856a34939Shaad Move create_mirror_log() into toollib. 118956a34939Shaad Determine parallel PVs to avoid with ALLOC_NORMAL allocation. 119056a34939Shaad Fix lv_empty. 119156a34939Shaad 119256a34939ShaadVersion 2.02.01 - 23rd November 2005 119356a34939Shaad==================================== 119456a34939Shaad Fix lvdisplay cmdline to accept snapshots. 119556a34939Shaad Fix open RO->RW promotion. 119656a34939Shaad Fix missing vg_revert in lvcreate error path. 119756a34939Shaad 119856a34939ShaadVersion 2.02.00 - 10th November 2005 119956a34939Shaad==================================== 120056a34939Shaad Extend allocation areas to avoid overflow with contiguous with other PVs. 120156a34939Shaad Stop lvcreate attempting to wipe zero or error segments. 120256a34939Shaad Added new lvs table attributes. 120356a34939Shaad Separated out activation preload. 120456a34939Shaad Moved activation functions into libdevmapper. 120556a34939Shaad Fixed build_dm_name. 120656a34939Shaad Add return macros. 120756a34939Shaad Added xen xvd devices. 120856a34939Shaad Clear up precommitted metadata better. 120956a34939Shaad A pvresize implementation. 121056a34939Shaad Fix contiguous allocation when there are no preceding segments. 121156a34939Shaad Add mirror_seg pointer to lv_segment struct. 121256a34939Shaad Only keep a device open if it's known to belong to a locked VG. 121356a34939Shaad Fix lvdisplay to show all mirror destinations. 121456a34939Shaad Replacement suspend code using libdevmapper dependency tree. 121556a34939Shaad Add DEFS to make.tmpl. 121656a34939Shaad Use dm_is_dm_major instead of local copy. 121756a34939Shaad Allow mapped devices to be used as PVs. 121856a34939Shaad Move set_selinux_context into libdevmapper. 121956a34939Shaad Fix automatic text metadata buffer expansion (using macro). 122056a34939Shaad Cache formatted text metadata buffer between metadata area writes. 122156a34939Shaad Add pe_start field to pvs. 122256a34939Shaad Add 'LVM-' prefix to uuids. 122356a34939Shaad Split lv_segment_area from lv_segment to permit extension. 122456a34939Shaad Replacement deactivation code using libdevmapper dependency tree. 122556a34939Shaad Simplify dev_manager_info(). 122656a34939Shaad Attempt to load missing targets using modprobe. 122756a34939Shaad Add -a to lvscan. 122856a34939Shaad Move mknodes into libdevmapper. 122956a34939Shaad Move bitset, hash, pool and dbg_malloc into libdevmapper. 123056a34939Shaad 123156a34939ShaadVersion 2.01.15 - 16th October 2005 123256a34939Shaad=================================== 123356a34939Shaad Refuse to run pvcreate/pvremove on devices we can't open exclusively. 123456a34939Shaad Use ORPHAN lock definition throughout. 123556a34939Shaad Validate chunksize in lvcreate. 123656a34939Shaad Reduce chunksize limit to 512k. 123756a34939Shaad Fix chunksize field in reports. 123856a34939Shaad Don't hide snapshots from default 'lvs' output. 123956a34939Shaad Add is_dm_major() for use in duplicate device detection in lvmcache_add(). 124056a34939Shaad Really switch device number in lvmcache when it says it is doing so. 124156a34939Shaad Option for bitset memory allocation using malloc as well as pool. 124256a34939Shaad Don't assume exactly two mirrors when parsing mirror status. 124356a34939Shaad Suppress fsync() error message on filesystems that don't support it. 124456a34939Shaad Fix yes_no_prompt() error handling. 124556a34939Shaad Add lvm.conf comment warning against multiple filter lines. 124656a34939Shaad Tidy lvmconf.sh. 124756a34939Shaad Add format1 dev_write debug messages. 124856a34939Shaad Add clustered VG attribute to report. 124956a34939Shaad Move lvconvert parameters into struct lvconvert_params. 125056a34939Shaad Add clustered VG flag to LV lock requests. 125156a34939Shaad Change LV locking macros to take lv instead of lvid. 125256a34939Shaad Prepend 'cluster' activation parameter to mirror log when appropriate. 125356a34939Shaad Pass exclusive flag to lv_activate and on to target activation code. 125456a34939Shaad Prevent snapshot creation in a clustered VG for now. 125556a34939Shaad Factor out adjusted_mirror_region_size() and generate_log_name_format(). 125656a34939Shaad Move compose_log_line() into mirror directory. 125756a34939Shaad Factor out _get_library_path(). 125856a34939Shaad Don't kill idling clvmd threads. 125956a34939Shaad clvmd no longer takes out locks for non-clustered LVs. 126056a34939Shaad Recognise ATA over Ethernet (aoe) devices. 126156a34939Shaad 126256a34939ShaadVersion 2.01.14 - 4th August 2005 126356a34939Shaad================================= 126456a34939Shaad Fix lvconvert PV parameter in help string. 126556a34939Shaad Prevent snapshots getting activated in a clustered VG. 126656a34939Shaad Separate out _build_dev_string. 126756a34939Shaad Move zero_lv to toollib. 126856a34939Shaad Fix pool format handler to work with pv segment code. 126956a34939Shaad 127056a34939ShaadVersion 2.01.13 - 13th July 2005 127156a34939Shaad================================ 127256a34939Shaad Fix pvmove segment splitting. 127356a34939Shaad Abstract vg_validate. 127456a34939Shaad Only make one attempt at contiguous allocation. 127556a34939Shaad Fix lvm1 format metadata read. 127656a34939Shaad Fix lvm1 format non-mirror lvcreate. 127756a34939Shaad 127856a34939ShaadVersion 2.01.12 - 14th June 2005 127956a34939Shaad================================ 128056a34939Shaad Various allocation-related pvmove fixes. 128156a34939Shaad Log an error if clvmd can't resolve a host name got from CCS. 128256a34939Shaad Fix potential spin loop in clvmd. 128356a34939Shaad 128456a34939ShaadVersion 2.01.11 - 13th June 2005 128556a34939Shaad================================ 128656a34939Shaad Added lvmconf.sh. 128756a34939Shaad Use matchpathcon mode parameter. 128856a34939Shaad Don't defer closing dead FDs in clvmd. 128956a34939Shaad Remove hard-coded 64k text metadata writing restriction. 129056a34939Shaad Make VG name restrictions consistent. 129156a34939Shaad Introduce lvconvert. So far only removes mirror images. 129256a34939Shaad Allow mirror images to be resized. 129356a34939Shaad Allow mirror images to have more than one segment. 129456a34939Shaad Centralise restrictions on LV names. 129556a34939Shaad Always insert an intermediate layer for mirrors. 129656a34939Shaad Suppress hidden LVs from reports unless --all is given. 129756a34939Shaad Use square brackets for hidden LVs in reports. 129856a34939Shaad Allow the creation of mirrors with contiguous extents. 129956a34939Shaad Always perform sanity checks against metadata before committing it to disk. 130056a34939Shaad Split lv_extend into two steps: choosing extents + allocation to LV(s). 130156a34939Shaad Add mirror log region size to metadata. 130256a34939Shaad Use list_iterate_items throughout and add list*back macros. 130356a34939Shaad Introduce seg_ macros to access areas. 130456a34939Shaad Add segtype_is_ macros. 130556a34939Shaad Support tiny metadata areas for pool conversions. 130656a34939Shaad Mirror activation handles disk log as well as core. 130756a34939Shaad Activation code recognises mirror log dependency. 130856a34939Shaad Add mirror_log and regionsize fields to report. 130956a34939Shaad Fix non-orphan pvchange -u. 131056a34939Shaad Fix vgmerge to handle duplicate LVIDs. 131156a34939Shaad Move archiver code from tools into library. 131256a34939Shaad vgscan/change/display/vgs automatically create metadata backups if needed. 131356a34939Shaad Merge cloned allocation functions. 131456a34939Shaad Fix contiguous allocation policy with linear. 131556a34939Shaad Cope with missing format1 PVs again. 131656a34939Shaad Remove lists of free PV segments. 131756a34939Shaad Simplify pv_maps code and remove slow bitset algorithm. 131856a34939Shaad Red-Hat-ify the clvmd rhel4 initscript. 131956a34939Shaad %Zu->%zu 132056a34939Shaad Fix loopfiles alias alloc & mem debugging. 132156a34939Shaad Un-inline dbg_strdup. 132256a34939Shaad lv_reduce tidying. 132356a34939Shaad Remove some unnecessary parameters. 132456a34939Shaad Introduce seg_is macros. 132556a34939Shaad 132656a34939ShaadVersion 2.01.10 - 3rd May 2005 132756a34939Shaad============================== 132856a34939Shaad Don't create backup and archive dirs till needed. 132956a34939Shaad Reinstate full PV size when removing from VG. 133056a34939Shaad Support loopfiles for testing. 133156a34939Shaad Tidy lv_segment interface. 133256a34939Shaad pv_segment support. 133356a34939Shaad vgchange --physicalextentsize 133456a34939Shaad Internal snapshot restructuring. 133556a34939Shaad Remove unused internal non-persistent snapshot option. 133656a34939Shaad Allow offline extension of snapshot volumes. 133756a34939Shaad Move from 2-step to 3-step on-disk metadata commit. 133856a34939Shaad Scan ramdisks too and allow non-O_DIRECT fallback. 133956a34939Shaad Annotate, tidy and extend list.h. 134056a34939Shaad Alignment tidying. 134156a34939Shaad Make clvmd work around some "bugs" in gulm's node state notifications. 134256a34939Shaad Tidy clvmd's SIGHUP handler 134356a34939Shaad 134456a34939ShaadVersion 2.01.09 - 4th April 2005 134556a34939Shaad================================ 134656a34939Shaad Add --ignorelockingfailure to vgmknodes. 134756a34939Shaad clvmd: Don't allow user operations to start until the lvm thread is fully up. 134856a34939Shaad clvmd-gulm: set KEEPALIVE on sockets. 134956a34939Shaad 135056a34939ShaadVersion 2.01.08 - 22nd March 2005 135156a34939Shaad================================= 135256a34939Shaad Add clustered attribute so vgchange can identify clustered VGs w/o locking. 135356a34939Shaad Improve detection of external changes affecting internal cache. 135456a34939Shaad Add 'already in device cache' debug message. 135556a34939Shaad Add -a to pvdisplay -C. 135656a34939Shaad Avoid rmdir opendir error messsages when dir was already removed. 135756a34939Shaad Tighten signal handlers. 135856a34939Shaad Avoid some compiler warnings. 135956a34939Shaad Additional rename failure error message. 136056a34939Shaad read/write may be macros. 136156a34939Shaad clvmd: don't take out lvm thread lock at startup, it only protects jobs list. 136256a34939Shaad 136356a34939ShaadVersion 2.01.07 - 8th March 2005 136456a34939Shaad================================ 136556a34939Shaad Cope with new devices appearing by rescanning /dev if a uuid can't be found. 136656a34939Shaad Remove DESTDIR from LVM_SHARED_PATH. 136756a34939Shaad clvmd fixes: make FDs close-on-exec 136856a34939Shaad gulm unlocks VG & orphan locks at startup in case they are stale 136956a34939Shaad gulm now unlocks VG & orphan locks if client dies. 137056a34939Shaad 137156a34939ShaadVersion 2.01.06 - 1st March 2005 137256a34939Shaad================================ 137356a34939Shaad Suppress 'open failed' error messages during scanning. 137456a34939Shaad Option to suppress warnings of file descriptors left open. 137556a34939Shaad Fix default value of metadatacopies in documentation (2->1). 137656a34939Shaad Fix clvmd-gulm locking. 137756a34939Shaad ./configure --enable-debug now enables debugging code in clvmd. 137856a34939Shaad Fix clvmd-gulm node up/down code so it actually works. 137956a34939Shaad clvmd-gulm now releases locks when shut down. 138056a34939Shaad 138156a34939ShaadVersion 2.01.05 - 18th February 2005 138256a34939Shaad==================================== 138356a34939Shaad Static binary invokes dynamic binary if appropriate. 138456a34939Shaad Make clvmd config check a little more tolerant. 138556a34939Shaad gulm clvmd can now cope with >1 message arriving in a TCP message. 138656a34939Shaad 138756a34939ShaadVersion 2.01.04 - 9th February 2005 138856a34939Shaad=================================== 138956a34939Shaad Add fixed offset to imported pool minor numbers. 139056a34939Shaad Update binary pathnames in clvmd_init_rhel4. 139156a34939Shaad lvm2cmd.so should skip the check for open fds. 139256a34939Shaad Remove unused -f from pvmove. 139356a34939Shaad Gulm clvmd doesn't report "connection refused" errors. 139456a34939Shaad clvmd does a basic config file sanity check at startup. 139556a34939Shaad Fix potential thread shutdown race in clvmd. 139656a34939Shaad 139756a34939ShaadVersion 2.01.03 - 1st February 2005 139856a34939Shaad=================================== 139956a34939Shaad More 64-bit display/report fixes. 140056a34939Shaad More informative startup mesg if can't create /etc/lvm. 140156a34939Shaad Fix snapshot device size bug (since 2.01.01). 140256a34939Shaad clvmd announces startup and cluster connection in syslog. 140356a34939Shaad Gulm clvmd doesn't hang trying to talk to a rebooted node. 140456a34939Shaad Gulm clvmd doesn't print cman error on startup. 140556a34939Shaad 140656a34939ShaadVersion 2.01.02 - 21st January 2005 140756a34939Shaad=================================== 140856a34939Shaad Update clvmd_init_rhel4: use lvm.static and don't load dlm. 140956a34939Shaad Fix some size_t printing. 141056a34939Shaad Fix 64 bit xlate consts. 141156a34939Shaad Split out pool sptype_names to avoid unused const. 141256a34939Shaad Always fail if random id generation fails. 141356a34939Shaad Recognise gnbd devices. 141456a34939Shaad Fix clvmd startup bug introduced in cman/gulm amalgamation. 141556a34939Shaad Improve reporting of node-specific locking errors. 141656a34939Shaad 141756a34939ShaadVersion 2.01.01 - 19th January 2005 141856a34939Shaad=================================== 141956a34939Shaad Fix clvmd lv_info_by_lvid open_count. 142056a34939Shaad Store snapshot and origin sizes separately. 142156a34939Shaad Update vgcreate man page. 142256a34939Shaad 142356a34939ShaadVersion 2.01.00 - 17th January 2005 142456a34939Shaad=================================== 142556a34939Shaad Fix vgscan metadata auto-correction. 142656a34939Shaad Only ask libdevmapper for open_count when we need it. 142756a34939Shaad Adjust RHEL4 clvmd init script priority. 142856a34939Shaad Enable building of CMAN & GULM versions of clvmd into a single binary 142956a34939Shaad 143056a34939ShaadVersion 2.00.33 - 7th January 2005 143156a34939Shaad================================== 143256a34939Shaad pvcreate wipes first 4 sectors unless given --zero n. 143356a34939Shaad gulm clvmd now uses new ccsd key names. 143456a34939Shaad gulm clvmd now doesn't ignore the first node in cluster.conf 143556a34939Shaad Improve clvmd failure message if it's already running. 143656a34939Shaad Allow user to kill clvmd during initialisation. 143756a34939Shaad Fix off-by-one error in cluster_locking that could cause read hangs. 143856a34939Shaad 143956a34939ShaadVersion 2.00.32 - 22nd December 2004 144056a34939Shaad==================================== 144156a34939Shaad Drop static/dl restriction for now. 144256a34939Shaad Fix an error fprintf. 144356a34939Shaad Fix vgdisplay -s. Breaks (undocumented) lvs/pvs/vgs -s instead for now. 144456a34939Shaad Fix device reference counting on re-opens. 144556a34939Shaad Ignore sysfs symlinks when DT_UNKNOWN. 144656a34939Shaad Add clvmd init script for RHEL4. 144756a34939Shaad Skip devices that are too small to be PVs. 144856a34939Shaad Fix pvchange -x segfault with lvm2-format orphan. 144956a34939Shaad Cope with empty msdos partition tables. 145056a34939Shaad Add CONTRIBUTORS file. 145156a34939Shaad 145256a34939ShaadVersion 2.00.31 - 12th December 2004 145356a34939Shaad==================================== 145456a34939Shaad Reopen RO file descriptors RW if necessary. 145556a34939Shaad 145656a34939ShaadVersion 2.00.30 - 10th December 2004 145756a34939Shaad==================================== 145856a34939Shaad Additional device-handling debug messages. 145956a34939Shaad Additional verbosity level -vvvv includes line numbers and backtraces. 146056a34939Shaad Verbose messages now go to stderr not stdout. 146156a34939Shaad Close any stray file descriptors before starting. 146256a34939Shaad Refine partitionable checks for certain device types. 146356a34939Shaad Allow devices/types to override built-ins. 146456a34939Shaad Fix lvreduce man page .i->.I 146556a34939Shaad Fix vgsplit man page title. 146656a34939Shaad Fix clvmd man makefile. 146756a34939Shaad Extend dev_open logging. 146856a34939Shaad Make clvmd_fix_conf.sh UNDOable. 146956a34939Shaad 147056a34939ShaadVersion 2.00.29 - 27th November 2004 147156a34939Shaad==================================== 147256a34939Shaad xlate compilation fix. 147356a34939Shaad 147456a34939ShaadVersion 2.00.28 - 27th November 2004 147556a34939Shaad==================================== 147656a34939Shaad Fix partition table & md signature detection. 147756a34939Shaad Minor configure/makefile tidy. 147856a34939Shaad Export version.h from tools for clvmd. 147956a34939Shaad 148056a34939ShaadVersion 2.00.27 - 24th November 2004 148156a34939Shaad==================================== 148256a34939Shaad Trap large memory allocation requests. 148356a34939Shaad Fix to partition table detection code. 148456a34939Shaad Improve filter debug mesgs. 148556a34939Shaad Make clvmd_fix_conf.sh UNDOable 148656a34939Shaad 148756a34939ShaadVersion 2.00.26 - 23rd November 2004 148856a34939Shaad==================================== 148956a34939Shaad Improve pool debugging stats. 149056a34939Shaad Detect partition table signature. 149156a34939Shaad pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.) 149256a34939Shaad Separate out md superblock detection code. 149356a34939Shaad Prevent snapshot origin resizing. 149456a34939Shaad Improve a vgremove error message. 149556a34939Shaad Update some man pages. 149656a34939Shaad Allow y/n with -ae args (exclusive activation). 149756a34939Shaad Fixes to lvcreate vgname parsing. 149856a34939Shaad Fix dm_name string size calculation. 149956a34939Shaad Improve clvmd error reporting during startup. 150056a34939Shaad Make clvmd cope with large gaps in node numbers IDs. 150156a34939Shaad Make clvmd initialisation cope better with debugging output. 150256a34939Shaad Tidy clvmd socket callbacks so all work happens outside main loop. 150356a34939Shaad clvmd -V now displays lvm version too. 150456a34939Shaad Add optional gulm build for clvmd 150556a34939Shaad 150656a34939ShaadVersion 2.00.25 - 29th September 2004 150756a34939Shaad===================================== 150856a34939Shaad Fix return code from rm_link for vgmknodes. 150956a34939Shaad Make clvmd LV hash table thread-safe. 151056a34939Shaad Fix clvmd locking so it will lock out multiple users on the same node. 151156a34939Shaad Fix clvmd VG locking to it can cope with multiple VG locks. 151256a34939Shaad Remove spurious trailing dot in lvreduce man page. 151356a34939Shaad Fix vgremove locking. 151456a34939Shaad 151556a34939ShaadVersion 2.00.24 - 16th September 2004 151656a34939Shaad===================================== 151756a34939Shaad Fix pool_empty so it really does empty the memory pool. 151856a34939Shaad Rename old segtypes files to segtype. 151956a34939Shaad Some fixes to memory debugging code. 152056a34939Shaad Exclude internal commands formats & segtypes from install. 152156a34939Shaad 152256a34939ShaadVersion 2.00.23 - 15th September 2004 152356a34939Shaad===================================== 152456a34939Shaad Export dm name build & split functions. 152556a34939Shaad Use O_NOATIME on devices if available. 152656a34939Shaad Write log message when each segtype/format gets initialised. 152756a34939Shaad New commands 'segtypes' and 'formats'. 152856a34939Shaad Suppress pvmove abort message in test mode. 152956a34939Shaad Improve pvcreate/remove device not found error message. 153056a34939Shaad Allow pvmove to move data within the same PV. 153156a34939Shaad Describe how pvmove works on man page. 153256a34939Shaad Test for incompatible format/segtype combinations in lv_extend. 153356a34939Shaad Fix lvchange example on man page. 153456a34939Shaad 153556a34939ShaadVersion 2.00.22 - 3rd September 2004 153656a34939Shaad==================================== 153756a34939Shaad Fix /dev/vgname perms. 153856a34939Shaad Restructure xlate.h. 153956a34939Shaad Add clvmd man page. 154056a34939Shaad 154156a34939ShaadVersion 2.00.21 - 19th August 2004 154256a34939Shaad================================== 154356a34939Shaad Update cnxman-socket.h from cman. 154456a34939Shaad Recognise iseries/vd devices. 154556a34939Shaad Use 'make install_cluster' to install cluster extensions only. 154656a34939Shaad Cope with DT_UNKNOWN in sysfs. 154756a34939Shaad Fix extents_moved metadata size comment. 154856a34939Shaad Remove duplicate line in pvremove help text. 154956a34939Shaad Support variable mirror region size. 155056a34939Shaad Support PE ranges in pvmove source PV. 155156a34939Shaad Fixes to as-yet-unused LV segment splitting code. 155256a34939Shaad Change alloc_areas to pe_ranges and allow suppression of availability checks. 155356a34939Shaad Add dev_size column to pvs. 155456a34939Shaad Add report columns for in-kernel device number. 155556a34939Shaad 155656a34939ShaadVersion 2.00.20 - 3 July 2004 155756a34939Shaad============================= 155856a34939Shaad More autoconf fixes. 155956a34939Shaad Fix device number handling for 2.6 kernels. 156056a34939Shaad 156156a34939ShaadVersion 2.00.19 - 29 June 2004 156256a34939Shaad============================== 156356a34939Shaad Reduce severity of setlocale failure message. 156456a34939Shaad Recognise argv[0] "initrd-lvm" (pld-linux). 156556a34939Shaad Make -O2 configurable. 156656a34939Shaad Added --disable-selinux to configure script. 156756a34939Shaad LD_FLAGS->LDFLAGS & LD_DEPS->LDDEPS in configure script. 156856a34939Shaad Add init_debug to clvmd. 156956a34939Shaad 157056a34939ShaadVersion 2.00.18 - 24 June 2004 157156a34939Shaad============================== 157256a34939Shaad Fix vgchange activation. 157356a34939Shaad Add cluster support. 157456a34939Shaad 157556a34939ShaadVersion 2.00.17 - 20 June 2004 157656a34939Shaad============================== 157756a34939Shaad configure --enable-fsadm to try out fsadm. fsadm is not tested yet. 157856a34939Shaad Display all filtered devices, not just PVs, with pvs -a. 157956a34939Shaad Fix sync_dir() when no / in filename 158056a34939Shaad vgcfgbackup -f accepts template with %s for VG name. 158156a34939Shaad Extend hash functions to handle non-null-terminated data. 158256a34939Shaad Add local activation support. 158356a34939Shaad Tidy relative paths in makefile includes. 158456a34939Shaad fsadm support for fsck and resizing - needs testing. 158556a34939Shaad Add read-only GFS pool support. 158656a34939Shaad Add lvm2create_initrd script from http://poochiereds.net/svn/lvm2/ 158756a34939Shaad Fix rounding of large diplayed sizes. 158856a34939Shaad Suppress decimal point when using units of sectors/bytes. 158956a34939Shaad Additional kernel target checks before pvmove & snapshot creation. 159056a34939Shaad Add i2o_block. 159156a34939Shaad 159256a34939ShaadVersion 2.00.16 - 24 May 2004 159356a34939Shaad============================= 159456a34939Shaad Set area_count within alloc_lv_segment. 159556a34939Shaad Remove error labels from lvresize. 159656a34939Shaad Fix a pvs error path. 159756a34939Shaad xxchange -ae for exclusive activation. 159856a34939Shaad Don't return non-zero status if there aren't any volume groups. 159956a34939Shaad Add --alloc argument to tools. 160056a34939Shaad Rename allocation policies to contiguous, normal, anywhere, inherit. 160156a34939Shaad nextfree becomes normal; anywhere isn't implemented yet. 160256a34939Shaad LV inherits allocation policy from VG. Defaults: LV - inherit; VG - normal 160356a34939Shaad Additional status character added to vgs to indicate allocation policy. 160456a34939Shaad Add reset_fn to external_locking. 160556a34939Shaad Ensure presence of virtual targets before attempting activating. 160656a34939Shaad Attempt to fix resizing of snapshot origins. 160756a34939Shaad Restructure lvresize, bringing it closer to lvcreate. 160856a34939Shaad A quick sanity check on vg_disk struct when read in. More checks needed. 160956a34939Shaad Only include visible LVs in active/open counts. 161056a34939Shaad Add virtual segment types, zero and error. A large sparse device can be 161156a34939Shaadconstructed as a writeable snapshot of a large zero segment. 161256a34939Shaad Add --type to lvcreate/resize. 161356a34939Shaad Push lv_create & alloc policy up to tool level. 161456a34939Shaad Fix pvdisplay return code. 161556a34939Shaad Detect invalid LV names in arg lists. 161656a34939Shaad Reporting uses line-at-a-time output. 161756a34939Shaad lvm2 format sets unlimited_vols format flag. 161856a34939Shaad Internal-only metadata flag support. 161956a34939Shaad Basic checking for presence of device-mapper targets. 162056a34939Shaad Separate out polldaemon. 162156a34939Shaad Revise internal locking semantics. 162256a34939Shaad Move find_pv_by_name to library. 162356a34939Shaad Rename move->copy. 162456a34939Shaad Add devices to segments report. 162556a34939Shaad Begin separating out segment code. There's a lot of change here. 162656a34939Shaad Compress any (obsolete) long LVM1 pvids encountered. 162756a34939Shaad Support for tagged config files. 162856a34939Shaad Don't abort operations if selinux present but disabled. 162956a34939Shaad Fix typo in configure which left HAVE_LIBDL unset. 163056a34939Shaad 163156a34939ShaadVersion 2.00.15 - 19 Apr 2004 163256a34939Shaad============================= 163356a34939Shaad configure --with-owner= --with-group= to avoid -o and -g args to 'install' 163456a34939Shaad 163556a34939ShaadVersion 2.00.14 - 16 Apr 2004 163656a34939Shaad============================= 163756a34939Shaad Use 64-bit file functions by default. 163856a34939Shaad 163956a34939ShaadVersion 2.00.13 - 16 Apr 2004 164056a34939Shaad============================= 164156a34939Shaad Set devices/md_component_detection = 1 to ignore devices containing md 164256a34939Shaad superblocks. [Luca Berra] 164356a34939Shaad Ignore error setting selinux file context if fs doesn't support it. 164456a34939Shaad 164556a34939ShaadVersion 2.00.12 - 14 Apr 2004 164656a34939Shaad============================= 164756a34939Shaad Install a default lvm.conf into /etc/lvm if there isn't one already. 164856a34939Shaad Allow different installation dir for lvm.static (configure --staticdir=) 164956a34939Shaad Fix inverted selinux error check. 165056a34939Shaad Recognise power2 in /proc/devices. 165156a34939Shaad Fix counting in lvs_in_vg_opened. [It ignored devices open more than once.] 165256a34939Shaad 165356a34939ShaadVersion 2.00.11 - 8 Apr 2004 165456a34939Shaad============================ 165556a34939Shaad Set fallback_to_lvm1 in lvm.conf (or configure --enable-lvm1_fallback) 165656a34939Shaad to run lvm1 binaries if running a 2.4 kernel without device-mapper. 165756a34939Shaad 165856a34939ShaadVersion 2.00.10 - 7 Apr 2004 165956a34939Shaad============================ 166056a34939Shaad More fixes for static build. 166156a34939Shaad Add basic selinux support. 166256a34939Shaad Fix sysfs detection. 166356a34939Shaad 166456a34939ShaadVersion 2.00.09 - 31 Mar 2004 166556a34939Shaad============================= 166656a34939Shaad Update copyright notices for Red Hat. 166756a34939Shaad Fix vgmknodes to remove dud /dev/mapper entries. (libdevmapper update reqd). 166856a34939Shaad Add LVM1-style colon output to vgdisplay. 166956a34939Shaad lvchange --refresh to reload active LVs. 167056a34939Shaad Add string display to memory leak dump. 167156a34939Shaad Add locking flags & memlock option. 167256a34939Shaad Add list_versions to library. 167356a34939Shaad Ignore open hidden LVs when checking if deactivation is OK. 167456a34939Shaad Suppress move percentage when device inactive. 167556a34939Shaad Add lv_info_by_lvid. 167656a34939Shaad Various tidy-ups to the build process. 167756a34939Shaad Rebaseline internal verbose level. 167856a34939Shaad Add --nolocking option for read operations if locking is failing. 167956a34939Shaad Add option to compile into a library. 168056a34939Shaad When compiled without libdevmapper, only print warning message once. 168156a34939Shaad Fix lvreduce PV extent calculations. 168256a34939Shaad Fix DESTDIR to work with configure path overrides. 168356a34939Shaad Always use / as config file separator & rename internal config file variables. 168456a34939Shaad Add support for tagging PV/VG/LVs and hosts. 168556a34939Shaad Fix rare bug in recognition of long cmdline argument forms. 168656a34939Shaad Add basic internationalisation infrastructure. 168756a34939Shaad Don't recurse symlinked dirs such as /dev/fd on 2.6 kernels. 168856a34939Shaad Update autoconf files. 168956a34939Shaad Add sysfs block device filtering for 2.6 kernels. 169056a34939Shaad Update refs for move to sources.redhat.com. 169156a34939Shaad 169256a34939ShaadFriday 14th November 2003 169356a34939Shaad========================= 169456a34939ShaadSome bug fixes & minor enhancements, including: 169556a34939Shaad Backwards compatibility with LVM1 metadata improved. 169656a34939Shaad Missing man pages written. 169756a34939Shaad Tool error codes made more consistent. 169856a34939Shaad vgmknodes written. 169956a34939Shaad O_DIRECT can be turned off if it doesn't work in your kernel. 170056a34939Shaad dumpconfig to display the active configuration file 170156a34939Shaad 170256a34939ShaadYou need to update libdevmapper before using 'vgmknodes' or 'vgscan --mknodes'. 170356a34939ShaadIf your root filesystem is on an LV, you should run one of those two 170456a34939Shaadcommands to fix up the special files in /dev in your real root filesystem 170556a34939Shaadafter finishing with your initrd. Also, remember you can use 170656a34939Shaad'vgchange --ignorelockingfailure' on your initrd if the tool fails because 170756a34939Shaadit can't write a lock file to a read-only filesystem. 170856a34939Shaad 170956a34939ShaadWednesday 30th April 2003 171056a34939Shaad========================= 171156a34939ShaadA pvmove implementation is now available for the new metadata format. 171256a34939Shaad 171356a34939ShaadWhen running a command that allocates space (e.g. lvcreate), you can now 171456a34939Shaadrestrict not only which disk(s) may be used but also the Physical Extents 171556a34939Shaadon those disks. e.g. lvcreate -L 10 vg1 /dev/hda6:1000-2000:3000-4000 171656a34939Shaad 171756a34939Shaad 171856a34939ShaadMonday 18th November 2002 171956a34939Shaad======================== 172056a34939Shaad 172156a34939ShaadThe new format of LVM metadata is ready for you to test! 172256a34939Shaad We expect it to be more efficient and more robust than the original format. 172356a34939Shaad It's more compact and supports transactional changes and replication. 172456a34939Shaad Should things go wrong on a system, it's human-readable (and editable). 172556a34939Shaad 172656a34939ShaadPlease report any problems you find to the mailing list, 172756a34939Shaadlinux-lvm@sistina.com. The software has NOT yet been thoroughly 172856a34939Shaadtested and so quite possibly there'll still be some bugs in it. 172956a34939ShaadBe aware of the disclaimer in the COPYING file. 173056a34939Shaad 173156a34939ShaadWhile testing, we recommend turning logging on in the configuration file 173256a34939Shaadto provide us with diagnostic information: 173356a34939Shaad log { 173456a34939Shaad file="/tmp/lvm2.log" 173556a34939Shaad level=7 173656a34939Shaad activation=1 173756a34939Shaad } 173856a34939Shaad 173956a34939ShaadYou should schedule regular backups of your configuration file and 174056a34939Shaadmetadata backups and archives (normally kept under /etc/lvm). 174156a34939Shaad 174256a34939ShaadPlease read docs/example.conf and "man lvm.conf" to find out more about 174356a34939Shaadthe configuration file. 174456a34939Shaad 174556a34939ShaadTo convert an existing volume group called vg1 to the new format using 174656a34939Shaadthe default settings, use "vgconvert -M2 vg1". See "man vgconvert". 174756a34939Shaad 174856a34939Shaad-M (or --metadatatype in its long form) is a new flag to indicate which 174956a34939Shaadformat of metadata the command should use for anything it creates. 175056a34939ShaadCurrently, the valid types are "lvm1" and "lvm2" and they can be 175156a34939Shaadabbreviated to "1" and "2" respectively. The default value for this 175256a34939Shaadflag can be changed in the global section in the config file. 175356a34939Shaad 175456a34939ShaadBackwards-compatible support for the original LVM1 metadata format is 175556a34939Shaadmaintained, but it can be moved into a shared library or removed 175656a34939Shaadcompletely with configure's --with-lvm1 option. 175756a34939Shaad 175856a34939ShaadUnder LVM2, the basic unit of metadata is the volume group. Different 175956a34939Shaadvolume groups can use different formats of metadata - vg1 could use 176056a34939Shaadthe original LVM1 format while vg2 used the new format - but you can't 176156a34939Shaadmix formats within a volume group. So to add a PV to an LVM2-format 176256a34939Shaadvolume group you must run "pvcreate -M2" on it, followed by "vgextend". 176356a34939Shaad 176456a34939ShaadWith LVM2-format metadata, lvextend will let you specify striping 176556a34939Shaadparameters. So an LV could consist of two or more "segments" - the 176656a34939Shaadfirst segment could have 3 stripes while the second segment has just 2. 176756a34939Shaad 176856a34939ShaadLVM2 maintains a backup of the current metadata for each volume group 176956a34939Shaadin /etc/lvm/backup, and puts copies of previous versions in 177056a34939Shaad/etc/lvm/archive. "vgcfgbackup" and "vgcfgrestore" can be used to 177156a34939Shaadcreate and restore from these files. If you fully understand what 177256a34939Shaadyou're doing, metadata can be changed by editing a copy of a current 177356a34939Shaadbackup file and using vgcfgrestore to reload it. 177456a34939Shaad 177556a34939ShaadPlease read the pvcreate man page for more information on the new 177656a34939Shaadformat for metadata. 177756a34939Shaad 177856a34939ShaadAll tools that can change things have a --test flag which can be used 177956a34939Shaadto check the effect of a set of cmdline args without really making the 178056a34939Shaadchanges. 178156a34939Shaad 178256a34939Shaad 178356a34939ShaadWhat's not finished? 178456a34939Shaad==================== 178556a34939ShaadThe internal cache. If you turn on debugging output you'll see lots of 178656a34939Shaadrepeated messages, many of which will eventually get optimised out. 178756a34939Shaad 178856a34939Shaad--test sometimes causes a command to fail (e.g. vgconvert --test) even 178956a34939Shaadthough the real command would work: again, fixing this is waiting for 179056a34939Shaadthe work on the cache. 179156a34939Shaad 179256a34939ShaadSeveral of the tools do not yet contain the logic to handle full 179356a34939Shaadrecovery: combinations of pvcreate and vgcfgrestore may sometimes be 179456a34939Shaadneeded to restore metadata if a tool gets interrupted or crashes or 179556a34939Shaadfinds something unexpected. This applies particularly to tools that 179656a34939Shaadwork on more than one volume group at once (e.g. vgsplit). 179756a34939Shaad 179856a34939ShaadDisplay output. Some metadata information cannot yet be displayed. 179956a34939Shaad 180056a34939ShaadRecovery tools to salvage "lost" metadata directly from the disks: 180156a34939Shaadbut we hope the new format will mean such tools are hardly ever needed! 1802