]> sourceware.org Git - lvm2.git/log
lvm2.git
12 years agoscripts: introduce blkdeactivate
Peter Rajnoha [Fri, 12 Oct 2012 12:37:57 +0000 (14:37 +0200)]
scripts: introduce blkdeactivate

blkdeactivate - utility to deactivate block devices

Traverses the tree of block devices and tries to deactivate them.
Currently, it supports device-mapper-based devices together with LVM.
See man/blkdeactivate.8 for more info.

It is targeted for use during shutdown to properly deactivate the
whole block device stack - systemd and init scripts are provided as
well. However, it might be used directly on command line too.

Please, see the commentary at the top of the blkdeactivate script
for dependencies and versions of other utilities required.

12 years agosystemd: add deps to order units more properly
Peter Rajnoha [Fri, 12 Oct 2012 12:21:25 +0000 (14:21 +0200)]
systemd: add deps to order units more properly

lvm2-activation-early.service (generated by activation generator) should
be ordered before cryptsetup.target.

lvm2-monitor.service should be ordered after lvm2-activation.service,
if used. The lvm2-activation.service will replace fedora-storage-init.service
and fedora-storage-init-late.service in the end, but let's have it
prepared now.

12 years agoUpdate WHATS_NEW.
Petr Rockai [Fri, 12 Oct 2012 11:24:06 +0000 (13:24 +0200)]
Update WHATS_NEW.

12 years agothin: prohibit lvcreate --thinpool with mirrors
Zdenek Kabelac [Fri, 12 Oct 2012 10:18:06 +0000 (12:18 +0200)]
thin: prohibit lvcreate --thinpool with mirrors

Disable --thinpool to be used with mirror on lvcreate.

12 years agothin: lvm2api return origin property for thin LV
Zdenek Kabelac [Fri, 12 Oct 2012 10:02:15 +0000 (12:02 +0200)]
thin: lvm2api return origin property for thin LV

12 years agolibdm: remove dm dev without error even with malformed UUID
Peter Rajnoha [Fri, 12 Oct 2012 09:53:04 +0000 (11:53 +0200)]
libdm: remove dm dev without error even with malformed UUID

