Hello, We are running units in the field that are headless. Sometimes we get units returned that we when we boot them up have some type of filesystem inconsistency that the default preen doesn't fix but running fsck -y does. I want to eliminate the -p (preen option) and always do the -y option anyone know where to make this change? Thanks, -- Stephen Clark *NetWolves* Director of Technology Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark at netwolves.com http://www.netwolves.com
On 01/25/2012 10:46 AM, Steve Clark wrote:> Hello, > > We are running units in the field that are headless. Sometimes we get units returned > that we when we boot them up have some type of filesystem inconsistency that the default preen > doesn't fix but running fsck -y does. > > I want to eliminate the -p (preen option) and always do the -y option anyone know where > to make this change? > > Thanks, >You can create a file called: /etc/sysconfig/autofsck inside there you need the following lines: AUTOFSCK_DEF_CHECK=yes AUTOFSCK_OPT="-y" That should take away all options except "-f" and use the ones you put in AUTOFSCK_OPT. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20120127/c051a212/attachment-0005.sig>
On Fri, Jan 27, 2012 at 10:43 AM, Johnny Hughes <johnny at centos.org> wrote:> On 01/25/2012 10:46 AM, Steve Clark wrote: >> Hello, >> >> We are running units in the field that are headless. Sometimes we get units returned >> that we when we boot them up have some type of filesystem inconsistency that the default preen >> doesn't fix but running fsck -y does. >> >> I want to eliminate the -p (preen option) and always do the -y option anyone know where >> to make this change? >> >> Thanks, >> > You can create a file called: > > /etc/sysconfig/autofsck > > inside there you need the following lines: > > AUTOFSCK_DEF_CHECK=yes > AUTOFSCK_OPT="-y" > > That should take away all options except "-f" and use the ones you put > in AUTOFSCK_OPT.Thanks! Is that something we should have found in the documentation? I've always wondered why it wasn't the default. It is always painful when headless/remote machines fail to boot because of this, and the odds of anyone knowing more than fsck does about repairing a file system are essentially zero. -- Les Mikesell lesmikesell at gmail.com
On 01/27/2012 11:43 AM, Johnny Hughes wrote:> On 01/25/2012 10:46 AM, Steve Clark wrote: >> Hello, >> >> We are running units in the field that are headless. Sometimes we get units returned >> that we when we boot them up have some type of filesystem inconsistency that the default preen >> doesn't fix but running fsck -y does. >> >> I want to eliminate the -p (preen option) and always do the -y option anyone know where >> to make this change? >> >> Thanks, >> > You can create a file called: > > /etc/sysconfig/autofsck > > inside there you need the following lines: > > AUTOFSCK_DEF_CHECK=yes > AUTOFSCK_OPT="-y" > > That should take away all options except "-f" and use the ones you put > in AUTOFSCK_OPT. >Thanks much for the info. -- Stephen Clark *NetWolves* Director of Technology Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark at netwolves.com http://www.netwolves.com