]> sourceware.org Git - lvm2.git/log
lvm2.git
9 years agocleanup: || instead of |
Peter Rajnoha [Wed, 17 Jun 2015 12:12:18 +0000 (14:12 +0200)]
cleanup: || instead of |

More efficient with same result here.

9 years agofilter: filter-usable: consider snapshot and origin LV as unusable if its component...
Peter Rajnoha [Wed, 17 Jun 2015 11:37:53 +0000 (13:37 +0200)]
filter: filter-usable: consider snapshot and origin LV as unusable if its component is suspended

Note that this is just a quick fix and it needs more robust fix to
encompass any combination, not just the (old) snapshot one!

This started with this report:
  https://bugzilla.redhat.com/show_bug.cgi?id=1219222

If we have devices/ignore_suspended_devices=1 set based on which we
filter out suspended devices as unusable (or if we ignore suspended
devices by force, e.g. during lvconvert called from dmeventd) and
when we have snapshot and snapshot origin devices in the play, we
need to look at their components unerneath (*-real and *-cow) to
check if they're not suspended. If they are, the snapshot/snapshot
origin is not usable as well and hence it needs to be filtered out
by filter-usable.c code which does suspended device filtering.

Not going into much details here, more details are in the bugzilla
mentioned above. However, this is a quick fix since snapshot
and this exact situation is not the only one. So this is
something that needs to be revisited and fixed properly
with full dm tree and checking the whole stack to state
whether the device at the very top is usable or not.

9 years agoconfig: fix some settings incorrectly marked as CFG_DEFAULT_COMMENTED instead of...
Peter Rajnoha [Wed, 17 Jun 2015 11:26:11 +0000 (13:26 +0200)]
config: fix some settings incorrectly marked as CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED and causing segfault

This patch fixes segfault which was caused by incorrectly marking some
settings CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED - the
ones which have NULL default value, hence they're really undefined.
A regression caused by a98ceceb1d101f0b19a6115f406e23f13feab5ae.

For example:

$ lvmconfig log/file
file="/a"

Before this patch:

$ lvmconfig --type diff
Segmentation fault (core dumped)

With this patch applied:

$ lvmconfig --type diff
log {
file="/a"
}

The same applies for these settings:

  log/activate_file
  global/library_dir
  global/system_id_file
  <disk_area>/disk_area_id

There were also other settings with NULL default value and marked as
CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED, but they were
cfg_array config settings where the NULL value was not causing segfault
(NULL == empty array).

9 years agoAdd a global get_cmd_name()
David Teigland [Tue, 16 Jun 2015 20:13:10 +0000 (15:13 -0500)]
Add a global get_cmd_name()

Which returns the string set by set_cmd_name().

9 years agolv_refresh: move the bulk of the function into lib
David Teigland [Tue, 16 Jun 2015 18:38:40 +0000 (13:38 -0500)]
lv_refresh: move the bulk of the function into lib

So that it can be used from other lib code.

9 years agoman vgchange lvchange: mention activation option s
David Teigland [Tue, 16 Jun 2015 18:28:07 +0000 (13:28 -0500)]
man vgchange lvchange: mention activation option s

and improve the existing text about existing
activation options.

9 years agoman lvm: mention hyphens in option names
David Teigland [Tue, 16 Jun 2015 15:33:01 +0000 (10:33 -0500)]
man lvm: mention hyphens in option names

9 years agoAdd the 's' activation mode
David Teigland [Tue, 16 Jun 2015 15:18:16 +0000 (10:18 -0500)]
Add the 's' activation mode

Just as 'e' means activation with an exclusive lock,
add an 's' to mean activation with a shared lock.

This allows the existing but implicit behavior of '-ay'
of clvm LVs to be specified explicitly.  For local VGs,
asy simply means ay, just like aey means ay.

For local VGs, ay == aey == asy

For clvm VGs,  ay == asy, aey == aey, asy == asy

9 years agoIgnore hyphens in long option names
David Teigland [Tue, 16 Jun 2015 14:35:52 +0000 (09:35 -0500)]
Ignore hyphens in long option names

The hyphens are removed from long option names before
being read.  This means that:

- Option name specifications in args.h must not include hyphens.
  (The hyphen in 'use-policies' is removed.)

- A user can include hyphens anywhere in the option name.
  All the following are equivalent:
  --vgmetadatacopies,
  --vg-metadata-copies,
  --v-g-m-e-t-a-d-a-t-a-c-o-p-i-e-s-

