]> sourceware.org Git - lvm2.git/log
lvm2.git
14 years agoFix memory lock imbalance in lv_suspend if already suspended.
Milan Broz [Thu, 3 Dec 2009 19:23:40 +0000 (19:23 +0000)]
Fix memory lock imbalance in lv_suspend if already suspended.

pvmove suspends all moved LVs + pvmoveX mirrored LV itself.

This suspends even underlying pvmoveX and following explicit
suspend call is just noop.

But in resume the pvmoveX volume is no longer underlying
device for moved LVs, so it performs full resume with memlock
decrease.

Code must call memlock_inc() if suspend is requested, volume
is already suspended and error is not requested.

14 years agoFix pvmove test mode to not fail and do not poll.
Milan Broz [Thu, 3 Dec 2009 19:22:24 +0000 (19:22 +0000)]
Fix pvmove test mode to not fail and do not poll.

Test mode should not fail nor try to poll non-existent devices.

14 years agoPrint error if VG already exist.
Milan Broz [Thu, 3 Dec 2009 19:20:48 +0000 (19:20 +0000)]
Print error if VG already exist.

This test have to be moved because of new vg read error handling.

14 years agoFix tools to report error when stopped by user.
Milan Broz [Thu, 3 Dec 2009 19:18:33 +0000 (19:18 +0000)]
Fix tools to report error when stopped by user.

(And do not produce internal error message.)

14 years agominor indent change
Zdenek Kabelac [Thu, 3 Dec 2009 10:01:30 +0000 (10:01 +0000)]
minor indent change

14 years agoskip cast from (void*)
Zdenek Kabelac [Thu, 3 Dec 2009 09:59:54 +0000 (09:59 +0000)]
skip cast from (void*)

14 years agominor whitespace indentation
Zdenek Kabelac [Thu, 3 Dec 2009 09:58:30 +0000 (09:58 +0000)]
minor whitespace indentation

14 years agoAdd tests to check for readahead value in lvcreate.
Dave Wysochanski [Thu, 3 Dec 2009 01:48:05 +0000 (01:48 +0000)]
Add tests to check for readahead value in lvcreate.

14 years agoFix setting of readahead in lvcreate.
Dave Wysochanski [Thu, 3 Dec 2009 01:47:33 +0000 (01:47 +0000)]
Fix setting of readahead in lvcreate.

The default comes from the configuration settings, with possible
commandline override.

14 years agoFix memory leak in lv_info_by_lvid
Milan Broz [Tue, 1 Dec 2009 19:10:23 +0000 (19:10 +0000)]
Fix memory leak in lv_info_by_lvid

The lv_from_lvid calls internally vg_read(),
we must release vg structure afterwards.

Code is called only from clvmd.

14 years agoIf aborting due to an internal error, always print the message causing this.
Petr Rockai [Tue, 1 Dec 2009 13:54:27 +0000 (13:54 +0000)]
If aborting due to an internal error, always print the message causing this.