On each ioctl return, the device UUID is decoded from \xNN format.
If the UUID of the device being *removed* is malformed (e.g. it
hasn't been corrected before), just remove it without any error
as the UUID is not needed anymore - the device is gone anyway.

Otherwise a misleading error message would be issued just after
the removal:
  # dmsetup remove test
  The UUID "a b" should be mangled but it contains blacklisted characters.
  Command failed

12 years agolvmetad: fix test for dm_asprintf
Zdenek Kabelac [Fri, 12 Oct 2012 09:34:15 +0000 (11:34 +0200)]
lvmetad: fix test for dm_asprintf

12 years agolvmetad: Fix the fix for 813766 (lvmetad connection warning).
Petr Rockai [Fri, 12 Oct 2012 09:16:38 +0000 (11:16 +0200)]
lvmetad: Fix the fix for 813766 (lvmetad connection warning).

12 years agolvmetad: validate dm_asprintf in buffer_append_vf
Zdenek Kabelac [Fri, 12 Oct 2012 08:57:01 +0000 (10:57 +0200)]
lvmetad: validate dm_asprintf in buffer_append_vf

Check result of dm_asprintf
Check buffer_append result
Declare vars in front

12 years agolvmetad: check result of buffer_realloc
Zdenek Kabelac [Fri, 12 Oct 2012 08:50:07 +0000 (10:50 +0200)]
lvmetad: check result of buffer_realloc

12 years agolvmetad: initialize cft value
Zdenek Kabelac [Fri, 12 Oct 2012 08:35:01 +0000 (10:35 +0200)]
lvmetad: initialize cft value

the error should not test garbage value.

12 years agolvmetad: Make --sysinit suppress connection failure warnings.
Petr Rockai [Fri, 12 Oct 2012 00:48:39 +0000 (02:48 +0200)]
lvmetad: Make --sysinit suppress connection failure warnings.

12 years agocleanup: fix compiler warnings
Zdenek Kabelac [Fri, 12 Oct 2012 08:15:30 +0000 (10:15 +0200)]
cleanup: fix compiler warnings

remove unused vars
move var declarations into the front of functions.
fix some sign warnings

12 years agopython: Add bindings for liblvm2app.
Alasdair G Kergon [Fri, 12 Oct 2012 01:08:47 +0000 (02:08 +0100)]
python: Add bindings for liblvm2app.

Use configure --enable-python_bindings to generate them.

Note that the Makefiles do not yet control the owner or permissions of
the two new files on installation.

12 years agolvmdump: Add -l, to collect a state dump from lvmetad.
Petr Rockai [Thu, 11 Oct 2012 20:42:20 +0000 (22:42 +0200)]
lvmdump: Add -l, to collect a state dump from lvmetad.

12 years agolvmdump: Fix systems with tr on PATH outside of /usr/bin.
Petr Rockai [Thu, 11 Oct 2012 20:39:40 +0000 (22:39 +0200)]
lvmdump: Fix systems with tr on PATH outside of /usr/bin.

12 years agotest: Add lvmetad-dump.sh.
Petr Rockai [Thu, 11 Oct 2012 18:32:25 +0000 (20:32 +0200)]
test: Add lvmetad-dump.sh.

12 years agolvmetad: Implement a "dump" request to capture lvmetad state.
Petr Rockai [Thu, 11 Oct 2012 18:31:29 +0000 (20:31 +0200)]
lvmetad: Implement a "dump" request to capture lvmetad state.

12 years agotest: Skip lvconvert-raid on kernels < 3.2 since they BUG out.
Petr Rockai [Thu, 11 Oct 2012 13:38:19 +0000 (15:38 +0200)]
test: Skip lvconvert-raid on kernels < 3.2 since they BUG out.

12 years agolibdaemon: Make buffer handling asymptotically more efficient.
Petr Rockai [Thu, 11 Oct 2012 12:17:17 +0000 (14:17 +0200)]
libdaemon: Make buffer handling asymptotically more efficient.

12 years agolvm2api: add defined lvm_percent_to_float
Zdenek Kabelac [Thu, 11 Oct 2012 15:25:14 +0000 (17:25 +0200)]
lvm2api: add defined lvm_percent_to_float

Implement function which was somehow missing from it's original
placement in the header file lvm2api.h.

12 years agothin: raise required version to 1.4
Zdenek Kabelac [Thu, 11 Oct 2012 12:07:35 +0000 (14:07 +0200)]
thin: raise required version to 1.4

Stay safe and require 1.4 (kernel 3.6) for non-power-of-2
support for thin pool chunk_size.

12 years agotest: Skip the topology test if setting up scsi_debug fails.
Petr Rockai [Thu, 11 Oct 2012 09:51:04 +0000 (11:51 +0200)]
test: Skip the topology test if setting up scsi_debug fails.

12 years agopvscan --cache: Also read metadata from LVM1 PVs (BZ 863401).
Petr Rockai [Wed, 10 Oct 2012 19:49:40 +0000 (21:49 +0200)]
pvscan --cache: Also read metadata from LVM1 PVs (BZ 863401).

12 years agolvmetad: Fix help output (flags and their meaning).
Petr Rockai [Wed, 10 Oct 2012 12:38:25 +0000 (14:38 +0200)]
lvmetad: Fix help output (flags and their meaning).

12 years agotest: use exclusive activation for created mirrors
Zdenek Kabelac [Wed, 10 Oct 2012 16:38:55 +0000 (18:38 +0200)]
test: use exclusive activation for created mirrors

12 years agotest: thin support for non power of 2 chunk size
Zdenek Kabelac [Wed, 10 Oct 2012 14:37:55 +0000 (16:37 +0200)]
test: thin support for non power of 2 chunk size

12 years agotest: drop clustered flag control from thin tests
Zdenek Kabelac [Wed, 10 Oct 2012 17:00:46 +0000 (19:00 +0200)]
test: drop clustered flag control from thin tests

12 years agotest: move common code for thin init
Zdenek Kabelac [Wed, 10 Oct 2012 12:57:02 +0000 (14:57 +0200)]
test: move common code for thin init

12 years agocleanup: fix typos
Zdenek Kabelac [Tue, 9 Oct 2012 17:42:26 +0000 (19:42 +0200)]
cleanup: fix typos

12 years agothin: support non power of 2 chunk size
Zdenek Kabelac [Thu, 2 Feb 2012 13:37:51 +0000 (14:37 +0100)]
thin: support non power of 2 chunk size

Support thin chunk size with multiple of 64KiB if user has
thin-pool target version at least 1.2.

12 years agoTEST: Add lvchange-partial.sh and vgchange-partial.sh to the test suite
Jonathan Brassow [Wed, 10 Oct 2012 16:47:04 +0000 (11:47 -0500)]
TEST:  Add lvchange-partial.sh and vgchange-partial.sh to the test suite

Commit 3501f17fd0fcec2a1fbb8aeecf228e86ee022d99 enables a limited set
of metadata updates for partial LV/VGs when issuing lvchange or vgchange.
These tests verify those changes operate as intended.

12 years ago[lv|vg]change: Allow limited metadata changes when PVs are missing
Jonathan Brassow [Wed, 10 Oct 2012 16:33:10 +0000 (11:33 -0500)]
[lv|vg]change:  Allow limited metadata changes when PVs are missing

A while back, the behavior of LVM changed from allowing metadata changes
when PVs were missing to not allowing changes.  Until recently, this
change was tolerated by HA-LVM by forcing a 'vgreduce --removemissing'
before trying (again) to add tags to an LV and then activate it.  LVM
mirroring requires that failed devices are removed anyway, so this was
largely harmless.  However, RAID LVs do not require devices to be removed
from the array in order to be activated.  In fact, in an HA-LVM
environment this would be very undesirable.  Device failures in such an
environment can often be transient and it would be much better to restore
the device to the array than synchronize an entirely new device.

There are two methods that can be used to setup an HA-LVM environment:
"clvm" or "tagging".  For RAID LVs, "clvm" is out of the question because
RAID LVs are not supported in clustered VGs - not even in an exclusively
activated manner.  That leaves "tagging".  HA-LVM uses tagging - coupled
with 'volume_list' - to ensure that only one machine can have an LV active
at a time.  If updates are not allowed when a PV is missing, it is
impossible to add or remove tags to allow for activation.  This removes
one of the most basic functionalities of HA-LVM - site redundancy.  If
mirroring or RAID is used to replicate the storage in two data centers
and one of them goes down, a server and a storage device are lost.  When
the service fails-over to the alternate site, the VG will be "partial".
Unable to add a tag to the VG/LV, the RAID device will be unable to
activate.

The solution is to allow vgchange and lvchange to alter the LVM metadata
for a limited set of options - --[add|del]tag included.  The set of
allowable options are ones that do not cause changes to the DM kernel
target (like --resync would) or could alter the structure of the LV
(like allocation or conversion).

12 years agoWHATS_NEW: update
Peter Rajnoha [Wed, 10 Oct 2012 15:36:37 +0000 (17:36 +0200)]
WHATS_NEW: update

12 years ago man: dmsetup mangle also processes UUIDs now
Peter Rajnoha [Wed, 10 Oct 2012 15:04:56 +0000 (17:04 +0200)]
 man: dmsetup mangle also processes UUIDs now

12 years agodmsetup: also apply 'mangle' command for UUIDs
Peter Rajnoha [Wed, 10 Oct 2012 15:03:47 +0000 (17:03 +0200)]
dmsetup: also apply 'mangle' command for UUIDs

Compared to names, UUIDs can't be renamed once they are created
for a device. The 'mangle' command will just issue an error message
about a need for manual intervention in this case - reactivating the
device (remove + create) does the job as the defualt mangling mode
used is "auto" and that will assign a correct mangled form the UUID.

12 years agodmsetup: add mangled/unmangled_uuid to for info -c
Peter Rajnoha [Wed, 10 Oct 2012 15:02:59 +0000 (17:02 +0200)]
dmsetup: add mangled/unmangled_uuid to for info -c

Following the same logic already used for name mangling.

12 years agolibdm: introduce and use DEV_UUID macro
Peter Rajnoha [Wed, 10 Oct 2012 15:02:19 +0000 (17:02 +0200)]
libdm: introduce and use DEV_UUID macro

To automatically prefer mangled UUID over unmangled UUID. The same
logic that is already used for dm name mangling...

12 years agolibdm: unmangle dm UUIDs on dm ioctl return
Peter Rajnoha [Wed, 10 Oct 2012 15:01:42 +0000 (17:01 +0200)]
libdm: unmangle dm UUIDs on dm ioctl return

12 years agolibdm: add mangling support for dm_task_set_newuuid
Peter Rajnoha [Wed, 10 Oct 2012 15:01:13 +0000 (17:01 +0200)]
libdm: add mangling support for dm_task_set_newuuid

12 years agolibdm: add mangling support for dm_task_set_uuid
Peter Rajnoha [Wed, 10 Oct 2012 15:00:41 +0000 (17:00 +0200)]
libdm: add mangling support for dm_task_set_uuid

Also, add a new field to struct dm_task called "mangled_uuid" that
will store mangled form of uuid if it differs from original uuid.

12 years agolibdm: add dm_task_get_uuid_mangled/unmangled
Peter Rajnoha [Wed, 10 Oct 2012 14:59:47 +0000 (16:59 +0200)]
libdm: add dm_task_get_uuid_mangled/unmangled

Just like we already have existing mangling support for
device-mapper names, we need exactly the same for device-mapper
UUIDs as their character whitelist is wider than what udev supports.

In case udev is used to create entries in /dev based on UUIDs
and these UUIDs contain characters not supported by udev,
we'll end up with incorrect /dev content for such devices.
So we need to mangle them to a form that is supported by udev.

The mangling used for UUIDs follows the mangling used for names
(that is already supported and used throughout). That means,
setting the name mangling mode via dm_set_name_mangling_mode
affects mangling used for UUIDs in exactly the same manner.
It would be useless to add a new and separate
dm_set_uuid_mangling_mode fn, we'll reuse existing interface.

12 years agolibdm: refactor internal mangling functions
Peter Rajnoha [Wed, 10 Oct 2012 14:59:11 +0000 (16:59 +0200)]
libdm: refactor internal mangling functions

(un)mangle_name -> (un)mangle_string
check_multiple_mangled_name_allowed -> check_multiple_mangled_string_allowed

Just for clarity as the same functions will be reused to (un)mangle dm UUIDs.

12 years agotest: Check that lvmetad is refreshed correctly on restart.
Petr Rockai [Wed, 10 Oct 2012 10:34:44 +0000 (12:34 +0200)]
test: Check that lvmetad is refreshed correctly on restart.

12 years agolvmetad: Warn if lvmetad is running but disabled.
Petr Rockai [Wed, 10 Oct 2012 10:33:48 +0000 (12:33 +0200)]
lvmetad: Warn if lvmetad is running but disabled.

12 years agolvmetad: Fix the -f pidfile (non-)creation logic.
Petr Rockai [Wed, 10 Oct 2012 10:32:24 +0000 (12:32 +0200)]
lvmetad: Fix the -f pidfile (non-)creation logic.

12 years agotest: Skip thin tests if thin support is configured out.
Petr Rockai [Tue, 9 Oct 2012 22:20:22 +0000 (00:20 +0200)]
test: Skip thin tests if thin support is configured out.

12 years agoconfigure: Use pkg-config to look for valgrind/memcheck.h.
Petr Rockai [Tue, 9 Oct 2012 18:54:41 +0000 (20:54 +0200)]
configure: Use pkg-config to look for valgrind/memcheck.h.

12 years agolvmetad: Only create pidfile when running as a daemon (no -f).
Petr Rockai [Tue, 9 Oct 2012 18:25:17 +0000 (20:25 +0200)]
lvmetad: Only create pidfile when running as a daemon (no -f).

Additionally, -f now makes -s mandatory, so the foreground (debugging) lvmetad
does not steal the system-wide socket accidentally.

12 years agolibdaemon-server: Do not create pidfile if NULL.
Petr Rockai [Tue, 9 Oct 2012 18:22:30 +0000 (20:22 +0200)]
libdaemon-server: Do not create pidfile if NULL.

12 years agoTEST: Avoid building unit tests with --disable-testing.
Petr Rockai [Tue, 9 Oct 2012 09:20:28 +0000 (11:20 +0200)]
TEST: Avoid building unit tests with --disable-testing.

12 years agotest: more thin tests
Zdenek Kabelac [Tue, 9 Oct 2012 14:32:11 +0000 (16:32 +0200)]
test: more thin tests

12 years agotest: move raid10 test into separate test files
Zdenek Kabelac [Tue, 9 Oct 2012 11:51:30 +0000 (13:51 +0200)]
test: move raid10 test into separate test files

New features tested in new files.

12 years agotest: split raid tests
Zdenek Kabelac [Tue, 9 Oct 2012 10:17:33 +0000 (12:17 +0200)]
test: split raid tests

Separate original raid test and new raid10 test,
so the old could be tested on platforms without raid10 support.

Replace test-unfriendly `ls /dev/mapper`   with  dmsetup ls

12 years agolvchange: do not start dmevent for resyn
Zdenek Kabelac [Tue, 9 Oct 2012 10:20:47 +0000 (12:20 +0200)]
lvchange: do not start dmevent for resyn

If monitoring is disabled in lvm.conf, avoid its starting and preserve
DMEVENTD_MONITOR_IGNORE settings internally.

12 years agoexample.conf: Warn about running lvmetad with use_lvmetad = 0.
Petr Rockai [Tue, 9 Oct 2012 08:47:29 +0000 (10:47 +0200)]
example.conf: Warn about running lvmetad with use_lvmetad = 0.

12 years agotest: ignore modprobe failure
Zdenek Kabelac [Tue, 9 Oct 2012 08:37:37 +0000 (10:37 +0200)]
test: ignore modprobe failure

If the system doesn't have modprobe but happens to have modules
loaded, allow version testing.

12 years agoTEST: Check that LVM1 VGs work when using lvmetad (BZ 863401).
Petr Rockai [Tue, 9 Oct 2012 05:59:53 +0000 (07:59 +0200)]
TEST: Check that LVM1 VGs work when using lvmetad (BZ 863401).

12 years agolvmetad: Fix a leak on duplicated PVs (same PVID, different device).
Petr Rockai [Mon, 8 Oct 2012 18:31:12 +0000 (20:31 +0200)]
lvmetad: Fix a leak on duplicated PVs (same PVID, different device).

12 years agolvmetad: Fix a leak in an error path in update_metadata.
Petr Rockai [Mon, 8 Oct 2012 18:33:03 +0000 (20:33 +0200)]
lvmetad: Fix a leak in an error path in update_metadata.

12 years agoTEST: Give lvmetad a chance to exit gracefully upon teardown.
Petr Rockai [Mon, 8 Oct 2012 18:25:51 +0000 (20:25 +0200)]
TEST: Give lvmetad a chance to exit gracefully upon teardown.

12 years agoTEST: Wait for lvmetad socket to appear in "aux prepare_lvmetad".
Petr Rockai [Mon, 8 Oct 2012 18:25:14 +0000 (20:25 +0200)]
TEST: Wait for lvmetad socket to appear in "aux prepare_lvmetad".

12 years agoTEST: When INTERACTIVE=1, allow scripts to control a TTY.
Petr Rockai [Mon, 8 Oct 2012 18:15:55 +0000 (20:15 +0200)]
TEST: When INTERACTIVE=1, allow scripts to control a TTY.

12 years agolvmetad: Fix a typo-induced leak in destroy_metadata_hashes.
Petr Rockai [Mon, 8 Oct 2012 18:15:09 +0000 (20:15 +0200)]
lvmetad: Fix a typo-induced leak in destroy_metadata_hashes.

12 years agolibdaemon-client: Fix a memory leak in daemon_send.
Petr Rockai [Mon, 8 Oct 2012 16:35:30 +0000 (18:35 +0200)]
libdaemon-client: Fix a memory leak in daemon_send.

12 years agolibdaemon-server: Optimize logging for a fast no-output path.
Petr Rockai [Mon, 8 Oct 2012 16:34:33 +0000 (18:34 +0200)]
libdaemon-server: Optimize logging for a fast no-output path.

12 years agolibdaemon-server: Fix a memory leak in daemon_log_multi.
Petr Rockai [Mon, 8 Oct 2012 15:11:43 +0000 (17:11 +0200)]
libdaemon-server: Fix a memory leak in daemon_log_multi.

12 years agosystemd: remove ExecStartPost from lvm2-lvmetad.service.
Peter Rajnoha [Mon, 8 Oct 2012 14:49:54 +0000 (16:49 +0200)]
systemd: remove ExecStartPost from lvm2-lvmetad.service.

The ExecStartPost with pvscan --cache in lvm2-lvmetad.service
is not needed now as this is called transparently within the
first LVM command that queries lvmetad.

12 years agodev-cache: Make dev_iter_create work with a NULL filter.
Petr Rockai [Mon, 8 Oct 2012 14:16:58 +0000 (16:16 +0200)]
dev-cache: Make dev_iter_create work with a NULL filter.

12 years agotest: move raid test to separate tests
Zdenek Kabelac [Mon, 8 Oct 2012 12:46:44 +0000 (14:46 +0200)]
test: move raid test to separate tests

Revert changes to origin lvcreate-large test and use separate
test scripts for raid  - so they can be properly skipped when
kernel doesn't support raid targets.

12 years agolvmetad: In pvscan --cache, update the token directly.
Petr Rockai [Mon, 8 Oct 2012 10:21:36 +0000 (12:21 +0200)]
lvmetad: In pvscan --cache, update the token directly.

12 years agotest: check snap_percent returns invalid
Zdenek Kabelac [Mon, 8 Oct 2012 10:07:35 +0000 (12:07 +0200)]
test: check snap_percent returns invalid

For thin_volumes snap_percent is meaningless.

12 years agoreport: call snapshot percent with cow only
Zdenek Kabelac [Mon, 8 Oct 2012 10:06:30 +0000 (12:06 +0200)]
report: call snapshot percent with cow only

Ensure lv_snapshot_percent is used only with snapshot LVs.

12 years agolvconvert: disable convertion of thin to mirrors
Zdenek Kabelac [Fri, 5 Oct 2012 09:06:08 +0000 (11:06 +0200)]
lvconvert: disable convertion of thin to mirrors

For now this convertions is not supported, thus disabled.
The only supported conversion for now is to create mirrored thin pools
from mirrored devices.

12 years agolvmetad: Avoid overlapping locks that could cause a deadlock (BZ 862253).
Petr Rockai [Mon, 8 Oct 2012 07:12:51 +0000 (09:12 +0200)]
lvmetad: Avoid overlapping locks that could cause a deadlock (BZ 862253).

12 years agoTEST: Only run the pvscan --cache test with lvmetad active.
Petr Rockai [Mon, 8 Oct 2012 05:23:13 +0000 (07:23 +0200)]
TEST: Only run the pvscan --cache test with lvmetad active.

12 years agoTEST: Add lvmetad-pvscan-cache to check that pvscan --cache works.
Petr Rockai [Sun, 7 Oct 2012 20:31:33 +0000 (22:31 +0200)]
TEST: Add lvmetad-pvscan-cache to check that pvscan --cache works.

12 years agotest: lvm2api thin data_percent
Zdenek Kabelac [Fri, 5 Oct 2012 08:33:41 +0000 (10:33 +0200)]
test: lvm2api thin data_percent

12 years agotest: check data_percent is equal to snap_percent
Zdenek Kabelac [Fri, 5 Oct 2012 08:32:49 +0000 (10:32 +0200)]
test: check data_percent is equal to snap_percent

12 years agolvm2api: fix data percent reporting for thin, snap
Zdenek Kabelac [Fri, 5 Oct 2012 07:56:50 +0000 (09:56 +0200)]
lvm2api: fix data percent reporting for thin, snap

Use same logic for lvm2api as we use lvs reporting.
data_percent is meant to be superset for snap_percent.

12 years agoRAID: Do not allow RAID LVs in a cluster volume group.
Jonathan Brassow [Wed, 3 Oct 2012 20:52:54 +0000 (15:52 -0500)]
RAID:  Do not allow RAID LVs in a cluster volume group.

It would be possible to activate a RAID LV exclusively in a cluster
volume group, but for now we do not allow RAID LVs to exist in a
clustered volume group at all.  This has two components:
1) Do not allow RAID LVs to be created in a clustered VG
2) Do not allow changing a VG from single-machine to clustered
   if there are RAID LVs present.

