1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
Commit Graph

422 Commits

Author SHA1 Message Date
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
Alasdair Kergon
7ac8c2389f Move archiver code from tools into library. 2005-05-17 13:46:38 +00:00
Alasdair Kergon
24e654645f vgscan/change/display/vgs automatically create metadata backup if out-of-date or missing. 2005-05-17 13:44:02 +00:00
Alasdair Kergon
0888dc43cf Fix contiguous allocations with linear. 2005-05-11 16:46:59 +00:00
Alasdair Kergon
17ae61cce5 Cope with missing format1 PVs again. 2005-05-11 15:04:06 +00:00
Alasdair Kergon
7f2def9e6d Remove lists of free PV segments.
Simplify pv_maps code and remove slow bitset algorithm.
2005-05-11 15:02:49 +00:00
AJ Lewis
c64ed88c34 updated to reflect clvmd rhel4 initscript being redhatified 2005-05-10 20:15:39 +00:00
Alasdair Kergon
c44c04a6d7 %Zu->zu 2005-05-09 17:45:06 +00:00
Alasdair Kergon
c708ec79b1 Fix loopfiles mem alloc. 2005-05-09 17:02:52 +00:00
Alasdair Kergon
4d12267641 Un-inline dbg_strdup. 2005-05-09 17:01:06 +00:00
Alasdair Kergon
32469fb25c lv_reduce tidying.
Remove some unnecessary parameters.
Introduce seg_is macros.
2005-05-09 16:59:01 +00:00
Alasdair Kergon
b8e2ad3db9 post-release 2005-05-09 16:41:48 +00:00
Alasdair Kergon
f81656fd48 2.01.10 2005-05-03 17:43:47 +00:00
Alasdair Kergon
abe198c0e8 Don't create backup and archive dirs till needed. 2005-05-03 17:31:56 +00:00
Alasdair Kergon
15db9fcfbf Reinstate full PV size when removing from VG.
Support loopfiles for testing.
Complete the pv_segment support.
2005-05-03 17:28:23 +00:00
Alasdair Kergon
e40d124e14 set_lv_segment_area_pv/lv 2005-04-22 15:43:02 +00:00
Alasdair Kergon
c54a940540 Initial pv_segment code. 2005-04-19 20:58:25 +00:00
Patrick Caulfield
30bda7761e Tidy clvmd's SIGHUP handler so it doesn't do all that work. 2005-04-19 10:36:42 +00:00
Alasdair Kergon
66278a80b1 vgchange --physicalextentsize (but only if it's an exact fit - may need to
use pvmove first)
2005-04-18 14:56:42 +00:00
Patrick Caulfield
2b7e4013cd Make clvmd work around some "limitations" in gulm's node state notifications.
Also make clvmd debuglog timestamps a little more helpful.
2005-04-13 13:50:07 +00:00
Alasdair Kergon
69b2cc0ee0 Remove unused internal non-persistent snapshot option. 2005-04-07 12:27:57 +00:00
Alasdair Kergon
90395b8d53 store snapshot id as lvid internally 2005-04-07 12:24:48 +00:00
Alasdair Kergon
864de9cee1 Allow offline extension of snapshot volumes.
NB Requires kernel patch that is not upstream.
2005-04-07 12:17:46 +00:00
Alasdair Kergon
367b9cb1f5 Move from 2-step to 3-step on-disk metadata commit. 2005-04-06 18:59:55 +00:00
Alasdair Kergon
b12f3c5b9d Add ramdisk. 2005-04-06 16:43:59 +00:00
Alasdair Kergon
1128f56b1e Annotate, tidy and extend list.h. 2005-04-06 14:50:37 +00:00
Alasdair Kergon
1165258cda Alignment tidying. 2005-04-06 13:47:41 +00:00
Alasdair Kergon
4a0623f909 post-release 2005-04-04 15:46:14 +00:00
Alasdair Kergon
37baa58625 2.01.09 2005-04-04 15:41:51 +00:00
Alasdair Kergon
0a0f13e600 Add --ignorelockingfailure to vgmknodes. 2005-04-04 14:44:49 +00:00
Patrick Caulfield
a478de3db6 set SO_KEEPALIVE on sockets 2005-04-01 16:03:00 +00:00
Patrick Caulfield
11270d07bf Don't allow user operations to start until the lvm thread is fully up.
Hopefully finally nails bz#146056
2005-04-01 13:01:01 +00:00
Alasdair Kergon
fd1712ecbe post-release 2005-03-22 16:50:17 +00:00
Alasdair Kergon
c8f9c82dae 2.01.08 2005-03-22 15:12:37 +00:00
Alasdair Kergon
343a8c920d Add clustered attribute so vgchange can identify clustered VGs w/o locking. 2005-03-21 22:55:12 +00:00
Alasdair Kergon
e5b836d2d6 Improve detection of external changes affecting internal cache. 2005-03-21 22:40:35 +00:00
Alasdair Kergon
162d85b97b Add 'already in device cache' debug message. 2005-03-21 14:51:49 +00:00
Alasdair Kergon
200ef4db90 Add -a to pvdisplay -C. 2005-03-21 14:47:36 +00:00
Alasdair Kergon
0aa8e5be94 Avoid rmdir opendir error messsages when dir was already removed. 2005-03-21 14:43:02 +00:00
Alasdair Kergon
779b7713cf Tighten signal handlers. 2005-03-21 14:16:16 +00:00
Alasdair Kergon
02c6d3f251 Fix WHATS_NEW. 2005-03-10 23:04:42 +00:00
Alasdair Kergon
7e0b7fd0e5 Avoid some compiler warnings. 2005-03-10 22:34:17 +00:00
Alasdair Kergon
e5def0bab5 Additional rename failure error message. 2005-03-10 22:31:10 +00:00
Alasdair Kergon
1cbfe69961 read/write may be macros 2005-03-10 20:23:36 +00:00
Alasdair Kergon
47de39908b post-release 2005-03-10 20:22:40 +00:00
Patrick Caulfield
a6c23d8b8b Don't take out the lvm_thread_lock at startup - it only protects the jobs list.
DEBUGLOG() message now print threadid rather than PID which is more useful.
2005-03-09 14:08:11 +00:00
Alasdair Kergon
b9565b406a Cope with new devices appearing by rescanning /dev if a uuid can't be found. 2005-03-08 13:46:17 +00:00
Alasdair Kergon
8f5d81cbc8 Remove DESTDIR from LVM_SHARED_PATH. 2005-03-08 13:39:39 +00:00
Patrick Caulfield
3329bbfdf3 make clvmd FDs close-on-exec, to avoid warnings when running lvm via popen.
clvmd-gulm unlocks VG & orphan locks at startup in case they are stale.
clvmd-gulm now unlocks VG & orphan locks if client dies.
2005-03-07 17:03:44 +00:00
Alasdair Kergon
4c90852192 post-release 2005-03-03 22:31:01 +00:00
Alasdair Kergon
9a56fc818a 2.01.06 2005-03-03 22:26:34 +00:00
Alasdair Kergon
432cd1e47a Option to suppress warnings of file descriptors left open. 2005-03-03 22:09:20 +00:00
Alasdair Kergon
aa70fe8b71 Suppress 'open failed' error messages during scanning. 2005-03-03 21:54:35 +00:00
Alasdair Kergon
f3b0ea286a Fix default value of metadatacopies in documentation (2->1). 2005-03-03 21:52:58 +00:00
Patrick Caulfield
eb3037ddbd Fix clvmd-gulm node up/down code so it actually works.
clvmd-gulm now releases locks when shut down.
2005-02-22 16:26:21 +00:00
Patrick Caulfield
a00bfcc8b2 ./configure --enable-debug now enables debugging code in clvmd 2005-02-21 15:58:06 +00:00
Patrick Caulfield
ce1aa2c3ff Always manipulate both locks in sync_lock() otherwise they get left
hanging around and cause trouble.
2005-02-21 14:36:09 +00:00
Alasdair Kergon
8b307a08cb post-release 2005-02-18 19:06:16 +00:00
Alasdair Kergon
8e3a97baf2 Static binary invokes dynamic binary if appropriate. 2005-02-18 18:58:31 +00:00
Patrick Caulfield
c9808c329d Cope with more than one message arriving at the TCP socket, also
fix some instances where the length in the message was wrong (cman
code didn't notice this because it is packet-based comms anyway)
2005-02-18 15:31:32 +00:00
Patrick Caulfield
a3dfa1c7d5 Make config check a little more tolerant of library names. 2005-02-14 09:07:14 +00:00
Alasdair Kergon
50e3a3f334 post-release 2005-02-09 18:26:38 +00:00
Alasdair Kergon
f1b2dad435 Add fixed offset to imported pool minor numbers. 2005-02-09 17:49:36 +00:00
Patrick Caulfield
ceda2b1426 Fix thread shutdown race which could cause clvmd to hang in pthread_join. 2005-02-08 09:05:58 +00:00
Patrick Caulfield
5937664052 Revert last clvmd patch. More testing reveals that this just doesn't
work yet.
2005-02-07 14:45:38 +00:00
Patrick Caulfield
2cf7b80d8f Make clvmd use the command library rather than popen() to
preload the lock state.
2005-02-07 10:04:27 +00:00
Alasdair Kergon
3ef1aceed6 lvm2cmd.so should skip the check for open fds. 2005-02-03 16:34:53 +00:00
Alasdair Kergon
421c2a6aed Remove unused -f from pvmove 2005-02-02 14:31:48 +00:00
Patrick Caulfield
d9656543ee Make clvmd do a quick sanity check on the clustering bits of lvm.conf 2005-02-02 11:42:29 +00:00
Patrick Caulfield
28b4320c7f Get rid of "connection refused" message because Corey doesn't like it. 2005-02-02 09:17:56 +00:00
Alasdair Kergon
939a307df2 post-release 2005-02-01 16:40:16 +00:00
Alasdair Kergon
07a2b9f899 2.01.03 2005-02-01 16:29:22 +00:00
Alasdair Kergon
274c88be9f More 64-bit display/report fixes. 2005-02-01 16:19:48 +00:00