* [PATCH] Remove leftover mirror log on creation failure
@ 2007-11-09 16:40 Jun'ichi Nomura
0 siblings, 0 replies; only message in thread
From: Jun'ichi Nomura @ 2007-11-09 16:40 UTC (permalink / raw)
To: lvm-devel
When a creation of mirrored LV fails during its course,
mirror log LV is left unremoved.
The patch removes the log LV if error occurs after commiting it.
# dmsetup create --notable testvg-lv0_mlog
# lvcreate -l1 -m1 -nlv0 testvg
device-mapper: create ioctl failed: Device or resource busy
Aborting. Failed to activate mirror log. Remove new LVs and retry.
Failed to create mirror log.
# lvs -a
LV VG Attr LSize Origin Snap% Move Log Copy%
lv0_mlog testvg -wi-d- 4.00M
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-cleanup-mlog-on-failure.patch
Type: text/x-patch
Size: 2283 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071109/6cb2456a/attachment.bin>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-09 16:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-09 16:40 [PATCH] Remove leftover mirror log on creation failure 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.