9 years agoxlate: add new variants
David Teigland [Tue, 16 Jun 2015 14:30:14 +0000 (09:30 -0500)]
xlate: add new variants

New variants use the clearer function names from the kernel.

9 years agolvmcache: mention lvconvert --cachemode
David Teigland [Mon, 15 Jun 2015 19:30:58 +0000 (14:30 -0500)]
lvmcache: mention lvconvert --cachemode

for changing the cache mode on an existing LV.

9 years agodebug: better tracing messages
Zdenek Kabelac [Mon, 15 Jun 2015 12:33:29 +0000 (14:33 +0200)]
debug: better tracing messages

Enhance traced output.

9 years agolibdm: better debug message
Zdenek Kabelac [Thu, 4 Jun 2015 06:45:22 +0000 (08:45 +0200)]
libdm: better debug message

Print reason for failing ioctl if thin pool message fails.

9 years agocleanup: drop double const
Zdenek Kabelac [Wed, 27 May 2015 13:46:41 +0000 (15:46 +0200)]
cleanup: drop double const

Second const is unneeded.
Also always create whole array with MAX elements.

9 years agodmeventd: better debug
Zdenek Kabelac [Mon, 15 Jun 2015 12:35:33 +0000 (14:35 +0200)]
dmeventd: better debug

Avoid using 'static' variable within threaded environmnent for debuging.

9 years agodmeventd: drop stack
Zdenek Kabelac [Mon, 15 Jun 2015 12:38:44 +0000 (14:38 +0200)]
dmeventd: drop stack

9 years agodmeventd: drop pthread_cancel
Zdenek Kabelac [Mon, 15 Jun 2015 12:39:17 +0000 (14:39 +0200)]
dmeventd: drop pthread_cancel

Drop unused pthread canceling as well as DEBUG printing in signal
handler.

9 years agopost-release
Alasdair G Kergon [Fri, 12 Jun 2015 20:42:57 +0000 (21:42 +0100)]
post-release

9 years agopre-release v2_02_121
Alasdair G Kergon [Fri, 12 Jun 2015 20:40:56 +0000 (21:40 +0100)]
pre-release

9 years agotest: Ensure that outdated PVs are wiped just once. dev-mornfall-lvmetad-repair
Petr Rockai [Wed, 10 Jun 2015 14:27:59 +0000 (16:27 +0200)]
test: Ensure that outdated PVs are wiped just once.

9 years agometadata: When outdated PVs are wiped, notify lvmetad about the fact.
Petr Rockai [Wed, 10 Jun 2015 14:27:12 +0000 (16:27 +0200)]
metadata: When outdated PVs are wiped, notify lvmetad about the fact.

9 years agometadata: Reject lvmetad metadata extensions when reading from disk.
Petr Rockai [Wed, 10 Jun 2015 14:25:57 +0000 (16:25 +0200)]
metadata: Reject lvmetad metadata extensions when reading from disk.

9 years agolvmetad: Make it possible to clear the outdated PVs list for a VG.
Petr Rockai [Wed, 10 Jun 2015 14:18:57 +0000 (16:18 +0200)]
lvmetad: Make it possible to clear the outdated PVs list for a VG.

9 years agometadata: Explain the pvs_outdated field in struct volume_group.
Petr Rockai [Wed, 10 Jun 2015 14:17:45 +0000 (16:17 +0200)]
metadata: Explain the pvs_outdated field in struct volume_group.

9 years agolvmetad, lvmpolld: remove DL_LIBS from Makefile
David Teigland [Mon, 8 Jun 2015 16:48:22 +0000 (11:48 -0500)]
lvmetad, lvmpolld: remove DL_LIBS from Makefile

and rdynamic.  They are not needed.

9 years agolvmetad.c: internal err on modifying global handle with open connection
Ondrej Kozina [Fri, 22 May 2015 12:55:42 +0000 (14:55 +0200)]
lvmetad.c: internal err on modifying global handle with open connection

lvmetad_init() should not be called with open connection to the daemon.
Doing so is considered to be an internall error within lvm2 code.

Such coincidence can't occur within current code. Let's assure us it won't
ever happen.

9 years agolvmetad.h: rephrase API descriptions
Ondrej Kozina [Fri, 22 May 2015 12:25:54 +0000 (14:25 +0200)]
lvmetad.h: rephrase API descriptions

