Re: [systemd-devel] nilfs-cleanerd startup on boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On 2015/03/04 0:44, dennis.murata@xxxxxxxxx wrote:
I had mis-typed the address for the nilfs mail group

-----Original Message-----
From: Lennart Poettering [mailto:lennart@xxxxxxxxxxxxxx]
Sent: Saturday, February 28, 2015 12:34 PM
To: Dennis Murata (WT01 - ENU)
Cc: systemd-devel@xxxxxxxxxxxxxxxxxxxxx; linus-nilfs@xxxxxxxxxxxxxxx
Subject: Re: [systemd-devel] nilfs-cleanerd startup on boot

On Fri, 27.02.15 18:31, dennis.murata@xxxxxxxxx
(dennis.murata@xxxxxxxxx) wrote:

I have a fedora 21 system that where I mount an nilfs2 file system.
I use a simple /etc/modules-load.d/nilfs.conf file to load the kernel
module and have an entry in the fstab.

Creating the modules-load.d snippet should not be necessary, as the kernel
should autoload the kernel module for it when it is first required.
I did not find this to be the case for fedora 21.
> Without creating the file to load the module, any attempt I made to mount
> the file system would get a unknown filetype error.  Does this point at
> adding this module to the initrd file?

Is "nilfs2.ko" installed in your environment?

Try "modinfo nilfs2"

Older fedora needed kernel-modules-extra package. [1]

[1] http://nilfs.sourceforge.net/en/pkg_fedora.html

The file system mounts on boot as it should, but the nilfs-cleanerd
program does not startup.  If I umount /nilfs then mount /nilfs the
nilfs-cleanerd program starts as it should to cleanup the checkpoints.

How is that daemon supposed to be started? Is it forked off /bin/mount?

Does systemd use a different mount program at boot?

It uses /bin/mount for mounting normal file systems.

nilfs_cleanerd is invoked through /sbin/mount.nilfs2 helper. [2]
The helper is called from /sbin/mount if it exists.

/sbin/mount.nilfs2 is included in nilfs-utils package.

nilfs_cleanerd is just a user-land process, so it can be
manually invoked if you have root privilege. [3]

  # /sbin/nilfs_cleanerd <device> <directory>

But, in this case, you need to kill nilfs_cleanerd
manually before umount.  So, I recommend running cleanerd
through mount.nilfs2.

The above explanation may not suit for the recent fedora
since nilfs-utils is not yet tuned to systemd environment.

[2] http://nilfs.sourceforge.net/en/man8/mount.nilfs2.8.html
[3] http://nilfs.sourceforge.net/en/man8/nilfs_cleanerd.8.html

Regards,
Ryusuke Konishi

Is there something else that should be included other than the
nilfs.conf file?  I have just started using a system with systemd as
the init so please forgive my ignorance.

I have no idea about nilfs really, and we had no reports about any problems
with it before.
I wanted to look at the performance of nilfs and f2fs.
> This is my first try at using these file systems

Lennart

--
Lennart Poettering, Red Hat
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux