Auto fsck -y at boot | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Auto fsck -y at boot

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-06-2009
tazzy tazzy is offline
Registered User
 
Join Date: May 2008
Last Activity: 13 July 2009, 9:38 AM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Auto fsck -y at boot

Does anyone know how or if its possible to automatically run fsck -y at boot if the initial fsck check finds that there has been data lost. Usually the initial fsck check will fix low level inconsistencies but if it finds that data has been lost it will put you into single user mode for you to log in as root and run fsck -y manually to repair the file system. Have certain locations that may lose power due to storms and will only run on UPS for a certain length of time, if this occurs at night lets say there is no one present to properly shut down the system. Was wanting to automate this if possible so when they fired the system back on in the morning it would automatically repair itself if it did find a problem. Any help would be appreciated. Thanks in advance.
Sponsored Links
    #2  
Old 07-07-2009
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 1 June 2012, 4:25 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
fsck at boot is set in the /etc/vfstab file?
Sponsored Links
    #3  
Old 07-07-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 22 August 2014, 9:00 PM EDT
Location: Paris
Posts: 4,406
Thanks: 15
Thanked 461 Times in 417 Posts
Enable UFS logging, that would prevent most filesystem corruption situations.
    #4  
Old 07-07-2009
taran taran is offline
Registered User
 
Join Date: Apr 2008
Last Activity: 18 June 2010, 1:37 PM EDT
Location: Frankfurt a.M.
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
at Solaris 10 UFS logging ist default enabled
Sponsored Links
    #5  
Old 07-07-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 22 August 2014, 9:00 PM EDT
Location: Paris
Posts: 4,406
Thanks: 15
Thanked 461 Times in 417 Posts
I guess the OP isn't using Solaris 10.
Latest Solaris 10 releases support ZFS boot. No fsck is ever necessary with it.
Sponsored Links
    #6  
Old 07-07-2009
tazzy tazzy is offline
Registered User
 
Join Date: May 2008
Last Activity: 13 July 2009, 9:38 AM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Some of the systems we have problems with are Solaris 9 and we don't want to upgrade them to 10. So your saying that in Solaris 10 we should never have to do a manual fsck -y to repair the file system?
Sponsored Links
    #7  
Old 07-07-2009
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 22 August 2014, 9:00 PM EDT
Location: Paris
Posts: 4,406
Thanks: 15
Thanked 461 Times in 417 Posts
On Solaris 9, I'm suggesting to enable UFS logging which should dramatically reduce the cases where a fsck is required after a power off situation.
With Solaris 10 and newer + ZFS boot, there is no more need to fsck. Actually fsck isn't even available as the file system is always consistent by design.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help auto starting app on boot KmJohnson HP-UX 3 06-17-2009 11:40 AM
Auto-Port Aggregation startup fails on boot kknigga HP-UX 1 08-13-2008 04:25 PM
freebsd auto login user at boot / i'm stuck termiEEE UNIX for Dummies Questions & Answers 6 02-26-2004 12:18 PM
Auto Boot bbutler3295 UNIX for Dummies Questions & Answers 1 03-25-2002 12:39 PM



All times are GMT -4. The time now is 11:33 PM.