Some of descritpions were misleading at least. Some were completely
off the reality.

lvmetad_init doesn't re-establish or initialise a connection
lvmetad_active and lvmetad_connect_or_warn can do so.

9 years agoman: lvmthin chunk and metadata sizes
David Teigland [Wed, 27 May 2015 20:53:01 +0000 (15:53 -0500)]
man: lvmthin chunk and metadata sizes

Clear some stale information, and give a suggestion to use
a metadata size of 1GiB.

9 years agotests: check for idle only for raid type
Zdenek Kabelac [Wed, 27 May 2015 09:59:10 +0000 (11:59 +0200)]
tests: check for idle only for raid type

9 years agolvmetad: missing wrapper for lvmetad less compilation
Zdenek Kabelac [Wed, 27 May 2015 09:44:33 +0000 (11:44 +0200)]
lvmetad: missing wrapper for lvmetad less compilation

9 years agotests: check for clmvd socket
Zdenek Kabelac [Wed, 27 May 2015 08:43:24 +0000 (10:43 +0200)]
tests: check for clmvd socket

A bit hacky since it expects PID_DIR == DEFAULT_RUN_DIR for now,
just to check whether it fixes startup clvmd sync problem.

9 years agotests: better check for array in sync
Zdenek Kabelac [Tue, 26 May 2015 11:11:46 +0000 (13:11 +0200)]
tests: better check for array in sync

Update check for raid array being in sync - getting somewhat complex.
It's another way to fight with problems in:
https://bugzilla.redhat.com/show_bug.cgi?id=1210637

9 years agotests: drop debug print
Zdenek Kabelac [Mon, 25 May 2015 07:59:02 +0000 (09:59 +0200)]
tests: drop debug print

9 years agocleanup: gcc warn fix, don't hide pvs()
Zdenek Kabelac [Fri, 22 May 2015 14:23:19 +0000 (16:23 +0200)]
cleanup: gcc warn fix, don't hide pvs()

9 years agolvmpolld: terminate error message with a dot and LF
Ondrej Kozina [Wed, 27 May 2015 06:24:36 +0000 (08:24 +0200)]
lvmpolld: terminate error message with a dot and LF

9 years agoWHATS_NEW: various updates
Ondrej Kozina [Tue, 26 May 2015 14:08:24 +0000 (16:08 +0200)]
WHATS_NEW: various updates

commit c069aff21b1450923b59e98ab709a5e667cdcda9
commit 8af5f54824f889c438104625dbe159f6e8dedbc4

9 years agodmsetup: zero errno in before strtoul call
Ondrej Kozina [Tue, 26 May 2015 14:01:40 +0000 (16:01 +0200)]
dmsetup: zero errno in before strtoul call

Testing errno value without explicitly setting to
zero in before the strtoul call may lead to
unexpected failures.

9 years agolvmpolld: zero errno in before strtoul call
Ondrej Kozina [Tue, 26 May 2015 13:55:16 +0000 (15:55 +0200)]
lvmpolld: zero errno in before strtoul call

Testing errno value without explicitly setting to
zero in before the strtoul call may lead to
unexpected failures.

9 years agolvconvert.c: fix whitespace mess
Ondrej Kozina [Mon, 25 May 2015 11:16:57 +0000 (13:16 +0200)]
lvconvert.c: fix whitespace mess

9 years agolibdm: Add dm_task_get_errno to return ioctl errno.
Alasdair G Kergon [Tue, 26 May 2015 14:13:49 +0000 (15:13 +0100)]
libdm: Add dm_task_get_errno to return ioctl errno.

There are reports of unexplained ioctl failures when using dmeventd.
An explanation might be that the wrong value of errno is being used.

Change libdevmapper to store an errno set by from dm ioctl() directly
and provide it to the caller through a new dm_task_get_errno() function.

[Replaced f9510548667754d9209b232348ccd2d806c0f1d8]

9 years agoWHATS_NEW: update
Ondrej Kozina [Mon, 25 May 2015 08:46:38 +0000 (10:46 +0200)]
WHATS_NEW: update

update for commit: f8bf6410954fcf82bf28852e0dba015c6b7f19dc

9 years agotests: add test for pvscan --cache --background
Ondrej Kozina [Mon, 25 May 2015 08:41:14 +0000 (10:41 +0200)]
tests: add test for pvscan --cache --background

