]>
sourceware.org Git - lvm2.git/log
Alasdair Kergon [Fri, 6 Jun 2008 09:48:04 +0000 (09:48 +0000)]
Allow for vginfo changing during _vg_read.
Alasdair Kergon [Thu, 5 Jun 2008 19:10:35 +0000 (19:10 +0000)]
Initialise params buffer to empty string in _emit_segment.
Alasdair Kergon [Thu, 5 Jun 2008 14:24:28 +0000 (14:24 +0000)]
Decode numbers in clvmd debugging output.
Alasdair Kergon [Thu, 5 Jun 2008 13:38:30 +0000 (13:38 +0000)]
Add missing deactivation after activation failure in lvcreate -Zy.
Alasdair Kergon [Thu, 5 Jun 2008 13:06:39 +0000 (13:06 +0000)]
When activating, if precommitted metadata is still cached, assume it's live.
Alasdair Kergon [Thu, 5 Jun 2008 12:45:55 +0000 (12:45 +0000)]
When removing LV symlinks, skip any where the VG name is not determined.
Alasdair Kergon [Tue, 3 Jun 2008 17:56:54 +0000 (17:56 +0000)]
Drop metadata cache if update fails in vg_revert or vg_commit.
Alasdair Kergon [Tue, 3 Jun 2008 17:51:04 +0000 (17:51 +0000)]
Correct config file line numbers in messages when parsing comments. (kabi)
Alasdair Kergon [Tue, 3 Jun 2008 17:48:13 +0000 (17:48 +0000)]
suppress warning on silent failure with ECMD_PROCESSED
Dave Wysochanski [Mon, 2 Jun 2008 15:54:32 +0000 (15:54 +0000)]
Trivial fix to lvchange man pg for consistency.
Alasdair Kergon [Fri, 30 May 2008 15:27:44 +0000 (15:27 +0000)]
In script-processing mode, stop if any command fails.
Warn if command exits with non-zero status code without a prior log_error.
Alasdair Kergon [Wed, 28 May 2008 23:12:45 +0000 (23:12 +0000)]
fix setpriority int error
Alasdair Kergon [Wed, 28 May 2008 22:27:47 +0000 (22:27 +0000)]
Avoid spurious duplicate VG messages referring to VGs that are gone.
(untested)
Alasdair Kergon [Wed, 21 May 2008 16:14:46 +0000 (16:14 +0000)]
Skip add_dev_node when ioctls disabled.
Make dm_hash_iter safe against deletion.
Accept a NULL pointer to dm_free silently.
Alasdair Kergon [Wed, 21 May 2008 14:10:11 +0000 (14:10 +0000)]
Temporarily disable dmeventd mirror monitoring during lvchange --resync.
Alasdair Kergon [Mon, 19 May 2008 20:06:34 +0000 (20:06 +0000)]
revert accidental checkin
Alasdair Kergon [Mon, 19 May 2008 19:49:56 +0000 (19:49 +0000)]
Refactor some vginfo manipulation code.
Alasdair Kergon [Fri, 9 May 2008 19:26:58 +0000 (19:26 +0000)]
more cleanup
Alasdair Kergon [Fri, 9 May 2008 18:45:15 +0000 (18:45 +0000)]
More P_ and V_ lock cleanup.
Alasdair Kergon [Fri, 9 May 2008 15:13:20 +0000 (15:13 +0000)]
Add missing mutex around clvmd lvmcache_drop_metadata library call.
Christine Caulfield [Fri, 9 May 2008 09:59:39 +0000 (09:59 +0000)]
Fix uninitialised mutex in clvmd if all daemons are not running at startup.
Thanks to Mark Hlawatschek for pointing this out.
Christine Caulfield [Fri, 9 May 2008 07:20:04 +0000 (07:20 +0000)]
Make clvmd-cman use a hash rather than an array for node updown info.
This will allow it to cope with very large nodeids such as those
generated by clusters using cman_tool join -X
Alasdair Kergon [Thu, 8 May 2008 18:35:58 +0000 (18:35 +0000)]
Avoid unnecessary unlock attempts with LCK_CACHE pseudo-locks.
Alasdair Kergon [Thu, 8 May 2008 18:28:27 +0000 (18:28 +0000)]
When asked to drop cached committed VG metadata, invalidate cached PV labels.
Alasdair Kergon [Thu, 8 May 2008 18:06:58 +0000 (18:06 +0000)]
Drop metadata cache before writing precommitted metadata instead of after.
Alasdair Kergon [Thu, 8 May 2008 18:00:47 +0000 (18:00 +0000)]
remove unused lvmcache_drop_vg prototype
Alasdair Kergon [Wed, 30 Apr 2008 14:34:02 +0000 (14:34 +0000)]
Don't touch /dev in vgrename if activation is disabled.
Alasdair Kergon [Tue, 29 Apr 2008 16:11:28 +0000 (16:11 +0000)]
post-release - reinstate incomplete enhancements
Alasdair Kergon [Tue, 29 Apr 2008 15:58:25 +0000 (15:58 +0000)]
pre-release (bug fixes only - enhancements excluded)
Zdenek Kabelac [Tue, 29 Apr 2008 15:25:28 +0000 (15:25 +0000)]
fixing fsadm usage with older blockdev,blkid,readline tools
fixing lvresize extension code path where size was not set for fsadm
Christine Caulfield [Tue, 29 Apr 2008 08:55:20 +0000 (08:55 +0000)]
. remove_lock_wait.diff remove the definition of "struct lock_wait",
which is not used since the switch away from async version saLck
. num_nodes should equal to member_list_entries, i.e.
joined_list_entires is 0 when a node leaves the group.
Thanks to Xinwei Hu for the patch.
Christine Caulfield [Mon, 28 Apr 2008 08:57:11 +0000 (08:57 +0000)]
The attached patch is a try to make clvmd work correctly on openais stack.
It does 2 things.
1. The cpg_deliver_callback make a compare between target_nodeid and our_nodeid.
It turns out openais set target_nodeid to 0 sometimes. for broadcasting ? I change the behavior so that lvm will process_remote also on target_nodeid == 0
2. The joined_list passed to cpg_confchg_callback doesn't include the already exist nodes in the group, which leads to an incomplete node_hash. I simply add all other nodes in member_list to node_hash also.
Thanks to Xinwei Hu for this patch.
Alasdair Kergon [Thu, 24 Apr 2008 02:22:07 +0000 (02:22 +0000)]
Exclude VG_GLOBAL from internal concurrent VG lock counter.
(Avoids 'device left open' warning messages from vgscan etc.)
Dave Wysochanski [Wed, 23 Apr 2008 18:27:59 +0000 (18:27 +0000)]
Add test for rhbz440405 - lvconvert -m0 fails incorrectly if all PEs allocated.
Dave Wysochanski [Wed, 23 Apr 2008 14:33:06 +0000 (14:33 +0000)]
Fix vgsplit internal counting of snapshot LVs.
Dave Wysochanski [Wed, 23 Apr 2008 13:02:03 +0000 (13:02 +0000)]
Update test function _check_{vg|lv|pv}_field to aid in test debug.
Author: Dave Wysochanski <dwysocha@redhat.com>
Dave Wysochanski [Wed, 23 Apr 2008 12:53:10 +0000 (12:53 +0000)]
Fix internal snapshot_count when vgmerge with snapshots in source VG.
Christine Caulfield [Wed, 23 Apr 2008 09:53:49 +0000 (09:53 +0000)]
Simplify locking code by using saLckResourceLock rather than
saLckResourceLockAsync.
Thanks to Xinwei Hu for the patch.
Alasdair Kergon [Tue, 22 Apr 2008 12:54:33 +0000 (12:54 +0000)]
Check lv_count in vg_validate.
Fix internal LV counter when a snapshot is removed.
Alasdair Kergon [Tue, 22 Apr 2008 11:47:22 +0000 (11:47 +0000)]
Fix metadata corruption writing lvm1-formatted metadata with snapshots.
Alasdair Kergon [Mon, 21 Apr 2008 16:57:11 +0000 (16:57 +0000)]
Use 'active' for !suspended as the code already uses that.
Alasdair Kergon [Mon, 21 Apr 2008 13:16:30 +0000 (13:16 +0000)]
Add 3 new reporting colums: tables_loaded, readonly, suspended.
Alasdair Kergon [Mon, 21 Apr 2008 11:59:22 +0000 (11:59 +0000)]
Add --prefixes to dmsetup
E.g. dmsetup info -c --prefixes
Again, might change the name of this option.
Alasdair Kergon [Sun, 20 Apr 2008 00:15:08 +0000 (00:15 +0000)]
Add --prefixes to reporting tools for field name prefix output format.
E.g. lvs --prefixes --noheadings --unbuffered --units m --nosuffix
(Used '--prefixes' for now, but I'm looking for a better name.)
Alasdair Kergon [Sun, 20 Apr 2008 00:11:08 +0000 (00:11 +0000)]
Add field name prefix option to reporting functions.
Alasdair Kergon [Sat, 19 Apr 2008 15:50:18 +0000 (15:50 +0000)]
Calculate string size within dm_pool_grow_object.
Alasdair Kergon [Fri, 18 Apr 2008 12:50:24 +0000 (12:50 +0000)]
Fix lvconvert -m0 allocatable space check.
Alasdair Kergon [Tue, 15 Apr 2008 15:01:18 +0000 (15:01 +0000)]
post-release
Alasdair Kergon [Tue, 15 Apr 2008 14:57:12 +0000 (14:57 +0000)]
missing stack
Alasdair Kergon [Tue, 15 Apr 2008 14:49:17 +0000 (14:49 +0000)]
pre-release
Milan Broz [Tue, 15 Apr 2008 14:46:19 +0000 (14:46 +0000)]
Drop cached VG metadata before and after committing changes to it.
Alasdair Kergon [Tue, 15 Apr 2008 11:36:46 +0000 (11:36 +0000)]
rename P_global to P_#global
Alasdair Kergon [Mon, 14 Apr 2008 19:49:12 +0000 (19:49 +0000)]
Don't attempt remote metadata backups of non-clustered VGs. (2.02.29)
Alasdair Kergon [Mon, 14 Apr 2008 19:24:16 +0000 (19:24 +0000)]
Don't store fid in VG metadata cache to avoid clvmd segfault. (2.02.34)
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
This page took 0.066446 seconds and 5 git commands to generate.