]> sourceware.org Git - lvm2.git/log
lvm2.git
12 years ago.
Alasdair Kergon [Fri, 20 Jan 2012 03:56:18 +0000 (03:56 +0000)]
.

12 years agoimprove comment
Alasdair Kergon [Fri, 20 Jan 2012 03:46:52 +0000 (03:46 +0000)]
improve comment

12 years agoPreserve exclusive activation of cluster mirror when converting.
Jonathan Earl Brassow [Fri, 20 Jan 2012 00:27:18 +0000 (00:27 +0000)]
Preserve exclusive activation of cluster mirror when converting.

This patch to the suspend code - like the similar change for resume -
queries the lock mode of a cluster volume and records whether it is active
exclusively.  This is necessary for suspend due to the possibility of
preloading targets.  Failure to check to exclusivity causes the cluster target
of an exclusively activated mirror to be used when converting - rather than
the single machine target.

12 years agoDrop unimplemented
Zdenek Kabelac [Thu, 19 Jan 2012 16:22:42 +0000 (16:22 +0000)]
Drop unimplemented

12 years agoDrop unused variable
Zdenek Kabelac [Thu, 19 Jan 2012 15:59:51 +0000 (15:59 +0000)]
Drop unused variable

12 years agoThin indent update
Zdenek Kabelac [Thu, 19 Jan 2012 15:42:18 +0000 (15:42 +0000)]
Thin indent update

12 years agoThin disable snapshot creation when pool is over the threshold.
Zdenek Kabelac [Thu, 19 Jan 2012 15:39:41 +0000 (15:39 +0000)]
Thin disable snapshot creation when pool is over the threshold.

Since snapshot needs to suspend origin - it might lead to pool userspace
deadlock (as the pool will wait for new space in case it would be overfilled,
but dmeventd would not be able to resize it, as the lvcreate operation would
have kept the VG lock.)
To minimize the risk of such scenario - we prevent to create new snapshot
in case we are over the threshold - but beware, there is still small timewindow,
so keep threshold at some reasonable level!

12 years agoThin add new display field for lvs
Zdenek Kabelac [Thu, 19 Jan 2012 15:34:32 +0000 (15:34 +0000)]
Thin add new display field for  lvs

New field Data% is able to display info about
thin_pool, thin, snapshot and has generic meaning here.

Simple Time/Host field are here to display host and time creation.

12 years agoAdd support to keep info about creation time and host for each LV
Zdenek Kabelac [Thu, 19 Jan 2012 15:31:45 +0000 (15:31 +0000)]
Add support to keep info about creation time and host for each LV

Basic support to keep info when the LV was created.
Host and time is stored into LV mda section.

FIXME: Current version doesn't support configurable string via lvm.conf
and used fixed version strftime "%Y-%m-%d %T %z".

12 years agoThin add function to read thin volume percent
Zdenek Kabelac [Thu, 19 Jan 2012 15:27:54 +0000 (15:27 +0000)]
Thin add function to read thin volume percent

This value returns percentage of 'mapped' size compared with total LV size.
(Without passed seg pointer it return highest mapped size - but it's
not used yet.)

12 years agoThin updated support for thin pool percent
Zdenek Kabelac [Thu, 19 Jan 2012 15:25:37 +0000 (15:25 +0000)]
Thin updated support for thin pool percent

Support to check also for metadata percent
(By checking whether seg pointer is set)

12 years agoThin rename seg var pool_metadata_lv to metadata_lv
Zdenek Kabelac [Thu, 19 Jan 2012 15:23:50 +0000 (15:23 +0000)]
Thin rename seg var  pool_metadata_lv to metadata_lv

Better fits the code.

12 years agoThin handle empty thin volume case
Zdenek Kabelac [Thu, 19 Jan 2012 15:22:32 +0000 (15:22 +0000)]
Thin handle empty thin volume case

Report both values as 0 in case the volume is unused.

12 years agoThin use consistentely metadata
Zdenek Kabelac [Thu, 19 Jan 2012 15:21:23 +0000 (15:21 +0000)]
Thin use consistentely metadata

Do not shortcut to 'meta' and stay with 'metadata'
Also matches kernel doc for dm API then.

12 years agoThin rename local static
Zdenek Kabelac [Thu, 19 Jan 2012 15:19:18 +0000 (15:19 +0000)]
Thin rename local static

