]>
sourceware.org Git - lvm2.git/log
Dave Wysochanski [Fri, 11 Apr 2008 14:06:16 +0000 (14:06 +0000)]
Fix vgsplit and vgmerge tests for updated lv counting.
Dave Wysochanski [Thu, 10 Apr 2008 21:38:52 +0000 (21:38 +0000)]
Update vgsplit test to verify loosening of active LV restriction.
This and prior 2 commits resolve Red Hat bz 252041:
Ability to vgsplit an active Volume Group where the split involves only inactive LVs
Dave Wysochanski [Thu, 10 Apr 2008 21:34:53 +0000 (21:34 +0000)]
Update vgsplit to only restrict split with active LVs involved in split.
Existing code will reject a vgsplit if any LVs in the source VG are active.
This patch updates vgsplit to only check LVs involved in the split.
Dave Wysochanski [Thu, 10 Apr 2008 21:34:18 +0000 (21:34 +0000)]
Add lv_is_active() to determine whether an lv is active.
Handles non-clustered as well as clustered. For clustered,
the best we can do is try exclusive local activation. If this
succeeds, we know it is not active elsewhere in the cluster.
Otherwise, we assume it is active elsewhere.
Alasdair Kergon [Thu, 10 Apr 2008 20:07:19 +0000 (20:07 +0000)]
post-release
Alasdair Kergon [Thu, 10 Apr 2008 20:02:04 +0000 (20:02 +0000)]
.
Alasdair Kergon [Thu, 10 Apr 2008 19:59:43 +0000 (19:59 +0000)]
more pre-release cleanup
Alasdair Kergon [Thu, 10 Apr 2008 19:16:35 +0000 (19:16 +0000)]
fix 3rd copy
Alasdair Kergon [Thu, 10 Apr 2008 19:14:27 +0000 (19:14 +0000)]
make list_move consistent with other list fns
Dave Wysochanski [Thu, 10 Apr 2008 18:55:40 +0000 (18:55 +0000)]
Update vgsplit tests that count LVs for adjusted LV counting.
Alasdair Kergon [Thu, 10 Apr 2008 18:53:36 +0000 (18:53 +0000)]
.
Alasdair Kergon [Thu, 10 Apr 2008 18:19:49 +0000 (18:19 +0000)]
pre-release
Alasdair Kergon [Thu, 10 Apr 2008 18:04:31 +0000 (18:04 +0000)]
post-release
Alasdair Kergon [Thu, 10 Apr 2008 18:00:45 +0000 (18:00 +0000)]
pre-release
Alasdair Kergon [Thu, 10 Apr 2008 17:19:02 +0000 (17:19 +0000)]
Fix vgdisplay 'Cur LV' field to match lvdisplay output.
Fix lv_count report field to exclude hidden LVs.
Dave Wysochanski [Thu, 10 Apr 2008 17:09:32 +0000 (17:09 +0000)]
Add vg_is_clustered() helper function.
Should be no functional change.
Dave Wysochanski [Thu, 10 Apr 2008 02:15:56 +0000 (02:15 +0000)]
Minor vgsplit cleanups.
Dave Wysochanski [Thu, 10 Apr 2008 01:30:22 +0000 (01:30 +0000)]
Add _move_one_lv() helper function for vgsplit.
Dave Wysochanski [Thu, 10 Apr 2008 01:06:48 +0000 (01:06 +0000)]
Fix lvm tool exit code display in some tests.
Dave Wysochanski [Wed, 9 Apr 2008 21:10:13 +0000 (21:10 +0000)]
Add vgsplit tests to verify mirror is not moved unnecessarily.
Dave Wysochanski [Wed, 9 Apr 2008 20:56:06 +0000 (20:56 +0000)]
Fix vgsplit to only move hidden 'snapshotN' LVs when necessary.
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.
Dave Wysochanski [Wed, 9 Apr 2008 14:47:34 +0000 (14:47 +0000)]
Update vgsplit tests for lvnames on the cmdline.
Dave Wysochanski [Wed, 9 Apr 2008 14:39:55 +0000 (14:39 +0000)]
Update vgsplit man page to reflect lvnames on cmdline.
Dave Wysochanski [Wed, 9 Apr 2008 13:47:13 +0000 (13:47 +0000)]
Update vgsplit to take "-n LogicalVolumeName" on the commandline.
Alasdair Kergon [Wed, 9 Apr 2008 12:56:34 +0000 (12:56 +0000)]
Use clustered mirror log with pvmove in clustered VGs, if available.
Alasdair Kergon [Wed, 9 Apr 2008 12:45:32 +0000 (12:45 +0000)]
Fix some pvmove error status codes.
Dave Wysochanski [Tue, 8 Apr 2008 22:02:16 +0000 (22:02 +0000)]
*** empty log message ***
Dave Wysochanski [Tue, 8 Apr 2008 21:47:54 +0000 (21:47 +0000)]
Fix vgsplit error display - fully remove log_suppress.
Author: Dave Wysochanski <dwysocha@redhat.com>
Dave Wysochanski [Tue, 8 Apr 2008 21:38:09 +0000 (21:38 +0000)]
Fix vgsplit error paths to release vg_to lock.
Alasdair Kergon [Tue, 8 Apr 2008 14:22:13 +0000 (14:22 +0000)]
Indicate whether or not VG is clustered in vgcreate log message.
Mention default --clustered setting in vgcreate man page.
Christine Caulfield [Tue, 8 Apr 2008 13:03:13 +0000 (13:03 +0000)]
Add config file overrides to clvmd when it reads the LVs list so that
config items 'command_names' and 'prefix' don't prevent it working.
Alasdair Kergon [Tue, 8 Apr 2008 12:49:21 +0000 (12:49 +0000)]
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.
Alasdair Kergon [Mon, 7 Apr 2008 22:12:37 +0000 (22:12 +0000)]
create fids for internal orphan VGs
Milan Broz [Mon, 7 Apr 2008 19:17:29 +0000 (19:17 +0000)]
Update lvmcache VG lock state for all locking types now.
Milan Broz [Mon, 7 Apr 2008 13:53:26 +0000 (13:53 +0000)]
Fix output if overriding command_names on cmdline.
Milan Broz [Mon, 7 Apr 2008 10:23:47 +0000 (10:23 +0000)]
Add detection of clustered mirror log capability.
Currently only check for kernel module presence.
Dave Wysochanski [Fri, 4 Apr 2008 15:41:20 +0000 (15:41 +0000)]
Add check to vg_commit() to ensure lock is held before writing new VG metadata.
Milan Broz [Fri, 4 Apr 2008 11:59:31 +0000 (11:59 +0000)]
Add validation of LV name to pvmove -n.
Christine Caulfield [Fri, 4 Apr 2008 08:53:47 +0000 (08:53 +0000)]
If lvm.conf was touched, clvmd attempted to update the toolcontext
but only did half of the job. It now shares the do_refresh_cache()
function that vgscan invokes.
Alasdair Kergon [Thu, 3 Apr 2008 18:56:40 +0000 (18:56 +0000)]
Add some basic internal VG lock validation.
Alasdair Kergon [Thu, 3 Apr 2008 14:40:34 +0000 (14:40 +0000)]
.
Alasdair Kergon [Thu, 3 Apr 2008 14:32:31 +0000 (14:32 +0000)]
.
Alasdair Kergon [Thu, 3 Apr 2008 10:29:00 +0000 (10:29 +0000)]
fix vd->virtblk
Alasdair Kergon [Wed, 2 Apr 2008 21:31:14 +0000 (21:31 +0000)]
enable vg metadata cache by default
Alasdair Kergon [Wed, 2 Apr 2008 21:23:39 +0000 (21:23 +0000)]
Add per-command flags to control which commands use the VG metadata cache.
Dave Wysochanski [Wed, 2 Apr 2008 19:30:12 +0000 (19:30 +0000)]
Fix vgsplit locking and remove unneeded error messages when split into new VG.
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
Dave Wysochanski [Wed, 2 Apr 2008 13:08:49 +0000 (13:08 +0000)]
Suppress "Volume group not found" message when vgsplit of new VG.
Dave Wysochanski [Wed, 2 Apr 2008 12:17:30 +0000 (12:17 +0000)]
Fix lvresize to dump stack if vg_lock_and_read() fails.
Necessary because vg_lock_and_read() may fail silently if the vg_check_status() call fails.
Also add lvresize tests.
Alasdair Kergon [Tue, 1 Apr 2008 22:40:13 +0000 (22:40 +0000)]
Cache VG metadata internally while VG lock is held.
Dave Wysochanski [Tue, 1 Apr 2008 22:15:16 +0000 (22:15 +0000)]
Fix redundant lvresize message if vg doesn't exist.
BEFORE:
tools/lvm lvresize -l +4 vg22/lv1linear
Volume group "vg22" not found
Volume group vg22 doesn't exist
AFTER:
tools/lvm lvresize -l +4 vg22/lv1linear
Volume group "vg22" not found
Christine Caulfield [Tue, 1 Apr 2008 15:01:30 +0000 (15:01 +0000)]
Fix another allocation bug with clvmd and large node IDs.`
Dave Wysochanski [Fri, 28 Mar 2008 19:08:23 +0000 (19:08 +0000)]
Add find_lv_in_lv_list() and find_pv_in_pv_list().
Update _add_pvs() to call find_pv_in_pv_list().
Dave Wysochanski [Fri, 28 Mar 2008 18:02:22 +0000 (18:02 +0000)]
Enhance test debugging by updating verbose mode of check_*_field_ functions.
Author: Dave Wysochanski <dwysocha@redhat.com>
Christine Caulfield [Fri, 28 Mar 2008 12:58:09 +0000 (12:58 +0000)]
Fix a couple of uninitialised variables. The newfd one could cause
some obscure hangs.
Dave Wysochanski [Wed, 26 Mar 2008 18:03:35 +0000 (18:03 +0000)]
Add vgmerge tests.
Dave Wysochanski [Wed, 26 Mar 2008 17:26:32 +0000 (17:26 +0000)]
Use list_move() in applicable places.
Dave Wysochanski [Wed, 26 Mar 2008 16:48:10 +0000 (16:48 +0000)]
Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
Dave Wysochanski [Wed, 26 Mar 2008 16:20:54 +0000 (16:20 +0000)]
Add list_move() support function for list manipulation.
Dave Wysochanski [Tue, 25 Mar 2008 15:24:59 +0000 (15:24 +0000)]
Add 'is_reserved_lvname()' helper function.
Very similar to apply_lvname_restrictions but without the error messages.
Alasdair Kergon [Tue, 25 Mar 2008 12:37:48 +0000 (12:37 +0000)]
Correct command name in lvmdiskscan man page.
Christine Caulfield [Tue, 25 Mar 2008 10:41:59 +0000 (10:41 +0000)]
When reallocating the node IDs array, make it bigger rather than smaller!
Dave Wysochanski [Sun, 23 Mar 2008 15:40:35 +0000 (15:40 +0000)]
Add vgsplit tests to verfy attributes of new VG match source VG.
Author: Dave Wysochanski <dwysocha@redhat.com>
Dave Wysochanski [Fri, 21 Mar 2008 22:00:29 +0000 (22:00 +0000)]
Fixup vgsplit tests in preparation for vgsplit changes.
Dave Wysochanski [Fri, 21 Mar 2008 21:14:38 +0000 (21:14 +0000)]
Update vgsplit tests to execute twice (existing and new VG as destination).
Dave Wysochanski [Thu, 20 Mar 2008 18:34:29 +0000 (18:34 +0000)]
Add LV and VG name restrictions to the lvm man page.
Original patch by: Gerrard Geldenhuis <Gerrard.Geldenhuis@datacash.com>
Alasdair Kergon [Mon, 17 Mar 2008 16:51:31 +0000 (16:51 +0000)]
preparation for vg cache
Christine Caulfield [Mon, 17 Mar 2008 09:37:47 +0000 (09:37 +0000)]
Fix potential thread deadlock.
Also make local sockets non-blocking.
Dave Wysochanski [Thu, 13 Mar 2008 22:51:24 +0000 (22:51 +0000)]
Const cleanups in find_* functions.
Alasdair Kergon [Thu, 13 Mar 2008 12:33:22 +0000 (12:33 +0000)]
Refactor text format initialisation into _init_text_import.
Milan Broz [Wed, 12 Mar 2008 17:34:58 +0000 (17:34 +0000)]
Add metadata test for escaping double quotes in device names (bz431474).
Alasdair Kergon [Wed, 12 Mar 2008 16:03:22 +0000 (16:03 +0000)]
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.
Alasdair Kergon [Mon, 10 Mar 2008 18:51:27 +0000 (18:51 +0000)]
Use return_0 in a couple more places.
Correct a function name typo in _line_append error message.
Christine Caulfield [Thu, 6 Mar 2008 08:41:05 +0000 (08:41 +0000)]
Include limits.h so it compiles with newer headers.
Alasdair Kergon [Wed, 5 Mar 2008 18:15:04 +0000 (18:15 +0000)]
add vd to filters
Dave Wysochanski [Tue, 4 Mar 2008 22:49:00 +0000 (22:49 +0000)]
Update vgsplit tests.
- Add validation on pv_count, lv_count, and snap_count after split
NOTE: Some of these counts are misleading. If you compare "lvs" output
with these counts you will be left scratching your head what a "logical volume"
really is. ;-)
Dave Wysochanski [Tue, 4 Mar 2008 19:48:32 +0000 (19:48 +0000)]
Update vgsplit tests.
- Divide into 'usage' and 'operation' tests.
- Add operation tests for specific LV types.
Dave Wysochanski [Fri, 29 Feb 2008 00:13:48 +0000 (00:13 +0000)]
Refactor _move_pv() in vgsplit.
Should be no functional change.
Dave Wysochanski [Fri, 29 Feb 2008 00:09:21 +0000 (00:09 +0000)]
Add vgsplit test to check failure when PV not in source volume group.
Dave Wysochanski [Thu, 28 Feb 2008 17:39:47 +0000 (17:39 +0000)]
Fix t-vgsplit-operation.sh lv2-3 definitions to include test signature.
Dave Wysochanski [Thu, 28 Feb 2008 16:48:09 +0000 (16:48 +0000)]
Fix t-vgsplit-operation.sh lv1 definition to include test signature.
Alasdair Kergon [Fri, 22 Feb 2008 13:28:29 +0000 (13:28 +0000)]
Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV.
Alasdair Kergon [Fri, 22 Feb 2008 13:22:44 +0000 (13:22 +0000)]
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
Alasdair Kergon [Fri, 22 Feb 2008 13:22:21 +0000 (13:22 +0000)]
Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
Jim Meyering [Fri, 15 Feb 2008 14:14:58 +0000 (14:14 +0000)]
Remove redundant if-before-free tests.
Jim Meyering [Fri, 15 Feb 2008 14:12:32 +0000 (14:12 +0000)]
Remove redundant if-before-free tests in clvmd.c.
Jim Meyering [Wed, 13 Feb 2008 20:01:48 +0000 (20:01 +0000)]
is_orphan: make parameter "const" to avoid compiler warning
Alasdair Kergon [Tue, 12 Feb 2008 13:29:08 +0000 (13:29 +0000)]
Fix lvconvert detection of mirror conversion in progress.
Alasdair Kergon [Tue, 12 Feb 2008 13:26:53 +0000 (13:26 +0000)]
Avoid automatic lvconvert polldaemon invocation when -R specified.
Dave Wysochanski [Mon, 11 Feb 2008 16:57:40 +0000 (16:57 +0000)]
Reflect actual default setting of preferred_names in example.conf and
update comments.
Alasdair Kergon [Wed, 6 Feb 2008 16:09:51 +0000 (16:09 +0000)]
Fix 'pvs -a' to detect VGs of PVs without metadata areas.
Alasdair Kergon [Wed, 6 Feb 2008 15:47:28 +0000 (15:47 +0000)]
split orphan VG by format type
Zdeněk Kabeláč [Wed, 6 Feb 2008 12:45:32 +0000 (12:45 +0000)]
Fix lvresize to support /dev/mapper prefix in the lvname
Fix unfilled paramater passed to fsadm from lvresize
Update fsadm to call lvresize if the partition size differs (with option -l)
Fix fsadm to support vg/lv name (like the rest of lv-tools)
Patrick Caulfield [Tue, 5 Feb 2008 09:38:04 +0000 (09:38 +0000)]
Update usage message for clvmd.
Fix clvmd man page printing <br>, clarified debug options.
Dave Wysochanski [Mon, 4 Feb 2008 20:26:14 +0000 (20:26 +0000)]
Fix default preferred_names filter to use /dev/mapper/mpath devices.
If these devices exist, we should be using them for multipath rather than any
underlying device names.
Reference: http://kbase.redhat.com/faq/FAQ_96_11196.shtma
bz195685
Alasdair Kergon [Thu, 31 Jan 2008 12:41:13 +0000 (12:41 +0000)]
post-release
Alasdair Kergon [Thu, 31 Jan 2008 12:36:58 +0000 (12:36 +0000)]
pre-release
Alasdair Kergon [Thu, 31 Jan 2008 12:35:31 +0000 (12:35 +0000)]
a couple more compiler warnings
Alasdair Kergon [Thu, 31 Jan 2008 12:19:36 +0000 (12:19 +0000)]
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.
Add mirror names test script.
Alasdair Kergon [Wed, 30 Jan 2008 16:18:37 +0000 (16:18 +0000)]
only read labels once between each lock event
Alasdair Kergon [Wed, 30 Jan 2008 14:17:29 +0000 (14:17 +0000)]
undo a few 'stack' moves
This page took 0.07398 seconds and 5 git commands to generate.