All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH LVM2] Detect allocation failure of log device
@ 2006-12-12 22:54 Jun'ichi Nomura
  0 siblings, 0 replies; only message in thread
From: Jun'ichi Nomura @ 2006-12-12 22:54 UTC (permalink / raw)
  To: lvm-devel

Hi,

This patch fixes the testing of allocation result
so that it doesn't miss the failure of log device allocation.


Current code only checks whether the number of extents for
normal devices are allocated as requested.
The number of extents allocated for the log device is out of
consideration.

As a result, the allocator returns success and the later operation
to the allocated extents will cause error with misleading error
messages like this:
  LV lv0_mlog: segment 1 has inconsistent PV area 0
  Internal error: LV segments corrupted in lv0_mlog.

We have to check for the case that only the allocation attempt for
the log device failed,


Patch applicable to LVM2 2.02.16.
Shell script to reproduce the problem and the sample metadata
is attached for reference.
You can reproduce the problem with just executing the script
without additional parameters.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: detect-log-only-allocation-failure.patch
Type: text/x-patch
Size: 1056 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20061212/2f0f25b2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-logonly-alloc-failure.sh
Type: application/x-sh
Size: 2323 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20061212/2f0f25b2/attachment.sh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lvm2-logonly-alloc-failure.vg
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20061212/2f0f25b2/attachment.ksh>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-12 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 22:54 [PATCH LVM2] Detect allocation failure of log device Jun'ichi Nomura

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.