regression test for a segfault in pvscan --cache --background
bug fixed by commit:
f8bf6410954fcf82bf28852e0dba015c6b7f19dc

9 years agolvmetad.c: ignore lvmetad global handle on disconnect
Ondrej Kozina [Fri, 22 May 2015 12:48:28 +0000 (14:48 +0200)]
lvmetad.c: ignore lvmetad global handle on disconnect

do not unset lvmetad global handle on disconnect. This is
hotfix for issue described in:
https://www.redhat.com/archives/linux-lvm/2015-May/msg00008.html

Reported-by: Christian Hesse <list@eworm.de>
9 years agolvconvert: change how to get failed mirrors number
Lidong Zhong [Fri, 22 May 2015 07:50:42 +0000 (15:50 +0800)]
lvconvert: change how to get failed mirrors number

Commit  b00711e3128c9cb38da90f303a3b64cf3a30fc9b improperly
convert _area_missing() replacment and moved check for
AREA_PV seg_type() into same if() section.

Signed-off-by: Lidong Zhong <lzhong@suse.com>
9 years agoscripts: activation generator: do not use --sysinit if lvmpolld used
Peter Rajnoha [Thu, 21 May 2015 09:07:07 +0000 (11:07 +0200)]
scripts: activation generator: do not use --sysinit if lvmpolld used

If lvmetad is not used, we generate lvm2-activation{-early,-net}.service
systemd services to activate any VGs found on the system. So far we used
--sysinit during this activation as polling was still forked off of the
lvm activation command.

This has changed with lvmpolld - we have proper lvmpolld systemd
service now (activated via its socket unit). As such, we don't need
to use --sysinit anymore during activation in systemd environment
as polling was the only barrier to remove the need for --sysinit.

9 years agolvmpolld-client.c: debug print when querying progress
Ondrej Kozina [Thu, 21 May 2015 09:10:09 +0000 (11:10 +0200)]
lvmpolld-client.c: debug print when querying progress

9 years agopolldaemon.c: modify log levels in report_progress
Ondrej Kozina [Thu, 21 May 2015 08:17:29 +0000 (10:17 +0200)]
polldaemon.c: modify log levels in report_progress

There's a race when asking lvmpolld about progress_status and
actually reading the progress info from kernel:

Even with lvmpolld being used we read status info from
LVM2 command issued by a user (client side from lvmpolld perspective).
The whole cycle may look like following:

1) set up an operation that requires polling (i.e. pvmove /dev/sda)
2) notify lvmpolld about such operation (lvmpolld_poll_init())
3) in case 1) was not called with --background it would continue with:
4) Ask lvmpolld about progress status. it may respond with one of:
   a) in_progress
   b) not_found
   c) finished
   d) any low level error

5) provided the answer was 4a) try to read progress info from polling LV
(i.e. vg00/pvmove1). Repeat steps 4) and 5) until the answer is != 4a).

And now we got into racy configuration: lvmpolld answered with in_progress
but it may be the that in_between 4) and 5) the operation has already
finished and polling LV is already gone or there's nothing to ask for.
Up to now, 5) would report warning and it could print such warning many
times if --interval was set to 0.

We don't want to scary users by warnings in such situation so let's just
print these messages in verbose mode. Error messages due to error while
reading kernel status info (on existing, active and locked LV) remained
the same.

9 years agoformat_text: Parse (optional) outdated_pvs section in VG metadata.
Petr Rockai [Wed, 29 Apr 2015 13:02:26 +0000 (15:02 +0200)]
format_text: Parse (optional) outdated_pvs section in VG metadata.

9 years agolvmetad: Set up lvmcache & PV structs for outdated_pvs.
Petr Rockai [Wed, 29 Apr 2015 13:01:20 +0000 (15:01 +0200)]
lvmetad: Set up lvmcache & PV structs for outdated_pvs.

9 years agolvmetad: Provide entire pvmeta sections for outdated_pvs.
Petr Rockai [Wed, 29 Apr 2015 13:00:28 +0000 (15:00 +0200)]
lvmetad: Provide entire pvmeta sections for outdated_pvs.

9 years agometadata: Add pvs_outdated to struct volume_group.
Petr Rockai [Wed, 15 Apr 2015 14:41:09 +0000 (16:41 +0200)]
metadata: Add pvs_outdated to struct volume_group.

This is a list of PVs that should have their MDAs wiped because they carry
outdated metadata (that used to belong to the VG they are attached to).

