OES 2 sles 10 srvr, running as a guest on a sles 10 sp2 xen kernal. The oes srvr has a web application that utilizes mysql for a database. The datebase files are saved to a volume that is an nss volume. The issue is that mysql starts up and attempts to save a test file prior to nss starting and thus no volume is mounted. Since mysql can not save the test file to the volume it fails and shuts down.

I thought that the scripts in the /etc/init.d/ were numbered in a manner in which they are executed during start up. So, I changed the numbering so that the nss scripts starts long before the mysql script. But the same error exists.

Here is a part of the boot.msg file that shows the problem.

Starting network time protocol daemon (NTPD)done
mkdir: cannot create directory `/media/nss/SVUSD1DATA/IST/mysql//.tmp': No such file or directory
chown: `mysql:mysql': invalid user
chmod: cannot access `/media/nss/SVUSD1DATA/IST/mysql//.tmp': No such file or directory
mkdir: cannot create directory `/media/nss/SVUSD1DATA/IST/mysql//.tmp': No such file or directory
chown: `mysql:mysql': invalid user
chmod: cannot access `/media/nss/SVUSD1DATA/IST/mysql//.tmp': No such file or directory
find: /media/nss/SVUSD1DATA/IST: No such file or directory
find: /media/nss/SVUSD1DATA/IST: No such file or directory
Creating/Updating MySQL privilege database...
mkdir: cannot create directory `/media/nss/SVUSD1DATA/IST/mysql/': No such file or directory
chmod: cannot access `/media/nss/SVUSD1DATA/IST/mysql/': No such file or directory
mkdir: cannot create directory `/media/nss/SVUSD1DATA/IST/mysql//mysql': No such file or directory
chmod: cannot access `/media/nss/SVUSD1DATA/IST/mysql//mysql': No such file or directory
mkdir: cannot create directory `/media/nss/SVUSD1DATA/IST/mysql//test': No such file or directory
chmod: cannot access `/media/nss/SVUSD1DATA/IST/mysql//test': No such file or directory
chown: `mysql': invalid user
Installing all prepared tables
100114 7:08:54 [Warning] Can't create test file /media/nss/SVUSD1DATA/IST/mysql/SVUSD1.lower-test
100114 7:08:54 [Warning] Can't create test file /media/nss/SVUSD1DATA/IST/mysql/SVUSD1.lower-test
^G/usr/sbin/mysqld: Can't change dir to '/media/nss/SVUSD1DATA/IST/mysql/' (Errcode: 2)
100114 7:08:54 [ERROR] Aborting

100114 7:08:54 [Note] /usr/sbin/mysqld: Shutdown complete

Installation of system tables failed!

Examine the logs in /media/nss/SVUSD1DATA/IST/mysql/ for more information.
You can also try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
You can use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /media/nss/SVUSD1DATA/IST/mysql/ that may be helpful.

Much further down nss starts up

<notice>checkproc: /opt/novell/named/bin/novell-named 3846
Starting novell-xsrvd...done
Starting Tomcat (/var/opt/novell/tomcat5/)done
Starting Novell Storage Services (NSS)
loading nwraid kernel module
loading admindrv kernel module
Creating /dev/admindrv major_number=254
loading libnss kernel module
loading linuxmpk kernel module
loading nsslnxlib kernel module
loading nsslibrary kernel module
loading nss kernel module
loading ndpmod kernel module
Starting ndpapp daemon
loading nsscomn kernel module
<notice>checkproc: /usr/lib/postfix/master 2879
<notice>checkproc: /usr/lib/postfix/master 2879
loading nsszlss kernel module
loading nssmanage kernel module
loading nsslsa kernel module
loading zapi kernel module
loading nebdrv kernel module
Creating /dev/userModeNebDrv major_number=252
Loading NSS pools
<notice>checkproc: /sbin/klogd 2132
<notice>checkproc: /sbin/syslog-ng 2135
<notice>checkproc: /sbin/klogd 2132
<notice>checkproc: /sbin/syslog-ng 2135
<notice>checkproc: /sbin/portmap 2171
<notice>checkproc: /sbin/portmap 2171
<notice>checkproc: /usr/sbin/slpd 2128
<notice>checkproc: /usr/sbin/slpd 2128
<notice>checkproc: /usr/sbin/sshd 3082
<notice>checkproc: /usr/sbin/sshd 3082
Starting adminusd daemon
<notice>checkproc: /usr/sbin/ntpd 2649
<notice>checkproc: /usr/sbin/ntpd 2649
<notice>checkproc: /usr/sbin/slpd 2128
<notice>checkproc: /usr/sbin/slpd 2128
<notice>checkproc: /usr/sbin/namcd 3339
<notice>checkproc: /usr/sbin/namcd 3339
Mounting _admin volume
Starting jstcpd daemon
Mounting all NSS volumes in /etc/fstab
Starting volmnd daemon
Starting ncp2nss daemon
NSS is running!
Starting the novell-afptcpd daemon<notice>startproc: execve


How do I change the startup sequence of mysql, to start up after nss is functioning? Or am I missing something else? Suggestions?