Use '_' for local const char.

12 years agoRename internal macro to match signess
Zdenek Kabelac [Thu, 19 Jan 2012 15:17:46 +0000 (15:17 +0000)]
Rename internal macro to match signess

Since _read_int64 called dm_config_get_uint64, rename it to
less confusing _read_uint64.

12 years agoUpdate for gcc old-style
Zdenek Kabelac [Thu, 19 Jan 2012 15:16:39 +0000 (15:16 +0000)]
Update for gcc old-style

12 years agoAdd dmsetup 'wipe_table' to replace table with one that uses error target.
Alasdair Kergon [Wed, 18 Jan 2012 18:52:02 +0000 (18:52 +0000)]
Add dmsetup 'wipe_table' to replace table with one that uses error target.

12 years agoMove dm_task_set_newname from libdm-iface.c to libdm-common.c
Peter Rajnoha [Tue, 17 Jan 2012 14:36:58 +0000 (14:36 +0000)]
Move dm_task_set_newname from libdm-iface.c to libdm-common.c

12 years agoBeef up the lvmetad code with more functionality and a bunch of bugfixes. There
Petr Rockai [Mon, 16 Jan 2012 08:25:32 +0000 (08:25 +0000)]
Beef up the lvmetad code with more functionality and a bunch of bugfixes. There
used to be a few mis-ordered memory accesses (release and access in the next
block). Fix that set_flag could have sometimes corrupted the flags being
modified.

A few issues with metadata tracking are sorted out as well now, and there are
only a few problems remaining before we can integrate lvmetad, mostly on the
client side:

- metadata areas need to be tracked in lvmetad (most likely to be addressed
  through an extension of metadata, meaning no special support in lvmetad would
  be needed)
- non-udev scanning code needs to be taught about telling lvmetad about device
  disappearance (pvscan most importantly)
- this last item also needs to mesh with metadata inconsistencies and
  suddenly-incomplete volume groups (aux disable_dev in tests); udev-based
  scanning should address this separately and more elegantly

12 years agoFix a boundary condition in read_buffer in daemon-shared.c.
Petr Rockai [Mon, 16 Jan 2012 05:09:16 +0000 (05:09 +0000)]
Fix a boundary condition in read_buffer in daemon-shared.c.

12 years agoFix prototypes for daemon_send_simple (const char).
Petr Rockai [Sun, 15 Jan 2012 15:16:50 +0000 (15:16 +0000)]
Fix prototypes for daemon_send_simple (const char).

12 years agoUnfortunately, blank lines are sometimes produced by config serializer, and
Petr Rockai [Sun, 15 Jan 2012 11:17:16 +0000 (11:17 +0000)]
Unfortunately, blank lines are sometimes produced by config serializer, and
this interferes with their role as message separator in the lvmetad
protocol. Switch to using "##" on an otherwise blank line as a separator.

12 years agoFix a couple of resource leaks in daemon-common server code -- filehandles and
Petr Rockai [Sun, 15 Jan 2012 10:33:41 +0000 (10:33 +0000)]
Fix a couple of resource leaks in daemon-common server code -- filehandles and
unjoined threads were leaked for each connection.

12 years agoMake error message hit when preallocated memlock memory exceeded clearer.
Alasdair Kergon [Thu, 12 Jan 2012 18:29:07 +0000 (18:29 +0000)]
Make error message hit when preallocated memlock memory exceeded clearer.

12 years agoShow read-only activation in display tools.
Alasdair Kergon [Thu, 12 Jan 2012 16:58:43 +0000 (16:58 +0000)]
Show read-only activation in display tools.

12 years agoMissing const.
Peter Rajnoha [Thu, 12 Jan 2012 09:08:55 +0000 (09:08 +0000)]
Missing const.

"warning: assignment discards 'const' qualifier..."

12 years agoAdd activation/read_only_volume_list to override LV permission in metadata.
Alasdair Kergon [Thu, 12 Jan 2012 02:32:09 +0000 (02:32 +0000)]
Add activation/read_only_volume_list to override LV permission in metadata.

12 years agoAdd activation/read_only_volume_list to override LV permission in metadata.
Alasdair Kergon [Thu, 12 Jan 2012 01:51:56 +0000 (01:51 +0000)]
Add activation/read_only_volume_list to override LV permission in metadata.

