Dave Wysochanski
640d07bf35
Fix vgdisplay return code and exit status.
2008-11-07 19:02:47 +00:00
Alasdair Kergon
05329c885a
more tweaking to get things to compile - dmlib.h for log fns, list.h
2008-11-03 18:59:59 +00:00
Alasdair Kergon
b3fed93a74
Rename a couple of variables that matched function names.
2008-11-03 16:26:27 +00:00
Alasdair Kergon
57854c2231
Use simple x.y.z library version in libdevmapper.pc
2008-11-01 20:48:09 +00:00
Alasdair Kergon
6457ab31b6
remove ancient debian dir
2008-10-31 12:25:54 +00:00
Alasdair Kergon
10857e3321
separate lvm-globals
2008-10-30 17:40:00 +00:00
Alasdair Kergon
759e49f025
Split out lvm-logging.h from log.h.
2008-10-30 17:27:28 +00:00
Alasdair Kergon
3b34fcf59f
Add libdm subdir to begin merging the device-mapper tree.
2008-10-30 15:31:33 +00:00
Alasdair Kergon
be23682a30
post-release
2008-10-26 10:40:50 +00:00
Alasdair Kergon
3a5dce4c92
pre-release
2008-10-26 10:33:34 +00:00
Alasdair Kergon
22d7e60d0e
Accept locking fallback_to_* options in the global section as documented.
2008-10-24 01:16:16 +00:00
Alasdair Kergon
5752156c9e
Fix temp table activation in mirror conversions not to happen in other cmds.
...
Fix temp table in mirror conversions to use always-present error not zero.
2008-10-23 11:21:04 +00:00
Alasdair Kergon
a30215a530
post-release
2008-10-17 17:48:10 +00:00
Alasdair Kergon
f9c8c1b964
pre-release
2008-10-17 17:42:08 +00:00
Alasdair Kergon
5650f67ef5
Use temp table to set device size when converting mirrors.
...
(Avoids having same mirror table loaded twice concurrently by first
using a 'zero' table to set the size of the device so when mirror
table is preloaded it doesn't have to be activated immediately.)
2008-10-17 10:57:15 +00:00
Alasdair Kergon
5ec25dfb94
In resume_mirror_images replace activate_lv with resume_lv as workaround.
...
(The resume has the side-effect of resuming all of the original
mirror's sub-lvs in addition to the new 'error' target middle layer.)
2008-10-17 10:50:14 +00:00
Alasdair Kergon
ef16682725
Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE. (Edward Allcutt)
2008-10-17 00:55:46 +00:00
Milan Broz
a3d987fa73
Fix snapshot monitoring library to not cancel monitoring invalid snapshot.
...
snapshot DSO unregistered itself when snapshot changed state to invalid.
This can cause a race (and several timeouts), when for example another snapshot
is added and in the middle of operation (suspend/resume) the monitoring thread
unregister itself.
Fix it by keeping the snapshot monitored after invalidation - just reset
threshold to not really print any messages to syslog.
2008-10-13 12:06:30 +00:00
Alasdair Kergon
9b21ace1e9
Generate man pages from templates and include version. (romster)
2008-10-08 12:50:13 +00:00
Alasdair Kergon
be2c03fa96
Add usrlibdir & usrsbindir to configure.
2008-10-07 19:11:59 +00:00
Alasdair Kergon
84a1de464c
Fix conversion of md chunk size into sectors.
2008-10-03 14:22:18 +00:00
Alasdair Kergon
3966f3d319
device->devices
2008-10-01 22:48:26 +00:00
Alasdair Kergon
8c317baf19
Free text metadata buffer after a failure writing it.
2008-09-30 20:37:52 +00:00
Milan Broz
37ef162cda
Fix misleading error message when there is no allocatable extents in VG.
2008-09-29 09:59:10 +00:00
Milan Broz
770928acfc
Fix handling of PVs which reappeared with old metadata version.
2008-09-25 15:59:10 +00:00
Milan Broz
3d07c2605f
Fix mirror DSO to call vgreduce with proper parameters.
2008-09-25 15:52:29 +00:00
Milan Broz
c350798528
Fix validation of --minor and --major in lvcreate to require -My always.
2008-09-24 16:32:51 +00:00
Alasdair Kergon
6bc3cc0bec
.
2008-09-19 18:31:20 +00:00
Alasdair Kergon
04d52b450b
fix last release
2008-09-19 15:44:03 +00:00
Alasdair Kergon
76cfd406ca
pre-release
2008-09-19 06:48:48 +00:00
Alasdair Kergon
9dbaad859d
.
2008-09-19 06:44:54 +00:00
Alasdair Kergon
95d43e17b3
Improve the way VGs with PVs missing are handled so manual intervention
...
is required in fewer circumstances. (mornfall)
2008-09-19 06:42:00 +00:00
Alasdair Kergon
09a2dff8de
Add device/md_chunk_alignment to lvm.conf
2008-09-19 05:33:37 +00:00
Alasdair Kergon
57208f879a
adjust pe_align for md chunk size
2008-09-19 05:19:09 +00:00
Alasdair Kergon
30d2940c67
Pass struct physical_volume to pe_align.
2008-09-19 04:28:58 +00:00
Alasdair Kergon
a03d0e2c3f
Store sysfs location in struct cmd_context.
2008-09-19 03:42:37 +00:00
Alasdair Kergon
1be3e86aa0
Avoid shuffling remaining mirror images when removing one, retaining primary.
2008-09-18 19:56:50 +00:00
Alasdair Kergon
e56dd38021
Add missing LV error target activation in _remove_mirror_images.
2008-09-18 19:09:47 +00:00
Alasdair Kergon
410904bef1
Prevent resizing an LV while lvconvert is using it.
2008-09-18 18:51:58 +00:00
Alasdair Kergon
ef2fda05cf
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
2008-09-16 18:05:11 +00:00
Milan Broz
fbc34d70b0
Fix pvresize to not allow resize if PV has two metadata areas.
...
If the PV has two metadata areas, second one is located at the end of the device.
Do not allow resize of PV or second metadata area can be overwritten.
(The check was active only for orphan PVs.)
2008-09-12 15:26:45 +00:00
Milan Broz
1989ef4ebc
Fix setting of volume limit count if converting to lvm1 format.
...
Fixes problem when after downconvert to lvm1 VG is broken:
# lvcreate -n lv1 -l 4 vg_test
Invalid LV in extent map (PV /dev/sdb1, PE 0, LV 0, LE 0)
...
2008-08-29 13:41:21 +00:00
Milan Broz
666cc72661
Fix vgconvert logical volume id metadata validation.
...
If volume group is downconverted to lvm1 format,
check if lvid has supported format for conversion to lv_num in lvm1.
2008-08-28 18:41:51 +00:00
Milan Broz
7f23ab94e2
Fix lvmdump metadata gather option (-m) to work correctly. (Jaroslav Stava)
2008-08-28 10:40:44 +00:00
Milan Broz
9065f534d8
Fix allocation bug in text metadata format write error path.
...
Function _text_pv_write doesn't use memory pool but static buffer,
call dm_pool_free in error path in _raw_write_mda_header is wrong.
Move pool free only to path where is the memory pool used.
2008-08-16 09:46:55 +00:00
Milan Broz
6594fe077d
Fix vgcfgbackup to properly check filename if template is used.
2008-08-13 12:44:24 +00:00
Zdeněk Kabeláč
9fd4ddc490
configure aborts if lcov or genhtml are missing with --enable-profiling
2008-08-05 14:29:38 +00:00
Zdeněk Kabeláč
04c0dba697
vgremove tries to remove lv snapshot first.
...
Added function lv_remove_with_dependencies().
2008-08-05 12:05:26 +00:00
Alasdair Kergon
2d364d4d80
Improve file descriptor leak detection to display likely culprit and filename.
2008-08-01 19:51:27 +00:00
Alasdair Kergon
3086822cd2
Change clustered mirror kernel module name from cmirror to dm-log-clustered.
2008-07-31 14:43:39 +00:00