nilfs_cleanerd won't run on root
Hello world,
I've installed linux on a 10gb nilfs2 root partition /dev/sda2. When I boot into it nilfs_cleanerd won't run
root:/home/andy# ps aux | grep nilfs_cleanerd root 1497 0.0 0.0 5456 592 pts/0 S+ 17:18 0:00 grep nilfs_cleanerd
If I start nilfs_cleanerd with a command it quits with no error message at the command prompt but it leaves this in the system log
Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: start Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: cannot open nilfs on (null): No such file or directory Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: cannot create cleanerd on (null): No such file or directory Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: shutdown
If I pass it different options the only thing that changes is the error it dumps in the system log
root:/home/andy# nilfs_cleanerd /
Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: start Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: cannot open nilfs on /: Inappropriate ioctl for device Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: cannot create cleanerd on /: Inappropriate ioctl for device Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: shutdown
root:/home/andy# nilfs_cleanerd /dev/sda2
Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: start Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: cannot open nilfs on /dev/sda2: No such file or directory Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: cannot create cleanerd on /dev/sda2: No such file or directory Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: shutdown
root:/home/andy# cat /etc/mtab /dev/sda2 / nilfs2 rw,gcpid=1292 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw,gid=4,mode=620 0 0 shm /dev/shm tmpfs rw 0 0 /dev/sda1 /mnt/windows ntfs rw,umask=0 0 0 /dev/sda7 /home reiserfs rw 0 0 /dev/sda3 /mnt/lfs btrfs rw 0 0
The only way I can get garbage collection to run is if I reboot into a different partition and mount it from there.
Andrew Benton
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi, Andrew
Which distribution are you using?
What version of kernel and nilfs module are in the distro? How is your /proc/mounts like?
It looks like you are using a bit older version. Older version of nilfs2-utils had the similar problem, but latest version would not have the issue.
regards,
Signature · 3 lines
Jiro SEKIBA <[email protected]> At Thu, 05 Nov 2009 17:41:00 +0000,
Quoted 53 lines · Andrew Benton
Hello world,
I've installed linux on a 10gb nilfs2 root partition/dev/sda2. When I boot into itnilfs_cleanerdwon't runroot:/home/andy# ps aux | grep nilfs_cleanerd root 1497 0.0 0.0 5456 592 pts/0 S+ 17:18 0:00 grep nilfs_cleanerdIf I start
nilfs_cleanerdwith a command it quits with no error message at the command prompt but it leaves this in the system logNov 5 17:18:05 eccles nilfs_cleanerd[1495]: start Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: cannot open nilfs on (null): No such file or directory Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: cannot create cleanerd on (null): No such file or directory Nov 5 17:18:05 eccles nilfs_cleanerd[1495]: shutdownIf I pass it different options the only thing that changes is the error it dumps in the system log
root:/home/andy# nilfs_cleanerd /Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: start Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: cannot open nilfs on /: Inappropriate ioctl for device Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: cannot create cleanerd on /: Inappropriate ioctl for device Nov 5 17:19:02 eccles nilfs_cleanerd[1503]: shutdownroot:/home/andy# nilfs_cleanerd /dev/sda2Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: start Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: cannot open nilfs on /dev/sda2: No such file or directory Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: cannot create cleanerd on /dev/sda2: No such file or directory Nov 5 17:19:26 eccles nilfs_cleanerd[1505]: shutdownroot:/home/andy# cat /etc/mtab /dev/sda2 / nilfs2 rw,gcpid=1292 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw,gid=4,mode=620 0 0 shm /dev/shm tmpfs rw 0 0 /dev/sda1 /mnt/windows ntfs rw,umask=0 0 0 /dev/sda7 /home reiserfs rw 0 0 /dev/sda3 /mnt/lfs btrfs rw 0 0The only way I can get garbage collection to run is if I reboot into a different partition and mount it from there.
Andrew Benton
_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users
A message that is not in the archive (sent off-list or not yet received): 87639oqkfb.wl%[email protected]
Quoted 10 lines · Jiro SEKIBA
Hi, Andrew
Which distribution are you using?
What version of kernel and nilfs module are in the distro? How is your/proc/mountslike?It looks like you are using a bit older version. Older version of nilfs2-utils had the similar problem, but latest version would not have the issue.
I'm using nilfs-utils-2.0.14. The kernel is a vanilla 2.6.31.4 self compiled with no modules (everything compiled in). The system is self compiled (based on Linux From Scratch)./proc/mounts is a symbolic link pointing at /proc/self/mounts. /proc/self is a symbolic link pointing at /proc/1511 so /proc/mounts is actually pointing at /proc/1511/mounts
andy:~$ cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / nilfs2 rw,relatime 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /dev tmpfs rw,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,gid=4,mode=620 0 0 shm /dev/shm tmpfs rw,relatime 0 0 /dev/sda1 /mnt/windows ntfs ro,relatime,uid=0,gid=0,umask=00,nls=default,errors=continue,mft_zone_multiplier=1 0 0 /dev/sda7 /home reiserfs rw,relatime 0 0 /dev/sda3 /mnt/lfs btrfs rw,relatime 0 0 andy:~$
Quoted 1 line · Jiro SEKIBA
How is your
/proc/mountslike?
Thanks for your help, that pointed me in the right direction. /proc/mounts shows the root filesystem as /dev/root, which doesn't exist. If I make a symbolic link /dev/root pointing at /dev/sda2 then I can start nilfs_cleanerd.
Now I just need to craft a udev rule to make that symbolic link and start nilfs_cleanerd.
Andy