Regards,Jacek
That might well be the case on a dns-323/321, as the IPv6 kernel module is loaded only when filesystems are found and mounted the Alt-F folder is found, while samba(-small) is on the firmware and is (most probably) started before.You might solve that by installing samba (not small) as an on-disk Alt-F package, and in that case samba will be automatically restarted when found. The catch is that now samba is running from disk.And thanks, I didn't knew that samba worked (after restarted) on IPv6 :-)
# wait for specific filesystem to be mounted, if needed
waitfor="md1 sda4 sdb3" # adapt to your casefor i in $waitfor; doecho -n "waiting for $i:"while ! mountpoint -q /mnt/$i; doecho -n '.'sleep 5doneecho OKdone
# wait for an Alt-F folder to be found and available. This is enough for your case
echo -n "Waiting for aufs.sh to finish:"while ! aufs.sh -s >& /dev/null; doecho -n '.'sleep 1done
rcsmb restart
Installation of samba (not small) solves the issue.
Regards,Jacek
# wait for an Alt-F folder to be found and available. This is enough for your caseecho -n "Waiting for aufs.sh to finish:"while ! aufs.sh -s >& /dev/null; doecho -n '.'sleep 1done
aufs.sh -s; echo $?[root@DNS-320L]# aufs.sh -s; echo $?OK0
rcall stop
aufs.sh -u # this might unfortunately fail[root@DNS-320L]# rcall stoproot: Stopping sshd: OK.root: Stopping smbd: OK. Stopping nmbd: OK.root: Stopping ntpd: OK.root: Stopping news: OK.root: Stopping smartd: OK.root: Stopping crond: OK.root: Stopping sysctrl: OK.root: Stopping urandom: OK.root: Stopping klogd: OK. Stopping syslogd: OK.[root@DNS-320L]# aufs.sh -u # this might fail[root@DNS-320L]# aufs.sh -s; echo $?/mnt/DATA/Alt-F is not a aufs branch.1
aufs.sh -m
rcall start[root@DNS-320L]# aufs.sh -m
[root@DNS-320L]# aufs.sh -sOK
[root@DNS-320L]# rcall startroot: Starting syslogd: OK.Starting klogd: OK.root: Starting urandom: OK.root: Starting sslcert: OK.root: Starting modload: OK.root: Starting btrfs: OK.root: quota on sda2 is disabledroot: Starting sysctrl: OK.root: Starting smartd: OK.root: Starting crond: OK.Starting news: OK.root: Starting inetd: OK.root: ntpd: Setting up crontab... OK.root: Starting dbus-uuidgen: OK.Starting dbus-daemon: OK.Starting avahi-daemon: OK.Starting netatalk: OK.root: Starting nmbd: OK.Starting smbd: OK.root: Starting sshd: OK.root: Starting rmount: OK.root: Starting ffp: No ffp instalation found.root: Starting user: OK.
Oct 26 19:00:58 DNS323-JG-1 user.notice root: crond running Oct 26 19:00:58 DNS323-JG-1 user.notice root: sysctrl running Oct 26 19:00:58 DNS323-JG-1 user.notice root: sslcert stopped Oct 26 19:00:58 DNS323-JG-1 user.notice root: urandom started Oct 26 19:00:58 DNS323-JG-1 user.notice root: syslogd running Oct 26 19:02:36 DNS323-JG-1 user.notice aufs: Couldn't get lock, exiting. Oct 26 19:02:36 DNS323-JG-1 user.notice hot_aux: Alt-F directory found in sda2 but not used, aufs mount failed.
Hi João,unfortunately, there is no typo in the script. It works when run later, but behaves wrongly when run on startup.Here is the last sentence in the system log:Oct 26 19:00:58 DNS323-JG-1 user.notice root: crond running Oct 26 19:00:58 DNS323-JG-1 user.notice root: sysctrl running Oct 26 19:00:58 DNS323-JG-1 user.notice root: sslcert stopped Oct 26 19:00:58 DNS323-JG-1 user.notice root: urandom started Oct 26 19:00:58 DNS323-JG-1 user.notice root: syslogd running Oct 26 19:02:36 DNS323-JG-1 user.notice aufs: Couldn't get lock, exiting. Oct 26 19:02:36 DNS323-JG-1 user.notice hot_aux: Alt-F directory found in sda2 but not used, aufs mount failed.
[root@DNS-320L]# logread | grep -E 'aufs:|syslogd running'Oct 26 21:09:33 DNS-320L user.notice aufs: waiting for lockOct 26 21:09:50 DNS-320L user.notice root: syslogd runningOct 26 21:09:50 DNS-320L user.notice aufs: got lockOct 26 21:09:50 DNS-320L user.notice aufs: remove lock
There are orange lights on the front panel, and Alt-F modules are not available. I can log to console, disks are mounted, samba (small) works, www works. Looks like error message is generated after timeout with aufs.
Funny thing... I exchanged the test line to simple one#while ! aufs.sh -s >& /dev/null; dowhile ! test -e /usr/bin/ipkg-cl; do
Result is exactly the same. My guess is that Alt-F is not mounted until user script finished.
Regards
Couldn't get lock, exiting
# Script to execute as the root user at boot time.# You can loose your data or make the system inaccessible# if using the wrong commands. You have been warned!