1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/WHATS_NEW

1650 lines
79 KiB
Plaintext
Raw Normal View History

2009-07-15 19:38:41 +04:00
Version 2.02.50 -
================================
2009-07-24 03:55:01 +04:00
Add lvm_{pv|vg|lv}_get_{name|uuid} liblvm functions.
Add lvm_vg_list_pvs and lvm_vg_list_lvs liblvm functions.
Remove unused handles lvseg, pvseg inside liblvm/lvm.h.
Add lvm_vg_open liblvm function.
Add liblvm2app Makefile installation targets.
Add liblvm pkgconfig file.
Use newly-independent LVM_LIBAPI in liblvm soname. E.g. liblvm2app.so.2.1.
Add an API version number, LVM_LIBAPI, to the VERSION string for liblvm.
Pass a pointer to struct cmd_context to init_multiple_segtypes
Return EINVALID_CMD_LINE not success when invalid VG name format is used.
Remove unnecessary messages after vgcreate/vgsplit refactor (2.02.49).
Add log_errno to set a specific errno and replace log_error in due course.
Add lvm_errno and lvm_errmsg to liblvm to obtain failure information.
Change create_toolcontext to still return an object if it fails part-way.
Add EUNCLASSIFIED (-1) as the default LVM errno code.
Store any errno and error messages issued while processing each command.
Use log_error macro consistently throughout in place of log_err.
2009-07-15 19:38:41 +04:00
2009-07-15 17:20:06 +04:00
Version 2.02.49 - 15th July 2009
2009-07-01 13:31:46 +04:00
================================
Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again.
Add unit test case for liblvm VG create/delete APIs.
Add liblvm APIs to implement creation and deletion of VGs.
Initialize cmd->cmd_line to "liblvm" in new liblvm library.
Place handles to liblvm objects for pv, vg, lv, lvseg, pvseg inside lvm.h.
Refactor vgsplit and vgextend to remove READ_REQUIRE_RESIZEABLE flag.
2009-07-15 18:59:14 +04:00
Use _exit() not exit() after forking to avoid flushing libc buffers twice.
Add cast to log_info arg in _find_labeller to avoid Sparc64 warning.
2009-07-13 23:49:48 +04:00
Make cmd->cmd_line const.
Fix dev name mismatch in vgcreate man page example.
Refactor vg_remove_single for use in liblvm.
2009-07-15 18:59:14 +04:00
Make all tools use consistent lock ordering obtaining VG_ORPHAN lock second.
Check md devices for a partition table during device scan.
Add extended device (blkext) and md partition (mdp) types to filters.
Make text metadata read errors for segment areas more precise.
Fix text segment metadata read errors to mention correct segment name.
Include segment and LV names in text segment import error messages.
Add parent node to config_node structure.
2009-07-15 18:59:14 +04:00
Update vgsplit and vgcreate to call new vg_create and 'set' functions.
Change vg_create to take minimal parameters, obtain a lock, and return vg_t.
Refactor vgchange extent_size, max_lv, max_pv, and alloc_policy for liblvm.
Update t-vgcreate-usage.sh to test for default vg properties.
Fix memory leak in vgsplit when re-reading the vg.
2009-07-15 19:16:48 +04:00
Make various exit/cleanup paths more robust after lvm init failures.
2009-07-15 18:59:14 +04:00
Use LCK_NONBLOCK implicitly instead of explicit vg_read() flag.
Remove unnecessary locking and existence tests from new vg_read() interface.
Permit several segment types to be registered by a single shared object.
Update the man pages to document size units uniformly.
Allow commandline sizes to be specified in terms of bytes and sectors.
Update 'md_chunk_alignment' to use stripe-width to align PV data area.
2009-07-01 21:23:10 +04:00
Update test/t-inconsistent-metadata.sh to match new vg_read interface.
Add lvmcache_init() to polldaemon initialization.
Convert tools to use new vg_read / vg_read_for_update.
Fix segfault in vg_release when vg->cmd is NULL.
2009-07-01 13:31:46 +04:00
2009-06-30 22:41:47 +04:00
Version 2.02.48 - 30th June 2009
2009-06-26 14:57:30 +04:00
================================
Abort if automatic metadata correction fails when reading VG to update it.
Explicitly request fallback to default major number in device mapper.
2009-06-15 19:09:02 +04:00
Ignore suspended devices during repair.
2009-06-30 22:39:31 +04:00
Call vgreduce --removemissing automatically to fix missing PVs in dmeventd.
Suggest using lvchange --resync when adding leg to not-yet-synced mirror.
Destroy toolcontext on clvmd exit to avoid memory pool leaks.
Fix lvconvert not to poll mirror if no conversion in progress.
Fix memory leaks in toolcontext error path.
2009-06-30 22:39:31 +04:00
Reinstate partial activation support in clustered mode. (2.02.40)
Allow metadata correction even when PVs are missing.
Use 'lvm lvresize' instead of 'lvresize' in fsadm.
Do not use '-n' realine option in fsadm for busybox compatiblity.
2009-06-30 22:39:31 +04:00
Add vg_lock_newname() library function for vgrename, vgsplit and vgcreate.
Round up requested readahead to at least one page and print warning.
Try to repair vg before actual vgremove when force flag provided.
Fix possible double release of VG after recovery.
Add parameter to process_each_vg specifying what to do with inconsistent VG.
2009-06-30 22:39:31 +04:00
Unify error messages when processing inconsistent volume group.
Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO.
Introduce lvconvert --use_policies (repair policy according to lvm.conf).
2009-06-30 22:39:31 +04:00
Update clvmd-corosync to match new corosync API.
2009-07-03 15:04:06 +04:00
Fix lib Makefile to include any shared libraries in default target.
Fix rename of active snapshot with virtual origin.
Fix convert polling to ignore LV with different UUID.
Cache underlying device readahead only before activation calls.
Fix segfault when calculating readahead on missing device in vgreduce.
2009-05-30 05:54:29 +04:00
Remove verbose 'visited' messages.
Handle multi-extent mirror log allocation when smallest PV has only 1 extent.
Add LSB standard headers and functions (incl. reload) to clvmd initscript.
When creating new LV, double-check that name is not already in use.
Remove /dev/vgname/lvname symlink automatically if LV is no longer visible.
Rename internal vorigin LV to match visible LV.
Suppress 'removed' messages displayed when internal LVs are removed.
Fix lvchange -a and -p for sparse LVs.
Fix lvcreate --virtualsize to activate the new device immediately.
Make --snapshot optional with lvcreate --virtualsize.
Generalise --virtualoriginsize to --virtualsize.
Skip virtual origins in process_each_lv_in_vg() without --all.
Fix counting of virtual origin LVs in vg_validate.
Attempt to load dm-zero module if zero target needed but not present.
2009-05-22 19:23:10 +04:00
Version 2.02.47 - 22nd May 2009
===============================
Rename liblvm.so to liblvm2app.so and use configure --enable-applib.
Reinstate version in liblvm2cmd.so soname. (2.02.44)
2009-05-21 07:04:52 +04:00
Version 2.02.46 - 21st May 2009
===============================
Inherit readahead setting from underlying devices during activation.
Detect LVs active on remote nodes by querying locks if supported.
Enable online resizing of mirrors.
Use suspend with flush when device size was changed during table preload.
2009-05-21 07:04:52 +04:00
Implement query_resource_fn for cluster_locking.
Support query_resource_fn in locking modules.
Introduce CLVMD_CMD_LOCK_QUERY command for clvmd.
Fix pvmove to revert operation if temporary mirror creation fails.
Fix metadata export for VG with missing PVs.
Add vgimportclone and install it and the man page by default.
Force max_lv restriction only for newly created LV.
Remove unneeded import parameter from lv_create_empty.
Merge lv_is_displayable and lv_is_visible functions.
2009-05-21 07:04:52 +04:00
Introduce lv_set_visible & lv_set_hidden functions.
Fix lv_is_visible to handle virtual origin.
Introduce link_lv_to_vg and unlink_lv_from_vg functions.
Remove lv_count from VG and use counter function instead.
Fix snapshot segment import to not use duplicate segments & replace.
Do not query nonexistent devices for readahead.
Remove NON_BLOCKING lock flag from tools and set a policy to auto-set.
Remove snapshot_count from VG and use function instead.
Fix first_seg() call for empty segment list.
2009-05-21 07:04:52 +04:00
Add install_lvm2 makefile target to install only the LVM2 components.
2009-05-09 17:47:03 +04:00
Reject missing PVs from allocation in toollib.
Fix PV datalignment for values starting prior to MDA area. (2.02.45)
Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin).
2009-05-21 07:04:52 +04:00
Fix minimum width of devices column in reports.
Add lvs origin_size field.
Fix linux configure --enable-debug to exclude -O2.
2009-05-21 07:04:52 +04:00
Implement lvconvert --repair for repairing partially-failed mirrors.
Fix vgreduce --removemissing failure exit code.
Fix remote metadata backup for clvmd.
2009-05-21 07:04:52 +04:00
Introduce unlock_and_release_vg macro.
Introduce vg_release() to be called to free every struct volume_group.
Alloc PV internal structure from VG mempool if possible.
Fix metadata backup to run after vg_commit always.
Tidy clvmd volume lock cache functions.
Fix pvs report for orphan PVs when segment attributes are requested.
Fix pvs -a output to not read volume groups from non-PV devices.
2009-04-16 14:16:14 +04:00
Add MMC (mmcblk) device type to filters.
Introduce memory pools per volume group (to reduce memory for large VGs).
2009-05-21 07:04:52 +04:00
Use copy of PV structure when manipulating global PV lists.
Always return exit error status when locking of volume group fails.
Fix mirror log convert validation question.
Avoid referencing files from DESTDIR during build process.
2009-05-21 07:04:52 +04:00
Avoid creating some static libraries unless configured --enable-static_link.
Enable use of cached metadata for pvs and pvdisplay commands.
Add missing 'device-mapper' internal subdir build dependency.
Fix memory leak in mirror allocation code.
Save and restore the previous logging level when log level is changed.
Fix error message when archive initialization fails.
Make sure clvmd-corosync releases the lockspace when it exits.
Fix segfault for vgcfgrestore on VG with missing PVs.
Block SIGTERM & SIGINT in clvmd subthreads.
Detect and conditionally wipe swapspace signatures in pvcreate.
Fix maximal volume count check for snapshots if max_lv set for volume group.
2009-05-21 07:04:52 +04:00
Fix lvcreate to remove unused cow volume if the snapshot creation fails.
Fix error messages when PV uuid or pe_start reading fails.
2009-05-21 07:04:52 +04:00
Build new liblvm application-level library.
Rename liblvm.a to liblvm-internal.a.
Flush memory pool and fix locking in clvmd refresh and backup command.
2009-05-21 07:04:52 +04:00
Fix unlocks in clvmd-corosync. (2.02.45)
Fix error message when adding metadata directory to internal list fails.
Fix size and error message of memory allocation at backup initialization.
2009-05-21 07:04:52 +04:00
Remove old metadata backup file after renaming VG.
Restore log_suppress state when metadata backup file is up-to-date.
2009-03-03 21:25:05 +03:00
2009-03-03 16:03:03 +03:00
Version 2.02.45 - 3rd March 2009
================================
Avoid scanning empty metadata areas for VG names.
Attempt proper clean up in child before executing new binary in exec_cmd().
Do not scan devices if reporting only attributes from PV label.
Use pkgconfig to obtain corosync library details during configuration.
Fix error returns in clvmd-corosync interface to DLM.
Add --refresh to vgchange and vgmknodes man pages.
2009-03-03 16:03:03 +03:00
Pass --test from lvresize to fsadm as --dry-run.
Supply argv[] list to exec_cmd() to allow for variable number of parameters.
Prevent fsadm from checking mounted filesystems.
No longer treats any other key as 'no' when prompting in fsadm.
Tidy fsadm command line processing.
Add lib/lvm.h and lib/lvm_base.c for the new library interface.
Move tools/version.h to lib/misc/lvm-version.h.
Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
Add system_dir parameter to create_toolcontext().
Add --dataalignment to pvcreate to specify alignment of data area.
Exclude LCK_CACHE locks from _vg_lock_count, fixing interrupt unblocking.
Provide da and mda locations in debug message when writing text format label.
Mention the restriction on file descriptors at invocation on the lvm man page.
Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames.
No longer require kernel and metadata major numbers to match.
Add a fully-functional get_cluster_name() to clvmd corosync interface.
Remove duplicate cpg_initialize from clvmd startup.
Add option to /etc/sysconfig/cluster to select cluster type for clvmd.
Allow clvmd to start up if its lockspace already exists.
Separate PV label attributes which do not need parse metadata when reporting.
2009-03-03 16:03:03 +03:00
Remove external dependency on the 'cut' command from fsadm.
Fix pvs segfault when pv mda attributes requested for not available PV.
2009-03-03 16:03:03 +03:00
Add fsadm support for reszing ext4 filesysystems.
Move locking_type reading inside init_locking().
Rename get_vgs() to get_vgnames() and clarify related error messages.
Allow clvmd to be built with all cluster managers & select one on cmdline.
Mention --with-clvmd=corosync in ./configure.
Replace internal vg_check_status() implementation.
Rename vg_read() to vg_read_internal().
2009-01-26 17:46:08 +03:00
2009-01-26 16:14:22 +03:00
Version 2.02.44 - 26th January 2009
===================================
2009-01-26 17:40:06 +03:00
Fix --enable-static_link after the recent repository changes.
2009-01-26 16:14:22 +03:00
Add corosync/DLM cluster interface to clvmd.
Add --nameprefixes, --unquoted, --rows to pvs, vgs, lvs man pages.
2009-01-26 16:14:22 +03:00
Fix lvresize size conversion for fsadm when block size is not 1K.
Fix pvs segfault when run with orphan PV and some VG fields.
Display a 'dev_size' of zero for missing devices in reports.
Add pv_mda_size to pvs and vg_mda_size to vgs.
Fix lvmdump /sys listing to include virtual devices directory.
Add "--refresh" functionality to vgchange and vgmknodes.
2009-01-26 16:14:22 +03:00
Avoid exceeding LV size when wiping device.
Calculate mirror log size instead of using 1 extent.
2009-01-26 16:14:22 +03:00
Ensure requested device number is available before activating with it.
Fix incorrect exit status from 'help <command>'.
Fix vgrename using UUID if there are VGs with identical names.
Fix segfault when invalid field given in reporting commands.
2009-01-26 16:34:07 +03:00
Move is_static from cmd to global is_static().
2008-12-11 16:45:28 +03:00
Refactor init_lvm() for lvmcmdline and clvmd.
Add liblvm interactive test infrastructure to build.
2009-01-26 16:34:07 +03:00
Add skeleton lvm2.h file in preparation for a shared library interface.
Use better random seed value in temp file creation.
2009-01-26 16:14:22 +03:00
Add read_urandom to read /dev/urandom. Use in uuid calculation.
Use displayable_lvs_in_vg and lv_is_displayable for consistency throughout.
Fix race in vgcreate that would result in second caller overwriting first.
Fix uninitialised lv_count in vgdisplay -c.
Don't skip updating pvid hash when lvmcache_info struct got swapped.
Add tinfo to termcap search path for pld-linux.
Fix startup race in clvmd.
2009-01-26 16:14:22 +03:00
Generate Red Hat clvmd startup script at config time with correct paths.
2008-11-19 17:14:51 +03:00
Fix clvmd & dmeventd builds after tree restructuring.
Cope with snapshot dependencies when removing a whole VG with lvremove.
2009-01-26 16:14:22 +03:00
Make man pages and tool help text consistent using | for alternative options.
2008-11-19 17:14:51 +03:00
Version 2.02.43 - 10th November 2008
====================================
Merge device-mapper into the lvm2 tree.
2008-11-11 00:26:06 +03:00
Correct prototype for --permission on lvchange and lvcreate man pages.
Exit with non-zero status from vgdisplay if couldn't show any requested VG.
Move list.c into libdevmapper and rename functions.
Rename a couple of variables that matched function names.
Use simplified x.y.z version number in libdevmapper.pc.
2008-10-31 15:25:54 +03:00
Remove ancient debian directory.
2008-10-30 20:40:00 +03:00
Split out lvm-logging.h from log.h and lvm-globals.[ch] from log.[ch].
2008-10-26 13:40:50 +03:00
2008-10-26 13:33:34 +03:00
Version 2.02.42 - 26th October 2008
2008-10-17 21:48:10 +04:00
===================================
Accept locking fallback_to_* options in the global section as documented.
Fix temp table activation in mirror conversions not to happen in other cmds.
Fix temp table in mirror conversions to use always-present error not zero.
2008-10-17 21:48:10 +04:00
2008-10-17 21:42:08 +04:00
Version 2.02.41 - 17th October 2008
===================================
Use temp table to set device size when converting mirrors.
In resume_mirror_images replace activate_lv with resume_lv as workaround.
Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE.
Fix snapshot monitoring library to not cancel monitoring invalid snapshot.
Generate man pages from templates and include version.
Add usrlibdir and usrsbindir to configure.
Fix conversion of md chunk size into sectors.
Free text metadata buffer after a failure writing it.
Fix misleading error message when there are no allocatable extents in VG.
Fix handling of PVs which reappeared with old metadata version.
Fix mirror DSO to call vgreduce with proper parameters.
Fix validation of --minor and --major in lvcreate to require -My always.
2008-09-19 22:31:20 +04:00
Fix release: clvmd build, vgreduce consolidate & tests, /dev/ioerror warning.
2008-09-19 19:44:03 +04:00
2008-09-19 10:48:48 +04:00
Version 2.02.40 - 19th September 2008
=====================================
2008-09-19 10:44:54 +04:00
Allow lvremove to remove LVs from VGs with missing PVs.
In VG with PVs missing, by default allow activation of LVs that are complete.
Track PARTIAL_LV and MISSING_PV flags internally.
Require --force with --removemissing in vgreduce to remove partial LVs.
No longer write out PARTIAL flag into metadata backups.
Treat new default activation/missing_stripe_filler "error" as an error target.
Remove internal partial_mode.
2008-10-02 02:48:26 +04:00
Add devices/md_chunk_alignment to lvm.conf.
2008-09-19 09:19:09 +04:00
Pass struct physical_volume to pe_align and adjust for md chunk size.
Store sysfs location in struct cmd_context.
Avoid shuffling remaining mirror images when removing one, retaining primary.
Add missing LV error target activation in _remove_mirror_images.
Prevent resizing an LV while lvconvert is using it.
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
Fix pvresize to not allow resize if PV has two metadata areas.
Fix setting of volume limit count if converting to lvm1 format.
Fix vgconvert logical volume id metadata validation.
Fix lvmdump metadata gather option (-m) to work correctly.
Fix allocation bug in text metadata format write error path.
Fix vgcfgbackup to properly check filename if template is used.
configure aborts if lcov or genhtml are missing with --enable-profiling
vgremove tries to remove lv snapshot first.
Added function lv_remove_with_dependencies().
Improve file descriptor leak detection to display likely culprit and filename.
Change clustered mirror kernel module name from cmirror to dm-log-clustered.
Avoid looping forever in _pv_analyze_mda_raw used by pvck.
Change lvchange exit status to indicate if any part of the operation failed.
2008-07-31 16:38:31 +04:00
Fix pvchange and pvremove to handle PVs without mdas.
Refactor _text_pv_read and always return mda list if requested.
2008-07-24 19:39:47 +04:00
Fix configure to work w/o readline unless --enable-readline used. (2.02.39)
Remove is_lvm_partition template which has not yet been coded.
Refactor pvcreate to separate parameter parsing from validation logic.
Check for label_write() failure in _text_pv_write().
Add pvcreate tests and update vgsplit tests to handle lvm1 and lvm2 metadata.
Fix pvchange -M1 -u to preserve existing extent locations when there's a VG.
Cease recognising snapshot-in-use percentages returned by early devt kernels.
Add backward-compatible flags field to on-disk format_text metadata.
2008-07-10 13:50:23 +04:00
Fix dmeventd monitoring libraries to link against liblvm2cmd again. (2.02.39)
2008-06-28 02:35:22 +04:00
2008-06-28 01:56:35 +04:00
Version 2.02.39 - 27th June 2008
2008-06-11 16:14:41 +04:00
================================
Enable readline by default if available.
2008-06-27 23:24:17 +04:00
Update autoconf to 2008-01-16.
Add $DISTCLEAN_DIRS to make.tmpl.in.
Create coverage reports with --enable-profiling and make lcov or lcov-dated.
Fix up cache for PVs without mdas after consistent VG metadata is processed.
Update validation of safe mirror log type conversions in lvconvert.
Fix lvconvert to disallow snapshot and mirror combinations.
Fix reporting of LV fields alongside unallocated PV segments.
2008-06-25 02:48:53 +04:00
Add --unquoted and --rows to reporting tools.
2008-06-25 01:21:04 +04:00
Add and use uninitialized_var() macro to suppress invalid compiler warnings.
Introduce enum for md minor sb version to suppress compiler warning.
Avoid undefined return value after _memlock manipulation in lvm2_run.
Avoid link failure if configured without --enable-cmdlib or --enable-readline.
Make clvmd return at once if other nodes down in a gulm or openais cluster.
Fix and improve readahead 'auto' calculation for stripe_size.
Fix lvchange output for -r auto setting if auto is already set.
Add test case for readahead.
2008-06-28 02:35:22 +04:00
Avoid ambiguous use of identifier error_message_produced.
Begin syncing configure.in for merge/unification with device-mapper.
Fix add_mirror_images not to dereference uninitialized log_lv upon failure.
Don't call openlog for every debug line output by clvmd.
2008-06-12 17:24:02 +04:00
Add --force to lvextend and lvresize.
2008-06-28 02:35:22 +04:00
Fix vgchange not to activate component mirror volumes directly.
Fix test directory clean up in make distclean.
2008-06-11 16:08:19 +04:00
Version 2.02.38 - 11th June 2008
================================
Fix tracking of validity of PVs with no mdas in lvmcache.
Fix return values for reporting commands when run with no PVs, LVs, or VGs.
Add omitted unlock_vg() call when sigint_caught() during vg processing.
2008-06-11 16:08:19 +04:00
Fix free_count when reading pool metadata.
Fix segfault when using pvcreate on a device containing pool metadata.
Fix segfault after _free_vginfo by remembering to remove vginfo from list.
Tweak detection of invalid fid after changes to PVs in VG in _vg_read.
Revert assuming precommitted metadata is live when activating (unnecessary).
Drop cached metadata for disappearing VG in vgmerge.
2008-06-06 23:28:35 +04:00
In script-processing mode, stop if any command fails.
Warn if command exits with non-zero status code without a prior log_error.
Check lv_count in vg_validate.
Add --nameprefixes to reporting tools for field name prefix output format.
2008-06-06 21:24:28 +04:00
Version 2.02.37 - 6th June 2008
===============================
Make clvmd-cman use a hash rather than an array for node updown info.
Correct config file line numbers in messages when parsing comments.
Drop cached metadata when renaming a VG.
Allow for vginfo changing during _vg_read.
Decode numbers in clvmd debugging output.
Add missing deactivation after activation failure in lvcreate -Zy.
When activating, if precommitted metadata is still cached, assume it's live.
When removing LV symlinks, skip any where the VG name is not determined.
Drop metadata cache if update fails in vg_revert or vg_commit.
Avoid spurious duplicate VG messages referring to VGs that are gone.
Drop dev_name_confirmed error message to debug level.
Fix setpriority error message to signed int.
Temporarily disable dmeventd mirror monitoring during lvchange --resync.
Refactor some vginfo manipulation code.
2008-05-09 22:45:15 +04:00
Add assertions to trap deprecated P_ and V_ lock usage.
Add missing mutex around clvmd lvmcache_drop_metadata library call.
Fix uninitialised mutex in clvmd if all daemons are not running at startup.
Avoid using DLM locks with LCK_CACHE type P_ lock requests.
When asked to drop cached committed VG metadata, invalidate cached PV labels.
Drop metadata cache before writing precommitted metadata instead of after.
Don't touch /dev in vgrename if activation is disabled.
Version 2.02.36 - 29th April 2008
2008-04-15 19:01:18 +04:00
=================================
Fix fsadm.sh to work with older blockdev, blkid & readlink binaries.
Fix lvresize to pass new size to fsadm when extending device.
Remove unused struct in clvmd-openais, and use correct node count.
Fix nodes list in clvmd-openais, and allow for broadcast messages.
Exclude VG_GLOBAL from internal concurrent VG lock counter.
Fix vgsplit internal counting of snapshot LVs.
Fix vgmerge snapshot_count when source VG contains snapshots.
Simplify clvmd-openais by using non-async saLckResourceLock.
Fix internal LV counter when a snapshot is removed.
Fix metadata corruption writing lvm1-formatted metadata with snapshots.
Fix lvconvert -m0 allocatable space check.
2008-04-15 19:01:18 +04:00
2008-04-15 18:49:17 +04:00
Version 2.02.35 - 15th April 2008
2008-04-11 00:07:19 +04:00
=================================
Drop cached VG metadata before and after committing changes to it.
2008-04-15 15:36:46 +04:00
Rename P_global to P_#global.
Don't attempt remote metadata backups of non-clustered VGs. (2.02.29)
Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34)
Update vgsplit tests to verify loosening of active LV restriction.
Update vgsplit to only restrict split with active LVs involved in split.
Add lv_is_active() to determine whether an lv is active.
2008-04-11 00:07:19 +04:00
2008-04-10 22:19:49 +04:00
Version 2.02.34 - 10th April 2008
=================================
2008-04-10 22:53:36 +04:00
Improve preferred_names lvm.conf example.
Fix vgdisplay 'Cur LV' field to match lvdisplay output.
Fix lv_count report field to exclude hidden LVs.
Add vg_is_clustered() helper function.
Fix vgsplit to only move hidden 'snapshotN' LVs when necessary.
Update vgsplit tests for lvnames on the cmdline.
Update vgsplit man page to reflect lvnames on the cmdline.
Update vgsplit to take "-n LogicalVolumeName" on the cmdline.
Use clustered mirror log with pvmove in clustered VGs, if available.
2008-04-09 16:45:32 +04:00
Fix some pvmove error status codes.
Fix vgsplit error paths to release vg_to lock.
Indicate whether or not VG is clustered in vgcreate log message.
Mention default --clustered setting in vgcreate man page.
Add config file overrides to clvmd when it reads the active LVs list.
Fix vgreduce to use vg_split_mdas to check sufficient mdas remain.
Add (empty) orphan VGs to lvmcache during initialisation.
Fix orphan VG name used for format_pool.
2008-04-08 02:12:37 +04:00
Create a fid for internal orphan VGs.
Update lvmcache VG lock state for all locking types now.
Fix output if overriding command_names on cmdline.
Add detection of clustered mirror log capability.
Add check to vg_commit() ensuring VG lock held before writing new VG metadata.
Add validation of LV name to pvmove -n.
Make clvmd refresh the context correctly when lvm.conf is updated.
Add some basic internal VG lock validation.
Add per-command flags to control which commands use the VG metadata cache.
2008-04-03 18:40:34 +04:00
Fix vgsplit locking of new VG (2.02.30).
Avoid erroneous vgsplit error message for new VG. (2.02.29)
Suppress duplicate message when lvresize fails because of invalid vgname.
Cache VG metadata internally while VG lock is held.
Fix redundant lvresize message if vg doesn't exist.
Fix another allocation bug with clvmd and large node IDs.
Add find_lv_in_lv_list() and find_pv_in_pv_list().
Fix uninitialised variable in clvmd that could cause odd hangs.
2008-03-26 21:03:35 +03:00
Add vgmerge tests.
Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
Add list_move() for moving elements from one list to another.
Add 'is_reserved_lvname()' for identifying hidden LVs.
Correct command name in lvmdiskscan man page.
clvmd no longer crashes if it sees nodeids over 50.
Fix potential deadlock in clvmd thread handling.
Refactor text format initialisation into _init_text_import.
Escape double quotes and backslashes in external metadata and config data.
Add functions for escaping double quotes in strings.
Rename count_chars_len to count_chars.
Use return_0 in a couple more places.
Correct a function name typo in _line_append error message.
Include limits.h in clvmd so it compiles with newer headers.
2008-04-03 14:29:00 +04:00
Add VirtIO disks (virtblk) to filters.
Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30)
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
Remove redundant non-NULL tests before calling free in clvmd.c.
Avoid a compiler warning: make is_orphan's parameter const.
Fix lvconvert detection of mirror conversion in progress. (2.02.30)
Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30)
Fix 'pvs -a' to detect VGs of PVs without metadata areas.
2008-02-06 18:47:28 +03:00
Divide up internal orphan volume group by format type.
Update usage message for clvmd.
Fix clvmd man page not to print <br> and clarified debug options.
Fix lvresize to support /dev/mapper prefix in the LV name.
Fix unfilled parameter passed to fsadm from lvresize.
Update fsadm to call lvresize if the partition size differs (with option -l).
Fix fsadm to support VG/LV names.
2008-01-31 15:41:13 +03:00
2008-01-31 15:36:58 +03:00
Version 2.02.33 - 31st January 2008
2008-01-29 15:02:04 +03:00
===================================
Fix mirror log name construction during lvconvert. (2.02.30)
Make monitor_dev_for_events recurse through the stack of LVs.
Clean up some more compiler warnings.
2008-01-30 17:00:02 +03:00
Some whitespace tidy-ups.
2008-01-30 16:19:47 +03:00
Use stack return macros throughout.
Rely upon internally-cached PV labels while corresponding VG lock is held.
2008-01-29 15:02:04 +03:00
2008-01-29 14:48:11 +03:00
Version 2.02.32 - 29th January 2008
2008-01-19 15:30:55 +03:00
===================================
Fix two check_lv_segments error messages to show whole segment.
2008-01-26 03:25:04 +03:00
Refactor mirror log attachment code.
Fix internal metadata corruption in lvchange --resync. (2.02.30)
2008-01-22 18:58:31 +03:00
Fix new parameter validation in vgsplit and test mode. (2.02.30)
2008-01-21 17:07:46 +03:00
Remove redundant cnxman-socket.h file from clvmd directory.
Fix pvs, vgs, lvs error exit status on some error paths.
2008-01-19 15:30:55 +03:00
2008-01-19 15:28:03 +03:00
Version 2.02.31 - 19th January 2008
2008-01-19 00:56:39 +03:00
===================================
Fix lvcreate --nosync not to wait for non-happening sync. (2.02.30)
2008-01-19 01:00:46 +03:00
Add very_verbose lvconvert messages.
2008-01-19 15:36:37 +03:00
Avoid readahead error message with default setting of lvcreate -M1. (2.02.29)
2008-01-19 00:56:39 +03:00
2008-01-17 18:02:59 +03:00
Version 2.02.30 - 17th January 2008
2007-12-06 01:48:06 +03:00
===================================
2008-01-17 20:17:09 +03:00
Set default readahead to twice maximium stripe size.
2008-01-17 18:53:01 +03:00
Reinstate VG extent size and stripe size defaults (halved). (2.02.29)
2008-01-17 18:02:59 +03:00
Add lists of stacked LV segments using each LV to the internal metadata.
Change vgsplit -l (for unimplemented --list) into --maxlogicalvolumes.
Fix process_all_pvs to detect non-orphans with no MDAs correctly.
2008-01-16 18:25:10 +03:00
Don't use block_on_error with mirror targets version 1.12 and above.
2008-01-17 18:02:59 +03:00
Update vgsplit to accept vgcreate options when new VG is destination.
2008-01-15 23:37:49 +03:00
Update vgsplit to accept existing VG as destination.
lvconvert waits for completion of initial sync by default.
Refactor vgcreate for parameter validation and add tests.
2008-01-11 01:21:44 +03:00
Add new convert_lv field to lvs output.
Print warning when lvm tools are running as non-root.
Add snapshot dmeventd library (enables dmeventd snapshot monitoring).
Prevent pvcreate from overwriting MDA-less PVs belonging to active VGs.
Fix a segfault if using pvs with --all argument. (2.02.29)
Update --uuid argument description in man pages.
Fix vgreduce PV list processing not to process every PV in the VG. (2.02.29)
2007-12-22 15:13:29 +03:00
Extend lvconvert to use polldaemon.
2007-12-20 21:55:46 +03:00
Add support for stacked mirrors.
Major restructuring of pvmove and lvconvert layer manipulation code.
2007-12-17 15:31:50 +03:00
Replace tools/fsadm with scripts/fsadm.sh.
Append fields to report/pvsegs_cols_verbose.
Permit LV segment fields with PV segment reports.
Add seg_start_pe and seg_pe_ranges to reports.
2007-12-06 01:48:06 +03:00
Version 2.02.29 - 5th December 2007
===================================
Make clvmd backup vg metadata on remote nodes.
Refactor pvmove allocation code.
Decode cluster locking state in log message.
Change file locking state messages from debug to very verbose.
Fix --addtag to drop @ prefix from name.
Stop clvmd going haywire if a pre_function fails.
Convert some vg_reads into vg_lock_and_reads.
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
Accept sizes with --readahead argument.
Store size arguments as sectors internally.
Attempt to remove incomplete LVs with lvcreate zeroing/activation problems.
Add read_ahead activation code.
Add activation/readahead configuration option and FMT_RESTRICTED_READAHEAD.
Extend readahead arg to accept "auto" and "none".
Add lv_read_ahead and lv_kernel_read_ahead fields to reports and lvdisplay.
Prevent lvconvert -s from using same LV as origin and snapshot.
Fix human-readable output of odd numbers of sectors.
Add pv_mda_free and vg_mda_free fields to reports for raw text format.
Add LVM2 version to 'Generated by' comment in metadata.
Show 'not usable' space when PV is too large for device in pvdisplay.
Ignore and fix up any excessive device size found in metadata.
Fix error message when fixing up PV size in lvm2 metadata (2.02.11).
Fix orphan-related locking in pvdisplay and pvs.
Fix missing VG unlocks in some pvchange error paths.
Add some missing validation of VG names.
Rename validate_vg_name() to validate_new_vg_name().
Change orphan lock to VG_ORPHANS.
Change format1 to use ORPHAN as orphan VG name.
Convert pvchange, pvdisplay, pvscan to use is_orphan()
Add is_orphan_vg() and change all hard-coded checks to use it.
Detect md superblocks version 1.0, 1.1 and 1.2.
Add _alloc_pv() and _free_pv() from _pv_create() code and fix error paths.
Add pv_dev_name() to access PV device name.
Add const attributes to pv accessor functions.
Refactor vg_add_snapshot() and lv_create_empty().
Handle new sysfs subsystem/block/devices directory structure.
Run test with LVM_SYSTEM_DIR pointing to private root and /dev dirs.
Fix a bug in lvm_dump.sh checks for lvm/dmsetup binaries.
2007-10-02 20:09:46 +04:00
Fix underquotations in lvm_dump.sh.
Refactor lvcreate stripe and mirror parameter validation.
Print --help output to stdout, not stderr.
After a cmdline processing error, don't print help text but suggest --help.
Add %PVS extents option to lvresize, lvextend, and lvcreate.
Add 'make check' to run tests in new subdirectory 'test'.
Moved the obsolete test subdirectory to old-tests.
Cope with relative paths in configure --with-dmdir.
Remove no-longer-correct restrictions on PV arg count with stripes/mirrors.
Fix strdup memory leak in str_list_dup().
2007-09-17 21:06:31 +04:00
Link with -lpthread when static SELinux libraries require that.
Detect command line PE values that exceed their 32-bit range.
Include strerror string in dev_open_flags' stat failure message.
2007-08-31 00:30:41 +04:00
Move guts of pvresize into library.
Avoid error when --corelog is provided without --mirrorlog. (2.02.28)
Correct --mirrorlog argument name in man pages (not --log).
Clear MIRROR_NOTSYNCED LV flag when converting from mirror to linear.
Modify lvremove to prompt for removal if LV active on other cluster nodes.
Add '-f' to vgremove to force removal of VG even if LVs exist.
2007-08-25 01:01:52 +04:00
Version 2.02.28 - 24th August 2007
==================================
Fix clvmd logging so you can get lvm-level debugging out of it.
Introduce VG_GLOBAL lock type for vgscan/pvscan to trigger clvmd -R.
2007-08-25 01:01:52 +04:00
Change locking_flags from int to uint32_t.
Fix clvmd -R, so it fully refreshes the caches.
Change lvconvert_mirrors to use mirror segtype not striped.
Fix lvconvert_mirrors detection of number of existing mirrors.
2007-08-25 01:01:52 +04:00
Clean up numerous compiler warnings that appeared in recent releases.
Remove several unused parameters from _allocate().
Only permit --force, --verbose and --debug arguments to be repeated.
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-25 01:01:52 +04:00
Move guts of vgremove and lvremove into library, including yes_no_prompt.
Allow clvmd debug to be turned on in a running daemon using clvmd -d [-C].
Update to use autoconf 2.61, while still supporting 2.57.
2007-08-25 01:01:52 +04:00
Add more cluster info to lvmdump.
Add further const attributes throughout.
Add support for renaming mirrored LVs.
2007-08-25 01:01:52 +04:00
Factor out core of lvrename() to library function.
Add --mirrorlog argument to specify log type for mirrors.
2007-08-25 01:01:52 +04:00
Don't attempt to monitor devices if their creation failed in _lv_activate.
Don't leak a file descriptor in fcntl_lock_file() when fcntl fails.
Replace create_dir with dm_create_dir.
2007-08-25 01:01:52 +04:00
Detect stream write failure reliably with lvm_fclose using dm_fclose.
Fix clvmd if compiled with gulm support. (2.02.26)
2007-08-25 01:01:52 +04:00
Fix lvdisplay man page to say LV size is reported in sectors, not KB.
Add vg_lock_and_read() external library function.
Fix loading of persistent cache if cache_dir is used. (2.02.23)
2007-08-25 01:01:52 +04:00
Reduce _compare_paths lstat error message from log_error to log_very_verbose.
Create util.h with last_path_component replacing strdup + basename.
Use gcc's printf attribute wherever possible.
2007-08-25 01:01:52 +04:00
In _line_append, use "sizeof buf - 1" rather than equivalent "4095".
Introduce is_same_inode macro, now including a comparison of st_dev.
2007-08-25 01:01:52 +04:00
Don't leak a file descriptor in _lock_file() when flock fails.
2007-07-26 17:28:32 +04:00
Add SUN's LDOM virtual block device (vdisk) and ps3disk to filters.
Split metadata-external.h out from metadata.h for the tools to use.
2007-07-18 00:53:51 +04:00
2007-07-18 00:45:17 +04:00
Version 2.02.27 - 17th July 2007
2007-06-16 00:49:30 +04:00
================================
Fix snapshot cow area deactivation if origin is not active. (2.02.13)
Fix configure libdevmapper.h check when --with-dmdir is used.
Turn _add_pv_to_vg() into external library function add_pv_to_vg().
2007-07-12 19:38:53 +04:00
Add pv_by_path() external library function.
Tidy clvmd-openais of redundant bits, and improve an error report.
Cope with find_seg_by_le() failure in check_lv_segments().
Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
Add vg_mda_count and pv_mda_count columns to reports.
Fix dumpconfig to use log_print instead of stdout directly.
Remove unused parameter 'fid' from _add_pv_to_vg.
Add kernel and device-mapper targets versions to lvmdump.
Replace BSD (r)index with C89 str(r)chr.
Handle vgsplit of an entire VG as a vgrename.
Reinitialise internal lvmdiskscan variables when called repeatedly.
Fix missing lvm_shell symbol in lvm2cmd library. (2.02.23)
Add vg_status function and clean up vg->status in tools directory.
Add --ignoremonitoring to disable all dmeventd interaction.
Remove get_ prefix from get_pv_* functions.
clvmd-openais now uses cpg_local_get() to get nodeid, rather than Clm.
Print warnings to stderr instead of stdout.
2007-06-16 00:49:30 +04:00
2007-06-15 23:05:02 +04:00
Version 2.02.26 - 15th June 2007
================================
2007-06-15 20:05:57 +04:00
Update vgcfgrestore man page.
2007-06-15 23:05:02 +04:00
Allow keyboard interrupt during user prompts when appropriate.
Remove unused clvmd system-lv code.
Replace many physical_volume struct dereferences with new get_pv_* functions.
Suppress a benign compile-time warning.
Convert find_pv_in_vg_by_uuid and pv_create to use PV handles.
Add wrappers to some functions in preparation for external LVM library.
2007-06-15 23:05:02 +04:00
Add -f to vgcfgrestore to list metadata backup files.
Add vg_check_status to consolidate vg status checks and error messages.
Add pvdisplay --maps implementation.
2007-06-15 23:05:02 +04:00
Remove unsupported LVM1 options from vgcfgrestore man page.
Update vgcfgrestore man page to show mandatory VG name.
Update vgrename man page to include UUID and be consistent with lvrename.
Add (experimental) OpenAIS support to clvmd.
2007-06-15 23:05:02 +04:00
Fix deactivation code to follow dependencies and remove symlinks.
Fix and clarify vgsplit error messages.
2007-06-15 23:05:02 +04:00
Fix a segfault in device_is_usable() if a device has no table.
Add some more debug messages to clvmd startup.
Misc clvmd cleanups.
2007-04-28 00:58:45 +04:00
2007-04-28 00:47:14 +04:00
Version 2.02.25 - 27th April 2007
2007-03-20 00:16:49 +03:00
=================================
Fix get_config_uint64() to read a 64-bit value not a 32-bit one.
Add -Wformat-security and change one fprintf() to fputs().
Move regex functions into libdevmapper.
Change some #include lines to search only standard system directories.
Add devices/preferred_names config regex list for displayed device names.
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
Fix warnings on x86_64 involving ptrdiff_t in log_error messages.
Update pvck to include text metadata area and record detection.
Add support functions for token counting in config file extracts.
Update pvck to read labels on disk, with --labelsector parameter.
Add count_chars and count_chars_len functions.
Add /sys/block listings to lvm_dump.sh.
Make lvm_dump.sh list /dev recursively.
2007-04-24 19:13:13 +04:00
Fix thread race in clvmd.
Add scan_sector param to label_read and _find_labeller.
Make clvmd cope with quorum devices.
Add extra internal error checking to clvmd.
Add dev_read_circular.
Add pvck command stub.
Update lists of attribute characters in man pages.
Change cling alloc policy attribute character from 'C' to l'.
Fix creation and conversion of mirrors with tags.
Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata).
Split metadata areas in vgsplit properly.
2007-03-20 00:16:49 +03:00
2007-03-20 00:12:54 +03:00
Version 2.02.24 - 19th March 2007
=================================
Fix processing of exit status in init scripts
Fix vgremove to require at least one vg argument.
Fix reading of striped LVs in LVM1 format.
Flag nolocking as clustered so clvmd startup sees clustered LVs. (2.02.10)
Add a few missing pieces of vgname command line validation.
Support the /dev/mapper prefix on most command lines.
2007-03-09 00:37:48 +03:00
Version 2.02.23 - 8th March 2007
================================
Fix vgrename active LV check to ignore differing vgids.
Remove no-longer-used uuid_out parameter from activation info functions.
Fix two more segfaults if an empty config file section encountered.
Move .cache file into a new /etc/lvm/cache directory by default.
Add devices/cache_dir & devices/cache_file_prefix, deprecating devices/cache.
Create directory in fcntl_lock_file() if required.
Exclude readline support from lvm.static.
2007-02-14 18:18:31 +03:00
Fix a leak in a reporting error path (2.02.19).
2007-02-13 19:16:15 +03:00
2007-02-13 19:12:24 +03:00
Version 2.02.22 - 13th February 2007
====================================
Correct -b and -P on a couple of man pages.
Add global/units to example.conf.
Fix loading of segment_libraries.
If a PV reappears after it was removed from its VG, make it an orphan.
Don't update metadata automatically if VGIDs don't match.
Fix some vgreduce --removemissing command line validation.
2007-01-31 00:37:18 +03:00
2007-01-30 21:08:17 +03:00
Version 2.02.21 - 30th January 2007
2007-01-26 02:40:33 +03:00
===================================
Add warning to lvm2_monitoring_init_rhel4 if attempting to stop monitoring.
Fix vgsplit to handle mirrors.
Reorder fields in reporting field definitions.
Fix vgs to treat args as VGs even when PV fields are displayed.
Fix md signature check to handle both endiannesses.
2007-01-26 02:40:33 +03:00
2007-01-26 02:36:59 +03:00
Version 2.02.20 - 25th January 2007
2007-01-17 20:56:15 +03:00
===================================
dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors.
Add devices/ignore_suspended_devices to ignore suspended dm devices.
Add some missing close() and fclose() return code checks.
Fix exit statuses of reporting tools (2.02.19).
Add init script for dmeventd monitoring.
lvm.static no longer interacts with dmeventd unless explicitly asked to.
Add field definitions to report help text.
Remove unnecessary cmd arg from target_*monitor_events().
Add private variable to dmeventd shared library interface.
Long-lived processes write out persistent dev cache in refresh_toolcontext().
Fix refresh_toolcontext() always to wipe persistent device filter cache.
Add is_long_lived to toolcontext.
2007-01-23 16:08:34 +03:00
Add --clustered to man pages.
Streamline dm_report_field_* interface.
2007-01-20 01:21:45 +03:00
Change remaining dmeventd terminology 'register' to 'monitor'.
2007-01-19 01:33:24 +03:00
Update reporting man pages.
2007-01-23 16:08:34 +03:00
No longer necessary to specify alignment type for report fields.
2007-01-17 20:56:15 +03:00
2007-01-17 20:51:51 +03:00
Version 2.02.19 - 17th January 2007
2007-01-12 02:19:08 +03:00
===================================
Fix a segfault if an empty config file section encountered.
Move basic reporting functions into libdevmapper.
Fix partition table processing after sparc changes (2.02.16).
Fix cmdline PE range processing segfault (2.02.13).
Some libdevmapper-event interface changes.
Report dmeventd mirror monitoring status.
Fix dmeventd mirror status line processing.
2007-01-12 02:19:08 +03:00
2007-01-12 01:49:43 +03:00
Version 2.02.18 - 11th January 2007
===================================
2007-01-12 01:24:32 +03:00
Revised libdevmapper-event interface for dmeventd.
Remove dmeventd mirror status line word limit.
Use CFLAGS when linking so mixed sparc builds can supply -m64.
Prevent permission changes on active mirrors.
Print warning instead of error message if lvconvert cannot zero volume.
Add snapshot options to lvconvert man page.
dumpconfig accepts a list of configuration variables to display.
Change dumpconfig to use --file to redirect output to a file.
Avoid vgreduce error when mirror code removes the log LV.
Remove 3 redundant AC_MSG_RESULTs from configure.in.
Free memory in _raw_read_mda_header() error paths.
Fix ambiguous vgsplit error message for split LV.
Fix lvextend man page typo.
Add configure --with-dmdir to compile against a device-mapper source tree.
Use no flush suspending for mirrors.
Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.
Fix create mirror with name longer than 22 chars.
Fix some activate.c prototypes when compiled without devmapper.
Fix dmeventd mirror to cope if monitored device disappears.
2006-12-15 01:21:32 +03:00
2006-12-14 23:05:08 +03:00
Version 2.02.17 - 14th December 2006
====================================
Add missing pvremove error message when device doesn't exist.
When lvconvert allocates a mirror log, respect parallel area constraints.
Use loop to iterate through the now-ordered policy list in _allocate().
Check for failure to allocate just the mirror log.
Introduce calc_area_multiple().
Support mirror log allocation when there is only one PV: area_count now 0.
Fix detection of smallest area in _alloc_parallel_area() for cling policy.
Add manpage entry for clvmd -T
Fix gulm operation of clvmd, including a hang when doing lvchange -aey
Fix hang in clvmd if a pre-command failed.
2006-12-02 02:29:54 +03:00
2006-12-02 02:15:59 +03:00
Version 2.02.16 - 1st December 2006
===================================
Fix VG clustered read locks to use PR not CR.
Adjust some alignments for ia64/sparc.
Fix mirror segment removal to use temporary error segment.
Always compile debug logging into clvmd.
Add startup timeout to RHEL4 clvmd startup script.
Add -T (startup timeout) switch to clvmd.
2006-11-23 20:23:14 +03:00
Improve lvm_dump.sh robustness.
Update lvm2create_initrd to support gentoo.
2006-11-21 02:30:45 +03:00
Version 2.02.15 - 21st November 2006
2006-11-11 00:27:51 +03:00
====================================
Fix clvmd_init_rhel4 line truncation (2.02.14).
2006-11-20 23:03:26 +03:00
Install lvmdump by default.
Fix check for snapshot module when activating snapshot.
Fix pvremove error path for case when PV is in use.
Warn if certain duplicate config file entries are seen.
Enhance lvm_dump.sh for sysreport integration and add man page.
Fix --autobackup argument which could never disable backups.
2006-11-14 18:03:07 +03:00
Fix a label_verify error path.
2006-11-11 00:27:51 +03:00
2006-11-11 00:22:34 +03:00
Version 2.02.14 - 10th November 2006
====================================
Fix adjusted_mirror_region_size() to handle 64-bit size.
Add some missing bounds checks on 32-bit extent counters.
Add Petabyte and Exabyte support.
Fix lvcreate error message when 0 extents requested.
lvremove man page: volumes must be cluster inactive before being removed.
Protect .cache manipulations with fcntl locking.
Change .cache timestamp comparisons to use ctime.
Fix mirror log LV writing to set all bits in whole LV.
Fix clustered VG detection and default runlevels in clvmd_init_rhel4.
Fix high-level free space check for partial allocations.
2006-10-27 19:37:02 +04:00
2006-10-27 19:21:07 +04:00
Version 2.02.13 - 27th October 2006
2006-10-16 21:18:08 +04:00
===================================
Add couple of missing files to tools/Makefile CLEAN_TARGETS.
When adding snapshot leave cow LV mapped device active after zeroing.
2006-10-24 23:07:32 +04:00
Fix a clvmd debug message.
2006-10-24 22:25:30 +04:00
Add dev_flush() to set_lv().
2006-10-24 21:18:25 +04:00
Add lvchange --resync.
Perform high-level free space check before each allocation attempt.
Don't allow a node to remove an LV that's exclusively active on anther node.
Cope if same PV is included more than once in cmdline PE range list.
Set PV size to current device size if it is found to be zero.
Add segment parameter to target_present functions.
2006-10-16 21:18:08 +04:00
2006-10-16 20:44:28 +04:00
Version 2.02.12 - 16th October 2006
2006-10-12 22:20:45 +04:00
===================================
Fix pvdisplay to use vg_read() for non-orphans.
Fall back to internal locking if external locking lib is missing or fails.
Retain activation state after changing LV minor number with --force.
Propagate clustered flag in vgsplit and require resizeable flag.
2006-10-12 22:20:45 +04:00
2006-10-12 22:13:33 +04:00
Version 2.02.11 - 12th October 2006
===================================
Add clvmd function to return the cluster name. not used by LVM yet.
2006-10-08 16:01:13 +04:00
Add cling allocation policy.
2006-10-08 03:42:03 +04:00
Change _check_contiguous() to use _for_each_pv().
Extend _for_each_pv() to allow termination without error.
Abstract _is_contiguous().
Remove duplicated pv arg from _check_contiguous().
2006-10-07 14:47:05 +04:00
Accept regionsize with lvconvert.
Add report columns with underscore before field names ending 'size'.
Correct regionsize default on lvcreate man page (MB).
Fix clvmd bug that could cause it to die when a node with a long name crashed.
2006-10-08 03:40:36 +04:00
Add device size to text metadata.
Fix format_text mda_setup pv->size and pv_setup pe_count calculations.
Fix _for_each_pv() for mirror with core log.
Add lvm_dump.sh script to create a tarball of debugging info from a system.
Capture error messages in clvmd and pass them back to the user.
Remove unused #defines from filter-md.c.
Make clvmd restart init script wait until clvmd has died before starting it.
Add -R to clvmd which tells running clvmds to reload their device cache.
Add LV column to reports listing kernel modules needed for activation.
Show available fields if report given invalid field. (e.g. lvs -o list)
Add timestamp functions with --disable-realtime configure option.
Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.
Fix two potential NULL pointer derefs in error cases in vg_read().
Separate --enable-cluster from locking lib options in lvmconf.sh.
2006-09-20 00:20:40 +04:00
Add a missing comma in lvcreate man page.
2006-09-19 23:36:59 +04:00
2006-09-19 23:15:10 +04:00
Version 2.02.10 - 19th September 2006
=====================================
Fix lvconvert mirror change case detection logic.
Fix mirror log detachment so it correctly becomes a standalone LV.
Extend _check_contiguous() to detect single-area LVs.
Include mirror log (untested) in _for_each_pv() processing.
Use MIRROR_LOG_SIZE constant.
Remove struct seg_pvs from _for_each_pv() to generalise.
Avoid adding duplicates to list of parallel PVs to avoid.
Fix several incorrect comparisons in parallel area avoidance code.
Fix segment lengths when flattening existing parallel areas.
Log existing parallel areas prior to allocation.
Fix mirror log creation when activation disabled.
2006-09-08 03:23:45 +04:00
Don't attempt automatic recovery without proper locking.
When using local file locking, skip clustered VGs.
Add fallback_to_clustered_locking and fallback_to_local_locking parameters.
lvm.static uses built-in cluster locking instead of external locking.
Don't attempt to load shared libraries if built statically.
Change default locking_lib to liblvm2clusterlock.so.
Add skip_dev_dir() to process command line VGs.
Stop clvmd complaining about nodes that have left the cluster.
2006-08-21 16:54:53 +04:00
Move lvm_snprintf(), split_words() and split_dm_name() into libdevmapper.
2006-08-19 01:49:19 +04:00
Add lvconvert man page.
Add mirror options to man pages.
2006-08-19 01:19:54 +04:00
Prevent mirror renames.
Move CMDLIB code into separate file and record whether static build.
2006-08-18 00:04:38 +04:00
2006-08-17 23:55:50 +04:00
Version 2.02.09 - 17th August 2006
2006-08-15 23:13:06 +04:00
==================================
2006-08-17 23:53:36 +04:00
Fix PE_ALIGN for pagesize over 32KB.
2006-08-17 23:30:59 +04:00
Separate out LVM1_PE_ALIGN and pe_align().
2006-08-17 22:23:44 +04:00
Add lvm_getpagesize wrapper.
2006-08-16 18:41:42 +04:00
Add --maxphysicalvolumes to vgchange.
2006-08-15 23:13:06 +04:00
2006-08-15 23:06:09 +04:00
Version 2.02.08 - 15th August 2006
==================================
Add checks for duplicate LV name, lvid and PV id before writing metadata.
Report all sanity check failures, not just the first.
Fix missing lockfs on first snapshot creation.
Add unreliable --trustcache option to reporting commands.
2006-07-21 00:37:10 +04:00
Fix locking for mimage removal.
Fix clvmd_init_rhel4 'status' exit code.
2006-07-17 18:39:54 +04:00
2006-07-17 18:32:00 +04:00
Version 2.02.07 - 17th July 2006
================================
Fix activation logic in lvchange --persistent.
Don't ignore persistent minor numbers when activating.
Use RTLD_GLOBAL when loading shared libraries.
Add some forgotten memlock checks to _vg_read to protect against full scans.
Add mutex to dmeventd_mirror to avoid concurrent execution.
Fix vgreduce --removemissing to return success if VG is already consistent.
Fix return code if VG specified on command line is not found.
Fix PV tools to include orphaned PVs in default output again.
Fixed unaligned access when using clvm.
Fix an extra dev_close in a label_read error path.
Append patches to commit emails.
2006-05-25 17:32:26 +04:00
Fix target_register_events args.
2006-05-24 17:58:14 +04:00
Prevent snapshots of mirrors.
Add DISTCLEAN_TARGETS to make template for configure.h.
More fixes to error paths.
Fix lvcreate corelog validation.
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-13 00:32:39 +04:00
2006-05-12 23:41:43 +04:00
Version 2.02.06 - 12th May 2006
===============================
Propagate --monitor around cluster.
Add --monitor to vgcreate and lvcreate to control dmeventd registration.
Filter LCK_NONBLOCK in clvmd lock_vg.
Add --nosync to lvcreate with LV flag NOTSYNCED.
2006-05-11 23:47:53 +04:00
Use mirror's uuid for a core log.
2006-05-11 23:45:53 +04:00
Add mirror log fault-handling policy.
Improve mirror warning messages and tidy dmeventd syslog output.
2006-05-11 23:05:21 +04:00
Propagate nosync flag around cluster.
Allow vgreduce to handle mirror log failures.
Add --corelog to lvcreate and lvconvert.
Create a log header for replacement in-sync mirror log.
Use set_lv() and dev_set() to wipe sections of devices.
Add mirror_in_sync() flag to avoid unnecessary resync on activation.
Add mirror_library description to example.conf.
2006-05-10 20:42:03 +04:00
Fix uuid_from_num() buffer overrun.
Make SIZE_SHORT the default for display_size().
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
Improve stripe size validation.
Increase maximum stripe size limit to physical extent size for lvm2 metadata.
Fix activation code to check for pre-existing mirror logs.
2006-04-28 19:01:39 +04:00
Tighten region size validation.
2006-04-28 17:30:59 +04:00
Ignore empty strings in config files.
Require non-zero regionsize and document parameter on lvcreate man page.
Invalidate cache if composition of VG changed externally.
Version 2.02.05 - 21st April 2006
2006-04-20 00:15:11 +04:00
=================================
Fix vgid string termination in recent cache code.
2006-04-20 00:15:11 +04:00
2006-04-19 22:06:56 +04:00
Version 2.02.04 - 19th April 2006
2006-04-15 01:39:32 +04:00
=================================
Check for libsepol.
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-15 01:39:32 +04:00
2006-04-15 01:11:38 +04:00
Version 2.02.03 - 14th April 2006
=================================
2006-04-14 01:08:29 +04:00
vgrename accepts vgid and exported VG.
2006-04-13 21:51:40 +04:00
Add --partial to pvs.
When choosing between identically-named VGs, also consider creation_host.
Provide total log suppression with 2.
Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.
Add vgid to struct physical_volume and pass with vg_name to some functions.
If two or more VGs are found with the same name, use one that is not exported.
Whenever vgname is captured, also capture vgid and whether exported.
Remove an incorrect unlock_vg() from process_each_lv().
Update extent size information in vgchange and vgcreate man pages.
2006-04-07 21:41:56 +04:00
Introduce origin_from_cow() and lv_is_visible().
pvremove without -f now fails if there's no PV label.
2006-04-06 00:43:23 +04:00
Support lvconvert -s.
Suppress locking library load failure message if --ignorelockingfailure.
2006-03-10 01:34:13 +03:00
Propagate partial mode around cluster.
2006-03-07 18:43:05 +03:00
Fix archive file expiration.
2006-02-09 02:23:19 +03:00
Fix dmeventd build.
clvmd now uses libcman rather than cman ioctls.
2006-03-21 13:31:08 +03:00
clvmd will allow new cman to shutdown on request.
2006-02-09 02:23:19 +03:00
2006-02-07 19:33:48 +03:00
Version 2.02.02 - 7th February 2006
===================================
2006-02-02 22:16:47 +03:00
Add %.so: %.a make template rule.
Switchover library building to use LIB_SUFFIX.
Only do lockfs filesystem sync when suspending snapshots.
Always print warning if activation is disabled.
vgreduce removes mirror images.
Add --mirrorsonly to vgreduce.
vgreduce replaces active LVs with error segment before removing them.
Set block_on_error parameter if available.
Add target_version.
Add details to format1 'Invalid LV in extent map' error message.
Fix lvscan snapshot full display.
2005-12-02 23:35:07 +03:00
Bring lvdisplay man page example into line.
2005-12-02 22:52:06 +03:00
Add mirror dmeventd library.
2005-11-29 21:20:23 +03:00
Add some activation logic to remove_mirror_images().
lvconvert can remove specified PVs from a mirror.
lvconvert turns an existing LV into a mirror.
Allow signed mirrors arguments.
Move create_mirror_log() into toollib.
Determine parallel PVs to avoid with ALLOC_NORMAL allocation.
2005-11-24 21:46:51 +03:00
Fix lv_empty.
2005-11-23 21:45:30 +03:00
2005-11-23 21:42:45 +03:00
Version 2.02.01 - 23rd November 2005
2005-11-10 19:06:29 +03:00
====================================
Fix lvdisplay cmdline to accept snapshots.
2005-11-23 19:07:40 +03:00
Fix open RO->RW promotion.
2005-11-13 01:42:08 +03:00
Fix missing vg_revert in lvcreate error path.
2005-11-10 19:06:29 +03:00
2005-11-10 18:27:19 +03:00
Version 2.02.00 - 10th November 2005
====================================
Extend allocation areas to avoid overflow with contiguous with other PVs.
2005-11-09 16:08:41 +03:00
Stop lvcreate attempting to wipe zero or error segments.
Added new lvs table attributes.
Separated out activation preload.
Moved activation functions into libdevmapper.
Fixed build_dm_name.
Add return macros.
2005-11-09 15:47:16 +03:00
Added xen xvd devices.
Clear up precommitted metadata better.
A pvresize implementation.
Fix contiguous allocation when there are no preceding segments.
Add mirror_seg pointer to lv_segment struct.
Only keep a device open if it's known to belong to a locked VG.
Fix lvdisplay to show all mirror destinations.
2005-10-26 18:14:30 +04:00
Replacement suspend code using libdevmapper dependency tree.
Add DEFS to make.tmpl.
Use dm_is_dm_major instead of local copy.
Allow mapped devices to be used as PVs.
Move set_selinux_context into libdevmapper.
Fix automatic text metadata buffer expansion (using macro).
Cache formatted text metadata buffer between metadata area writes.
2005-10-21 02:24:46 +04:00
Add pe_start field to pvs.
2005-10-19 17:59:18 +04:00
Add 'LVM-' prefix to uuids.
Split lv_segment_area from lv_segment to permit extension.
Replacement deactivation code using libdevmapper dependency tree.
Simplify dev_manager_info().
Attempt to load missing targets using modprobe.
2005-10-17 20:41:38 +04:00
Add -a to lvscan.
Move mknodes into libdevmapper.
Move bitset, hash, pool and dbg_malloc into libdevmapper.
2005-10-17 00:09:42 +04:00
2005-10-17 00:06:54 +04:00
Version 2.01.15 - 16th October 2005
===================================
Refuse to run pvcreate/pvremove on devices we can't open exclusively.
2005-10-03 22:16:44 +04:00
Use ORPHAN lock definition throughout.
2005-10-01 02:21:01 +04:00
Validate chunksize in lvcreate.
2005-09-29 19:50:51 +04:00
Reduce chunksize limit to 512k.
2005-09-23 21:06:01 +04:00
Fix chunksize field in reports.
Don't hide snapshots from default 'lvs' output.
Add is_dm_major() for use in duplicate device detection in lvmcache_add().
Really switch device number in lvmcache when it says it is doing so.
Option for bitset memory allocation using malloc as well as pool.
Don't assume exactly two mirrors when parsing mirror status.
Suppress fsync() error message on filesystems that don't support it.
2005-08-31 23:32:10 +04:00
Fix yes_no_prompt() error handling.
Add lvm.conf comment warning against multiple filter lines.
2005-08-17 00:42:28 +04:00
Tidy lvmconf.sh.
2005-08-16 23:00:55 +04:00
Add format1 dev_write debug messages.
2005-08-16 03:34:11 +04:00
Add clustered VG attribute to report.
Move lvconvert parameters into struct lvconvert_params.
Add clustered VG flag to LV lock requests.
Change LV locking macros to take lv instead of lvid.
Prepend 'cluster' activation parameter to mirror log when appropriate.
Pass exclusive flag to lv_activate and on to target activation code.
Prevent snapshot creation in a clustered VG for now.
2005-08-13 00:02:21 +04:00
Factor out adjusted_mirror_region_size() and generate_log_name_format().
Move compose_log_line() into mirror directory.
2005-08-09 21:24:21 +04:00
Factor out _get_library_path().
2005-08-09 21:29:04 +04:00
Don't kill idling clvmd threads.
clvmd no longer takes out locks for non-clustered LVs.
2005-08-08 21:55:35 +04:00
Recognise ATA over Ethernet (aoe) devices.
2005-08-04 06:07:34 +04:00
Version 2.01.14 - 4th August 2005
=================================
Fix lvconvert PV parameter in help string.
Prevent snapshots getting activated in a clustered VG.
2005-08-04 05:15:30 +04:00
Separate out _build_dev_string.
2005-08-04 05:14:36 +04:00
Move zero_lv to toollib.
Fix pool format handler to work with pv segment code.
2005-07-13 23:28:09 +04:00
2005-07-13 23:15:09 +04:00
Version 2.01.13 - 13th July 2005
2005-06-14 22:22:22 +04:00
================================
Fix pvmove segment splitting.
Abstract vg_validate.
Only make one attempt at contiguous allocation.
2005-06-22 19:31:29 +04:00
Fix lvm1 format metadata read.
Fix lvm1 format non-mirror lvcreate.
2005-06-14 22:22:22 +04:00
2005-06-14 21:59:57 +04:00
Version 2.01.12 - 14th June 2005
2005-06-13 18:53:07 +04:00
================================
Various allocation-related pvmove fixes.
2005-06-14 21:59:57 +04:00
Log an error if clvmd can't resolve a host name got from CCS.
Fix potential spin loop in clvmd.
2005-06-13 18:53:07 +04:00
2005-06-13 18:43:28 +04:00
Version 2.01.11 - 13th June 2005
================================
Added lvmconf.sh.
2005-06-13 17:13:15 +04:00
Use matchpathcon mode parameter.
Don't defer closing dead FDs in clvmd.
Remove hard-coded 64k text metadata writing restriction.
2005-06-06 22:16:33 +04:00
Make VG name restrictions consistent.
Introduce lvconvert. So far only removes mirror images.
2005-06-03 23:48:19 +04:00
Allow mirror images to be resized.
Allow mirror images to have more than one segment.
Centralise restrictions on LV names.
Always insert an intermediate layer for mirrors.
Suppress hidden LVs from reports unless --all is given.
Use square brackets for hidden LVs in reports.
2005-06-01 20:51:55 +04:00
Allow the creation of mirrors with contiguous extents.
Always perform sanity checks against metadata before committing it to disk.
Split lv_extend into two steps: choosing extents + allocation to LV(s).
Add mirror log region size to metadata.
Use list_iterate_items throughout and add list*back macros.
Introduce seg_ macros to access areas.
Add segtype_is_ macros.
Support tiny metadata areas for pool conversions.
Mirror activation handles disk log as well as core.
Activation code recognises mirror log dependency.
Add mirror_log and regionsize fields to report.
2005-05-24 21:38:26 +04:00
Fix non-orphan pvchange -u.
2005-05-19 20:48:51 +04:00
Fix vgmerge to handle duplicate LVIDs.
Move archiver code from tools into library.
vgscan/change/display/vgs automatically create metadata backups if needed.
Merge cloned allocation functions.
Fix contiguous allocation policy with linear.
2005-05-11 19:04:06 +04:00
Cope with missing format1 PVs again.
Remove lists of free PV segments.
Simplify pv_maps code and remove slow bitset algorithm.
Red-Hat-ify the clvmd rhel4 initscript.
2005-05-09 21:45:06 +04:00
%Zu->%zu
2005-05-09 21:02:52 +04:00
Fix loopfiles alias alloc & mem debugging.
2005-05-09 21:01:06 +04:00
Un-inline dbg_strdup.
lv_reduce tidying.
Remove some unnecessary parameters.
Introduce seg_is macros.
2005-05-09 20:41:48 +04:00
2005-05-03 21:43:47 +04:00
Version 2.01.10 - 3rd May 2005
==============================
Don't create backup and archive dirs till needed.
Reinstate full PV size when removing from VG.
Support loopfiles for testing.
2005-04-22 19:43:02 +04:00
Tidy lv_segment interface.
pv_segment support.
vgchange --physicalextentsize
2005-04-07 16:24:48 +04:00
Internal snapshot restructuring.
Remove unused internal non-persistent snapshot option.
Allow offline extension of snapshot volumes.
Move from 2-step to 3-step on-disk metadata commit.
Scan ramdisks too and allow non-O_DIRECT fallback.
2005-04-06 18:50:37 +04:00
Annotate, tidy and extend list.h.
2005-04-06 17:47:41 +04:00
Alignment tidying.
Make clvmd work around some "bugs" in gulm's node state notifications.
Tidy clvmd's SIGHUP handler
2005-04-04 19:46:14 +04:00
2005-04-04 19:41:51 +04:00
Version 2.01.09 - 4th April 2005
================================
Add --ignorelockingfailure to vgmknodes.
clvmd: Don't allow user operations to start until the lvm thread is fully up.
2005-04-01 20:03:00 +04:00
clvmd-gulm: set KEEPALIVE on sockets.
2005-03-22 18:12:37 +03:00
Version 2.01.08 - 22nd March 2005
=================================
Add clustered attribute so vgchange can identify clustered VGs w/o locking.
Improve detection of external changes affecting internal cache.
Add 'already in device cache' debug message.
2005-03-21 17:47:36 +03:00
Add -a to pvdisplay -C.
Avoid rmdir opendir error messsages when dir was already removed.
2005-03-21 17:16:16 +03:00
Tighten signal handlers.
2005-03-11 01:34:17 +03:00
Avoid some compiler warnings.
Additional rename failure error message.
2005-03-10 23:23:36 +03:00
read/write may be macros.
2005-03-11 02:04:42 +03:00
clvmd: don't take out lvm thread lock at startup, it only protects jobs list.
2005-03-10 23:22:40 +03:00
Version 2.01.07 - 8th March 2005
2005-03-04 01:31:01 +03:00
================================
Cope with new devices appearing by rescanning /dev if a uuid can't be found.
2005-03-08 16:39:39 +03:00
Remove DESTDIR from LVM_SHARED_PATH.
clvmd fixes: make FDs close-on-exec
gulm unlocks VG & orphan locks at startup in case they are stale
gulm now unlocks VG & orphan locks if client dies.
2005-03-04 01:31:01 +03:00
2005-03-04 01:26:34 +03:00
Version 2.01.06 - 1st March 2005
================================
Suppress 'open failed' error messages during scanning.
Option to suppress warnings of file descriptors left open.
Fix default value of metadatacopies in documentation (2->1).
Fix clvmd-gulm locking.
./configure --enable-debug now enables debugging code in clvmd.
Fix clvmd-gulm node up/down code so it actually works.
clvmd-gulm now releases locks when shut down.
2005-02-18 22:06:16 +03:00
Version 2.01.05 - 18th February 2005
====================================
Static binary invokes dynamic binary if appropriate.
Make clvmd config check a little more tolerant.
gulm clvmd can now cope with >1 message arriving in a TCP message.
2005-02-09 21:26:38 +03:00
Version 2.01.04 - 9th February 2005
2005-02-01 19:40:16 +03:00
===================================
Add fixed offset to imported pool minor numbers.
Update binary pathnames in clvmd_init_rhel4.
lvm2cmd.so should skip the check for open fds.
2005-02-02 17:31:48 +03:00
Remove unused -f from pvmove.
Gulm clvmd doesn't report "connection refused" errors.
clvmd does a basic config file sanity check at startup.
Fix potential thread shutdown race in clvmd.
2005-02-01 19:40:16 +03:00
2005-02-01 19:29:22 +03:00
Version 2.01.03 - 1st February 2005
2005-01-21 22:03:48 +03:00
===================================
2005-02-01 19:19:48 +03:00
More 64-bit display/report fixes.
More informative startup mesg if can't create /etc/lvm.
Fix snapshot device size bug (since 2.01.01).
clvmd announces startup and cluster connection in syslog.
Gulm clvmd doesn't hang trying to talk to a rebooted node.
Gulm clvmd doesn't print cman error on startup.
2005-01-21 22:03:48 +03:00
2005-01-21 21:49:06 +03:00
Version 2.01.02 - 21st January 2005
2005-01-19 21:56:01 +03:00
===================================
Update clvmd_init_rhel4: use lvm.static and don't load dlm.
2005-01-20 21:14:04 +03:00
Fix some size_t printing.
2005-01-20 21:13:17 +03:00
Fix 64 bit xlate consts.
Split out pool sptype_names to avoid unused const.
Always fail if random id generation fails.
2005-01-19 21:56:01 +03:00
Recognise gnbd devices.
Fix clvmd startup bug introduced in cman/gulm amalgamation.
Improve reporting of node-specific locking errors.
2005-01-19 21:56:01 +03:00
2005-01-19 21:10:09 +03:00
Version 2.01.01 - 19th January 2005
2005-01-17 23:45:05 +03:00
===================================
2005-01-19 21:10:09 +03:00
Fix clvmd lv_info_by_lvid open_count.
Store snapshot and origin sizes separately.
2005-01-19 20:01:18 +03:00
Update vgcreate man page.
2005-01-17 23:45:05 +03:00
2005-01-17 23:13:01 +03:00
Version 2.01.00 - 17th January 2005
===================================
2005-01-17 21:24:28 +03:00
Fix vgscan metadata auto-correction.
Only ask libdevmapper for open_count when we need it.
Adjust RHEL4 clvmd init script priority.
Enable building of CMAN & GULM versions of clvmd into a single binary
2005-01-07 23:06:49 +03:00
2005-01-07 22:50:54 +03:00
Version 2.00.33 - 7th January 2005
==================================
pvcreate wipes first 4 sectors unless given --zero n.
gulm clvmd now uses new ccsd key names.
gulm clvmd now doesn't ignore the first node in cluster.conf
Improve clvmd failure message if it's already running.
Allow user to kill clvmd during initialisation.
Fix off-by-one error in cluster_locking that could cause read hangs.
2004-12-23 00:47:31 +03:00
Version 2.00.32 - 22nd December 2004
2004-12-13 00:55:46 +03:00
====================================
Drop static/dl restriction for now.
2004-12-23 00:47:31 +03:00
Fix an error fprintf.
Fix vgdisplay -s. Breaks (undocumented) lvs/pvs/vgs -s instead for now.
Fix device reference counting on re-opens.
2004-12-21 21:29:46 +03:00
Ignore sysfs symlinks when DT_UNKNOWN.
2004-12-21 21:07:15 +03:00
Add clvmd init script for RHEL4.
Skip devices that are too small to be PVs.
Fix pvchange -x segfault with lvm2-format orphan.
Cope with empty msdos partition tables.
2004-12-21 19:24:19 +03:00
Add CONTRIBUTORS file.
2004-12-13 00:55:46 +03:00
2004-12-13 00:47:55 +03:00
Version 2.00.31 - 12th December 2004
2004-12-10 21:01:49 +03:00
====================================
2004-12-13 00:47:55 +03:00
Reopen RO file descriptors RW if necessary.
2004-12-10 21:01:49 +03:00
2004-12-10 19:02:35 +03:00
Version 2.00.30 - 10th December 2004
2004-11-28 01:56:58 +03:00
====================================
Additional device-handling debug messages.
Additional verbosity level -vvvv includes line numbers and backtraces.
Verbose messages now go to stderr not stdout.
Close any stray file descriptors before starting.
Refine partitionable checks for certain device types.
Allow devices/types to override built-ins.
2004-12-09 19:59:18 +03:00
Fix lvreduce man page .i->.I
2004-12-09 19:58:31 +03:00
Fix vgsplit man page title.
2004-12-09 19:57:37 +03:00
Fix clvmd man makefile.
2004-12-09 19:56:51 +03:00
Extend dev_open logging.
Make clvmd_fix_conf.sh UNDOable.
2004-11-28 01:56:58 +03:00
2004-11-28 01:07:41 +03:00
Version 2.00.29 - 27th November 2004
====================================
xlate compilation fix.
2004-11-28 00:37:54 +03:00
Version 2.00.28 - 27th November 2004
2004-11-26 21:07:17 +03:00
====================================
2004-11-28 00:37:54 +03:00
Fix partition table & md signature detection.
2004-11-26 21:07:17 +03:00
Minor configure/makefile tidy.
Export version.h from tools for clvmd.
2004-11-24 23:38:05 +03:00
Version 2.00.27 - 24th November 2004
2004-11-23 21:36:01 +03:00
====================================
2004-11-25 00:34:56 +03:00
Trap large memory allocation requests.
2004-11-24 23:38:05 +03:00
Fix to partition table detection code.
2004-11-24 23:36:52 +03:00
Improve filter debug mesgs.
2004-12-01 17:47:31 +03:00
Make clvmd_fix_conf.sh UNDOable
2004-11-23 21:36:01 +03:00
2004-11-23 20:47:19 +03:00
Version 2.00.26 - 23rd November 2004
====================================
2004-11-23 21:23:23 +03:00
Improve pool debugging stats.
2004-11-23 14:44:04 +03:00
Detect partition table signature.
pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.)
Separate out md superblock detection code.
2004-11-18 22:49:48 +03:00
Prevent snapshot origin resizing.
Improve a vgremove error message.
2004-11-12 19:02:08 +03:00
Update some man pages.
Allow y/n with -ae args (exclusive activation).
2004-10-15 19:53:18 +04:00
Fixes to lvcreate vgname parsing.
2004-10-11 19:59:23 +04:00
Fix dm_name string size calculation.
Improve clvmd error reporting during startup.
Make clvmd cope with large gaps in node numbers IDs.
Make clvmd initialisation cope better with debugging output.
2004-11-16 21:09:32 +03:00
Tidy clvmd socket callbacks so all work happens outside main loop.
clvmd -V now displays lvm version too.
Add optional gulm build for clvmd
2004-09-29 19:25:43 +04:00
2004-09-29 19:08:20 +04:00
Version 2.00.25 - 29th September 2004
2004-09-17 01:48:26 +04:00
=====================================
Fix return code from rm_link for vgmknodes.
Make clvmd LV hash table thread-safe.
2004-09-29 19:08:20 +04:00
Fix clvmd locking so it will lock out multiple users on the same node.
Fix clvmd VG locking to it can cope with multiple VG locks.
Remove spurious trailing dot in lvreduce man page.
Fix vgremove locking.
2004-09-17 01:48:26 +04:00
2004-09-17 00:56:18 +04:00
Version 2.00.24 - 16th September 2004
2004-09-15 19:59:19 +04:00
=====================================
Fix pool_empty so it really does empty the memory pool.
2004-09-16 22:40:56 +04:00
Rename old segtypes files to segtype.
Some fixes to memory debugging code.
Exclude internal commands formats & segtypes from install.
2004-09-15 19:59:19 +04:00
2004-09-15 19:32:21 +04:00
Version 2.00.23 - 15th September 2004
=====================================
Export dm name build & split functions.
2004-09-15 02:23:23 +04:00
Use O_NOATIME on devices if available.
Write log message when each segtype/format gets initialised.
2004-09-14 20:42:46 +04:00
New commands 'segtypes' and 'formats'.
Suppress pvmove abort message in test mode.
Improve pvcreate/remove device not found error message.
Allow pvmove to move data within the same PV.
2004-09-14 17:58:11 +04:00
Describe how pvmove works on man page.
Test for incompatible format/segtype combinations in lv_extend.
Fix lvchange example on man page.
2004-09-03 23:08:50 +04:00
Version 2.00.22 - 3rd September 2004
====================================
2004-09-02 18:38:46 +04:00
Fix /dev/vgname perms.
2004-09-02 18:16:54 +04:00
Restructure xlate.h.
Add clvmd man page.
2004-08-19 21:13:49 +04:00
2004-08-19 20:10:15 +04:00
Version 2.00.21 - 19th August 2004
==================================
Update cnxman-socket.h from cman.
2004-08-18 23:13:01 +04:00
Recognise iseries/vd devices.
2004-08-18 22:57:40 +04:00
Use 'make install_cluster' to install cluster extensions only.
2004-08-18 22:50:21 +04:00
Cope with DT_UNKNOWN in sysfs.
Fix extents_moved metadata size comment.
Remove duplicate line in pvremove help text.
Support variable mirror region size.
Support PE ranges in pvmove source PV.
Fixes to as-yet-unused LV segment splitting code.
Change alloc_areas to pe_ranges and allow suppression of availability checks.
2004-08-11 17:15:05 +04:00
Add dev_size column to pvs.
Add report columns for in-kernel device number.
2004-07-03 22:29:48 +04:00
2004-07-03 22:21:13 +04:00
Version 2.00.20 - 3 July 2004
=============================
More autoconf fixes.
Fix device number handling for 2.6 kernels.
2004-06-29 17:46:44 +04:00
Version 2.00.19 - 29 June 2004
2004-06-25 14:31:04 +04:00
==============================
Reduce severity of setlocale failure message.
Recognise argv[0] "initrd-lvm" (pld-linux).
Make -O2 configurable.
Added --disable-selinux to configure script.
LD_FLAGS->LDFLAGS & LD_DEPS->LDDEPS in configure script.
Add init_debug to clvmd.
2004-06-25 14:31:04 +04:00
2004-06-24 12:02:38 +04:00
Version 2.00.18 - 24 June 2004
==============================
Fix vgchange activation.
2004-06-24 12:02:38 +04:00
Add cluster support.
Version 2.00.17 - 20 June 2004
==============================
configure --enable-fsadm to try out fsadm. fsadm is not tested yet.
Display all filtered devices, not just PVs, with pvs -a.
2004-06-19 23:24:33 +04:00
Fix sync_dir() when no / in filename
vgcfgbackup -f accepts template with %s for VG name.
Extend hash functions to handle non-null-terminated data.
2004-06-16 21:13:41 +04:00
Add local activation support.
Tidy relative paths in makefile includes.
fsadm support for fsck and resizing - needs testing.
2004-06-07 23:10:21 +04:00
Add read-only GFS pool support.
Add lvm2create_initrd script from http://poochiereds.net/svn/lvm2/
2004-06-07 19:22:43 +04:00
Fix rounding of large diplayed sizes.
Suppress decimal point when using units of sectors/bytes.
Additional kernel target checks before pvmove & snapshot creation.
2004-06-01 22:33:50 +04:00
Add i2o_block.
2004-05-24 23:20:57 +04:00
Version 2.00.16 - 24 May 2004
2004-05-04 22:28:15 +04:00
=============================
2004-05-24 21:30:00 +04:00
Set area_count within alloc_lv_segment.
2004-05-24 19:58:50 +04:00
Remove error labels from lvresize.
2004-05-24 18:14:10 +04:00
Fix a pvs error path.
2004-05-24 17:44:10 +04:00
xxchange -ae for exclusive activation.
Don't return non-zero status if there aren't any volume groups.
Add --alloc argument to tools.
Rename allocation policies to contiguous, normal, anywhere, inherit.
nextfree becomes normal; anywhere isn't implemented yet.
LV inherits allocation policy from VG. Defaults: LV - inherit; VG - normal
Additional status character added to vgs to indicate allocation policy.
2004-05-19 01:57:24 +04:00
Add reset_fn to external_locking.
Ensure presence of virtual targets before attempting activating.
Attempt to fix resizing of snapshot origins.
Restructure lvresize, bringing it closer to lvcreate.
A quick sanity check on vg_disk struct when read in. More checks needed.
Only include visible LVs in active/open counts.
Add virtual segment types, zero and error. A large sparse device can be
constructed as a writeable snapshot of a large zero segment.
Add --type to lvcreate/resize.
Push lv_create & alloc policy up to tool level.
Fix pvdisplay return code.
2004-05-05 22:31:38 +04:00
Detect invalid LV names in arg lists.
2004-05-05 22:23:11 +04:00
Reporting uses line-at-a-time output.
lvm2 format sets unlimited_vols format flag.
2004-05-05 22:15:47 +04:00
Internal-only metadata flag support.
Basic checking for presence of device-mapper targets.
2004-05-05 21:56:20 +04:00
Separate out polldaemon.
2004-05-05 16:03:07 +04:00
Revise internal locking semantics.
Move find_pv_by_name to library.
Rename move->copy.
Add devices to segments report.
2004-05-05 01:25:57 +04:00
Begin separating out segment code. There's a lot of change here.
Compress any (obsolete) long LVM1 pvids encountered.
2004-05-04 22:28:15 +04:00
Support for tagged config files.
Don't abort operations if selinux present but disabled.
Fix typo in configure which left HAVE_LIBDL unset.
Version 2.00.15 - 19 Apr 2004
=============================
configure --with-owner= --with-group= to avoid -o and -g args to 'install'
2004-04-16 22:43:29 +04:00
Version 2.00.14 - 16 Apr 2004
=============================
Use 64-bit file functions by default.
Version 2.00.13 - 16 Apr 2004
=============================
Set devices/md_component_detection = 1 to ignore devices containing md
superblocks. [Luca Berra]
Ignore error setting selinux file context if fs doesn't support it.
2004-04-15 00:09:25 +04:00
Version 2.00.12 - 14 Apr 2004
=============================
2004-04-14 22:31:35 +04:00
Install a default lvm.conf into /etc/lvm if there isn't one already.
Allow different installation dir for lvm.static (configure --staticdir=)
Fix inverted selinux error check.
Recognise power2 in /proc/devices.
Fix counting in lvs_in_vg_opened. [It ignored devices open more than once.]
2004-04-08 21:14:00 +04:00
Version 2.00.11 - 8 Apr 2004
============================
Set fallback_to_lvm1 in lvm.conf (or configure --enable-lvm1_fallback)
to run lvm1 binaries if running a 2.4 kernel without device-mapper.
2004-04-07 22:12:51 +04:00
Version 2.00.10 - 7 Apr 2004
2004-04-06 19:17:53 +04:00
============================
More fixes for static build.
2004-04-07 22:12:51 +04:00
Add basic selinux support.
Fix sysfs detection.
2004-04-06 19:17:53 +04:00
2004-04-01 00:14:02 +04:00
Version 2.00.09 - 31 Mar 2004
=============================
2004-03-31 00:33:26 +04:00
Update copyright notices for Red Hat.
Fix vgmknodes to remove dud /dev/mapper entries. (libdevmapper update reqd).
Add LVM1-style colon output to vgdisplay.
lvchange --refresh to reload active LVs.
Add string display to memory leak dump.
Add locking flags & memlock option.
Add list_versions to library.
Ignore open hidden LVs when checking if deactivation is OK.
Suppress move percentage when device inactive.
Add lv_info_by_lvid.
Various tidy-ups to the build process.
Rebaseline internal verbose level.
Add --nolocking option for read operations if locking is failing.
Add option to compile into a library.
When compiled without libdevmapper, only print warning message once.
Fix lvreduce PV extent calculations.
Fix DESTDIR to work with configure path overrides.
Always use / as config file separator & rename internal config file variables.
Add support for tagging PV/VG/LVs and hosts.
Fix rare bug in recognition of long cmdline argument forms.
Add basic internationalisation infrastructure.
Don't recurse symlinked dirs such as /dev/fd on 2.6 kernels.
Update autoconf files.
Add sysfs block device filtering for 2.6 kernels.
Update refs for move to sources.redhat.com.
2003-11-15 02:46:49 +03:00
Friday 14th November 2003
=========================
Some bug fixes & minor enhancements, including:
Backwards compatibility with LVM1 metadata improved.
Missing man pages written.
Tool error codes made more consistent.
vgmknodes written.
O_DIRECT can be turned off if it doesn't work in your kernel.
2003-11-21 22:53:05 +03:00
dumpconfig to display the active configuration file
2003-11-15 02:46:49 +03:00
You need to update libdevmapper before using 'vgmknodes' or 'vgscan --mknodes'.
If your root filesystem is on an LV, you should run one of those two
commands to fix up the special files in /dev in your real root filesystem
2003-11-15 02:46:49 +03:00
after finishing with your initrd. Also, remember you can use
'vgchange --ignorelockingfailure' on your initrd if the tool fails because
it can't write a lock file to a read-only filesystem.
2003-04-30 20:49:27 +04:00
Wednesday 30th April 2003
=========================
A pvmove implementation is now available for the new metadata format.
When running a command that allocates space (e.g. lvcreate), you can now
restrict not only which disk(s) may be used but also the Physical Extents
2003-04-30 20:49:27 +04:00
on those disks. e.g. lvcreate -L 10 vg1 /dev/hda6:1000-2000:3000-4000
Monday 18th November 2002
2002-11-18 17:04:08 +03:00
========================
The new format of LVM metadata is ready for you to test!
We expect it to be more efficient and more robust than the original format.
It's more compact and supports transactional changes and replication.
Should things go wrong on a system, it's human-readable (and editable).
Please report any problems you find to the mailing list,
2002-11-18 17:04:08 +03:00
linux-lvm@sistina.com. The software has NOT yet been thoroughly
tested and so quite possibly there'll still be some bugs in it.
Be aware of the disclaimer in the COPYING file.
While testing, we recommend turning logging on in the configuration file
2002-11-18 17:04:08 +03:00
to provide us with diagnostic information:
log {
file="/tmp/lvm2.log"
2003-04-30 20:49:27 +04:00
level=7
2003-07-18 04:41:04 +04:00
activation=1
2002-11-18 17:04:08 +03:00
}
You should schedule regular backups of your configuration file and
metadata backups and archives (normally kept under /etc/lvm).
Please read docs/example.conf and "man lvm.conf" to find out more about
2002-11-18 17:04:08 +03:00
the configuration file.
To convert an existing volume group called vg1 to the new format using
the default settings, use "vgconvert -M2 vg1". See "man vgconvert".
-M (or --metadatatype in its long form) is a new flag to indicate which
format of metadata the command should use for anything it creates.
Currently, the valid types are "lvm1" and "lvm2" and they can be
abbreviated to "1" and "2" respectively. The default value for this
flag can be changed in the global section in the config file.
Backwards-compatible support for the original LVM1 metadata format is
maintained, but it can be moved into a shared library or removed
completely with configure's --with-lvm1 option.
Under LVM2, the basic unit of metadata is the volume group. Different
volume groups can use different formats of metadata - vg1 could use
the original LVM1 format while vg2 used the new format - but you can't
mix formats within a volume group. So to add a PV to an LVM2-format
volume group you must run "pvcreate -M2" on it, followed by "vgextend".
With LVM2-format metadata, lvextend will let you specify striping
parameters. So an LV could consist of two or more "segments" - the
first segment could have 3 stripes while the second segment has just 2.
LVM2 maintains a backup of the current metadata for each volume group
in /etc/lvm/backup, and puts copies of previous versions in
/etc/lvm/archive. "vgcfgbackup" and "vgcfgrestore" can be used to
create and restore from these files. If you fully understand what
2002-11-18 17:04:08 +03:00
you're doing, metadata can be changed by editing a copy of a current
backup file and using vgcfgrestore to reload it.
Please read the pvcreate man page for more information on the new
format for metadata.
All tools that can change things have a --test flag which can be used
to check the effect of a set of cmdline args without really making the
changes.
What's not finished?
====================
The internal cache. If you turn on debugging output you'll see lots of
repeated messages, many of which will eventually get optimised out.
2002-11-18 17:04:08 +03:00
--test sometimes causes a command to fail (e.g. vgconvert --test) even
though the real command would work: again, fixing this is waiting for
2002-11-18 17:04:08 +03:00
the work on the cache.
Several of the tools do not yet contain the logic to handle full
recovery: combinations of pvcreate and vgcfgrestore may sometimes be
needed to restore metadata if a tool gets interrupted or crashes or
finds something unexpected. This applies particularly to tools that
work on more than one volume group at once (e.g. vgsplit).
Display output. Some metadata information cannot yet be displayed.
Recovery tools to salvage "lost" metadata directly from the disks:
but we hope the new format will mean such tools are hardly ever needed!