14 years agoOptionally abort on internal errors (and leverage this option in the
Petr Rockai [Mon, 30 Nov 2009 17:17:11 +0000 (17:17 +0000)]
Optionally abort on internal errors (and leverage this option in the
testsuite). (This is showing a problem in the pvmove test for me, so I expect
the tests to start failing -- this needs to be fixed separately though.)

14 years agoThe sourcedir instances of the test scripts are not PHONY.
Petr Rockai [Mon, 30 Nov 2009 16:58:53 +0000 (16:58 +0000)]
The sourcedir instances of the test scripts are not PHONY.

14 years agoDon't fail in the builddir == srcdir case, though. (testsuite)
Petr Rockai [Mon, 30 Nov 2009 16:56:42 +0000 (16:56 +0000)]
Don't fail in the builddir == srcdir case, though. (testsuite)

14 years agoFix test/api to work with srcdir != builddir.
Petr Rockai [Mon, 30 Nov 2009 15:12:34 +0000 (15:12 +0000)]
Fix test/api to work with srcdir != builddir.

14 years agoMore fixes for the testsuite in the $(builddir) != $(srcdir) situation.
Petr Rockai [Mon, 30 Nov 2009 14:59:26 +0000 (14:59 +0000)]
More fixes for the testsuite in the $(builddir) != $(srcdir) situation.

14 years agoDo not allow creating mirrors of more than 8 images.
Milan Broz [Fri, 27 Nov 2009 14:35:38 +0000 (14:35 +0000)]
Do not allow creating mirrors of more than 8 images.

This is kernel limitation in all kernel versions,
so better detect this early.

14 years agoUse locking_type 3 (compiled in cluster locking) in lvmconf.
Milan Broz [Fri, 27 Nov 2009 14:32:16 +0000 (14:32 +0000)]
Use locking_type 3 (compiled in cluster locking) in lvmconf.

14 years agoRemove unnecessary / duplicate dm_list macros and functions.
Dave Wysochanski [Wed, 25 Nov 2009 20:44:07 +0000 (20:44 +0000)]
Remove unnecessary / duplicate dm_list macros and functions.

These are no longer used by anyone.  The dm_list defines are all in
libdevmapper.h and libdm/datastruct/list.c contains any function definitions.
There is some code in "old-tests" that still use this but this code is not
being maintained.

Thanks to Zdenek for spotting this.

14 years agoLog failure type and recognise type 'F' (flush) in dmeventd mirror plugin.
Alasdair Kergon [Wed, 25 Nov 2009 15:59:07 +0000 (15:59 +0000)]
Log failure type and recognise type 'F' (flush) in dmeventd mirror plugin.

14 years agoSwitch status from 32-bit to 64-bit
Mike Snitzer [Tue, 24 Nov 2009 22:55:55 +0000 (22:55 +0000)]
Switch status from 32-bit to 64-bit

The physical_volume, volume_group, logical_volume and lv_segment
structures' 'status' member is now uint64_t.

The alignment of these structures was also audited to remove holes.  The
movement of some members in 'volume_group' and 'lv_segment' eliminates
holes.  The 'physical_volume' structure still has one 4-byte hole after
'pe_size'; the other structures no longer have any holes.  Each
structures' size has not changed.

14 years agoPost-release.
Alasdair Kergon [Tue, 24 Nov 2009 19:04:23 +0000 (19:04 +0000)]
Post-release.
Fingers crossed this one's more successful that the last one!

14 years ago.
Alasdair Kergon [Tue, 24 Nov 2009 18:54:23 +0000 (18:54 +0000)]
.

14 years agopre-release
Alasdair Kergon [Tue, 24 Nov 2009 18:26:08 +0000 (18:26 +0000)]
pre-release

14 years agoAdd missing vg_release to pvs and pvdisplay to fix memory leak.
Milan Broz [Tue, 24 Nov 2009 17:07:09 +0000 (17:07 +0000)]
Add missing vg_release to pvs and pvdisplay to fix memory leak.

14 years agoDo not try to unlock VG which is not locked.
Milan Broz [Tue, 24 Nov 2009 16:13:02 +0000 (16:13 +0000)]
Do not try to unlock VG which is not locked.

If the vg_read() returned error, no lock was taken,
so always call vg_release().

Otherwise this can happen because of missing FAILED_*:

# vgchange -a y x --ignorelockingfailure
  Volume group "x" not found
  Internal error: Attempt to unlock unlocked VG x

14 years agoMove persistent filter dump to more appropriate place.
Milan Broz [Tue, 24 Nov 2009 16:11:37 +0000 (16:11 +0000)]
Move persistent filter dump to more appropriate place.

After context_refresh is cache empty, the cache flush
does nothing.

Call it after lvmcache full rescan if running from
log lived process.

14 years agoRefresh device filters before full device rescan in lvmcache.
Milan Broz [Tue, 24 Nov 2009 16:10:25 +0000 (16:10 +0000)]
Refresh device filters before full device rescan in lvmcache.

The sysfs filter initialise hash of available devices using
scan of /sys/block. We need to refresh even this hash
when performing full scan otherwise the newly appeared
device could be rejected, because there is no entry
in sysfs filter.

This easily could happen when attaching new device
to cluster node. (Only force refresh of context
in clvmd -R works here now).

Unfortunately consequences of this are much worse,
missing device part on that node is replaced with missing segment
(even when no partial arg is selected) and this directly
lead to data corruption.

See https://bugzilla.redhat.com/show_bug.cgi?id=538515

Simply fix it by refreshing device filters in lvmcache
before performing the full device scan.

14 years agoReturn error status if vgchange fails to activate some volume.
Milan Broz [Tue, 24 Nov 2009 16:08:49 +0000 (16:08 +0000)]
Return error status if vgchange fails to activate some volume.

(on one node a storage connection failed):

# vgchange -a y vg_bar ; echo $?
  Error locking on node bar-02: Refusing activation of partial LV lv1. Use --partial to override.
    1 logical volume(s) in volume group "vg_bar" now active
    0

So activation fails on one node, error is correctly printed but
status code is wrong.

This patch fixes the top level (vgchange) to return proper code
(and print # of activated LVs).

(lvchange returns error properly here.)

14 years agoFix memory lock imbalance in locking code.
Milan Broz [Mon, 23 Nov 2009 10:55:14 +0000 (10:55 +0000)]
Fix memory lock imbalance in locking code.

(This affects only cluster locking because only cluster
locking module set LCK_PRE_MEMLOCK.)

With currect code you get
# vgchange -a n
  Internal error: _memlock_count has dropped below 0.
when using cluster locking.

It is caused by _unlock_memory calls here

  if ((flags & (LCK_SCOPE_MASK | LCK_TYPE_MASK)) == LCK_LV_RESUME)
     memlock_dec();

Unfortunately it is also (wrongly) called in immediate unlock
(when LCK_HOLD is not set) from lock_vol
(LCK_UNLOCK is misinterpreted as LCK_LV_RESUME).

Avoid this by comparing original flags and provide memlock
code type of operation (suspend/resume).

14 years agoRevert vg_read_internal change, clvmd cannot use vg_read now. (2.02.55)
Milan Broz [Mon, 23 Nov 2009 10:44:50 +0000 (10:44 +0000)]
Revert vg_read_internal change, clvmd cannot use vg_read now. (2.02.55)

14 years agopost-release
Alasdair Kergon [Thu, 19 Nov 2009 19:53:58 +0000 (19:53 +0000)]
post-release

14 years ago.
Alasdair Kergon [Thu, 19 Nov 2009 19:42:57 +0000 (19:42 +0000)]
.

14 years agopre-release
Alasdair Kergon [Thu, 19 Nov 2009 19:00:34 +0000 (19:00 +0000)]
pre-release

14 years agoAdd a basic test for snapshots of mirrors, thanks to Jon Brassow.
Petr Rockai [Thu, 19 Nov 2009 13:55:40 +0000 (13:55 +0000)]
Add a basic test for snapshots of mirrors, thanks to Jon Brassow.

14 years agoIn case we refuse to continue due to missing PVs, print a hint about using
Petr Rockai [Thu, 19 Nov 2009 13:44:37 +0000 (13:44 +0000)]
In case we refuse to continue due to missing PVs, print a hint about using
vgreduce --removemissing to remedy the situation.

14 years agoThe double resume in remove_mirror_images does not happen *always*. Only call
Petr Rockai [Thu, 19 Nov 2009 13:42:38 +0000 (13:42 +0000)]
The double resume in remove_mirror_images does not happen *always*. Only call
memlock_inc() when it actually does happen.

14 years agoUn-export vg_read_internal.
Petr Rockai [Thu, 19 Nov 2009 12:13:37 +0000 (12:13 +0000)]
Un-export vg_read_internal.

14 years agoAdd a missing #include (fix compiler warning).
Petr Rockai [Thu, 19 Nov 2009 12:09:53 +0000 (12:09 +0000)]
Add a missing #include (fix compiler warning).

14 years agoFix the dmeventd LD_LIBRARY_PATH in the testsuite.
Petr Rockai [Thu, 19 Nov 2009 12:01:39 +0000 (12:01 +0000)]
Fix the dmeventd LD_LIBRARY_PATH in the testsuite.

14 years agoWhat's new.
Petr Rockai [Thu, 19 Nov 2009 01:17:01 +0000 (01:17 +0000)]
What's new.

14 years agoFix another bug in memlock handling, this time the "global" dmeventd memlock
Petr Rockai [Thu, 19 Nov 2009 01:11:57 +0000 (01:11 +0000)]
Fix another bug in memlock handling, this time the "global" dmeventd memlock
was preventing device scans in lvconvert --repair running from inside dmeventd.

14 years agoAdd an extra memlock_inc() to _remove_mirror_images to properly balance
Petr Rockai [Wed, 18 Nov 2009 18:23:46 +0000 (18:23 +0000)]
Add an extra memlock_inc() to _remove_mirror_images to properly balance
reference counting (see code comment for details).

14 years agoIssue an Internal error message whenever _memlock_count drops below 0.
Petr Rockai [Wed, 18 Nov 2009 18:22:32 +0000 (18:22 +0000)]
Issue an Internal error message whenever _memlock_count drops below 0.

14 years agoNever activate hidden volumes directly in vgchange.
Milan Broz [Wed, 18 Nov 2009 17:20:18 +0000 (17:20 +0000)]
Never activate hidden volumes directly in vgchange.

All hidden (not visible) volumes should be activated through
other visible volumes.

(There are already exceptions like snapshot, mirror log and image,
which should be cleaned one day...)

This solves problems for future types of hidden volumes,
which can have special meaning and must not be activated implicitly
(e.g. key store volume).

14 years agoFix pvmove region_size overflow for very large PVs.
Milan Broz [Wed, 18 Nov 2009 16:48:10 +0000 (16:48 +0000)]
Fix pvmove region_size overflow for very large PVs.

Fixes problem reported in
https://www.redhat.com/archives/dm-devel/2009-November/msg00104.html

The region size multiplication can overflow when using 32bit integer.

14 years agoFix install_device-mapper Makefile target to not build dmeventd plugins.
Milan Broz [Fri, 13 Nov 2009 12:48:01 +0000 (12:48 +0000)]
Fix install_device-mapper Makefile target to not build dmeventd plugins.

14 years agoSupport udev flags even when udev_sync is disabled or not compiled in.
Peter Rajnoha [Fri, 13 Nov 2009 12:43:21 +0000 (12:43 +0000)]
Support udev flags even when udev_sync is disabled or not compiled in.

This provides better support for environments where udev rules are installed
but udev_sync is not compiled in (however, using udev_sync is highly
recommended). It also provides consistent and expected functionality even
when '--noudevsync' option is used.

There is still requirement for kernel >= 2.6.31 for the flags to work though
(it uses DM cookies to pass the flags into the kernel and set them in udev
event environment that we can read in udev rules).

14 years agoRemove 'last_rule' from udev rules.
Peter Rajnoha [Fri, 13 Nov 2009 12:33:27 +0000 (12:33 +0000)]
Remove 'last_rule' from udev rules.

'last_rule' option has been removed from udev (version >= 147).

From now on, we require foreign rules to check and honor
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG} instead. Foreign
rules should be skipped totally when this flag is set.

14 years ago.
Alasdair Kergon [Fri, 6 Nov 2009 01:40:59 +0000 (01:40 +0000)]
.

14 years agoAdd support for querying a device's inactive table.
Alasdair Kergon [Fri, 6 Nov 2009 00:43:08 +0000 (00:43 +0000)]
Add support for querying a device's inactive table.
Currently this data is invisible to userspace.
Requires dm >= 4.16 (likely to be in linux 2.6.33).

14 years agoFix compilation warning:
Milan Broz [Wed, 4 Nov 2009 14:56:35 +0000 (14:56 +0000)]
Fix compilation warning:
activate/dev_manager.c:362: warning: combined_percent_range may be used uninitialized in this function

14 years agoFix lvcreate processing of %PVS argument.
Milan Broz [Wed, 4 Nov 2009 14:47:27 +0000 (14:47 +0000)]
Fix lvcreate processing of %PVS argument.

- fix missing unlocking of VG
lvcreate -l 100%PVS -n lv1 vg_test
  Please specify physical volume(s) with %PVS
  Internal error: Volume Group vg_test was not unlocked

- if no PVS specified, use all available

Fix segfault if %PVS in lvresize without PVs list.

14 years agominor code comment update
Zdenek Kabelac [Wed, 4 Nov 2009 12:39:56 +0000 (12:39 +0000)]
minor code comment update

14 years agoRemove old, and now incorrect, vgextend man page description of pvcreate options.
Dave Wysochanski [Tue, 3 Nov 2009 15:58:02 +0000 (15:58 +0000)]
Remove old, and now incorrect, vgextend man page description of pvcreate options.

14 years agoTidy some uses of arg_count and introduce arg_is_set.
Alasdair Kergon [Tue, 3 Nov 2009 15:50:42 +0000 (15:50 +0000)]
Tidy some uses of arg_count and introduce arg_is_set.

14 years agoUpdate for outnl and indent functions
Zdenek Kabelac [Tue, 3 Nov 2009 11:17:46 +0000 (11:17 +0000)]
Update for outnl and indent functions

14 years agoExport functions out_inc_indent(), out_dec_indent() for creating
Zdenek Kabelac [Tue, 3 Nov 2009 11:00:46 +0000 (11:00 +0000)]
Export functions out_inc_indent(), out_dec_indent() for creating
indented metadata lines.

Macro outnl() is using exported out_newline() instead of direct
call f->fn(), that required the visibility of the internal
struct formatter.

14 years agoAdd fflush for the case the log is redirected to the buffered file.
Zdenek Kabelac [Tue, 3 Nov 2009 10:50:57 +0000 (10:50 +0000)]
Add fflush for the case the log is redirected to the buffered file.

Without this patch it have not been obvious, why the application
waits on the stdin as the prompt might be still buffered in memory.

14 years agoFix hash lookup segfault when keys compared are different lengths.
Alasdair Kergon [Tue, 3 Nov 2009 00:45:35 +0000 (00:45 +0000)]
Fix hash lookup segfault when keys compared are different lengths.

14 years agoRudimentary support for running testsuite in a builddir != srcdir situation.
Petr Rockai [Mon, 2 Nov 2009 15:16:21 +0000 (15:16 +0000)]
Rudimentary support for running testsuite in a builddir != srcdir situation.

14 years agoRename validate_vg_create_params to vgcreate_params_validate.
Dave Wysochanski [Sun, 1 Nov 2009 20:05:17 +0000 (20:05 +0000)]
Rename validate_vg_create_params to vgcreate_params_validate.

14 years agoRename fill_vg_create_params to vgcreate_params_set_from_args.
Dave Wysochanski [Sun, 1 Nov 2009 20:03:24 +0000 (20:03 +0000)]
Rename fill_vg_create_params to vgcreate_params_set_from_args.

Rename fill_vg_create_params to vgcreate_params_set_from_args and remove
vg_name parameter from function (caller must set before calling function).

14 years agoAdd vgcreate_params_set_defaults().
Dave Wysochanski [Sun, 1 Nov 2009 20:02:32 +0000 (20:02 +0000)]
Add vgcreate_params_set_defaults().

Add function to set default vgcreate parameters based on existing VG or
internal defaults.  Should be no functional change.

14 years agoRename pvcreate_params processing functions to better match <object><action>.
Dave Wysochanski [Sun, 1 Nov 2009 19:51:54 +0000 (19:51 +0000)]
Rename pvcreate_params processing functions to better match <object><action>.

Rename fill_default_pvcreate_params to pvcreate_params_set_defaults.
Rename pvcreate_validate_restore_params to pvcreate_restore_params_validate.
Rename pvcreate_validate_params to pvcreate_params_validate.

14 years agoMore cleanup in udev rules:
Peter Rajnoha [Sun, 1 Nov 2009 18:01:31 +0000 (18:01 +0000)]
More cleanup in udev rules:

 - add copyright notice for 10-dm.rules.in,

 - set DM_UDEV_DISABLE_{DISK, OTHER}_RULES_FLAG in 11-dm-lvm.rules directly
   for inappropriate and non-top-level subdevices in case we use older kernels
   where DM_COOKIE is not used (and therefore there are no flags passed from
   the LVM process itself). This applies for older kernels (version < 2.6.31),

 - remove unnecessary filters in 95-dm-notify.rules - the DM_COOKIE env var
   itself is set for change/remove udev events and for DM devices only so
   there's no need to double-check this.

14 years agoUpdate vgsplit to call vg_set_clustered().
Dave Wysochanski [Sat, 31 Oct 2009 17:43:57 +0000 (17:43 +0000)]
Update vgsplit to call vg_set_clustered().

14 years agoUpdate vgcreate to call vg_set_clustered().
Dave Wysochanski [Sat, 31 Oct 2009 17:39:22 +0000 (17:39 +0000)]
Update vgcreate to call vg_set_clustered().

14 years agoAdd vg_set_clustered() - move logic from vgchange.
Dave Wysochanski [Sat, 31 Oct 2009 17:30:52 +0000 (17:30 +0000)]
Add vg_set_clustered() - move logic from vgchange.

Similar to other vg_set_* functions, we create a vg_set_clustered() function
which does a few checks and sets a flag.  This is where we check for
any limitations of clusters.

14 years agoAdd vg_mda_count library function.
Dave Wysochanski [Sat, 31 Oct 2009 17:26:13 +0000 (17:26 +0000)]
Add vg_mda_count library function.

14 years agoAdd to vgcreate and vgextend nightly tests.
Dave Wysochanski [Sat, 31 Oct 2009 16:43:07 +0000 (16:43 +0000)]
Add to vgcreate and vgextend nightly tests.

14 years ago Insert some missing stack macros into activation code.
Alasdair Kergon [Fri, 30 Oct 2009 13:07:49 +0000 (13:07 +0000)]
 Insert some missing stack macros into activation code.

14 years agoRecognise DRBD device part and handle it similar to MD devices.
Milan Broz [Tue, 27 Oct 2009 17:00:44 +0000 (17:00 +0000)]
Recognise DRBD device part and handle it similar to MD devices.

The DRBD uses underlying device so code should prefer top
device if duplicate is found.

Patch also introduce
        dev_subsystem_part_major and dev_subsytem_name
functions to easily handle all these replication susbystems
and not hardcode md_major call.

See https://bugzilla.redhat.com/show_bug.cgi?id=530881
for full problem description.

14 years agopost-release
Alasdair Kergon [Tue, 27 Oct 2009 01:13:20 +0000 (01:13 +0000)]
post-release

14 years ago.
Alasdair Kergon [Tue, 27 Oct 2009 00:52:45 +0000 (00:52 +0000)]
.

14 years agoadd copyright lines
Alasdair Kergon [Mon, 26 Oct 2009 22:42:07 +0000 (22:42 +0000)]
add copyright lines

14 years agopre-release
Alasdair Kergon [Mon, 26 Oct 2009 21:56:23 +0000 (21:56 +0000)]
pre-release

14 years agoCleanup of previous commit with latest changes in udev support code.
Peter Rajnoha [Mon, 26 Oct 2009 21:38:35 +0000 (21:38 +0000)]
Cleanup of previous commit with latest changes in udev support code.

14 years agoDocument --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.
Dave Wysochanski [Mon, 26 Oct 2009 14:37:09 +0000 (14:37 +0000)]
Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.

Option --all is only partially documented currently, so document in all
commands.  Also make {pv|vg|lv}{display|s} man pages consistent with help
output.  Remove ununsed 'disk_ARG' parameter.  Leave --trustcache out of
the man page output.  Update --units argument to show all possible units.

14 years agoSeveral changes to udev support code:
Peter Rajnoha [Mon, 26 Oct 2009 14:29:33 +0000 (14:29 +0000)]
Several changes to udev support code:

 - we have these levels when the udev rules are processed:
   10-dm.rules --> [11-dm-<subsystem>.rules] --> [12-dm-permissions.rules] -->
   13-dm-disk.rules --> [...all the other foreign rules...] --> 95-dm-notify.rules

 - each level can be disabled now by
   DM_UDEV_DISABLE_{DM, SUBSYSTEM, DISK, OTHER}_RULES_FLAG

 - add DM_UDEV_DISABLE_DM_RULES_FLAG to disable 10-dm.rules

 - add DM_UDEV_DISABLE_OTHER_RULES_FLAG to disable all the other (non-dm) rules.
   We cutoff these rules by using the 'last_rule', so this one should really be
   used with great care and in well-founded situations. We use this for lvm's
   hidden and layer devices now.

 - add a parameter for add_dev_node, rm_dev_node and rename_dev_node so it's
   possible to switch on/off udev checks

 - use DM_UDEV_DISABLE_DM_RULES_FLAG and DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG
   if there's no cookie set and we have resume, remove and rename ioctl.
   This could happen when someone uses the libdevmapper that is compiled with
   udev_sync but the software does not make use of it. This way we can switch
   off the rules and fallback to libdevmapper node creation so there's no
   udev/libdevmapper race.

14 years agoRename 11-lvm.rules to 11-dm-lvm.rules and 12-dm-disk.rules to 13-dm-disk.rules.
Peter Rajnoha [Mon, 26 Oct 2009 14:04:31 +0000 (14:04 +0000)]
Rename 11-lvm.rules to 11-dm-lvm.rules and 12-dm-disk.rules to 13-dm-disk.rules.

14 years agoUpdate lvcreate/lvconvert man pages to explain PhysicalVolume parameter.
Dave Wysochanski [Mon, 26 Oct 2009 13:41:13 +0000 (13:41 +0000)]
Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter.

Addresses rhbz 500177.

14 years agoPermit snapshots of mirrors. (brassow)
Alasdair Kergon [Mon, 26 Oct 2009 10:01:56 +0000 (10:01 +0000)]
Permit snapshots of mirrors.  (brassow)

14 years agoMinor fix to vgcreate/vgextend man pages for PHYSICAL DEVICE OPTIONS.
Dave Wysochanski [Mon, 26 Oct 2009 02:36:29 +0000 (02:36 +0000)]
Minor fix to vgcreate/vgextend man pages for PHYSICAL DEVICE OPTIONS.

14 years agoCleanup mimagetmp LV if allocation fails for new lvconvert mimage.
Alasdair Kergon [Fri, 23 Oct 2009 01:24:17 +0000 (01:24 +0000)]
Cleanup mimagetmp LV if allocation fails for new lvconvert mimage.

14 years agoFix clvmd segfault when refresh_toolcontext fails. (brassow, bz 506986)
Alasdair Kergon [Thu, 22 Oct 2009 17:45:23 +0000 (17:45 +0000)]
Fix clvmd segfault when refresh_toolcontext fails.   (brassow, bz 506986)

14 years agoRemember to clear 'global lock held during cache refresh' state after use.
Alasdair Kergon [Thu, 22 Oct 2009 17:33:09 +0000 (17:33 +0000)]
Remember to clear 'global lock held during cache refresh' state after use.

14 years agoAdd manpage entry for dmsetup udevflags.
Peter Rajnoha [Thu, 22 Oct 2009 13:12:20 +0000 (13:12 +0000)]
Add manpage entry for dmsetup udevflags.

14 years agoUse udev flags in the rules and cleanup the rules:
Peter Rajnoha [Thu, 22 Oct 2009 13:11:33 +0000 (13:11 +0000)]
Use udev flags in the rules and cleanup the rules:
 - remove default permissions set in 95-dm-notify.rules (and add a hint in 12-dm-permissions.rules to set it by the user directly)
 - add multipath DM_ACTION=="PATH_FAILED" filter
 - remove unnecessary filters in the headers of the rules (we can simply use DM_UDEV_RULES_VSN instead)
 - fix symlink priorities in /dev/disk/ (snapshot volumes have low priority for FS UUID symlinks so it will not overwrite symlinks for the origin)

14 years agoUse udev flags support in LVM and provide dm_tree_add_new_dev_with_udev_flags wrapper...
Peter Rajnoha [Thu, 22 Oct 2009 13:00:07 +0000 (13:00 +0000)]
Use udev flags support in LVM and provide dm_tree_add_new_dev_with_udev_flags wrapper for dm_tree_add_new_dev.

14 years agoAdd udev flags support in libdevmapper and provide 'dmsetup udevflags' command to...
Peter Rajnoha [Thu, 22 Oct 2009 12:55:47 +0000 (12:55 +0000)]
Add udev flags support in libdevmapper and provide 'dmsetup udevflags' command to decode them.

14 years ago.
Alasdair Kergon [Thu, 22 Oct 2009 11:25:46 +0000 (11:25 +0000)]
.

14 years agoOnly announce mirror monitoring to syslog after initialisation succeeds.
Petr Rockai [Thu, 22 Oct 2009 10:40:41 +0000 (10:40 +0000)]
Only announce mirror monitoring to syslog after initialisation succeeds.

14 years agoFix the "const discarded" warnings introduced in the unknown segment patch.
Petr Rockai [Thu, 22 Oct 2009 10:38:07 +0000 (10:38 +0000)]
Fix the "const discarded" warnings introduced in the unknown segment patch.

14 years agoClarify message:
Jonathan Earl Brassow [Wed, 21 Oct 2009 22:19:39 +0000 (22:19 +0000)]
Clarify message:
"  Mirror status: 1/2 images failed."

Half of an image?  Half of the images?  No, 1 of 2 images.

14 years agoHandle metadata with unknown segment types more gracefully.
Petr Rockai [Fri, 16 Oct 2009 17:41:49 +0000 (17:41 +0000)]
Handle metadata with unknown segment types more gracefully.

14 years agoI saw this in a bug report:
Jonathan Earl Brassow [Wed, 14 Oct 2009 14:55:44 +0000 (14:55 +0000)]
I saw this in a bug report:
[root@xxxx-01 ~]# lvconvert -m 1 --corelog VG/cmirror
  Unable to convert the log of inactive cluster mirror cmirror

I've tried to clean-up the message a little more, so the name
of the mirror stands out more while preserving the sense that
it's not a problem with the specific device, but the fact that
it is inactive that is causing the problem.

New msg:
  Unable to convert the log of an inactive cluster mirror, cmirror

14 years agoconfigure.in: don't set default file owner and group
Fabio M. Di Nitto [Wed, 14 Oct 2009 04:10:41 +0000 (04:10 +0000)]
configure.in: don't set default file owner and group

Per discussion on lvm-devel mailing list and part of debian patch set,
don't set defaults for owner and group, since nobody seems to use them, and
still allow override.

14 years agoAttempt to build dmeventd.static.
Alasdair Kergon [Tue, 13 Oct 2009 02:35:26 +0000 (02:35 +0000)]
Attempt to build dmeventd.static.

14 years agoMore build cleanups (linker parameter ordering).
Alasdair Kergon [Tue, 13 Oct 2009 01:31:10 +0000 (01:31 +0000)]
More build cleanups (linker parameter ordering).

This page took 0.071593 seconds and 5 git commands to generate.