- From: chad <cipher7836@xxxxxxxxx>
- Date: Thu, 14 Aug 2008 05:24:42 -0700 (PDT)
On Aug 12, 7:25 am, bb <spamt...@xxxxxxxxxxxx> wrote:
On 2008-08-11 18:18, chad wrote:
On Aug 11, 10:42 am, bb <spamt...@xxxxxxxxxxxx> wrote:
On 2008-08-11 16:05, chad wrote:
On Aug 11, 9:51 am, Tapio Salonsaari <t...@xxxxxxxxxxxxxxxxxxxxxx>Just don't run it on a mounted fs, boot the rescue to fsck /
On 2008-08-11, chad <cipher7...@xxxxxxxxx> wrote:Yeah, I just Googled and found it after I posted. Sorry about that.
Is there any program for Linux that would function as a chkdisk would?fsck
I have no idea why the server crashed to begin with. I'll check the
logs, but I was looking for a way to prevent this in the future.
Thanks. What would you recommend for maintenance? Does Linux even
require defragging? I'm used to Windows and am kinda stuck doing Linux
administration right now.
Forget about fragmentation, it will never be so bad so you notice it,
due to all cylinder groups and linux way to cache up the disk structure
A linux fs don't add a new files directly after the previous file as the windows
fs do, and most drives has NCQ now, so data blocks can be found fast even if
they are spread over more tracks.
If you have big video files for example where you seek forward and backward,
you just use a filesystem that handle that better (xfs) , and if you have
millions of small files, reiserfs, and normal usage ext3, you have options.
As recommended maintenance the only advice I can give is to be prepared for
the worst, and never trust a single hardware, have backup of all your data.
Enable smartd so it test your disks regularly, and monitor the test reports
and disk temp, never let them go to hot.
For example, setting up smartd for /dev/sda
# smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
To start a short test manually:
# smartctl --test=short /dev/sda
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line
Drive command "Execute SMART Short self-test routine immediately in off-line
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Tue Aug 12 10:45:13 2008
Now I wait 2-3 minutes and grab the test result:
# smartctl --all /dev/sda
Or just grep out what you need:
# smartctl --all /dev/sda | egrep '^# .*Short offline|^ID|^194'
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
194 Temperature_Celsius 0x0000 037 043 000 Old_age Offline - 37 (Lifetime
# 1 Short offline Completed without error 00% 3651 -
# 2 Short offline Completed without error 00% 1 -
Just use smartctl --all /dev/sda to get all data, I grepped what I wanted to see.
If you don't have any permanent disk errors, the filesystem should not have any
problems to repair either.
/bb- Hide quoted text -
- Show quoted text -
My goodness! I haven't checked this post in a few days, and I have a
ton of replies! Thanks to everyone!!
- Prev by Date: help for ubuntu networking
- Next by Date: Anyone Want a Red Hat Enterprise Linux Subscription
- Previous by thread: Re: Chkdisk?
- Next by thread: Re: Chkdisk?