LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mount application filesystems only after OS is loaded? (http://www.linuxquestions.org/questions/linux-server-73/mount-application-filesystems-only-after-os-is-loaded-874851/)

slinx 04-13-2011 04:05 PM

Mount application filesystems only after OS is loaded?
 
Hello,

I have servers where the disk is partitioned into OS and application partitions. The application is rather sloppy with its file handles, and frequently when there is a system crash, its file systems get corrupted. This will cause fsck to halt the boot, requiring me to get on a remote console, enter the root password, and fsck the file systems.

Is there a way to have just the OS partitions get checked and mounted, then check the application systems, only after the OS is loaded, so I can ssh into the system, instead of having to use a bandwidth-hogging remote console?

The app partitions are already at fsck level 2 in /etc/fstab, but this doesn't prevent OS loading from halting. If I set the fsck level to 0, I don't want the application to start if the partitions are unavailable. Should I just leave the fsck level at 0? Or should have the partitions marked "noauto", then have a startup script run fsck and mount the app partitions?

Thanks!

lazardo 04-13-2011 08:57 PM

Take the application partition completely out of /etc/fstab and mount/fsck it manually, perhaps in /etc/rc.local.

Cheers,

slinx 04-13-2011 11:21 PM

Quote:

Originally Posted by lazardo (Post 4324011)
Take the application partition completely out of /etc/fstab and mount/fsck it manually, perhaps in /etc/rc.local.

Cheers,

Thanks, I will try that!


All times are GMT -5. The time now is 09:17 PM.