Jim Meyering
7454664997
Add "const" attributes where possible: first cut.
2007-08-07 09:06:05 +00:00
Alasdair Kergon
10d3496a17
Split metadata-external.h out from metadata.h for the tools to use.
2007-07-18 15:38:58 +00:00
Milan Broz
fa9407089c
Fix creation and conversion of mirrors with tags.
2007-03-26 16:10:10 +00:00
Alasdair Kergon
9a8f21aa03
Support the /dev/mapper prefix on most command lines.
2007-03-09 20:47:41 +00:00
Alasdair Kergon
45be8a836b
fix last check-in: lv->size is in sectors
2006-11-03 21:07:15 +00:00
Alasdair Kergon
954b6032e7
Fix mirror log LV writing to set all bits in whole LV.
2006-11-02 23:33:20 +00:00
Alasdair Kergon
415cfd99a0
Add skip_dev_dir() to process command line VGs.
2006-08-25 23:02:33 +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
99c941fc85
Allow signed mirrors arguments.
...
Move create_mirror_log() into toollib.
2005-11-28 21:00:37 +00:00
Alasdair Kergon
7b78edb1b7
Attempt to load missing targets using modprobe.
2005-10-17 17:56:27 +00:00
Alasdair Kergon
67eb7723d6
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
3c61426844
Factor out generate_log_name_format().
2005-08-12 20:02:21 +00:00
Alasdair Kergon
96be3ec22c
Move zero_lv to toollib.
2005-08-04 01:14:36 +00:00
Alasdair Kergon
1cf1b819f4
Make VG name restrictions consistent.
2005-06-06 18:16:33 +00:00
Alasdair Kergon
69098210be
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
1d40ee23f0
Initial pv_segment code.
2005-04-19 20:58:25 +00:00
Alasdair Kergon
47217bcfb7
Change alloc_areas to pe_ranges and allow suppression of availability checks.
2004-08-17 21:55:23 +00:00
Alasdair Kergon
07a55b51df
lvresize + fsadm support - needs testing
2004-06-15 17:23:49 +00:00
Alasdair Kergon
66ed5f82c4
Update copyright notices.
2004-03-30 19:35:44 +00:00
Alasdair Kergon
b89c4e9002
tagging
2004-03-08 17:19:15 +00:00
Alasdair Kergon
2a1eae5d6f
o Metadata area struct change.
...
o Support physical extent restrictions on PV lists for allocations
e.g. lvcreate -l 200 vg1 /dev/sda1:100-199:300-399
2003-04-24 22:23:24 +00:00
Alasdair Kergon
dd2157534b
Default stripesize 64k & config file setting for it;
...
Clear many compiler warnings (i386) & associated bugs - hopefully without
introducing too many new bugs:-) (Same exercise required for other archs.)
Default compilation has optimisation - or else use ./configure --enable-debug
2002-12-19 23:25:55 +00:00
Alasdair Kergon
38a90e7669
New column-based reporting tools: lvs, pvs & vgs.
2002-12-12 20:55:49 +00:00
Alasdair Kergon
34dd8d0a91
Some new features.
2002-11-18 14:04:08 +00:00
Alasdair Kergon
63875e7591
Merge with text format branch.
...
Lots of changes/very little testing so far => there'll be bugs!
Use 'vgcreate -M text' to create a volume group with its metadata stored
in text files. Text format metadata changes should be reasonably atomic,
with a (basic) automatic recovery mechanism if the system crashes while a
change is in progress.
Add a metadata section to lvm.conf to specify multiple directories if
you want (recommended) to keep multiple copies of the metadata (eg on
different filesystems).
e.g. metadata {
dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"]
}
Plenty of refinements still in the pipeline.
2002-04-24 18:20:51 +00:00
Alasdair Kergon
984929a001
Missing VG lock when iterating through all LVs.
2002-04-15 16:27:39 +00:00
Alasdair Kergon
f8bf2d7b7d
Run through indent - no (intentional) changes to any code.
2002-02-11 21:00:35 +00:00
Alasdair Kergon
c4856caebb
Preparation for an LVM2 liblvm - pass cmd_context into each tool and
...
link some globals that the tools need into that structure.
2002-02-11 20:50:53 +00:00
Alasdair Kergon
261c73a997
o Support locking with local lock files
...
o Disable control-c during updates (except if blocked waiting for a lock)
2002-02-11 15:42:34 +00:00
Alasdair Kergon
f9f3da9e78
o A vgimport implementation
...
o Require -a or <list of vgs> parameters with vgexport/vgimport
o Allow pvcreate -ff to destroy exported/partial VGs
2002-01-29 19:19:37 +00:00
Joe Thornber
34458e0c57
o Changed
...
struct pv_list {
struct list list;
struct physical_volume pv;
};
to
struct pv_list {
struct list list;
struct physical_volume *pv;
};
o New function in toollib 'create_pv_list', which creates a list of pv's
from a given command line array of pv's.
o Changed lvcreate/extend to use this (fixes lvextend [pv list] bug).
2002-01-21 16:05:23 +00:00
Alasdair Kergon
13cb94909c
o Add autobackup support to tools (follows most vg_write calls).
...
o Skip autobackup when in test mode.
o Set test mode from config file.
o Create system/backup dirs if not present (unless LVM_SYSTEM_DIR holds "").
2001-12-31 21:27:39 +00:00
Alasdair Kergon
83c49e9745
o Use lvm_snprintf wherever return value is used
...
o Add parameters to set retention limits for backups
2001-12-31 19:09:51 +00:00
Joe Thornber
3251a708e4
o Added a quick vgcfgbackup, needs parameters as yet.
2001-12-20 16:05:14 +00:00
Joe Thornber
a9649e92c9
o sync backup changes
2001-12-20 11:52:54 +00:00
Alasdair Kergon
8be7ae2733
vgdisplay
2001-11-19 15:20:50 +00:00
Alasdair Kergon
43b3d54855
More LV-related tidying. lvdisplay without args now shows all LVs.
2001-11-14 18:38:07 +00:00
Joe Thornber
7c233c6c0c
o lvcreate no longer needs the explicit -n flag
...
o disabled zeroing of lv until bug's worked out
2001-11-14 12:07:37 +00:00
Alasdair Kergon
1ae50fd95b
iospace restructured
2001-11-12 15:10:01 +00:00
Alasdair Kergon
5ef32227ec
lvcreate
2001-11-06 19:02:26 +00:00
Alasdair Kergon
993dfa4368
lvremove
2001-10-29 13:52:23 +00:00
Alasdair Kergon
38bb2f8ceb
More vgcreate error trapping
2001-10-15 18:39:40 +00:00
Alasdair Kergon
0524b1bf67
vgreduce, vgremove, vgrename & vgscan
2001-10-11 21:35:55 +00:00
Alasdair Kergon
aef2aee6a4
vgrename & vgck
2001-10-08 18:44:22 +00:00
Alasdair Kergon
a14dbe1ea6
Sync include file changes.
2001-10-05 21:39:30 +00:00
Alasdair Kergon
6c85a90723
Misc structural changes.
2001-10-01 19:36:06 +00:00
Alasdair Kergon
11814d63e8
Tidy include files
2001-10-01 15:14:39 +00:00
Alasdair Kergon
5c3a71cc59
lvactivate checkpoint commit
2001-09-25 12:49:28 +00:00