12 years agoGive priority to emcpower devices with duplicate PVIDs.
Alasdair Kergon [Wed, 11 Jan 2012 20:38:42 +0000 (20:38 +0000)]
Give priority to emcpower devices with duplicate PVIDs.

12 years agoSupport different device name types on output of dmsetup deps, ls and info -c command.
Peter Rajnoha [Wed, 11 Jan 2012 12:46:19 +0000 (12:46 +0000)]
Support different device name types on output of dmsetup deps, ls and info -c command.

Add 'blkdevname' and 'blkdevs_used' field to dmsetup info -c -o.
Add 'blkdevname' option to dmsetup ls --tree to see block device names.
Add '-o options' to dmsetup deps and ls to select device name type on output.

12 years agoAdd dm_device_get_name to get map name or block device name for given devno.
Peter Rajnoha [Wed, 11 Jan 2012 12:34:44 +0000 (12:34 +0000)]
Add dm_device_get_name to get map name or block device name for given devno.

This is accomplished by reading associated sysfs information. For a dm device,
this is /sys/dev/block/major:minor/dm/name (supported in kernel version >= 2.6.29,
for older kernels, the behaviour is the same as for non-dm devices).

For a non-dm device, this is a readlink on /sys/dev/block/major:minor, e.g.
  /sys/dev/block/253:0 --> ../../devices/virtual/block/dm-0.
The last component of the path is a proper kernel name (block device name).

One can request to read only kernel names by setting the 'prefer_kernel_name'
argument if needed.

12 years agoAdd dm_uuid_prefix/dm_set_uuid_prefix for non-lvm users to override hard-coded
Alasdair Kergon [Tue, 10 Jan 2012 02:03:31 +0000 (02:03 +0000)]
Add dm_uuid_prefix/dm_set_uuid_prefix for non-lvm users to override hard-coded
LVM- prefix.

Try harder not to leave stray empty devices around (locally or remotely) when
reverting changes after failures while there are inactive tables.

12 years agoCheck for error code in _adjust_policy_params
Zdenek Kabelac [Mon, 9 Jan 2012 12:31:52 +0000 (12:31 +0000)]
Check for error code in _adjust_policy_params

If error is detected in _adjust_policy_params, break further command processing.

12 years agoMinor oldstyle warning update
Zdenek Kabelac [Mon, 9 Jan 2012 12:29:15 +0000 (12:29 +0000)]
Minor oldstyle warning update

12 years agoImprove readahead in dmsetup man page
Zdenek Kabelac [Mon, 9 Jan 2012 12:28:47 +0000 (12:28 +0000)]
Improve readahead in dmsetup man page

12 years agoUse sysfs to set/get of read-ahead
Zdenek Kabelac [Mon, 9 Jan 2012 12:26:14 +0000 (12:26 +0000)]
Use sysfs to set/get of read-ahead

If we know major:minor number of device (which is known after resume) we will
try to use  sysfs to set/get read ahead parameters of device.
This avoid potential problem of blocking commands like 'dmsetup info' awaiting
for device being usable for open/close - i.e. overfilled thin pool may block
such command.

12 years agoSupport rounding of percentage upward
Zdenek Kabelac [Thu, 5 Jan 2012 15:38:18 +0000 (15:38 +0000)]
Support rounding of percentage upward

We want to keep this logic -
when LV is extend - extend the LV by at least given amount,
when LV is reduced - reduce the LV by at most given amount.

So for this the rounding needs to be used.
Current logic which seems to satisfy give rule is to round up all
extent values for LV resize upward except for values with '-' sign
that are round downward.

This patch also fixes the problem when  lvextend --use-polices tried
to extend LV the by i.e. 20% - but the resulting 20% were smaller
the extent size thus before this patch no extension happened.

12 years agoUse new dmeventd_lvm2_command function in dmeventd plugins.
Zdenek Kabelac [Thu, 22 Dec 2011 16:37:01 +0000 (16:37 +0000)]
Use new dmeventd_lvm2_command function in dmeventd plugins.

For snapshot, prepare whole command in front into private buffer.
Add also some missing '\n' for syslog messages.
For raid and mirror only convert creation of command line string.
This should avoid any unbound growth of mempool for dm_split_names.

12 years agoThin use helper function
Zdenek Kabelac [Thu, 22 Dec 2011 15:57:29 +0000 (15:57 +0000)]
Thin use helper function

