* lvm2: warning after mirrored LV is initialized as PV
@ 2009-02-11 3:26 Takahiro Yasui
2009-02-11 5:49 ` malahal
0 siblings, 1 reply; 3+ messages in thread
From: Takahiro Yasui @ 2009-02-11 3:26 UTC (permalink / raw)
To: lvm-devel
Jonathan Brassow wrote (in dm-devel)
> Note that once you get #1 done you /should/ be able to get a mirrored
> log by:
> prompt> lvcreate -m1 --mirrorlog core -l 1 -n mirrored_log vg
> prompt> lvcreate -m1 -L 5G -n mirror vg /dev/sdb /dev/sdc /dev/vg/
> mirrored_log
I'm now evaluating the layered LV approach, which was suggested by Jon,
with the latest LVM command (2.02.45), but some warning messages are
displayed after mirrored LV was initialized as PV.
# /sbin/dmsetup ls --tree
vg--mirror-mirror (253:6)
??vg--mirror-mirror_mimage_1 (253:5)
? ?? (8:80)
??vg--mirror-mirror_mimage_0 (253:4)
? ?? (8:64)
??vg--mirror-mirror_mlog (253:3)
??vg--log-mirror--log (253:2)
??vg--log-mirror--log_mimage_1 (253:1)
? ?? (8:32)
??vg--log-mirror--log_mimage_0 (253:0)
?? (8:48)
# vgs
Found duplicate PV DoSlX0JCU3qxxN4UVqgtqvzP1crZAwom: using \
/dev/mapper/vg--log-mirror--log_mimage_1 not \
/dev/mapper/vg--log-mirror--log_mimage_0
Found duplicate PV DoSlX0JCU3qxxN4UVqgtqvzP1crZAwom: using \
/dev/vg-log/mirror-log not /dev/mapper/vg--log-mirror--log_mimage_1
VG #PV #LV #SN Attr VSize VFree
vg-log 2 1 0 wz--n- 31.99G 31.97G
vg-mirror 3 1 0 wz--n- 32.00G 31.97G
This warning message is displayed during scan of PVs because the
following three logical volumes have the same UUID.
/dev/vg-log/mirror-log
/dev/mapper/vg--log-mirror--log_mimage_0
/dev/mapper/vg--log-mirror--log_mimage_1
And this warning can be avoided by setting filter in config file, but
I hope that these warnings are not displayed without a config setting.
filter = [ ..., "r|.*_mimage_.$|", ... ]
Do you think it is reasonable idea to skip device scan of LVs which have
a string, "_mimage_", in their name? I think that adding a static filter
for "_mimage_" in lvm commands is one of the solutions.
I appreciate your kind comments to fix this issue.
Thanks,
---
Takahiro Yasui
Hitachi Computer Products (America), Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* lvm2: warning after mirrored LV is initialized as PV
2009-02-11 3:26 lvm2: warning after mirrored LV is initialized as PV Takahiro Yasui
@ 2009-02-11 5:49 ` malahal
2009-02-11 13:32 ` Takahiro Yasui
0 siblings, 1 reply; 3+ messages in thread
From: malahal @ 2009-02-11 5:49 UTC (permalink / raw)
To: lvm-devel
Takahiro Yasui [tyasui at redhat.com] wrote:
> Jonathan Brassow wrote (in dm-devel)
> > Note that once you get #1 done you /should/ be able to get a mirrored
> > log by:
> > prompt> lvcreate -m1 --mirrorlog core -l 1 -n mirrored_log vg
> > prompt> lvcreate -m1 -L 5G -n mirror vg /dev/sdb /dev/sdc /dev/vg/
> > mirrored_log
>
> I'm now evaluating the layered LV approach, which was suggested by Jon,
> with the latest LVM command (2.02.45), but some warning messages are
> displayed after mirrored LV was initialized as PV.
Jonathan and Alasdair explained what they mean by 'generic layering' in
one of the DM/multipath Monday meetings. Currently allocations are done
from PV's. They want to include LV's in the allocation map. This
requires changes in the allocation path. We probably want to designate
these LVs to avoid admin mistakes. With the above changes in place, we
don't need to include LVs as PVs at all.
The changes also require additional options and arguments to exiting
commands.
If you don't include LVs as PVs, you don't get any warnings you listed!
^ permalink raw reply [flat|nested] 3+ messages in thread
* lvm2: warning after mirrored LV is initialized as PV
2009-02-11 5:49 ` malahal
@ 2009-02-11 13:32 ` Takahiro Yasui
0 siblings, 0 replies; 3+ messages in thread
From: Takahiro Yasui @ 2009-02-11 13:32 UTC (permalink / raw)
To: lvm-devel
malahal at us.ibm.com wrote:
> Takahiro Yasui [tyasui at redhat.com] wrote:
>> Jonathan Brassow wrote (in dm-devel)
>>> Note that once you get #1 done you /should/ be able to get a mirrored
>>> log by:
>>> prompt> lvcreate -m1 --mirrorlog core -l 1 -n mirrored_log vg
>>> prompt> lvcreate -m1 -L 5G -n mirror vg /dev/sdb /dev/sdc /dev/vg/
>>> mirrored_log
>> I'm now evaluating the layered LV approach, which was suggested by Jon,
>> with the latest LVM command (2.02.45), but some warning messages are
>> displayed after mirrored LV was initialized as PV.
>
> Jonathan and Alasdair explained what they mean by 'generic layering' in
> one of the DM/multipath Monday meetings. Currently allocations are done
> from PV's. They want to include LV's in the allocation map. This
> requires changes in the allocation path. We probably want to designate
> these LVs to avoid admin mistakes. With the above changes in place, we
> don't need to include LVs as PVs at all.
>
...
> If you don't include LVs as PVs, you don't get any warnings you listed!
Thank you for the explanation. I misunderstood their comments. So in
'generic layering', LVs works like physical PVs without creating PV
from LV with pvcreate command, and we don't encounter this warning.
Thanks,
Taka
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-11 13:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 3:26 lvm2: warning after mirrored LV is initialized as PV Takahiro Yasui
2009-02-11 5:49 ` malahal
2009-02-11 13:32 ` Takahiro Yasui
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.