Alasdair Kergon
eab7b2b581
fix dmsetup usage display (missing \n and --noflush wrong place)
2006-10-12 17:09:09 +00:00
Alasdair Kergon
45abade7fc
Add suspend noflush support.
...
Add basic dmsetup loop support.
2006-10-12 15:42:25 +00:00
Alasdair Kergon
2491a61481
Accept regionsize with lvconvert.
2006-10-07 23:04:36 +00:00
Alasdair Kergon
d305d655d4
Fix compiler warnings in percent arg. [pjc]
2006-10-02 16:15:03 +00:00
Alasdair Kergon
a4fef143cd
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
7408340b6a
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
eef8c7862e
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
b52375d446
fix vgreduce clustered check
2006-09-07 23:23:45 +00:00
Alasdair Kergon
6e2babc2ce
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
415cfd99a0
Add skip_dev_dir() to process command line VGs.
2006-08-25 23:02:33 +00:00
Alasdair Kergon
45df79feba
stub.h shouldn't be here
2006-08-22 15:56:06 +00:00
Alasdair Kergon
b0b60fafd5
Move lvm_snprintf into libdevmapper.
2006-08-21 12:54:53 +00:00
Alasdair Kergon
461a997b5b
Prevent mirror renames.
2006-08-18 21:19:54 +00:00
Alasdair Kergon
a80afd7b4e
Move CMDLIB code into separate file and record whether static build.
2006-08-18 21:17:18 +00:00
Alasdair Kergon
984651d99d
Add lvm_getpagesize wrapper.
2006-08-17 18:23:44 +00:00
Alasdair Kergon
c6f7370b30
Add --maxphysicalvolumes to vgchange.
2006-08-16 14:41:42 +00:00
Alasdair Kergon
c0c9f3cc19
fix getopt_long error check
2006-08-10 20:53:21 +00:00
Alasdair Kergon
81f4813c29
Add --table argument to dmsetup for a one-line table.
...
Abort if errors are found during cmdline option processing.
2006-08-10 14:11:03 +00:00
Alasdair Kergon
df0a5561a1
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
92a6746e70
Fix activation logic in lvchange --persistent.
2006-07-10 19:39:14 +00:00
Alasdair Kergon
c340647502
Differentiate between the two 'log device failed' cases in vgreduce.
2006-07-04 19:52:47 +00:00
Alasdair Kergon
c801c32fc5
If VG is already consistent with --removemissing, return success not failure.
2006-07-04 18:51:59 +00:00
Alasdair Kergon
d090cf3058
force remove fixes
2006-06-18 11:51:46 +00:00
Alasdair Kergon
1e4b82cc94
Add --force to dmsetup remove* to load error target. [Untested.]
...
Update dmsetup man page.
2006-06-18 11:35:04 +00:00
Alasdair Kergon
3426f31184
dmsetup remove_all also performs mknodes.
2006-06-17 16:12:41 +00:00
Alasdair Kergon
b36647598b
Fix return code if VG specified on command line is not found.
2006-06-14 20:27:15 +00:00
Alasdair Kergon
c51a13caa6
Prevent snapshots of mirrors.
2006-05-24 13:58:14 +00:00
Alasdair Kergon
608eedf88d
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
a564ca82be
Fix corelog segment line.
...
Suppress some compiler warnings.
2006-05-16 16:20:29 +00:00
Alasdair Kergon
445dd17db3
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
b69ba36c2d
Add --nosync to lvcreate with LV flag NOTSYNCED.
2006-05-11 20:03:40 +00:00
Alasdair Kergon
aac2b655f7
Allow vgreduce to handle mirror log failures.
2006-05-11 19:01:11 +00:00
Alasdair Kergon
126c41e73a
Check in-sync status before changing disk log.
2006-05-11 18:56:55 +00:00
Alasdair Kergon
359ee54f0d
Add --corelog to lvcreate and lvconvert.
2006-05-11 18:54:04 +00:00
Alasdair Kergon
28ab560907
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
ead252fee4
Add mirror_library description to example.conf.
...
More compile-time cleanup.
2006-05-11 17:58:58 +00:00
Alasdair Kergon
654f5049eb
Move DEFS into configure.h.
...
Remove dmsetup line buffer limitation.
2006-05-10 19:38:25 +00:00
Alasdair Kergon
4dd1086805
more coverity fixes
2006-05-10 17:49:25 +00:00
Alasdair Kergon
45dca55fc8
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
133842392a
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
20b71340bc
validate region size against page size
2006-04-28 17:25:54 +00:00
Alasdair Kergon
61d8baf8b1
Fix activation code to check for pre-existing mirror logs.
2006-04-28 17:01:07 +00:00
Alasdair Kergon
56a9645aa5
Tighten region size validation.
2006-04-28 15:01:39 +00:00
Alasdair Kergon
79d3492e90
Require non-zero regionsize and document parameter on lvcreate man page.
2006-04-28 13:11:05 +00:00
Alasdair Kergon
800f747570
Increase dmsetup line buffer to 4k.
2006-04-19 20:43:30 +00:00
Alasdair Kergon
70e45ad37b
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
db924da231
vgrename accepts vgid and exported VG.
2006-04-13 21:08:29 +00:00
Alasdair Kergon
fc55ae7e6d
Add --partial to pvs.
2006-04-13 17:51:40 +00:00
Alasdair Kergon
4790715cd3
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
8d16a0abad
lv_is_visible()
2006-04-07 17:41:56 +00:00