Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Minor vgsplit cleanups. | Dave Wysochanski | 2008-04-10 | 1 | -3/+2 | |
| | ||||||
* | Add _move_one_lv() helper function for vgsplit. | Dave Wysochanski | 2008-04-10 | 1 | -15/+25 | |
| | ||||||
* | Fix vgsplit to only move hidden 'snapshotN' LVs when necessary. | Dave Wysochanski | 2008-04-09 | 1 | -6/+16 | |
| | | | | | | | | | | | | | | This bug has been around for a long time as far as I can tell. Without this fix, a vgsplit would unconditionally move the 'hidden/internal' snapshot LVs, and result in corrupted metadata in the following case: vg1: contains lv1, lv1snap, both on pvset1 vg1: contains lv2, on pvset2 "vgsplit vg1 vg2 pvset2" would result in "snapshot0" hidden LV being moved to vg2, and the origin and cow being left in vg1. The tools detect the corruption in vg2, but not in vg1. | |||||
* | Update vgsplit to take "-n LogicalVolumeName" on the commandline. | Dave Wysochanski | 2008-04-09 | 1 | -26/+86 | |
| | ||||||
* | Fix vgsplit error display - fully remove log_suppress. | Dave Wysochanski | 2008-04-08 | 1 | -2/+0 | |
| | | | | Author: Dave Wysochanski <dwysocha@redhat.com> | |||||
* | Fix vgsplit error paths to release vg_to lock. | Dave Wysochanski | 2008-04-08 | 1 | -0/+2 | |
| | ||||||
* | Fix vgsplit locking and remove unneeded error messages when split into new VG. | Dave Wysochanski | 2008-04-02 | 1 | -10/+27 | |
| | | | | | | | | | | | | | | | | | | | | | When vg_lock_and_read() calls were added, they were done so incorrectly for the destination VG (vg_to). This resulted in the VG lock not obtained when a new VG was the destination (vg_lock_and_read() would fail in the vg_read() clause, which would then release the lock before returning NULL), and could result in corrupted destination VG. The fix was to put back the original lock_vol() and vg_read() calls for 'vg_to'. The failure of vg_read() indicates "vg does not exist", and we key off that to determine whether we are dealing with a new or existing VG as the destination. The first two error messages were also the result of the incorrect vg_lock_and_read() calls: Volume group "new" not found cluster request failed: Invalid argument New volume group "new" successfully split from "vg" Fixes https://bugzilla.redhat.com/show_bug.cgi?id=438249 | |||||
* | Suppress "Volume group not found" message when vgsplit of new VG. | Dave Wysochanski | 2008-04-02 | 1 | -0/+4 | |
| | ||||||
* | Use list_move() in applicable places. | Dave Wysochanski | 2008-03-26 | 1 | -2/+1 | |
| | ||||||
* | Refactor _move_pv() in vgsplit. | Dave Wysochanski | 2008-02-29 | 1 | -12/+9 | |
| | | | | Should be no functional change. | |||||
* | Some whitespace tidy-ups. | Alasdair Kergon | 2008-01-30 | 1 | -4/+4 | |
| | ||||||
* | Fix vgsplit test mode | Dave Wysochanski | 2008-01-22 | 1 | -1/+2 | |
| | ||||||
* | Fix vgsplit - print different message on successful split of existing / new vg | Dave Wysochanski | 2008-01-22 | 1 | -3/+11 | |
| | | | | | Fix vgsplit - fix a couple error paths that forgot to call unlock_vg Update vgsplit test cases | |||||
* | Fix vgsplit - print error if vgcreate option given w/existing vg destination | Dave Wysochanski | 2008-01-22 | 1 | -1/+16 | |
| | | | | | | Fix vgsplit - reject split if metadata types or clustered attributes differ Fix vgsplit - remove physicalextentsize option Add vgsplit test cases | |||||
* | Create vgs_are_compatible() fn to check whether vgs are compatible for merging. | Dave Wysochanski | 2008-01-16 | 1 | -3/+2 | |
| | | | | | | | | | | | | | | | Add new vgmerge and vgsplit tests to check rejection of incompatible vgs. Cleanup comments. Bugzilla: bz251992 --- lib/metadata/metadata-exported.h | 3 + lib/metadata/metadata.c | 89 +++++++++++++++++++++++++++++++++- test/t-vgmerge-usage.sh | 101 +++++++++++++++++++++++++++++++++++++++ test/t-vgsplit-operation.sh | 20 +++++++ tools/vgmerge.c | 69 -------------------------- tools/vgsplit.c | 5 - 6 files changed, 215 insertions(+), 72 deletions(-) | |||||
* | Move more parameter validation into the library. | Dave Wysochanski | 2008-01-15 | 1 | -7/+14 | |
| | | | | | | | | | | | | | | | Update vgrename to call validate_vg_rename_params(). Fix vgcreate and vgsplit default arguments by adding defaults parameter to fill_vg_create_params(). Add t-vgrename-usage.sh test. Bugzilla: bz251992 --- tools/toollib.c | 32 ++++++++------------------------ tools/toollib.h | 5 ++--- tools/vgcreate.c | 35 +++++++++++++++++++++-------------- tools/vgrename.c | 35 ++++++----------------------------- tools/vgsplit.c | 21 ++++++++++++++------- 5 files changed, 51 insertions(+), 77 deletions(-) | |||||
* | Allow vgcreate options as input to vgsplit when new vg is split destination. | Dave Wysochanski | 2008-01-14 | 1 | -3/+11 | |
| | ||||||
* | Allow vgsplit into existing vg. | Dave Wysochanski | 2008-01-11 | 1 | -17/+17 | |
| | | | | Add vgsplit tests to validate operation for new and existing vg destinations. | |||||
* | Refactor vgsplit for accepting existing vg as destination | Dave Wysochanski | 2008-01-11 | 1 | -7/+8 | |
| | ||||||
* | Fix --addtag to drop @ prefix from name | Alasdair Kergon | 2007-11-15 | 1 | -0/+1 | |
| | ||||||
* | another vg_lock_and_read | Alasdair Kergon | 2007-11-15 | 1 | -20/+7 | |
| | ||||||
* | Convert some vg_reads into vg_lock_and_reads | Alasdair Kergon | 2007-11-15 | 1 | -1/+1 | |
| | ||||||
* | Fix orphan-related locking in pvdisplay and pvs. | Alasdair Kergon | 2007-11-02 | 1 | -12/+7 | |
| | | | | | | | | 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. | |||||
* | Add pv_dev_name() to access PV device name. | Dave Wysochanski | 2007-10-12 | 1 | -1/+1 | |
| | | | | Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com> | |||||
* | Clean up numerous compiler warnings that crept in recently. | Alasdair Kergon | 2007-08-22 | 1 | -3/+3 | |
| | | | | Remove several unused parameters from _allocate(). | |||||
* | Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. | Alasdair Kergon | 2007-08-20 | 1 | -3/+3 | |
| | ||||||
* | Fix error introduced with previous checkin | Dave Wysochanski | 2007-07-23 | 1 | -1/+1 | |
| | ||||||
* | Add CORRECT_INCONSISTENT and FAIL_INCONSISTENT flags to vg_lock_and_read | Dave Wysochanski | 2007-07-23 | 1 | -1/+2 | |
| | ||||||
* | Add vg_lock_and_read() external library function. | Dave Wysochanski | 2007-07-23 | 1 | -16/+4 | |
| | ||||||
* | Fix vgsplit if splitting all PVs from VG. | Milan Broz | 2007-06-28 | 1 | -4/+6 | |
| | ||||||
* | Remove get_ prefix from get_pv_* functions | Dave Wysochanski | 2007-06-15 | 1 | -5/+5 | |
| | ||||||
* | Convert pv->dev to get_pv_dev | Dave Wysochanski | 2007-06-13 | 1 | -1/+1 | |
| | ||||||
* | Convert pv->pe_count to get_pv_pe_count | Dave Wysochanski | 2007-06-13 | 1 | -4/+4 | |
| | ||||||
* | Convert pv->pe_alloc_count to get_pv_pe_alloc_count | Dave Wysochanski | 2007-06-13 | 1 | -2/+2 | |
| | ||||||
* | Add vg_check_status to consolidate vg status flags checks and error messages. | Dave Wysochanski | 2007-06-06 | 1 | -21/+2 | |
| | ||||||
* | Fix and clarify vgsplit error messages. | Milan Broz | 2007-05-15 | 1 | -7/+11 | |
| | ||||||
* | Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata). | Milan Broz | 2007-03-23 | 1 | -5/+13 | |
| | | | | Split metadata areas in vgsplit properly. | |||||
* | Add a few missing pieces of vgname command line validation. | Alasdair Kergon | 2007-03-09 | 1 | -2/+8 | |
| | ||||||
* | Fix vgsplit to handle mirrors. | Alasdair Kergon | 2007-01-29 | 1 | -0/+49 | |
| | | | | Reorder fields in reporting field definitions. | |||||
* | Free memory in _raw_read_mda_header() error paths. | Alasdair Kergon | 2007-01-09 | 1 | -3/+3 | |
| | | | | | Fix ambiguous vgsplit error message for split LV. Fix lvextend man page typo. | |||||
* | Propagate clustered flag in vgsplit and require resizeable flag. | Alasdair Kergon | 2006-10-13 | 1 | -0/+9 | |
| | ||||||
* | When using local file locking, skip clustered VGs. | Alasdair Kergon | 2006-09-02 | 1 | -0/+7 | |
| | | | | Add fallback_to_clustered_locking and fallback_to_local_locking parameters. | |||||
* | Make SIZE_SHORT the default for display_size(). | Alasdair Kergon | 2006-05-09 | 1 | -1/+1 | |
| | | | | | | | 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. | |||||
* | Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct. | Alasdair Kergon | 2006-04-12 | 1 | -3/+3 | |
| | | | | Add vgid to struct physical_volume and pass with vg_name to some functions. | |||||
* | Make VG name restrictions consistent. | Alasdair Kergon | 2005-06-06 | 1 | -0/+6 | |
| | ||||||
* | Basic support for mirrors. | Alasdair Kergon | 2005-06-01 | 1 | -2/+2 | |
| | ||||||
* | Reinstate full PV size when removing from VG. | Alasdair Kergon | 2005-05-03 | 1 | -1/+1 | |
| | | | | | Support loopfiles for testing. Complete the pv_segment support. | |||||
* | Internal snapshot code restructuring. | Alasdair Kergon | 2005-04-07 | 1 | -25/+41 | |
| | ||||||
* | Rename allocation policies; add --alloc to cmdline; LV inherits from VG. | Alasdair Kergon | 2004-05-18 | 1 | -1/+2 | |
| | ||||||
* | Update copyright notices. | Alasdair Kergon | 2004-03-30 | 1 | -13/+8 | |
| |