[lvm-devel] [PATCH] Add systemd service file

Zdenek Kabelac zkabelac at redhat.com
Fri Feb 18 18:43:01 UTC 2011


Dne 18.2.2011 18:04, Miklos Vajna napsal(a):
> Hi Alasdair,
> 
> On Fri, Feb 18, 2011 at 04:41:41PM +0000, Alasdair G Kergon <agk at redhat.com> wrote:
>> Could you explain a bit more how the sequence of activations will work?
> 
> Sure - this is for the case of general desktop/server situations, when
> there are a few LVs. (Not thousands of it.)
> 
> This service file is invoked after udev settled, so all device nodes
> area available. An other dependency also makes sure that vgchange is
> invoked before we would run fsck on the LVs.
> 
>> vgchange -ay is rather crude and not what everyone will require.
> 
> Agreed, the service file is just installed, but not enabled, that's up
> to the distro packagers / system administrators. However, I think it
> suits the general case, I mean for example Fedora has 'vgchange -a y' as
...
> 
> What it does is move part of the distro-specific scripts (in Fedora's
> case, fedora-storage-init) to a native systemd service, so that distro
> packager won't reinvent the wheel.
> 
> Sorry in case it seemed that this patch intents to replace all sysv init
> scripts at once. :)
> 

I think at this moment, systemd init script is way too much 'distro-oriented'
to make it usable from default package installation.

(We do not ship SysV nor Upstart script either)

It's probably for discussion how the 'startup' should be configurable,
where to put configurable parts for startup script and how to handle
dependencies.  Currently I do not see big use for the currently proposed patch
 (I think you are repeating here when initially systemd
automatically mounted all filesystems from fstab...)

Zdenek




More information about the lvm-devel mailing list