9 years agometadata: Factor _wipe_outdated_pvs() PVs out of _vg_read().
Petr Rockai [Wed, 15 Apr 2015 14:40:26 +0000 (16:40 +0200)]
metadata: Factor _wipe_outdated_pvs() PVs out of _vg_read().

9 years agolvmetad: Attach an outdated_pvs list to vg_lookup replies.
Petr Rockai [Wed, 15 Apr 2015 14:39:32 +0000 (16:39 +0200)]
lvmetad: Attach an outdated_pvs list to vg_lookup replies.

9 years agolvmetad: Clear the vgid_to_outdated_pvs hash on shutdown.
Petr Rockai [Wed, 15 Apr 2015 14:38:57 +0000 (16:38 +0200)]
lvmetad: Clear the vgid_to_outdated_pvs hash on shutdown.

9 years agolvmetad: Maintain info about outdated PVs.
Petr Rockai [Wed, 15 Apr 2015 11:00:35 +0000 (13:00 +0200)]
lvmetad: Maintain info about outdated PVs.

9 years agomakefiles: use bash subshell
Zdenek Kabelac [Wed, 20 May 2015 07:25:50 +0000 (09:25 +0200)]
makefiles: use bash subshell

Avoid using  make's $(shell invocation since the eval order is
then somewhat different and use $$(  subshell.

This also fixes a problem when more then one symbol is found,
since target shell has been given separate word list
so the 'R' assignment would need "" around it.

9 years agoconfigure: fix missing [
Zdenek Kabelac [Wed, 20 May 2015 07:07:49 +0000 (09:07 +0200)]
configure: fix missing [

9 years agoWHATS_NEW: various updates
Ondrej Kozina [Tue, 19 May 2015 19:01:24 +0000 (21:01 +0200)]
WHATS_NEW: various updates

9 years agopolldaemon.c: do not report error when LV not found
Ondrej Kozina [Tue, 19 May 2015 15:04:29 +0000 (17:04 +0200)]
polldaemon.c: do not report error when LV not found

currently in wait_for_single_lv() fn trying to poll missing pvmove LV
is considered success. It may have been already finished by another
instance of polldaemon. either by another forked off polldaemon
or by lvmpolld.

Let's try to handle the mirror conversion and snapshot merge the same
way.

9 years agolvconvert.c: drop get_vg_lock_and_logical_volume fn
David Teigland [Tue, 19 May 2015 14:46:11 +0000 (16:46 +0200)]
lvconvert.c: drop get_vg_lock_and_logical_volume fn

9 years agopvmove.c: code cleanup
David Teigland [Tue, 19 May 2015 13:27:36 +0000 (15:27 +0200)]
pvmove.c: code cleanup

9 years agopolldaemon: remove get_copy_vg and get_copy_lv wrappers
David Teigland [Tue, 19 May 2015 13:13:01 +0000 (15:13 +0200)]
polldaemon: remove get_copy_vg and get_copy_lv wrappers

These wrappers have been replaced by direct calls
to vg_read() and find_lv() in previous commits.

This commit should have no functional impact since
all bits were already unreachable.

9 years agopolldaemon.c: call find_lv directly
Ondrej Kozina [Tue, 19 May 2015 13:08:50 +0000 (15:08 +0200)]
polldaemon.c: call find_lv directly

9 years agolvconvert.c: call find_lv directly
David Teigland [Tue, 19 May 2015 12:50:58 +0000 (14:50 +0200)]
lvconvert.c: call find_lv directly

9 years agopolldaemon.c: call vg_read directly
David Teigland [Tue, 19 May 2015 12:40:40 +0000 (14:40 +0200)]
polldaemon.c: call vg_read directly

replace calls in wait_for_single_lv() and report_progress() fns

9 years agolvconvert.c: call vg_read directly
David Teigland [Tue, 19 May 2015 12:07:04 +0000 (14:07 +0200)]
lvconvert.c: call vg_read directly

9 years agopvmove.c: call vg_read directly
David Teigland [Tue, 19 May 2015 10:05:38 +0000 (12:05 +0200)]
pvmove.c: call vg_read directly

9 years agopolldaemon: move dev_close_all out of poll_get_copy_vg
Ondrej Kozina [Tue, 19 May 2015 09:37:39 +0000 (11:37 +0200)]
polldaemon: move dev_close_all out of poll_get_copy_vg

let's call dev_close_all() only before we're about to 'sleep'
for at least one second during the polling.

(it's questionable whether to call dev_close_all() at all in
polldaemon code. Natural extension would be to drop it completely)

9 years agotests: add test for duplicate pvs
David Teigland [Thu, 23 Apr 2015 19:52:21 +0000 (14:52 -0500)]
tests: add test for duplicate pvs

9 years agoconfigure: update localedir
Zdenek Kabelac [Mon, 18 May 2015 16:13:07 +0000 (18:13 +0200)]
configure: update localedir

Previous patch incorrectly skipped replace of @LOCALEDIR@.

The standard option is --localedir  so use --with-localedir
as backward compatible option and set localedir if it's not
yet been set (if the could ever happen).

Use double-eval to translate $datarootdir to $prefix to real dir.

9 years agoconfigure: LOCALEDIR needs evaluated value
Zdenek Kabelac [Mon, 18 May 2015 11:04:07 +0000 (13:04 +0200)]
configure: LOCALEDIR needs evaluated value

Also fix typo.

9 years agotests: fix calcucaltion
Zdenek Kabelac [Mon, 18 May 2015 08:16:09 +0000 (10:16 +0200)]
tests: fix calcucaltion

Code works properly.

9 years agotests: thin_restore not needed
Zdenek Kabelac [Mon, 18 May 2015 08:14:12 +0000 (10:14 +0200)]
tests: thin_restore  not needed

Few more test which could live without thin_restore.

9 years agomakefiles: drop LVM_SHARED_PATH
Zdenek Kabelac [Mon, 18 May 2015 10:16:24 +0000 (12:16 +0200)]
makefiles: drop LVM_SHARED_PATH

We already have LVM_PATH define used everywhere else
to access LVM binary so stay with one name.

9 years agomakefiles: better clean
Zdenek Kabelac [Mon, 18 May 2015 08:27:48 +0000 (10:27 +0200)]
makefiles: better clean

More exact clean of library exported symbols files.

Also use $(firstword) test to check for empty string
so 'make clean' has now cleaner condensed look.

Clean also created include links.

9 years agomakefiles: use := for shell calls
Zdenek Kabelac [Mon, 18 May 2015 08:27:15 +0000 (10:27 +0200)]
makefiles: use := for shell calls

9 years agomakefiles: use single target
Zdenek Kabelac [Mon, 18 May 2015 08:18:19 +0000 (10:18 +0200)]
makefiles: use single target

Possibly  easier to follow - to have just a single dependency line
and use  if() within rule.

Also replace $(words) with $(firstword) which is more commonly used.

9 years agoconfigure: move DEFS to configure.h
Zdenek Kabelac [Mon, 18 May 2015 08:36:11 +0000 (10:36 +0200)]
configure: move DEFS to configure.h

9 years agotests: no warn if test does not need thin_repair
Zdenek Kabelac [Sun, 17 May 2015 15:22:18 +0000 (17:22 +0200)]
tests: no warn if test does not need thin_repair

Set LVM_TEST_THIN_REPAIR_CMD to /bin/false for test which
doesn't need it.

This way - even if on the system there is no such tool present,
test will not result with warning about missing tool.

Also remove from Makefile settings of TEST vars which are set in
through /lib/paths  - this also allows to override them in test.

9 years agopost-release
Alasdair G Kergon [Fri, 15 May 2015 22:28:47 +0000 (23:28 +0100)]
post-release

9 years agopre-release v2_02_120
Alasdair G Kergon [Fri, 15 May 2015 22:19:29 +0000 (23:19 +0100)]
pre-release

9 years agomirror: use proper 64bit constants
Zdenek Kabelac [Fri, 15 May 2015 20:53:12 +0000 (22:53 +0200)]
mirror: use proper 64bit constants

ed2a08bf25e3b4e6a88c55402ab5dc11061ad68e missed to use 64bit
constants.

9 years agospec: new man page
Zdenek Kabelac [Fri, 15 May 2015 19:14:25 +0000 (21:14 +0200)]
spec: new man page

9 years agoconfig: remove UNDEFINED from cache_pool_cachemode
David Teigland [Fri, 15 May 2015 19:24:23 +0000 (14:24 -0500)]
config: remove UNDEFINED from cache_pool_cachemode

Replace UNDEFINED with COMMENTED because the code
requires a value to be returned from the config.

9 years agoconfig: remove UNDEFINED from thin_pool_discards and thin_pool_zero
David Teigland [Fri, 15 May 2015 19:01:23 +0000 (14:01 -0500)]
config: remove UNDEFINED from thin_pool_discards and thin_pool_zero

Replace UNDEFINED with COMMENTED for these two since
undefined seems to break things.

9 years agolvmpolld.8.in: man page rewrite
Ondrej Kozina [Thu, 14 May 2015 17:33:27 +0000 (19:33 +0200)]
lvmpolld.8.in: man page rewrite

- add client functionality
- fill in long option variants

9 years agolvmpolld: don't return success on invalid option
Ondrej Kozina [Fri, 15 May 2015 17:28:23 +0000 (19:28 +0200)]
lvmpolld: don't return success on invalid option

9 years agolvmpolld: add long option variants for all short ones
Ondrej Kozina [Fri, 15 May 2015 17:18:32 +0000 (19:18 +0200)]
lvmpolld: add long option variants for all short ones

9 years agolvmpolld: introduce client functionality
Ondrej Kozina [Fri, 15 May 2015 16:47:25 +0000 (18:47 +0200)]
lvmpolld: introduce client functionality

as of now lvmpolld works as client utility for
querying running instance of lvmpolld server
on metadata, state, etc.

Currently the only request implemented is the '--dump'.
It prints out full lvmpolld state (mimics lvmdump -p command).

9 years agopvmove.c: relocate id components extraction
Ondrej Kozina [Fri, 15 May 2015 15:06:14 +0000 (17:06 +0200)]
pvmove.c: relocate id components extraction

we don't want to fail properly set pvmove after metadata
update. failure to copy id components could end with dangling
mirror moving PV segments but no monitoring from lvmpolld or
classical polldaemon.

9 years agolvpoll.c: harden the checks for proper LV name
Ondrej Kozina [Fri, 15 May 2015 14:35:00 +0000 (16:35 +0200)]
lvpoll.c: harden the checks for proper LV name

lvpoll now process passed LV name properly. It respects
LVM_VG_NAME env. variable and is able to process LV name
passed in various formats:

- VG/LV
- LV name only (with LVM_VG_NAME set)
- /dev/mapper/VG-LV
- /dev/VG/LV

9 years agolvpoll.c: replace arg_count with arg_is_set
Ondrej Kozina [Fri, 15 May 2015 14:45:02 +0000 (16:45 +0200)]
lvpoll.c: replace arg_count with arg_is_set

didn't need to count the occurence but check if set

9 years agoexample.conf.in: apply previous improvements to example.conf
David Teigland [Fri, 15 May 2015 12:28:30 +0000 (14:28 +0200)]
example.conf.in: apply previous improvements to example.conf

9 years agoconfig_settings.h: improve lvmpolld config description
David Teigland [Fri, 15 May 2015 12:26:50 +0000 (14:26 +0200)]
config_settings.h: improve lvmpolld config description

9 years agolvm.8.in: add reference to lvpoll built-in command
Ondrej Kozina [Fri, 15 May 2015 11:38:55 +0000 (13:38 +0200)]
lvm.8.in: add reference to lvpoll built-in command

9 years agolvmdump.8.in: describe lvmpolld related option
Ondrej Kozina [Fri, 15 May 2015 11:38:38 +0000 (13:38 +0200)]
lvmdump.8.in: describe lvmpolld related option

9 years agocommands.h: reorder lvpoll options
Ondrej Kozina [Thu, 14 May 2015 17:33:54 +0000 (19:33 +0200)]
commands.h: reorder lvpoll options

9 years agolvm-lvpoll.8.in: man page for built-in command
Ondrej Kozina [Fri, 15 May 2015 18:16:51 +0000 (20:16 +0200)]
lvm-lvpoll.8.in: man page for built-in command

9 years agolvmpolld.8.in: hide origin of lvmpolld man page
Ondrej Kozina [Thu, 14 May 2015 16:43:50 +0000 (18:43 +0200)]
lvmpolld.8.in: hide origin of lvmpolld man page

:)

9 years agolvmpolld-client.c: explain known return codes
Ondrej Kozina [Thu, 14 May 2015 14:44:31 +0000 (16:44 +0200)]
lvmpolld-client.c: explain known return codes

lvmpolld returns few well known return codes. Explain
these to users and suggest reading lvmpolld log files
for more details

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