Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: testing SATA drives
Date: Fri, 04 Aug 2006 17:02:29
Message-Id: loom.20060804T183852-943@post.gmane.org
In Reply to: [gentoo-user] testing SATA drives by "Timothy A. Holmes"
1 Timothy A. Holmes <tholmes <at> mcaschool.net> writes:
2 > I now want to test the drives (they are now blank except for
3 > the os) to see if the problem was with fedora and lvm (the old one) or
4 > if it is a physical or electrical problem with the disks. The disks are
5 > SATA drives 2x 250gb -- I am not sure how to proceed and I googling has
6 > not been helpful -- it may be there, I just haven't found it.
7
8 We'll testing is a word that is 'wide open' for interpretation.
9
10 reformatting the drives, if practical is not a bad idea:
11 fdisk.... gparted.....
12
13 Other programs use numerous types of writes to essentially
14 blank the drivers so the old files cannot be recovered
15 (paranoid security measure)... It is also good,
16 again if you have the time and can erase the drives completely,
17 when weird issues arise. These (2) are extreme measure, but I
18 have been successful in revitalizing drives by using extreme measures.
19 You may need to map out bad sectors several times to completely
20 repair a older drive.
21
22 On the performance side of the drive issue
23 read about hdparm and all of the tests you can find.
24
25 hdparm -i /dev/hda
26 hdparm -I /dev/hda
27
28 Then use /etc/conf.d/hdparm to initialize the drives correctly:
29
30 Here's one of etc/conf.d/hdparm ; your will need to adjust per
31 your drives:
32 <snip>
33 all_args="-d1"
34 hda_args="-d1 -u1 -c1 -a256"
35 <snip>
36
37 rc-update add hdparm default <to activate your custom drive
38 settings upon reboot.>
39
40
41 Also, your performance depends on the file system as well as
42 the hard drive's interface chip. Make sure you have the correct
43 IDE driver built into the kernel for optimum performance. 'dmesg'
44 is your friend.
45
46
47 Also, you can use 'bonnie' and 'bonnie++' to test the
48 performance of your drives. It's a real time sink
49 using all of this stuff, but, you really get to know
50 your drives. This experience will be very valuable when
51 you go to purchase new hard drives. Separating fact
52 from hype.
53
54 Also 'hddtemp' is a good tool for monitoring your drives'
55 temperatures.... Hot equipment rarely performs optimally,
56 and often has flaky (inconsistent) performance.
57
58
59 There are many other tools and packages. Google and use
60 eix <keyword> to find things to try out.
61
62 hth,
63
64 James
65
66
67
68
69
70 --
71 gentoo-user@g.o mailing list