12 years agothin: lvconvert
Zdenek Kabelac [Mon, 14 May 2012 11:57:30 +0000 (13:57 +0200)]
thin: lvconvert

Update code for lvconvert.
Change the lvconvert user interface a bit - now we require 2 specifiers
--thinpool   takes LV name for data device (and makes the name)
--poolmetadata  takes LV name for metadata device.

Fix type in thin help text -z -> -Z.

Supported is also new flag --discards for thinpools.

12 years agothin: lvchange allows to change perms of thin snap
Zdenek Kabelac [Wed, 19 Sep 2012 12:55:34 +0000 (14:55 +0200)]
thin: lvchange allows to change perms of thin snap

Thin snapshots are individual thin volumes so they can have its own
control for rw permissions.

12 years agoliblvm: insert layer with subvolume renames
Zdenek Kabelac [Thu, 6 Sep 2012 13:21:18 +0000 (15:21 +0200)]
liblvm: insert layer with subvolume renames

Rename also subvolumes if we are inserting _tdata layer.
(Currently it breaks mirrors if it would be generic, needs fixing).

12 years agocleanup: add proper cast for force_t
Zdenek Kabelac [Wed, 19 Sep 2012 13:13:21 +0000 (15:13 +0200)]
cleanup: add proper cast for force_t

