VMWare,XFS and iSCSI issues!

I have a RHEL6 VM that requires the use of remote storage using iSCSI and XFS for the mount point. Here's the issue:

With XFS you can't use the _netdev option for your mount point (pause for network) so my mount point doesn't mount properly because the network isn't up yet. I've moved the init order in rc3.d so the network is up prior to iscsid running however I have application that trys to start before the mount is available and of course the app fails to start etc.

Any suggestions on the delay etc. would be helpful!

Wouldn't it fail even with _netdev? Can't you just move the start of the application so it happens after the scripted init mount of the xfs area after the network setup.

I'm not sure that I fully understand your issue here. Perhaps I'm being too simplistic.

You say that you've changed the order of the rc3.d boot order. These are just scripted commands which are executed in ascending numerical order so you can just create another script (eg, S78sleep) containing the command

 
sleep 60

to halt the boot process for one minute (or whatever value of seconds you choose). This will give processes already launched time to start before any following scripts.

Obviously you would only use the above if you don't care how long it takes to boot up. Otherwise, if booting time is of the essence, you could write a loop to test for a file/process and sleep for a shorter time if not ready to proceed.

Does that help? Or am I missing something?

I did exactly that but just dropped the sleep in rc.local and it works fine.