zfsonlinux / mountall

Mountall enhancements for ZFS on Linux
13 stars 8 forks source link

Using ZFS root, mountall fails to mount /var soon enough #2

Open tigloo opened 11 years ago

tigloo commented 11 years ago

Full description of the problem is here:

https://groups.google.com/a/zfsonlinux.org/forum/?fromgroups=#!topic/zfs-discuss/bmDxY24xrIg

When using a ZFS root file system with / located in rpool/ROOT/ubuntu-1 and /var located in rpool/var, /var is not available when upstart is beginning to start all daemons. This prevents many daemons from starting properly. It seems that /var is only mounted at a later stage.

The reason is unknown to me, as a workaround rpool/var can be moved to rpool/ROOT/ubuntu-1/var (so that it is a descendant of the root file system's data set). This seems to make /var immediately available at boot.

Note: the problem started to appear with ZoL RC12 (or rather, the Ubuntu packages of RC12), RC11 did not show this problem.

mk01 commented 11 years ago

probably ugly solution, but after after we realized, that there is very strict dependency in the code that a filesystem can't be mounted (won't be processed at all) if a filesystem right before him didn't finish mounting (what means long the list of filesystems is waiting on a slug in the front), you can change it to legacy mountpoint and put it like first line to /etc/fstab.