nilfs_cleanerd not running
Hi,
It seems my NILFS is not garbage collected. The other day I was not able to boot up my NixOS due to a full disk. I booted on a USB stick and ran nilfs-clean which freed about 20 Gbytes. I suppose there should always be a process nilfs_cleanerd running on a system in order to clean up old check points. I have actually not read on the NILFS web site that nilfs_cleanerd should be running normally, but maybe I have missed this. Should it not be running normally?
When I am running nilfs-clean on my device, I get:
'No cleaner found on /dev/dm-0.'
mount | grep nilfs gives:
/dev/mapper/cryptroot on / type nilfs2 (rw,relatime) /dev/mapper/cryptroot on /nix/store type nilfs2 (ro,relatime)
nilfs-clean -V gives:
nilfs-clean version 2.2.3
I am only able to run nilfs_cleanerd after setting LD_LIBRARY_PATH to /nix/store/*-nilfs-utils-2.2.3/lib
nilfs_cleanerd /dev/mapper/cryptroot
NILFS_CLEANERD_PID=24468
It seems however like the process terminates since there does not seem to exist any process when running 'ps aux | grep nilfs'
When trying 'sudo mount -t nilfs2 -o remount,pp=1 /dev/mapper/cryptroot /', I get:
/nix/store/y0ldq0j9qpax23d6g5iww7nz17xgx32q-nilfs-utils-2.2.3/sbin/nilfs_cleanerd: error while loading shared libraries: libnilfs.so.0: cannot open shared object file: No such file or directory mount.nilfs2: Warning: cannot get pid of cleanerd
mount.nilfs2: cannot modify /etc/mtab.
Please remount the partition with -f option after making /etc/mtab writable.
I am running NixOS 16.03
'uname -r' gives:
4.4.14
Any ideas?
Thanks in advance.
Kind regards,
Mikael Andersson
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 2a90bda59a98d4f35e8dbab5534c014e-m2T68/X/[email protected]
Hi again,
I am now able to run nilfs_cleanerd after running it as root... :) When I am running it with sudo I get below, although I set LD_LIBRARY_PATH first:
nilfs_cleanerd: error while loading shared libraries: libnilfs.so.0: cannot open shared object file: No such file or directory
Maybe sudo starts a new shell and loses the LD_LIBRARY_PATH variable?
I think it is rather strange and confusing that nilfs_cleanerd says 'NILFS_CLEANERD_PID=25215' without being able to start a process properly. Is that perhaps a bug?
My problem is still:
[root@nixos:/home/mikael]# nilfs_cleanerd /dev/mapper/cryptroot nilfs_cleanerd: error while loading shared libraries: libnilfs.so.0: cannot open shared object file: No such file or directory
If I set LD_LIBRARY_PATH, I am however able to start nilfs_cleanerd as root.
Any ideas?
Kind regards,
Mikael Andersson
2016-08-30 22:01 skrev mikael-m2T68/X/[email protected]:
Quoted 51 lines
Hi,
It seems my NILFS is not garbage collected. The other day I was not able to boot up my NixOS due to a full disk. I booted on a USB stick and ran nilfs-clean which freed about 20 Gbytes. I suppose there should always be a process
nilfs_cleanerdrunning on a system in order to clean up old check points. I have actually not read on the NILFS web site thatnilfs_cleanerdshould be running normally, but maybe I have missed this. Should it not be running normally?When I am running nilfs-clean on my device, I get:
'No cleaner found on
/dev/dm-0.'mount | grep nilfs gives:
/dev/mapper/cryptrooton / type nilfs2 (rw,relatime)/dev/mapper/cryptrooton /nix/store type nilfs2 (ro,relatime)nilfs-clean -V gives:
nilfs-clean version 2.2.3
I am only able to run
nilfs_cleanerdafter settingLD_LIBRARY_PATHto /nix/store/*-nilfs-utils-2.2.3/lib
nilfs_cleanerd/dev/mapper/cryptroot
NILFS_CLEANERD_PID=24468It seems however like the process terminates since there does not seem to exist any process when running 'ps aux | grep nilfs'
When trying 'sudo mount -t nilfs2 -o remount,pp=1
/dev/mapper/cryptroot/', I get:/nix/store/y0ldq0j9qpax23d6g5iww7nz17xgx32q-nilfs-utils-2.2.3/sbin/nilfs_cleanerd:
error while loading shared libraries: libnilfs.so.0: cannot open shared object file: No such file or directory
mount.nilfs2: Warning: cannot get pid of cleanerd
mount.nilfs2: cannot modify/etc/mtab.
Please remount the partition with -f option after making/etc/mtabwritable.I am running NixOS 16.03
'uname -r' gives:
4.4.14Any ideas?
Thanks in advance.
Quoted 7 lines
Kind regards,
Mikael Andersson
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): ef82ce0808205f8ecda06baa9a3f9232-m2T68/X/[email protected]
Quoted 6 lines · On Wed, 31 Aug 2016 00:28:04 +0200, mikael-m2T68/X/[email protected].…
Hi again,
I am now able to run
nilfs_cleanerdafter running it as root... :) When I am running it with sudo I get below, although I setLD_LIBRARY_PATHfirst:
Quoted 8 lines
nilfs_cleanerd: error while loading shared libraries: libnilfs.so.0:
cannot open shared object file: No such file or directoryMaybe sudo starts a new shell and loses the
LD_LIBRARY_PATHvariable?I think it is rather strange and confusing that
nilfs_cleanerdsays 'NILFS_CLEANERD_PID=25215' without being able to start a process properly. Is that perhaps a bug?
Seems that libnilfs.so is loaded when its function is used first time. nilfs_cleanerd first tries to deliver PID to the parent process and then call a function of libnilfs. So, this order looks to be natural.
Quoted 11 lines
My problem is still:
[root@nixos:/home/mikael]# nilfs_cleanerd /dev/mapper/cryptroot nilfs_cleanerd: error while loading shared libraries: libnilfs.so.0: cannot open shared object file: No such file or directoryIf I set
LD_LIBRARY_PATH, I am however able to startnilfs_cleanerdas root.Any ideas?
Try ldd to investigate library dependency.
$ ldd /sbin/nilfs_cleanerd
If libnilfs.so is "not found", add the library path
where libnilfs.so exists, to /etc/ld.so.conf or /etc/ld.so.conf.d/*.conf. And, then run ldconfig.
Usually we don't have to care this kind of task. It looks like there is a problem in the NixOS distro package or your system environment.
Regards,
Ryusuke Konishi
Quoted 49 lines
Kind regards,
Mikael Andersson
2016-08-30 22:01 skrev mikael-m2T68/X/[email protected]:
Quoted 34 lines
Hi,
It seems my NILFS is not garbage collected. The other day I was not able to boot up my NixOS due to a full disk. I booted on a USB stick and ran nilfs-clean which freed about 20 Gbytes. I suppose there should always be a processnilfs_cleanerdrunning on a system in order to clean up old check points. I have actually not read on the NILFS web site thatnilfs_cleanerdshould be running normally, but maybe I have missed this. Should it not be running normally?
When I am running nilfs-clean on my device, I get:
'No cleaner found on/dev/dm-0.'
mount | grep nilfs gives:/dev/mapper/cryptrooton / type nilfs2 (rw,relatime)/dev/mapper/cryptrooton /nix/store type nilfs2 (ro,relatime) nilfs-clean -V gives:
nilfs-clean version 2.2.3
I am only able to runnilfs_cleanerdafter settingLD_LIBRARY_PATHto /nix/store/*-nilfs-utils-2.2.3/libnilfs_cleanerd/dev/mapper/cryptroot
NILFS_CLEANERD_PID=24468
It seems however like the process terminates since there does not seem to exist any process when running 'ps aux | grep nilfs'
When trying 'sudo mount -t nilfs2 -o remount,pp=1/dev/mapper/cryptroot/', I get:
/nix/store/y0ldq0j9qpax23d6g5iww7nz17xgx32q-nilfs-utils-2.2.3/sbin/nilfs_cleanerd:
error while loading shared libraries: libnilfs.so.0: cannot open shared object file: No such file or directory
mount.nilfs2: Warning: cannot get pid of cleanerd
mount.nilfs2: cannot modify/etc/mtab.
Please remount the partition with -f option after making/etc/mtabwritable.
I am running NixOS 16.03
'uname -r' gives:
4.4.14
Any ideas?Quoted 8 lines
Thanks in advance.
Kind regards,
Mikael Andersson
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to [email protected] 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 29 lines · On Tue, 30 Aug 2016 22:01:09 +0200, mikael-m2T68/X/[email protected].…
Hi,
It seems my NILFS is not garbage collected. The other day I was not able to boot up my NixOS due to a full disk. I booted on a USB stick and ran nilfs-clean which freed about 20 Gbytes. I suppose there should always be a process
nilfs_cleanerdrunning on a system in order to clean up old check points. I have actually not read on the NILFS web site thatnilfs_cleanerdshould be running normally, but maybe I have missed this. Should it not be running normally?When I am running nilfs-clean on my device, I get:
'No cleaner found on
/dev/dm-0.'mount | grep nilfs gives:
/dev/mapper/cryptrooton / type nilfs2 (rw,relatime)/dev/mapper/cryptrooton /nix/store type nilfs2 (ro,relatime)nilfs-clean -V gives:
nilfs-clean version 2.2.3
I am only able to run
nilfs_cleanerdafter settingLD_LIBRARY_PATHto /nix/store/*-nilfs-utils-2.2.3/lib
nilfs_cleanerd/dev/mapper/cryptroot
NILFS_CLEANERD_PID=24468
Quoted 8 lines
It seems however like the process terminates since there does not seem to exist any process when running 'ps aux | grep nilfs'
When trying 'sudo mount -t nilfs2 -o remount,pp=1
/dev/mapper/cryptroot/', I get:/nix/store/y0ldq0j9qpax23d6g5iww7nz17xgx32q-nilfs-utils-2.2.3/sbin/nilfs_cleanerd:
error while loading shared libraries: libnilfs.so.0: cannot open
I don't know the detail of NixOS, but the reason why nilfs_cleanerd aborted looks to be in this environmental issue.
Quoted 2 lines
shared object file: No such file or directory
mount.nilfs2: Warning: cannot get pid of cleanerd
This message indicates mount.nilfs2 failed to receive pid from nilfs_cleanerd. It looks like nilfs_cleanerd aborted before handing over the pid completes.
Quoted 3 lines
mount.nilfs2: cannot modify
/etc/mtab.
Please remount the partition with -f option after making/etc/mtabwritable.
Is /etc/mtab a symlink to /proc/self/mounts ?
If so, this mount.nilfs2 (NixOS distro package ?) looks to be wrongly built.
There are two version with regards to mount.nilfs2, one uses /etc/mtab and another uses libmount. The latter doesn't rewrite /etc/mtab.
The latter version of mount.nilfs2 can be built with "--with-libmount" configure option from the nilfs-utils source package.
$ ./configure --with-libmount $ make
Regards,
Ryusuke Konishi
Quoted 10 lines
I am running NixOS 16.03
'uname -r' gives:
4.4.14Any ideas?
Thanks in advance.
Quoted 8 lines
Kind regards,
Mikael Andersson
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to [email protected] 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html