Ok I don't use Suse a whole lot, generally being Debian or RedHat myself. I posted this on linuxforums.org. 60 views, no responses. Thought I might try here:
So ive got a Suse server up and running. It is connecting to a clearcase server, so i want to mount the remote filesystem as part of startup, as this is generally rebooted when im not around.
I would normally add something to /etc/init.d and put the shortcut to it in the appropriate runlevel (in this case 3). Tried that. Didnt work.
Realised the init script needed to have the LSB stuff at the start, so put that in, and used insserv to add the script. I used required-start set to $ALL
This successfully created the init script with S20, and i enabled it with chkconfig.
So i reboot. This also didnt work. Now im getting the error:
cat /var/log/boot.msg | grep mount
mount: can't get address for tiny
Starting service automounter..done
Changed it to IP and on reboot it shows this:
mount server reported tcp not available, falling back to udp
mount: RPC: Remote system error - Network is unreachable
mount server reported tcp not available, falling back to udp
mount: RPC: Remote system error - Network is unreachable
So basically it looks like the mount is trying to happen well before the network is up. It actually happens right after:
Boot logging started on /dev/ttyS0(/dev/console) at Thu Oct 7 11:28:46 2010
Master Resource Control: previous runlevel: N, switching to runlevel: 3
<notice> CONSOLE=/dev/consolestartproc: execve (/usr/bin/dbus-daemon) [ /usr/bin/dbus-daemon --system ], [ ROOTFS_FSTYPE=ext3 TERM=dumb SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.86 REDIRECT=/dev/ttyS0 UDEVD_MAX_CHILDS_RUNNING=16 UDEVD_MAX_CHILDS=64 COLUMNS=80 PATH=/bin:/usr/bin:/sbin:/usr/sbin RUNLEVEL=3 PWD=/ SPLASHCFG= PREVLEVEL=N dasd=150-169 LINES=24 SHLVL=2 HOME=/ BOOT_IMAGE=0 SPLASH=no ROOTFS_BLKDEV=/dev/dasda1 _=/sbin/startproc DAEMON=/usr/bin/dbus-daemon ]
Any ideas?
I have realized I hate this LSB stuff :P
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!