summaryrefslogtreecommitdiffstats
path: root/tools/vgsplit.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor vgsplit cleanups.Dave Wysochanski2008-04-101-3/+2
|
* Add _move_one_lv() helper function for vgsplit.Dave Wysochanski2008-04-101-15/+25
|
* Fix vgsplit to only move hidden 'snapshotN' LVs when necessary.Dave Wysochanski2008-04-091-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 Wysochanski2008-04-091-26/+86
|
* Fix vgsplit error display - fully remove log_suppress.Dave Wysochanski2008-04-081-2/+0
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Fix vgsplit error paths to release vg_to lock.Dave Wysochanski2008-04-081-0/+2
|
* Fix vgsplit locking and remove unneeded error messages when split into new VG.Dave Wysochanski2008-04-021-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 Wysochanski2008-04-021-0/+4
|
* Use list_move() in applicable places.Dave Wysochanski2008-03-261-2/+1
|
* Refactor _move_pv() in vgsplit.Dave Wysochanski2008-02-291-12/+9
| | | | Should be no functional change.
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-4/+4
|
* Fix vgsplit test modeDave Wysochanski2008-01-221-1/+2
|
* Fix vgsplit - print different message on successful split of existing / new vgDave Wysochanski2008-01-221-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 destinationDave Wysochanski2008-01-221-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 Wysochanski2008-01-161-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 Wysochanski2008-01-151-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 Wysochanski2008-01-141-3/+11
|
* Allow vgsplit into existing vg.Dave Wysochanski2008-01-111-17/+17
| | | | Add vgsplit tests to validate operation for new and existing vg destinations.
* Refactor vgsplit for accepting existing vg as destinationDave Wysochanski2008-01-111-7/+8
|
* Fix --addtag to drop @ prefix from nameAlasdair Kergon2007-11-151-0/+1
|
* another vg_lock_and_readAlasdair Kergon2007-11-151-20/+7
|
* Convert some vg_reads into vg_lock_and_readsAlasdair Kergon2007-11-151-1/+1
|
* Fix orphan-related locking in pvdisplay and pvs.Alasdair Kergon2007-11-021-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 Wysochanski2007-10-121-1/+1
| | | | Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
* Clean up numerous compiler warnings that crept in recently.Alasdair Kergon2007-08-221-3/+3
| | | | Remove several unused parameters from _allocate().
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Fix error introduced with previous checkinDave Wysochanski2007-07-231-1/+1
|
* Add CORRECT_INCONSISTENT and FAIL_INCONSISTENT flags to vg_lock_and_readDave Wysochanski2007-07-231-1/+2
|
* Add vg_lock_and_read() external library function.Dave Wysochanski2007-07-231-16/+4
|
* Fix vgsplit if splitting all PVs from VG.Milan Broz2007-06-281-4/+6
|
* Remove get_ prefix from get_pv_* functionsDave Wysochanski2007-06-151-5/+5
|
* Convert pv->dev to get_pv_devDave Wysochanski2007-06-131-1/+1
|
* Convert pv->pe_count to get_pv_pe_countDave Wysochanski2007-06-131-4/+4
|
* Convert pv->pe_alloc_count to get_pv_pe_alloc_countDave Wysochanski2007-06-131-2/+2
|
* Add vg_check_status to consolidate vg status flags checks and error messages.Dave Wysochanski2007-06-061-21/+2
|
* Fix and clarify vgsplit error messages.Milan Broz2007-05-151-7/+11
|
* Fix vgsplit for lvm1 format (set and validate VG name in PVs metadata).Milan Broz2007-03-231-5/+13
| | | | Split metadata areas in vgsplit properly.
* Add a few missing pieces of vgname command line validation.Alasdair Kergon2007-03-091-2/+8
|
* Fix vgsplit to handle mirrors.Alasdair Kergon2007-01-291-0/+49
| | | | Reorder fields in reporting field definitions.
* Free memory in _raw_read_mda_header() error paths.Alasdair Kergon2007-01-091-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 Kergon2006-10-131-0/+9
|
* When using local file locking, skip clustered VGs.Alasdair Kergon2006-09-021-0/+7
| | | | Add fallback_to_clustered_locking and fallback_to_local_locking parameters.
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-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 Kergon2006-04-121-3/+3
| | | | Add vgid to struct physical_volume and pass with vg_name to some functions.
* Make VG name restrictions consistent.Alasdair Kergon2005-06-061-0/+6
|
* Basic support for mirrors.Alasdair Kergon2005-06-011-2/+2
|
* Reinstate full PV size when removing from VG.Alasdair Kergon2005-05-031-1/+1
| | | | | Support loopfiles for testing. Complete the pv_segment support.
* Internal snapshot code restructuring.Alasdair Kergon2005-04-071-25/+41
|
* Rename allocation policies; add --alloc to cmdline; LV inherits from VG.Alasdair Kergon2004-05-181-1/+2
|
* Update copyright notices.Alasdair Kergon2004-03-301-13/+8
|