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
Alasdair Kergon
b5f9086099
release
2006-02-07 16:33:48 +00:00
Alasdair Kergon
f0c9fe0105
Add %.so: %.a make template rule.
2006-02-02 19:16:47 +00:00
Alasdair Kergon
e4c11ad108
Only do lockfs filesystem sync when suspending snapshots.
...
Switchover library building to use LIB_SUFFIX.
2006-01-31 14:52:30 +00:00
Alasdair Kergon
079ac15ece
vgreduce remove mirror images
...
adjust block_on_error version no detection for RHEL4U3
2006-01-04 18:09:52 +00:00
Alasdair Kergon
bfe2b5480e
Always print warning if activation is disabled.
2005-12-22 16:13:38 +00:00
Alasdair Kergon
c9dcba6b16
Add --mirrorsonly arg to vgreduce. (Doesn't handle mirrors yet.)
2005-12-21 21:21:45 +00:00
Alasdair Kergon
3fc3e48c44
vgreduce replaces active LVs with error segment before removing them.
2005-12-21 18:51:50 +00:00
Alasdair Kergon
bbf83db14a
Set block_on_error parameter if available.
...
Add target_version.
2005-12-19 21:01:39 +00:00
Alasdair Kergon
cad9fac9c6
Add details to format1 'Invalid LV in extent map' error message.
2005-12-19 16:28:35 +00:00
Alasdair Kergon
e64934773b
Fix lvscan snapshot full display.
...
dmeventd fixes
2005-12-08 17:49:34 +00:00
Alasdair Kergon
15d91f5a68
More dmeventd support.
2005-12-02 20:35:07 +00:00
Alasdair Kergon
06f62ad1e4
Add mirror dmeventd library
2005-12-02 19:52:06 +00:00
Alasdair Kergon
e2619d9ec1
more lvconvert mirror code
2005-11-29 18:20:23 +00:00
Alasdair Kergon
c27920b1ca
Determine parallel PVs to avoid with ALLOC_NORMAL allocation. (untested)
2005-11-28 20:01:00 +00:00
Alasdair Kergon
2fb492f665
Fix lv_empty.
2005-11-24 18:46:51 +00:00
Alasdair Kergon
ebf78e7d19
post_release
2005-11-23 18:45:30 +00:00
Alasdair Kergon
20e5495ebd
2.02.01
2005-11-23 18:42:45 +00:00
Alasdair Kergon
f3ce273f23
Fix lvdisplay cmdline to accept snapshots.
2005-11-23 16:16:39 +00:00
Alasdair Kergon
349216a6b5
Fix open RO->RW promotions.
2005-11-23 16:07:40 +00:00
Alasdair Kergon
749caf947d
lvcreate vg_revert
2005-11-12 22:42:08 +00:00
Alasdair Kergon
0c32d9dbef
post-release
2005-11-10 16:06:29 +00:00
Alasdair Kergon
da5edd8ebe
pre-release
2005-11-10 15:27:19 +00:00
Alasdair Kergon
b79c897ea1
Extend allocation areas to avoid overflow with contiguous with other PVs.
...
Another pvmove fix.
2005-11-10 14:45:39 +00:00
Alasdair Kergon
ad6b0ebb73
rename deptree
2005-11-09 13:08:41 +00:00
Alasdair Kergon
436d36943d
xen xvd
2005-11-09 12:47:16 +00:00
Alasdair Kergon
7a5933259f
Clear up precommitted metadata better on disk after use.
...
[Some activation-related features will stop working for a while now.
Some types of activation are getting split into two steps, with the
first step using the precommitted metadata.]
2005-10-31 20:15:28 +00:00
Alasdair Kergon
3bf5f6f575
A pvresize implementation (Zak Kipling).
2005-10-31 02:37:29 +00:00
Alasdair Kergon
a78c760922
Fix contiguous allocation when there are no preceding segments.
2005-10-27 22:21:10 +00:00
Alasdair Kergon
5727a8fa85
Add mirror_seg pointer to lv_segment struct. (incomplete & untested)
2005-10-27 19:58:22 +00:00
Alasdair Kergon
5f5355cbf5
Only keep a device open if it's known to belong to a locked VG.
2005-10-27 17:45:34 +00:00
Alasdair Kergon
f9a8e6ee3b
Fix lvdisplay to show all mirror destinations.
2005-10-26 16:12:36 +00:00
Alasdair Kergon
76c8ddc094
new suspend code
2005-10-26 14:14:30 +00:00
Alasdair Kergon
352a99b95a
Use dm_is_dm_major instead of local copy.
...
Allow mapped devices to be used as PVs safely.
2005-10-25 19:08:21 +00:00
Alasdair Kergon
ffbfce30b5
Move set_selinux_context into libdevmapper
2005-10-25 17:28:46 +00:00
Alasdair Kergon
78aa12e1dc
Fix automatic text metadata buffer expansion (using macro). [stdarg usage bug]
...
Cache formatted text metadata buffer between metadata area writes.
[improves write performance when lots of metadata area clones]
2005-10-23 00:14:48 +00:00
Alasdair Kergon
31b5c6e65c
Add pe_start to pvs.
2005-10-20 22:24:46 +00:00
Alasdair Kergon
03b49fe193
Add 'LVM-' prefix to uuids.
2005-10-19 13:59:18 +00:00
Alasdair Kergon
06820362bd
Split lv_segment_area from lv_segment to permit extension.
2005-10-18 13:43:40 +00:00
Alasdair Kergon
9fdc84c328
Move deactivation code into libdevmapper.
2005-10-18 12:39:20 +00:00
Alasdair Kergon
d0d5ddda3b
Replacement deactivation code - untested.
2005-10-17 18:21:57 +00:00
Alasdair Kergon
f894b4b1b7
Attempt to load missing targets using modprobe.
...
Simplify dev_manager_info().
2005-10-17 18:00:02 +00:00
Alasdair Kergon
a653923fe7
Attempt to load missing targets using modprobe.
2005-10-17 17:56:27 +00:00
Alasdair Kergon
191abde97e
lvscan -a
2005-10-17 16:41:38 +00:00
Alasdair Kergon
2262b32057
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
58d83f1a94
post-release
2005-10-16 20:09:42 +00:00
Alasdair Kergon
9aa2fec047
pre-release
2005-10-16 20:06:54 +00:00
Alasdair Kergon
9b02bdbce0
Refuse to run pvcreate/pvremove on devices we can't open exclusively.
2005-10-03 21:10:41 +00:00
Alasdair Kergon
9c9e30cd6d
Use ORPHAN lock definition throughout.
2005-10-03 18:16:44 +00:00
Alasdair Kergon
0858a99287
Validate chunksize in lvcreate.
2005-09-30 22:21:01 +00:00
Alasdair Kergon
2b96712ab7
Reduce chunksize limit to 512k.
2005-09-29 15:50:51 +00:00
Alasdair Kergon
88d2bdc668
Fix chunksize field in reports.
2005-09-23 17:06:01 +00:00
Alasdair Kergon
540b379902
Don't hide snapshots from default 'lvs' output.
2005-09-23 16:22:17 +00:00
Alasdair Kergon
68366c99b2
Add is_dm_major() for use in duplicate device detection in lvmcache_add().
2005-09-16 18:53:01 +00:00
Alasdair Kergon
dbb43034e6
Don't assume exactly two mirrors when parsing mirror status
2005-09-02 16:59:46 +00:00
Alasdair Kergon
40ec1e8a36
Suppress fsync() error message on filesystems that don't support it.
2005-09-01 18:37:22 +00:00
Alasdair Kergon
ae9c3f1664
Fix yes_no_prompt() error handling.
2005-08-31 19:32:10 +00:00
Alasdair Kergon
721b61a43f
lvmconf.sh
2005-08-16 20:42:28 +00:00
Alasdair Kergon
fd0eec20b7
Add format1 dev_write debug messages.
2005-08-16 19:00:55 +00:00
Patrick Caulfield
fe6c78629d
clvmd no longer takes out locks for non-clusteed LVs,
...
and non-clustered LVs are only activated on the local node.
2005-08-16 08:25:09 +00:00
Alasdair Kergon
3d38769798
Add clustered VG attribute to report.
2005-08-15 23:34:11 +00:00
Alasdair Kergon
2d9e596fe6
Move lvconvert parameters into struct lvconvert_params.
2005-08-15 14:10:28 +00:00
Alasdair Kergon
4c60a35226
Add clustered VG flag to LV lock requests.
2005-08-15 13:24:46 +00:00
Alasdair Kergon
0fb173aa3a
Change LV locking macros to take lv instead of lvid.
2005-08-15 12:00:04 +00:00
Alasdair Kergon
07d318310b
Prepare tools to support clustered mirrors.
2005-08-14 23:18:28 +00:00
Alasdair Kergon
fb9d44daf1
Factor out generate_log_name_format().
2005-08-12 20:02:21 +00:00
Alasdair Kergon
bfd31e94d5
Factor out adjusted_mirror_region_size()
2005-08-12 19:23:08 +00:00
Alasdair Kergon
197632009b
Move compose_log_line() into mirror directory.
2005-08-10 17:19:46 +00:00
Alasdair Kergon
0c09c9d943
Don't kill idling clvmd threads.
2005-08-09 17:29:04 +00:00
Alasdair Kergon
4bf57acec8
Factor out _get_library_path().
2005-08-09 17:24:21 +00:00
Alasdair Kergon
0b63cc1ea0
aoe
2005-08-08 17:55:35 +00:00
Alasdair Kergon
3bb7a8c89d
post-release
2005-08-04 02:07:34 +00:00
Alasdair Kergon
190f6945ee
Fix lvconvert PV parameter in help string.
2005-08-04 01:50:17 +00:00
Alasdair Kergon
78a352c2eb
Prevent snapshots getting activated in a clustered VG.
2005-08-04 01:27:25 +00:00
Alasdair Kergon
a4be2c013c
Separate out _build_dev_string.
2005-08-04 01:15:30 +00:00
Alasdair Kergon
a9b5af1d62
Move zero_lv to toollib.
2005-08-04 01:14:36 +00:00
AJ Lewis
cc4a9ff522
fix pool format handler to work with pvseg code
2005-07-26 21:48:18 +00:00
Alasdair Kergon
d87b3a613f
post-release
2005-07-13 19:28:09 +00:00
Alasdair Kergon
42043c23b2
2.01.13
2005-07-13 19:15:09 +00:00
Alasdair Kergon
0440a206dc
Fix pvmove segment splitting.
...
Abstract vg_validate.
2005-07-12 19:40:59 +00:00
Alasdair Kergon
10b44b2d4a
Only make one attempt at contiguous allocation.
2005-07-12 14:50:45 +00:00
Alasdair Kergon
4f8781051a
Fix lvm1 format metadata read.
2005-06-22 15:31:29 +00:00
Alasdair Kergon
f1a8b66758
fix lvm1 non-mirror lvcreate
2005-06-22 14:56:14 +00:00
Alasdair Kergon
f92853b475
post-release
2005-06-14 18:22:22 +00:00
Alasdair Kergon
1956b7be26
2.01.12
2005-06-14 17:59:57 +00:00
Alasdair Kergon
5e947dac48
Various allocation-related pvmove fixes.
2005-06-14 17:54:48 +00:00
Patrick Caulfield
470b46cee1
Log an error if clvmd can't resolve a host name got from CCS
...
Fix potential spin loop in clvmd
2005-06-14 10:35:02 +00:00
Alasdair Kergon
3a373791b8
post-release
2005-06-13 14:53:07 +00:00
Alasdair Kergon
5e2a6b8f74
2.01.11
2005-06-13 14:43:28 +00:00
Alasdair Kergon
56c3d1f7fc
Use matchpathcon mode parameter.
2005-06-13 13:13:15 +00:00
Patrick Caulfield
5a3f4a794d
Don't defer closing of FDs in clvmd as it can cause trouble.
2005-06-13 10:16:21 +00:00
Alasdair Kergon
5748cb17f8
Remove hard-coded 64k text metadata writing restriction.
2005-06-07 11:00:07 +00:00
Alasdair Kergon
8b80d2a57c
Make VG name restrictions consistent.
2005-06-06 18:16:33 +00:00
Alasdair Kergon
1a1f3d3efe
Introduce lvconvert. So far only removes mirror images.
2005-06-06 17:12:08 +00:00
Alasdair Kergon
ffb0e5387b
Allow mirror images to be resized.
2005-06-03 19:48:19 +00:00
Alasdair Kergon
c77de77790
Allow mirror images to have more than one segment.
2005-06-03 18:07:13 +00:00
Alasdair Kergon
8211a13ce0
Always insert an intermediate layer for mirrors.
...
Suppress hidden LVs from reports unless --all is given.
Use square brackets for hidden LVs in reports.
Centralise restrictions on LV names.
2005-06-03 14:49:51 +00:00
Alasdair Kergon
60f13f01d2
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
bd236f658d
Fix non-orphan pvchange -u.
2005-05-24 17:38:26 +00:00
Alasdair Kergon
21ca3b1227
Fix vgmerge to handle duplicate LVIDs.
2005-05-19 16:48:51 +00:00
Alasdair Kergon
e7c47a5dad
Start merging cloned allocation functions.
2005-05-17 13:49:45 +00:00