12 years agothin: origin only suspend
Zdenek Kabelac [Tue, 5 Jun 2012 09:28:01 +0000 (11:28 +0200)]
thin: origin only suspend

Skip tree creating when used with origin_only flag.

12 years agolibdm: reset delay flag for devs used by thin
Zdenek Kabelac [Thu, 27 Sep 2012 14:57:14 +0000 (16:57 +0200)]
libdm: reset delay flag for devs used by thin

Patch clears the flag if thin pool is stacked over mirror.

Since thin pool could be used to stack device over mirrors,
it needs resume properly i.e. mirrors with corelog which are otherwise
unconditionally skipped (for pvmove functionality).

12 years agoliblvm: add lv_rename_update
Zdenek Kabelac [Thu, 27 Sep 2012 07:48:25 +0000 (09:48 +0200)]
liblvm: add lv_rename_update

Support lv_rename without directly updating metatata.
It can save some metadata commits in some cases,
i.e. when LVs are offline.

12 years agoliblvm2cmd: ensure standard descriptors are ready
Zdenek Kabelac [Fri, 7 Sep 2012 09:13:41 +0000 (11:13 +0200)]
liblvm2cmd: ensure standard descriptors are ready

Check if FDs 0,1,2 are available, and in case they are missing,
use /dev/null for them.

