dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [dm-devel] [Question] multipathd.service start failed when /var/run isn't mount
@ 2021-07-22  2:51 lixiaokeng
  2021-07-22 21:42 ` Benjamin Marzinski
  0 siblings, 1 reply; 8+ messages in thread
From: lixiaokeng @ 2021-07-22  2:51 UTC (permalink / raw)
  To: Martin Wilck, Benjamin Marzinski, Christophe Varoqui,
	dm-devel mailing list
  Cc: linfeilong, liuzhiqiang (I)

When we enable multipathd.service with systemctl and reboot,
multipathd doesn't start and log "failed to create pidfile".

The reason is following:

The RUN is /var/run in multipath-tools. When we start linux, we
mount a disk to /var. So if multipathd.service start before mount,
it will fail to activate.(If mount firstly, multipathd will start
successfully)

The RUN is defined in Makefile.inc:

ifndef RUN
        ifeq ($(shell test -L /var/run -o ! -d /var/run && echo 1),1)
                RUN=run
        else
                RUN=var/run
        endif
endif

Can it always be defined as run?

Regards,
Lixiaokeng

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-12 12:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22  2:51 [dm-devel] [Question] multipathd.service start failed when /var/run isn't mount lixiaokeng
2021-07-22 21:42 ` Benjamin Marzinski
2021-07-23  6:27   ` lixiaokeng
2021-07-23 16:56     ` Benjamin Marzinski
2021-07-26 12:22       ` lixiaokeng
2021-07-26 16:28         ` Benjamin Marzinski
2021-08-12 11:09           ` Martin Wilck
2021-08-12 12:42             ` lixiaokeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).