Fix some minor outstading issue from thin plugin introduction -
Call dmeventd_lvm2_exit() in failpath for registration.
Add some missing '\n' in syslog messages.

12 years agoAdd helper function dmeventd_lvm2_command().
Zdenek Kabelac [Thu, 22 Dec 2011 15:55:21 +0000 (15:55 +0000)]
Add helper function dmeventd_lvm2_command().

Since this code is in all plugins - create a common helper function.

12 years agoUpdated documentation for dmeventd.
Zdenek Kabelac [Thu, 22 Dec 2011 15:50:38 +0000 (15:50 +0000)]
Updated documentation for dmeventd.

Update man page style.
Mention raid and thin plugins.
Update help text printed by command to match man page.

12 years agoThin man page update
Zdenek Kabelac [Wed, 21 Dec 2011 13:58:38 +0000 (13:58 +0000)]
Thin man page update

12 years agoThin update test case
Zdenek Kabelac [Wed, 21 Dec 2011 13:45:42 +0000 (13:45 +0000)]
Thin update test case

Use thin-pool instead of thin_pool type.

12 years agoExported functions from thin plugin
Zdenek Kabelac [Wed, 21 Dec 2011 13:42:07 +0000 (13:42 +0000)]
Exported functions from thin plugin

12 years agoDrop extra stat before open of device
Zdenek Kabelac [Wed, 21 Dec 2011 13:24:24 +0000 (13:24 +0000)]
Drop extra stat before open of device

Since the !(dev->flags & DEV_REGULAR) code path just called
dev_name_confirmed() which has just called 'stat()' inside,
remove duplicate second stat() call here.

12 years agoDo not lstat common path prefix
Zdenek Kabelac [Wed, 21 Dec 2011 13:21:09 +0000 (13:21 +0000)]
Do not lstat common path prefix

When both path have identical prefix i.e. /dev/disk/by-id
skip  2 x lstat() for /dev  /dev/disk /dev/disk/by-id
and directly lstat() only different part of the path.

Reduces amount of lstat calls on system with lots of devices.

12 years agoAdd common initialization code for struct device
Zdenek Kabelac [Wed, 21 Dec 2011 13:17:54 +0000 (13:17 +0000)]
Add common initialization code for struct device

Avoid duplicate code and add _dev_init() where all common
member values are initialized.

12 years agoAlways zalloc device structure
Zdenek Kabelac [Wed, 21 Dec 2011 13:14:54 +0000 (13:14 +0000)]
Always zalloc device structure

Since there is zalloc behind the macro, put 'z' into the name.
Make the 'use_malloc' code path also using zalloc() call,
so it also give zeroed area.

12 years agoThin automatic policy based extension
Zdenek Kabelac [Wed, 21 Dec 2011 13:10:52 +0000 (13:10 +0000)]
Thin automatic policy based extension

12 years agoThin add lv_thin_pool_percent
Zdenek Kabelac [Wed, 21 Dec 2011 13:10:05 +0000 (13:10 +0000)]
Thin add lv_thin_pool_percent

12 years agoThin add dev_manager_thin_pool_percent
Zdenek Kabelac [Wed, 21 Dec 2011 13:09:33 +0000 (13:09 +0000)]
Thin add dev_manager_thin_pool_percent

dev manager function to read percent info from thin pool.

12 years agoThin add dmeventd support
Zdenek Kabelac [Wed, 21 Dec 2011 13:08:11 +0000 (13:08 +0000)]
Thin add dmeventd support

This is basic version with still few unresolved issue mainly in case,
when the pool resize is failing.

12 years agoFix missing thread list manipulation
Zdenek Kabelac [Wed, 21 Dec 2011 13:03:06 +0000 (13:03 +0000)]
Fix missing thread list manipulation

For manipulation with thread list to avoid race with timeout thread,
take also _timeout_mutex.

12 years agoCheck lv pointer for NULL before derefence.
Zdenek Kabelac [Wed, 21 Dec 2011 12:59:22 +0000 (12:59 +0000)]
Check lv pointer for NULL before derefence.

12 years agoThin remove unused code
Zdenek Kabelac [Wed, 21 Dec 2011 12:56:45 +0000 (12:56 +0000)]
Thin remove unused code

