Zdenek Kabelac
d3923ece3d
Thin automatic policy based extension
2011-12-21 13:10:52 +00:00
Zdenek Kabelac
58044875a8
Thin add lv_thin_pool_percent
2011-12-21 13:10:05 +00:00
Zdenek Kabelac
88bf72d388
Thin add dev_manager_thin_pool_percent
...
dev manager function to read percent info from thin pool.
2011-12-21 13:09:33 +00:00
Zdenek Kabelac
59bcd5a1cf
Thin add dmeventd support
...
This is basic version with still few unresolved issue mainly in case,
when the pool resize is failing.
2011-12-21 13:08:11 +00:00
Zdenek Kabelac
b0f1e29335
Fix missing thread list manipulation
...
For manipulation with thread list to avoid race with timeout thread,
take also _timeout_mutex.
2011-12-21 13:03:06 +00:00
Zdenek Kabelac
1b9a70b6af
Check lv pointer for NULL before derefence.
2011-12-21 12:59:22 +00:00
Zdenek Kabelac
d0b237f46c
Thin remove unused code
2011-12-21 12:56:45 +00:00
Zdenek Kabelac
0857bdba0f
Thin move layer suffix into local static const
2011-12-21 12:55:22 +00:00
Zdenek Kabelac
a1e1561a91
Thin rename internal thin pool segment
...
Use matching name as kernel target - useful when function like
_percent is using this for validation.
2011-12-21 12:54:19 +00:00
Zdenek Kabelac
219fa54fd4
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.
2011-12-21 12:52:38 +00:00
Zdenek Kabelac
2b61011439
Allow empty strings for description and creation_host config fields
2011-12-21 12:49:00 +00:00
Zdenek Kabelac
6298758992
Add dm_config_find_str_allow_empty
...
Support empty string values.
2011-12-21 12:47:44 +00:00
Alasdair Kergon
14a165bf3f
Reinstate support for format1 snapshots, but issue deprecated warning.
...
I anticipate removing support for snapshots with lvm1-formatted metadata in a
future release.
2011-12-20 00:02:18 +00:00
Petr Rockai
a9ac026781
Add a unit test for config cascade (overlay). Needs expanding though.
2011-12-18 23:56:36 +00:00
Petr Rockai
27949793ae
Fix up lvmetad for the minor API change in dm_config_create.
2011-12-18 22:31:10 +00:00
Petr Rockai
e4de6d2ee0
Make a cleaner split between config tree and config file functionality. Move
...
the latter out of libdm.
2011-12-18 21:56:03 +00:00
Peter Rajnoha
dc1d4e2444
Use also normalized output for vgchange command in lvm2-monitor init script.
2011-12-16 11:42:56 +00:00
Zdenek Kabelac
6b864994f3
Cleanup test compile warning
...
Add some declaration and cast to cleanup gcc warnings.
Add missing dm_config_destroy() to cleanup pool leak report.
2011-12-13 12:08:42 +00:00
Petr Rockai
55f7917356
Fix a compiler warning.
2011-12-12 00:08:23 +00:00
Petr Rockai
2d4b741115
Use a more canonic regex escaping in the default lvm.conf file for testing.
2011-12-12 00:01:12 +00:00
Petr Rockai
bd7ec82f64
Move dm_config_write out of libdm, back to lib/config, as config_write.
2011-12-11 23:18:20 +00:00
Petr Rockai
b3d86a26a6
Add a shell test for config parsing and merging (lvm dumpconfig).
2011-12-11 23:14:37 +00:00
Petr Rockai
cd143dc253
Autoreconf.
2011-12-11 17:24:37 +00:00
Petr Rockai
b82e7a4fcd
Add a unit test for dm_config_clone_node.
2011-12-11 15:45:14 +00:00
Petr Rockai
7a17af253d
Start a rudimentary unit test for the dm_config_* interface.
2011-12-11 15:19:41 +00:00
Petr Rockai
6d6b259fc0
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).
2011-12-11 15:18:32 +00:00
Petr Rockai
1b068ee26b
Use pkg-config to look for CUnit (needed for systems where it's not on the
...
standard include path).
2011-12-11 15:15:57 +00:00
Petr Rockai
c3c9864ed0
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.
2011-12-10 14:55:31 +00:00
Alasdair Kergon
9f2e5eee45
update FIXMEs
2011-12-10 00:47:23 +00:00
Alasdair Kergon
042d98b2d2
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'.
2011-12-08 23:18:00 +00:00
Alasdair Kergon
721119a388
Only use built-in stack size in clvmd - ignore lvm.conf.
2011-12-08 21:24:08 +00:00
Alasdair Kergon
4403e98eba
Test for LCK_CLUSTER_VG directly in args[0].
...
Drop unused LCK_LOCAL from debug msg.
2011-12-08 18:32:33 +00:00
Alasdair Kergon
5495ef8217
Don't pass LCK_LOCAL to clvmd - it's unused.
...
Pass LCK_CLUSTER_VG in args[0] instead of args[1].
2011-12-08 18:19:05 +00:00
Alasdair Kergon
a830fcbc34
Update comments. CLUSTER_VG belongs firmly to args[0].
2011-12-08 18:09:48 +00:00
Alasdair Kergon
58d9230ce2
reinstate !first_time check
...
(recovery from first_time failure would need different code)
2011-12-08 18:06:33 +00:00
Alasdair Kergon
aa8e6be045
tag uninit var
2011-12-08 18:00:03 +00:00
Peter Rajnoha
999263f18d
Fix lvm2-monitor init script to use normalized output when using vgs.
2011-12-07 12:29:41 +00:00
Jonathan Earl Brassow
49d06db518
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".
2011-12-06 19:30:15 +00:00
Milan Broz
15af345602
Fix FIXME and comment :-)
2011-12-03 11:36:10 +00:00
Milan Broz
cbea400d06
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.
2011-12-03 11:34:35 +00:00
Alasdair Kergon
8344acfa2d
update old comment
2011-12-01 14:57:30 +00:00
Jonathan Earl Brassow
80924bc9ff
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
2011-12-01 00:21:04 +00:00
Jonathan Earl Brassow
824ec24322
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
2011-12-01 00:13:16 +00:00
Jonathan Earl Brassow
64b817cbc6
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.
2011-12-01 00:09:34 +00:00
Jonathan Earl Brassow
37e5e5e9c2
WHATS_NEW for previous commit.
2011-12-01 00:05:40 +00:00
Jonathan Earl Brassow
78b7b7db1a
Do not allow users to change permissions on RAID sub-LVs.
2011-12-01 00:04:21 +00:00
Alasdair Kergon
b24e58c0ea
refer to kernel docs for target info
...
FIXME thin still missing
2011-11-30 22:32:37 +00:00
Petr Rockai
8d884c5894
Update comment on LCK_*DMEVENTD*.
2011-11-30 17:02:37 +00:00
Petr Rockai
7dd63d8ff2
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.
2011-11-30 17:00:57 +00:00
Jonathan Earl Brassow
204aaf2253
The LV_REBUILD flag is not internal - bad comments in metadata-exported.h updated
2011-11-30 02:20:13 +00:00