Vahendid kettatestiks
Allikas: Kuutõrvaja
dd
Alustuseks kõige lihtsam lugemise ja kirjutuskiiruse testimise utiliit
Näiteks gigabaidi kirjutuskiirus
# dd if=/dev/zero of=zero-file bs=1024 count=1048576 1048576+0 records in 1048576+0 records out 1073741824 bytes transferred in 5.145493 secs (208676179 bytes/sec)
ja sama faili uuesti lugemine
# dd if=zero-file of=/dev/null 2097152+0 records in 2097152+0 records out 1073741824 bytes transferred in 3.084024 secs (348162609 bytes/sec)
Kirjutada või lugeda võib katsetamiseks otse dd'ga blockdevicelt näit dd if=/dev/ad0 jms
Bonnie
Kirjutus ja lugemistestid
# /usr/local/bin/bonnie File './Bonnie.81484', size: 104857600 Writing with putc()...done Rewriting...done Writing intelligently...done Reading with getc()...done Reading intelligently...done Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU 100 163734 81.9 280862 22.1 384488 57.6 127538 97.3 2539304 98.2 214041.1 253.4
smartmontools
/usr/local/sbin/smartctl -a /dev/da0
=== START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.9 family Device Model: ST3160811AS Serial Number: 5PT0HAHX Firmware Version: 3.AAE User Capacity: 160,041,885,696 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Fri Jan 23 14:01:38 2009 EET SMART support is: Available - device has SMART capability. SMART support is: Disabled SMART Disabled. Use option -s with argument 'on' to enable it.
To enable drive monitoring, you can use /usr/local/sbin/smartd.
A sample configuration file has been installed as
/usr/local/etc/smartd.conf.sample
Copy this file to /usr/local/etc/smartd.conf and edit appropriately
To have smartd start at boot
echo 'smartd_enable="YES"' >> /etc/rc.conf