12 years agoThin move layer suffix into local static const
Zdenek Kabelac [Wed, 21 Dec 2011 12:55:22 +0000 (12:55 +0000)]
Thin move layer suffix into local static const

12 years agoThin rename internal thin pool segment
Zdenek Kabelac [Wed, 21 Dec 2011 12:54:19 +0000 (12:54 +0000)]
Thin rename internal thin pool segment

Use matching name as kernel target - useful when function like
_percent is using this for validation.

12 years agoAdd Thin API for parsing thin status
Zdenek Kabelac [Wed, 21 Dec 2011 12:52:38 +0000 (12:52 +0000)]
Add Thin API for parsing thin status

Add dm_get_status_thin_pool and dm_get_status_thin functions to
parse 'params' argument which is received via dm_get_next_target.

Returns filed structure allocated from given mempool.

12 years agoAllow empty strings for description and creation_host config fields
Zdenek Kabelac [Wed, 21 Dec 2011 12:49:00 +0000 (12:49 +0000)]
Allow empty strings for description and creation_host config fields

12 years agoAdd dm_config_find_str_allow_empty
Zdenek Kabelac [Wed, 21 Dec 2011 12:47:44 +0000 (12:47 +0000)]
Add dm_config_find_str_allow_empty

Support empty string values.

12 years agoReinstate support for format1 snapshots, but issue deprecated warning.
Alasdair Kergon [Tue, 20 Dec 2011 00:02:18 +0000 (00:02 +0000)]
Reinstate support for format1 snapshots, but issue deprecated warning.

I anticipate removing support for snapshots with lvm1-formatted metadata in a
future release.

12 years agoAdd a unit test for config cascade (overlay). Needs expanding though.
Petr Rockai [Sun, 18 Dec 2011 23:56:36 +0000 (23:56 +0000)]
Add a unit test for config cascade (overlay). Needs expanding though.

12 years agoFix up lvmetad for the minor API change in dm_config_create.
Petr Rockai [Sun, 18 Dec 2011 22:31:10 +0000 (22:31 +0000)]
Fix up lvmetad for the minor API change in dm_config_create.

12 years agoMake a cleaner split between config tree and config file functionality. Move
Petr Rockai [Sun, 18 Dec 2011 21:56:03 +0000 (21:56 +0000)]
Make a cleaner split between config tree and config file functionality. Move
the latter out of libdm.

12 years agoUse also normalized output for vgchange command in lvm2-monitor init script.
Peter Rajnoha [Fri, 16 Dec 2011 11:42:56 +0000 (11:42 +0000)]
Use also normalized output for vgchange command in lvm2-monitor init script.

12 years agoCleanup test compile warning
Zdenek Kabelac [Tue, 13 Dec 2011 12:08:42 +0000 (12:08 +0000)]
Cleanup test compile warning

Add some declaration and cast to cleanup gcc warnings.
Add missing dm_config_destroy() to cleanup pool leak report.

12 years agoFix a compiler warning.
Petr Rockai [Mon, 12 Dec 2011 00:08:23 +0000 (00:08 +0000)]
Fix a compiler warning.

12 years agoUse a more canonic regex escaping in the default lvm.conf file for testing.
Petr Rockai [Mon, 12 Dec 2011 00:01:12 +0000 (00:01 +0000)]
Use a more canonic regex escaping in the default lvm.conf file for testing.

12 years agoMove dm_config_write out of libdm, back to lib/config, as config_write.
Petr Rockai [Sun, 11 Dec 2011 23:18:20 +0000 (23:18 +0000)]
Move dm_config_write out of libdm, back to lib/config, as config_write.

12 years agoAdd a shell test for config parsing and merging (lvm dumpconfig).
Petr Rockai [Sun, 11 Dec 2011 23:14:37 +0000 (23:14 +0000)]
Add a shell test for config parsing and merging (lvm dumpconfig).

12 years agoAutoreconf.
Petr Rockai [Sun, 11 Dec 2011 17:24:37 +0000 (17:24 +0000)]
Autoreconf.

12 years agoAdd a unit test for dm_config_clone_node.
Petr Rockai [Sun, 11 Dec 2011 15:45:14 +0000 (15:45 +0000)]
Add a unit test for dm_config_clone_node.