12 years agoliblvm2cmd: add return code for _close_stray_fds
Zdenek Kabelac [Thu, 15 Mar 2012 00:18:23 +0000 (01:18 +0100)]
liblvm2cmd: add return code for _close_stray_fds

Close fds via /proc/self/fd parsing
Return error code if _close_stray_fds fails and quit application
if system is in some nonstandard state.

12 years agoconfigure: fix --enable-testing
Zdenek Kabelac [Mon, 1 Oct 2012 12:34:07 +0000 (14:34 +0200)]
configure: fix --enable-testing

Add missing pkg init for configure --enable-testing.

12 years agoRAID: Fix problems with creating, extending and converting large RAID LVs
Jonathan Brassow [Thu, 27 Sep 2012 21:51:22 +0000 (16:51 -0500)]
RAID: Fix problems with creating, extending and converting large RAID LVs

MD's bitmaps can handle 2^21 regions at most.  The RAID code has always
used a region_size of 1024 sectors.  That means the size of a RAID LV was
limited to 1TiB.  (The user can adjust the region_size when creating a
RAID LV, which can affect the maximum size.)  Thus, creating, extending or
converting to a RAID LV greater than 1TiB would result in a failure to
load the new device-mapper table.

Again, the size of the RAID LV is not limited by how much space is allocated
for the metadata area, but by the limitations of the MD bitmap.  Therefore,
we must adjust the 'region_size' to ensure that the number of regions does
not exceed the limit.  I've added code to do this when extending a RAID LV
(which covers 'create' and 'extend' operations) and when up-converting -
specifically from linear to RAID1.

