Alasdair Kergon
9f74b2fc3c
pre-release
2006-11-10 21:22:34 +00:00
Alasdair Kergon
f96cde8cbd
Fix adjusted_mirror_region_size() for 64-bit size.
2006-11-10 19:35:03 +00:00
Alasdair Kergon
a89d601463
Add some missing bounds checks on 32 bit extent counters.
...
Add Petabyte and Exabyte support.
Fix lvcreate error message when 0 extents requested.
2006-11-10 18:24:11 +00:00
Patrick Caulfield
581e811187
Add note to lvremove man page: volumes must be inactive on
...
all cluster nodes before being removed.
2006-11-06 14:11:40 +00:00
Alasdair Kergon
c1c16a8f01
Protect .cache manipulations with fcntl locking.
...
Change .cache timestamp comparisons to use ctime.
2006-11-04 03:34:10 +00:00
Alasdair Kergon
1c3c2df9e9
Fix mirror log LV writing to set all bits in whole LV.
2006-11-02 23:33:20 +00:00
Alasdair Kergon
df52a8b52a
Fix clustered VG detection and default runlevels in clvmd_init_rhel4.
2006-11-01 18:25:26 +00:00
Alasdair Kergon
c89024511b
Fix high-level free space check for partial allocations.
2006-10-30 16:10:55 +00:00
Alasdair Kergon
7d1c3fcd12
post-release
2006-10-27 15:37:02 +00:00
Alasdair Kergon
ffe524cc30
pre-release
2006-10-27 15:21:07 +00:00
Alasdair Kergon
7f31917dc3
dd couple of missing files to tools/Makefile CLEAN_TARGETS.
2006-10-26 20:37:13 +00:00
Alasdair Kergon
013577fb6a
When adding snapshot leave cow LV mapped device active after zeroing.
2006-10-26 18:22:10 +00:00
Alasdair Kergon
99d00efa02
.
2006-10-24 19:07:32 +00:00
Alasdair Kergon
4098f6282c
Add dev_flush() to set_lv()
2006-10-24 18:25:30 +00:00
Alasdair Kergon
e51d50a11e
try forcesync -> resync
2006-10-24 17:18:25 +00:00
Alasdair Kergon
04e023be19
Add lvchange --forcesync.
2006-10-23 23:03:55 +00:00
Alasdair Kergon
2bdc8e1252
Perform high-level free space check before each allocation attempt.
2006-10-23 15:54:51 +00:00
Patrick Caulfield
77fcc2076a
Don't allow a node to remove an LV that's exclusively active on anther node.
2006-10-23 11:46:16 +00:00
Alasdair Kergon
9766c3c960
Cope if same PV is included more than once in cmdline PE range list.
2006-10-21 23:18:43 +00:00
Alasdair Kergon
b16b9c2bf1
Set PV size to current device size if it is found to be zero.
2006-10-19 12:53:47 +00:00
Alasdair Kergon
7c5ec12630
Add segment parameter to target_present functions.
2006-10-18 18:01:53 +00:00
Alasdair Kergon
38a5f0b6e8
post-release
2006-10-16 17:18:08 +00:00
Alasdair Kergon
0b0fd3306d
pre-release
2006-10-16 16:44:28 +00:00
Alasdair Kergon
e663b4e856
Fix pvdisplay to use vg_read() for non-orphans
2006-10-16 16:29:40 +00:00
Alasdair Kergon
04dabc1562
Fall back to internal locking if external locking lib is missing or fails.
2006-10-14 16:37:54 +00:00
Alasdair Kergon
a590f3b6a3
Retain activation state after changing LV minor number with --force.
2006-10-13 21:33:31 +00:00
Alasdair Kergon
805dad5940
Propagate clustered flag in vgsplit and require resizeable flag.
2006-10-13 13:22:44 +00:00
Alasdair Kergon
89a4e806e9
post-release
2006-10-12 18:20:45 +00:00
Alasdair Kergon
181b5f0011
pre-release
2006-10-12 18:13:33 +00:00
Alasdair Kergon
78ee671f9b
Test message to lvm-devel list.
2006-10-10 17:20:40 +00:00
Patrick Caulfield
efa483c599
Add clvmd call to return the cluster name.
2006-10-09 14:11:57 +00:00
Alasdair Kergon
de5c82a0d9
add cling allocation policy
2006-10-08 12:01:13 +00:00
Alasdair Kergon
4a2ca1b998
.
2006-10-07 23:42:03 +00:00
Alasdair Kergon
b4e2a0e179
check_contiguous to use for_each_pv
2006-10-07 23:40:36 +00:00
Alasdair Kergon
b6f8552074
Extend _for_each_pv() to allow termination without error.
2006-10-07 12:41:06 +00:00
Alasdair Kergon
68d7c0e601
Remove duplicated pv arg from _check_contiguous().
2006-10-07 11:00:09 +00:00
Alasdair Kergon
705eabf721
Accept regionsize with lvconvert
2006-10-07 10:47:05 +00:00
Alasdair Kergon
d547cbb00d
Add report columns with underscore before field names ending 'size'.
2006-10-07 10:42:27 +00:00
Patrick Caulfield
e37a241536
Fix clvmd bug that could cause it to die when a node with a long name crashed.
2006-10-06 10:06:10 +00:00
Alasdair Kergon
209f03f2b6
Fix format_text mda_setup pv->size and pv_setup pe_count calculations.
...
(This area of the code needs a lot more work.)
2006-10-05 22:02:52 +00:00
Alasdair Kergon
8d18637eca
Fix _for_each_pv() for mirror with core log.
2006-10-05 21:24:48 +00:00
Alasdair Kergon
929210542f
Add lvm_dump.sh script to create a tarball of debugging info from a system.
2006-10-05 18:42:33 +00:00
Patrick Caulfield
2a7f7fc1c9
Vastly improve the errors returned to the user from clvmd.
...
It now captures the error messages that are generated and returns them
in the reply packet rather than just telling the user to check syslog.
2006-10-05 13:55:50 +00:00
Alasdair Kergon
7089e02ce1
Remove unused #defines from filter-md.c.
2006-10-04 16:03:17 +00:00
Patrick Caulfield
dc9dcb3d35
Make clvmd restart init script wait until clvmd has died before starting it.
2006-10-04 08:42:14 +00:00
Patrick Caulfield
13583874fc
Add -R switch to clvmd.
...
This option will instruct all the clvmd daemons in the cluster to reload their device cache
2006-10-04 08:22:16 +00:00
Alasdair Kergon
6c81ed26f0
Add LV column to reports listing kernel modules needed for activation.
2006-10-03 17:55:20 +00:00
Alasdair Kergon
1baed0e1ae
Show available fields if report given invalid field. (e.g. lvs -o list)
2006-10-02 16:46:27 +00:00
Alasdair Kergon
8b1a3214b5
Add timestamp functions with --disable-realtime configure option. [AJ]
2006-09-30 20:02:02 +00:00
Alasdair Kergon
34fadac485
Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.
...
e.g. lvcreate -l 100%FREE to create an LV using all available space.
lvextend -l 50%LV to increase an LV by 50% of its existing size.
lvcreate -l 20%VG to create an LV using 20% of the total VG size.
2006-09-26 09:35:43 +00:00
Alasdair Kergon
5095de5177
Fix two potential NULL pointer derefs in error cases in vg_read().
2006-09-21 20:25:54 +00:00
Alasdair Kergon
e0a266927d
Separate --enable-cluster from locking lib options in lvmconf.sh.
2006-09-20 17:36:47 +00:00
Alasdair Kergon
d1a1e1a319
Supply missing comma. [via Debian]
2006-09-19 20:20:40 +00:00
Alasdair Kergon
71fc020669
post-release
2006-09-19 19:36:59 +00:00
Alasdair Kergon
19513ad89e
pre-release
2006-09-19 19:15:10 +00:00
Alasdair Kergon
13ba0f9492
Fix lvconvert mirror change case detection logic.
...
Fix mirror log detachment so it correctly becomes a standalone LV.
2006-09-19 19:13:41 +00:00
Alasdair Kergon
bbb068562e
Extend _check_contiguous() to detect single-area LVs.
...
Include mirror log (untested) in _for_each_pv() processing.
Use MIRROR_LOG_SIZE constant.
Remove struct seg_pvs from _for_each_pv() for generalisation.
Avoid adding duplicates to list of parallel PVs to avoid.
2006-09-11 21:14:56 +00:00
Alasdair Kergon
d9c6bbab80
Fix several incorrect comparisons in parallel area avoidance code.
...
Fix segment lengths when flattening existing parallel areas.
Log existing parallel areas prior to allocation.
Fix mirror log creation when activation disabled.
2006-09-11 14:24:58 +00:00
Alasdair Kergon
fe748f0092
fix vgreduce clustered check
2006-09-07 23:23:45 +00:00
Alasdair Kergon
dc4d7417f7
When using local file locking, skip clustered VGs.
...
Add fallback_to_clustered_locking and fallback_to_local_locking parameters.
2006-09-02 01:18:17 +00:00
Alasdair Kergon
a45da5f676
lvm.static uses built-in cluster locking instead of external locking.
...
Don't attempt to load shared libraries if built statically.
2006-08-31 22:21:00 +00:00
Alasdair Kergon
1c792fad4f
Change default locking_lib to liblvm2clusterlock.so.
2006-08-31 20:56:33 +00:00
Alasdair Kergon
08c060cf38
Add skip_dev_dir() to process command line VGs.
2006-08-25 23:02:33 +00:00
Patrick Caulfield
b499b916ca
Stop clvmd complaining about nodes that have left the cluster
2006-08-24 12:45:05 +00:00
Alasdair Kergon
0550c1b618
Move lvm_snprintf into libdevmapper.
2006-08-21 12:54:53 +00:00
Alasdair Kergon
7d7736b7b4
Add dm_split_words() and dm_split_lvm_name() to libdevmapper.
2006-08-21 12:07:03 +00:00
Alasdair Kergon
48432c882e
Add mirroring into man pages
2006-08-18 21:49:19 +00:00
Alasdair Kergon
d68336a52f
Prevent mirror renames.
2006-08-18 21:19:54 +00:00
Alasdair Kergon
6711231a13
Move CMDLIB code into separate file and record whether static build.
2006-08-18 21:17:18 +00:00
Alasdair Kergon
ade81b8aed
post
2006-08-17 20:04:38 +00:00
Alasdair Kergon
086b63ca05
pre-release
2006-08-17 19:55:50 +00:00
Alasdair Kergon
94d501edd9
Fix PE_ALIGN for pagesize over 32KB.
2006-08-17 19:53:36 +00:00
Alasdair Kergon
b5d761e1d2
wrap PE_ALIGN
2006-08-17 19:30:59 +00:00
Alasdair Kergon
ee37789be0
Separate out LVM1_PE_ALIGN.
2006-08-17 19:15:27 +00:00
Alasdair Kergon
916490f8bf
Add lvm_getpagesize wrapper.
2006-08-17 18:23:44 +00:00
Alasdair Kergon
e95d828454
Add --maxphysicalvolumes to vgchange.
2006-08-16 14:41:42 +00:00
Alasdair Kergon
64c8457976
post-release
2006-08-15 19:13:06 +00:00
Alasdair Kergon
a9a6934bf9
pre-release
2006-08-15 19:06:09 +00:00
Alasdair Kergon
438abca889
Add checks for duplicate LV name, lvid and PV id before writing metadata.
...
Report all sanity check failures, not just the first.
2006-08-09 19:33:25 +00:00
Alasdair Kergon
9cd3426d3a
Fix missing lockfs on first snapshot creation.
2006-08-08 21:20:00 +00:00
Alasdair Kergon
e3ad1d19d5
Add --trustcache option to reporting commands in preparation for supporting
...
event-driven model. Without changes to the way the cache gets updated, the
option is currently unreliable without a global lock to prevent any lvm2
commands from running concurrently.
2006-08-01 14:56:33 +00:00
Alasdair Kergon
8b0d546f4c
Fix locking for mimage removal.
2006-07-20 20:37:10 +00:00
Alasdair Kergon
b813f533f8
Fix clvmd_init_rhel4 'status' exit code.
2006-07-19 18:55:58 +00:00
Alasdair Kergon
7a21367d97
post-release
2006-07-17 14:39:54 +00:00
Alasdair Kergon
cecdabd9c4
pre-release
2006-07-17 14:32:00 +00:00
Alasdair Kergon
443a8f76c6
Fix activation logic in lvchange --persistent.
2006-07-10 19:39:14 +00:00
Alasdair Kergon
fe686a5180
Don't ignore persistent minor numbers when activating.
2006-07-10 19:17:40 +00:00
Alasdair Kergon
0b431b8a17
Use RTLD_GLOBAL when loading shared libraries.
2006-07-04 19:40:27 +00:00
Alasdair Kergon
e67ed94b3e
Add some forgotten memlock checks to _vg_read to protect against full scans.
2006-07-04 19:36:49 +00:00
Alasdair Kergon
f1dc5cc99b
Add mutex to dmeventd_mirror to avoid concurrent execution.
2006-07-04 18:57:27 +00:00
Alasdair Kergon
4bfab20a41
Fix return code if VG specified on command line is not found.
2006-06-14 20:27:15 +00:00
Alasdair Kergon
2415c1ef87
Fix PV tools to include orphaned PVs in default output again.
2006-06-14 20:11:22 +00:00
Alasdair Kergon
284a2c910f
test checkin
2006-06-12 17:34:20 +00:00
Alasdair Kergon
fa76197d4c
test checkin
2006-06-12 17:32:43 +00:00
Alasdair Kergon
acc6edf0ab
test checkin
2006-06-12 17:30:29 +00:00
Alasdair Kergon
8bdecd551b
checkin test
2006-06-12 17:18:31 +00:00
Patrick Caulfield
8228b50882
Fix "Unaligned access" when using clvm
...
bz#194626
2006-06-12 09:46:35 +00:00
Alasdair Kergon
9f100d6028
Fix an extra dev_close in a label_read error path.
2006-06-08 22:15:49 +00:00
Alasdair Kergon
4cd33f98a4
change two files in different directories
2006-06-06 17:44:11 +00:00
Alasdair Kergon
a5005145da
test
2006-06-06 17:42:20 +00:00
Alasdair Kergon
5f5bcb3fa8
test one change
2006-06-06 17:41:30 +00:00
Alasdair Kergon
4aae724656
Fix target_register_events args.
2006-05-25 13:32:26 +00:00
Alasdair Kergon
83de5aa60e
Prevent snapshots of mirrors.
2006-05-24 13:58:14 +00:00
Alasdair Kergon
aba30ebcdb
Add DISTCLEAN_TARGETS to make template for configure.h.
...
More fixes to error paths.
2006-05-16 20:53:13 +00:00
Alasdair Kergon
2293567c8c
Fix lvcreate corelog validation.
...
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-16 16:48:31 +00:00
Alasdair Kergon
476d09d072
post-release
2006-05-12 20:32:39 +00:00
Alasdair Kergon
396cbbdea1
pre-release
2006-05-12 19:41:43 +00:00
Alasdair Kergon
3e3d5d8593
Add --monitor to vgcreate and lvcreate to control dmeventd registration.
...
Propagate --monitor around cluster.
Filter LCK_NONBLOCK in clvmd lock_vg.
2006-05-12 19:16:48 +00:00
Alasdair Kergon
de82843391
Add --nosync to lvcreate with LV flag NOTSYNCED.
2006-05-11 20:03:40 +00:00
Alasdair Kergon
49fba23c81
Use mirror's uuid for a core log.
2006-05-11 19:47:53 +00:00
Alasdair Kergon
aeb2c277a8
Add mirror log fault-handling policy.
2006-05-11 19:45:53 +00:00
Alasdair Kergon
526a3c2186
Propagate nosync flag around cluster.
2006-05-11 19:05:21 +00:00
Alasdair Kergon
532dae4854
Allow vgreduce to handle mirror log failures.
2006-05-11 19:01:11 +00:00
Alasdair Kergon
f17f6814c9
Add --corelog to lvcreate and lvconvert.
2006-05-11 18:54:04 +00:00
Alasdair Kergon
5c9d70c955
Create a log header for replacement in-sync mirror log.
...
Use set_lv() and dev_set() to wipe sections of devices.
Add mirror_in_sync() flag to avoid unnecessary resync on activation.
2006-05-11 18:39:24 +00:00
Alasdair Kergon
898e6f8e41
Add mirror_library description to example.conf.
...
More compile-time cleanup.
2006-05-11 17:58:58 +00:00
Alasdair Kergon
eba586f053
Fix uuid_from_num() buffer overrun.
2006-05-10 16:42:03 +00:00
Alasdair Kergon
72b2cb613a
Make SIZE_SHORT the default for display_size().
...
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
2006-05-09 21:23:51 +00:00
Alasdair Kergon
b810c54700
sign fix
2006-05-04 09:33:42 +00:00
Alasdair Kergon
12de747d3a
Improve stripe size validation.
...
Increase maximum stripe size limit to physical extent size for lvm2 metadata.
2006-04-29 22:08:43 +00:00
Alasdair Kergon
2f1489a673
Fix activation code to check for pre-existing mirror logs.
2006-04-28 17:01:07 +00:00
Alasdair Kergon
089ae9a58e
Tighten region size validation.
2006-04-28 15:01:39 +00:00
Alasdair Kergon
81b4308bde
Ignore empty strings in config files.
2006-04-28 13:30:59 +00:00
Alasdair Kergon
12ccdb25e4
Require non-zero regionsize and document parameter on lvcreate man page.
2006-04-28 13:11:05 +00:00
Alasdair Kergon
26b2524996
Invalidate cache if composition of VG changed externally.
2006-04-21 19:12:41 +00:00
Alasdair Kergon
05ffaffe0c
Fix vgid string termination in recent cache code.
2006-04-21 14:44:33 +00:00
Alasdair Kergon
c05fbac29a
post-release
2006-04-19 20:15:11 +00:00
Alasdair Kergon
13eadfc95a
pre-release
2006-04-19 18:06:56 +00:00
Alasdair Kergon
8a2fc58645
Check for libsepol.
...
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-19 15:33:07 +00:00
Alasdair Kergon
3ab3766f62
post-release
2006-04-14 21:39:32 +00:00
Alasdair Kergon
7fae84d715
pre-release
2006-04-14 21:11:38 +00:00
Alasdair Kergon
dbd3026f8a
vgrename accepts vgid and exported VG.
2006-04-13 21:08:29 +00:00
Alasdair Kergon
f855ac3807
Add --partial to pvs.
2006-04-13 17:51:40 +00:00
Alasdair Kergon
2ab16287e6
When choosing between identically-named VGs, also consider creation_host.
2006-04-13 17:32:24 +00:00
Alasdair Kergon
a5fe5a7cdd
Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.
...
Add vgid to struct physical_volume and pass with vg_name to some functions.
2006-04-12 21:23:04 +00:00
Alasdair Kergon
e8db70239e
If two or more VGs are found with the same name, use one that is not exported.
2006-04-12 17:54:11 +00:00
Alasdair Kergon
f084e627cc
When scanning, also record whether or not VG is exported.
2006-04-11 17:42:15 +00:00
Alasdair Kergon
cced28dac3
Whenever vgname is captured, also capture vgid.
2006-04-11 13:55:59 +00:00
Alasdair Kergon
a14aa9d8c3
Capture vgid in more places.
2006-04-10 22:09:00 +00:00
Alasdair Kergon
ace652e673
lv_is_visible()
2006-04-07 17:41:56 +00:00
Alasdair Kergon
76f97cd75d
Update extent size information in vgchange and vgcreate man pages
2006-04-06 21:15:14 +00:00
Alasdair Kergon
2cd0aa727a
Introduce origin_from_cow()
2006-04-06 13:39:16 +00:00
Alasdair Kergon
7810d55dfc
pvremove without -f now fails if there's no PV label.
2006-04-05 22:24:16 +00:00
Alasdair Kergon
1c8b86c7d5
Support lvconvert -s.
2006-04-05 20:43:23 +00:00
Alasdair Kergon
1a01b0c103
Suppress locking library load failure message if --ignorelockingfailure.
2006-04-03 18:43:55 +00:00
Patrick Caulfield
a31676722b
allow new cman to shutdown on request.
2006-03-21 10:31:08 +00:00
Patrick Caulfield
e7f55bb4c0
Get clvmd to use libcman rather than cman ioctl calls. This makes
...
it forward-compatible with the new userland CMAN in cluster head.
To build it you will need the libcman header & library installed.
2006-03-14 14:18:34 +00:00
Alasdair Kergon
9f5d8283a9
Propagate partial mode around cluster.
2006-03-09 22:34:13 +00:00
Alasdair Kergon
d6207798e6
Fix archive file expiration.
2006-03-07 15:43:05 +00:00
Alasdair Kergon
ed2b1bc5eb
post-release
...
fix dmeventd build
2006-02-08 23:23:19 +00:00