12 years agoStart a rudimentary unit test for the dm_config_* interface.
Petr Rockai [Sun, 11 Dec 2011 15:19:41 +0000 (15:19 +0000)]
Start a rudimentary unit test for the dm_config_* interface.

12 years agoIn the dm_config_*get_* functions, make the actual value retrieval optional
Petr Rockai [Sun, 11 Dec 2011 15:18:32 +0000 (15:18 +0000)]
In the dm_config_*get_* functions, make the actual value retrieval optional
(useful for just checking that a given key is of a given type).

12 years agoUse pkg-config to look for CUnit (needed for systems where it's not on the
Petr Rockai [Sun, 11 Dec 2011 15:15:57 +0000 (15:15 +0000)]
Use pkg-config to look for CUnit (needed for systems where it's not on the
standard include path).

12 years agoNowadays, lvm-version.h is generated from lvm-version.h.in, and lives in the
Petr Rockai [Sat, 10 Dec 2011 14:55:31 +0000 (14:55 +0000)]
Nowadays, lvm-version.h is generated from lvm-version.h.in, and lives in the
build directory, not the source one -> fix test/shell/000-basic.sh.

12 years agoupdate FIXMEs
Alasdair Kergon [Sat, 10 Dec 2011 00:47:23 +0000 (00:47 +0000)]
update FIXMEs

12 years agoWhen dropping the VG metadata from the cache during a VG revert, we must
Alasdair Kergon [Thu, 8 Dec 2011 23:18:00 +0000 (23:18 +0000)]
When dropping the VG metadata from the cache during a VG revert, we must
reset the 'precomitted' flag, just as we'd clear if we next did a 'commit'.

12 years agoOnly use built-in stack size in clvmd - ignore lvm.conf.
Alasdair Kergon [Thu, 8 Dec 2011 21:24:08 +0000 (21:24 +0000)]
Only use built-in stack size in clvmd - ignore lvm.conf.

12 years agoTest for LCK_CLUSTER_VG directly in args[0].
Alasdair Kergon [Thu, 8 Dec 2011 18:32:33 +0000 (18:32 +0000)]
Test for LCK_CLUSTER_VG directly in args[0].
Drop unused LCK_LOCAL from debug msg.

12 years agoDon't pass LCK_LOCAL to clvmd - it's unused.
Alasdair Kergon [Thu, 8 Dec 2011 18:19:05 +0000 (18:19 +0000)]
Don't pass LCK_LOCAL to clvmd - it's unused.
Pass LCK_CLUSTER_VG in args[0] instead of args[1].

12 years agoUpdate comments. CLUSTER_VG belongs firmly to args[0].
Alasdair Kergon [Thu, 8 Dec 2011 18:09:48 +0000 (18:09 +0000)]
Update comments.  CLUSTER_VG belongs firmly to args[0].

12 years agoreinstate !first_time check
Alasdair Kergon [Thu, 8 Dec 2011 18:06:33 +0000 (18:06 +0000)]
reinstate !first_time check
(recovery from first_time failure would need different code)

12 years agotag uninit var
Alasdair Kergon [Thu, 8 Dec 2011 18:00:03 +0000 (18:00 +0000)]
tag uninit var

12 years agoFix lvm2-monitor init script to use normalized output when using vgs.
Peter Rajnoha [Wed, 7 Dec 2011 12:29:41 +0000 (12:29 +0000)]
Fix lvm2-monitor init script to use normalized output when using vgs.

12 years agoAdd policy based automated repair of RAID logical volumes
Jonathan Earl Brassow [Tue, 6 Dec 2011 19:30:15 +0000 (19:30 +0000)]
Add policy based automated repair of RAID logical volumes

The RAID plug-in for dmeventd now calls 'lvconvert --repair' to address failures
of devices in a RAID logical volume.  The action taken can be either to "warn"
or "allocate" a new device from any spares that may be available in the
volume group.  The action is designated by setting 'raid_fault_policy' in
lvm.conf - the default being "warn".

12 years agoFix FIXME and comment :-)
Milan Broz [Sat, 3 Dec 2011 11:36:10 +0000 (11:36 +0000)]
Fix FIXME and comment :-)

12 years agoSwitch locking bits to match RHEL5 version.
Milan Broz [Sat, 3 Dec 2011 11:34:35 +0000 (11:34 +0000)]
Switch locking bits to match RHEL5 version.

