From: Stepan Kadlec <skadlec@gk-software.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] clvmd locking disabled
Date: Tue, 04 Nov 2008 09:47:31 +0100 [thread overview]
Message-ID: <49100C23.6070701@gk-software.com> (raw)
In-Reply-To: <490AFD59.8070809@redhat.com>
Milan Broz wrote:
> Stepan Kadlec wrote:
>> ok, I have recompiled it with --with-cluster=internal, but still seeing:
>>
>> WARNING: Locking disabled. Be careful! This could corrupt your metadata.
>
> Is it during clvmd initialization only?
>
> clvmd tries to initialize locks for possible already activated volumes
> (mostly safety/force restart check, clvmd must start before clustered LVs
> are activated anyway)
>
> It simply run lvs command (forcing nolocking for this command)
> to check which volumes are activated.
> The log message is misleading here...
>
> After clvmd initialization, it should work as expected.
>
I have looked into the sources:
1) the clvmd starts the thread lvm_thread_fn() from clvmd.c
2) it calls the init_lvm() function from lvm-functions.c
3) it calls the get_initial_state() function from lvm-functions.c
4) in get_initial_state is following call:
FILE *lvs = popen
("lvm lvs --config 'log{command_names=0 prefix=\"\"}'
--nolocking --noheadings -o vg_uuid,lv_uuid,lv_attr,vg_attr",
"r");
-> it calls lvm command with the --nolocking option - this is passed to
all following steps:
5) the lvm commands calls lvm_run_command() function from lvmcmdline.c
6) it calls init_locking() function from locking.c
7) init_locking() than print the "locking disabled" warning, because the
--nolocking option
SO:
a) is it alright, that the "lvm lvs" command is internally called with
--nolocking option?
b) does it mean, that locking works alright for the rest of clvmd
operations but the get_initial_state() call? in this case the debug
message is very confusing.
bye stepan
> Milan
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
--
Eurosoftware s.r.o.
skadlec@gk-software.com
+420 379 307 379
+420 724 554 104
next prev parent reply other threads:[~2008-11-04 8:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 2:28 [linux-lvm] mirror and snapshot incompatible Yoav
2008-10-28 20:56 ` Jonathan Brassow
2008-10-29 0:32 ` Yoav
2008-10-29 10:31 ` [linux-lvm] clvmd locking disabled Stepan Kadlec
2008-10-29 10:45 ` Stepan Kadlec
2008-10-29 11:32 ` Christine Caulfield
2008-10-31 12:22 ` Stepan Kadlec
2008-10-31 12:43 ` Milan Broz
2008-11-03 16:56 ` Stepan Kadlec
2008-11-04 8:47 ` Stepan Kadlec [this message]
2008-10-31 13:27 ` Christine Caulfield
2008-10-29 11:39 ` Milan Broz
2008-10-29 15:06 ` [linux-lvm] mirror and snapshot incompatible Jonathan Brassow
2008-10-30 3:28 ` Yoav
2008-11-01 10:27 ` [linux-lvm] snapshot cloning marcin.kaluza
2008-11-01 17:33 ` Les Mikesell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49100C23.6070701@gk-software.com \
--to=skadlec@gk-software.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox