Ticket #38 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

mdraid/lvm/localmount order

Reported by: Duncan <1i5t5.duncan@cox.net> Owned by: roy
Priority: normal Milestone:
Component: rc Version:
Keywords: Cc:

Description

Created an attachment (id=14)
deptree file

Synced as of a few hours ago (first hours of 2008-03-08, UTC).

After figuring out that openrc now wants /lowercase/ rc_* in the conf.d files, I got the starting sequence of mdraid/lvm/localmount correct (in that order). However, when I shutdown, openrc tries to shut down mdraid first, which of course doesn't work because lvm is still running on top of it, and localmount on top of lvm.

I'm attaching /lib/rc/init.d/deptree. (Whether this is rc or initscripts with a circular dependency or the like I don't know, so I'm calling it rc and attaching the deptree, hopefully covering both.)

I'd call this major or above except that mdraid seems decently robust, and seems to do the right thing anyway. However, I don't wish to depend on it continuing to do that when things aren't stopping in the right order.

Duncan

Attachments

deptree Download (0 bytes) - added by Duncan <1i5t5.duncan@cox.net> 2 years ago.
deptree file

Change History

Changed 2 years ago by Duncan <1i5t5.duncan@cox.net>

deptree file

comment:199 Changed 2 years ago by roy

Please attach the conf.d files where you define the service ordering.

comment:204 Changed 2 years ago by Duncan <1i5t5.duncan@cox.net>

Well, this isn't an attach, but it may do the trick. If you need the files, do you want all of them listed here, or just lvm and perhaps ntp-client, since they are the only ones with conf.d ordering in them? (There's no uncommented ordering in /etc/rc.conf, either.)

grep rc_ /etc/conf.d/*
/etc/conf.d/device-mapper:rc_after="lvm"
/etc/conf.d/lvm:rc_after="mdraid"
/etc/conf.d/ntp-client:rc_need="net.eth0"
/etc/conf.d/ntpd:rc_need="ntp-client net.eth0"
/etc/conf.d/syslog-ng:rc_config="/etc/syslog-ng/syslog-ng.conf"

comment:206 Changed 2 years ago by roy

Try changing rc_after to rc_use

comment:233 Changed 2 years ago by roy

  • Status changed from new to resolved
  • Resolution set to fixed

The ebuild in portage now support the old uppercase vars for this, so marking as fixed.

Note: See TracTickets for help on using tickets.