FIXME:
There is a problem with overloaded bit 0x80 in locking flag,
the bit flags array must be extended or changed.

12 years agoupdate old comment
Alasdair Kergon [Thu, 1 Dec 2011 14:57:30 +0000 (14:57 +0000)]
update old comment

12 years agoDon't allow two images to be split and tracked from a RAID LV at one time
Jonathan Earl Brassow [Thu, 1 Dec 2011 00:21:04 +0000 (00:21 +0000)]
Don't allow two images to be split and tracked from a RAID LV at one time

Also, don't allow a splitmirror operation on a RAID LV that is already tracking
a split, unless the operation is to stop the tracking and complete the split.
Example:
~> lvconvert --splitmirrors 1 --trackchanges vg/lv /dev/sdc1
# Now tracking changes - image can be merged back or split-off for good
~> lvconvert --splitmirrors 1 -n new_name vg/lv /dev/sdc1
# ^ Completes split ^

If a split is performed on a RAID that is tracking an already split image and
PVs are provided, we must ensure that
 1) the already split LV is represented in the PVs
 2) we are careful to split only the tracked image

12 years ago Don't allow size change of RAID LV that is tracking changes for a split image
Jonathan Earl Brassow [Thu, 1 Dec 2011 00:13:16 +0000 (00:13 +0000)]
  Don't allow size change of RAID LV that is tracking changes for a split image
  Don't allow size change of RAID sub-LVs independently

12 years agoDo not allow users to change the name of RAID sub-LVs or the name of the
Jonathan Earl Brassow [Thu, 1 Dec 2011 00:09:34 +0000 (00:09 +0000)]
Do not allow users to change the name of RAID sub-LVs or the name of the
RAID LV if it is tracking changes for a split image.

12 years agoWHATS_NEW for previous commit.
Jonathan Earl Brassow [Thu, 1 Dec 2011 00:05:40 +0000 (00:05 +0000)]
WHATS_NEW for previous commit.

12 years agoDo not allow users to change permissions on RAID sub-LVs.
Jonathan Earl Brassow [Thu, 1 Dec 2011 00:04:21 +0000 (00:04 +0000)]
Do not allow users to change permissions on RAID sub-LVs.

12 years agorefer to kernel docs for target info
Alasdair Kergon [Wed, 30 Nov 2011 22:32:37 +0000 (22:32 +0000)]
refer to kernel docs for target info
FIXME thin still missing

12 years agoUpdate comment on LCK_*DMEVENTD*.
Petr Rockai [Wed, 30 Nov 2011 17:02:37 +0000 (17:02 +0000)]
Update comment on LCK_*DMEVENTD*.

12 years agoFix clvmd to respect DMEVENTD_MONITOR_IGNORE. Fixes a bug where dmeventd
Petr Rockai [Wed, 30 Nov 2011 17:00:57 +0000 (17:00 +0000)]
Fix clvmd to respect DMEVENTD_MONITOR_IGNORE. Fixes a bug where dmeventd
actions caused clvmd to turn off monitoring of the volume causing the action.

12 years agoThe LV_REBUILD flag is not internal - bad comments in metadata-exported.h updated
Jonathan Earl Brassow [Wed, 30 Nov 2011 02:20:13 +0000 (02:20 +0000)]
The LV_REBUILD flag is not internal - bad comments in metadata-exported.h updated

12 years agoSupport the ability to replace specific devices in a RAID array.
Jonathan Earl Brassow [Wed, 30 Nov 2011 02:02:10 +0000 (02:02 +0000)]
Support the ability to replace specific devices in a RAID array.

RAID is not like traditional LVM mirroring.  LVM mirroring required failed
devices to be removed or the logical volume would simply hang.  RAID arrays can
keep on running with failed devices.  In fact, for RAID types other than RAID1,
removing a device would mean substituting an error target or converting to a
lower level RAID (e.g. RAID6 -> RAID5, or RAID4/5 to RAID0).  Therefore, rather
than removing a failed device unconditionally and potentially allocating a
replacement, RAID allows the user to "replace" a device with a new one.  This
approach is a 1-step solution vs the current 2-step solution.

example> lvconvert --replace <dev_to_remove> vg/lv [possible_replacement_PVs]

'--replace' can be specified more than once.

example> lvconvert --replace /dev/sdb1 --replace /dev/sdc1 vg/lv

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