12 years agolibdaemon: Split daemon-shared.[hc] into daemon-io.[hc] and config-util.[hc].
Petr Rockai [Wed, 26 Sep 2012 12:44:03 +0000 (14:44 +0200)]
libdaemon: Split daemon-shared.[hc] into daemon-io.[hc] and config-util.[hc].

12 years agolibdaemonclient: Use log_sys_error in place of perror.
Petr Rockai [Wed, 26 Sep 2012 11:11:13 +0000 (13:11 +0200)]
libdaemonclient: Use log_sys_error in place of perror.

12 years agolibdaemonclient: Use dm_{malloc,free} in place of {malloc,free}.
Petr Rockai [Wed, 26 Sep 2012 11:10:53 +0000 (13:10 +0200)]
libdaemonclient: Use dm_{malloc,free} in place of {malloc,free}.

12 years agolvremove: Revert to allowing removal of partial LVs.
Petr Rockai [Wed, 26 Sep 2012 10:25:45 +0000 (12:25 +0200)]
lvremove: Revert to allowing removal of partial LVs.

12 years agolvremove: Ask before discarding data areas.
Petr Rockai [Wed, 26 Sep 2012 10:23:44 +0000 (12:23 +0200)]
lvremove: Ask before discarding data areas.

12 years agoTEST: Workaround for lvmetad vs inconsistent metadata.
Petr Rockai [Wed, 19 Sep 2012 23:57:55 +0000 (01:57 +0200)]
TEST: Workaround for lvmetad vs inconsistent metadata.

12 years agolvmetad: Initialise debug_config also if no -d is given.
Petr Rockai [Wed, 19 Sep 2012 23:56:41 +0000 (01:56 +0200)]
lvmetad: Initialise debug_config also if no -d is given.

12 years agolvmetad: Give inconsistent metadata warnings in pvscan --cache.
Petr Rockai [Wed, 19 Sep 2012 21:45:51 +0000 (23:45 +0200)]
lvmetad: Give inconsistent metadata warnings in pvscan --cache.

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