User Tools

Site Tools


nas:build_a_linux_nas:prepare_the_raid_disks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nas:build_a_linux_nas:prepare_the_raid_disks [2021/10/12 20:26] – [Obtain the Serial Numbers of the Disks] peternas:build_a_linux_nas:prepare_the_raid_disks [2021/10/12 20:36] (current) – [Test the Disks] peter
Line 68: Line 68:
  
 See S.M.A.R.T. to view smart data and run smart tests. See S.M.A.R.T. to view smart data and run smart tests.
 +
 +Do a short smart test:
  
 <code bash> <code bash>
-export DRIVE_PATH=<your drive>+smartctl -t short /dev/sdb [-d sat]
 </code> </code>
  
-Do a short smart test:+Do a long smart test:
  
 <code bash> <code bash>
-smartctl -t short "${DRIVE_PATH}" [-d sat]+smartctl -t long /dev/sdb [-d sat]
 </code> </code>
  
-# Do a long smart test:+Check all smart attributes:
  
 <code bash> <code bash>
-smartctl -t long "${DRIVE_PATH}" [-d sat]+smartctl -a /dev/sdb [-d sat]
 </code> </code>
  
-# Check all smart attributes +Do random readwrite test:
-smartctl -"${DRIVE_PATH}" [-d sat] +
-</code>+
  
-# Do a random readwrite test +<code bash> 
-sudo fio --filename="${DRIVE_PATH}" --name=randwrite --ioengine=sync --iodepth=1 --rw=randrw --rwmixread=50 --rwmixwrite=50 --bs=4k --direct=0 --numjobs=8 --size=300G --runtime=7200 --group_reporting+sudo fio --filename="/dev/sdb --name=randwrite --ioengine=sync --iodepth=1 --rw=randrw --rwmixread=50 --rwmixwrite=50 --bs=4k --direct=0 --numjobs=8 --size=300G --runtime=7200 --group_reporting
 </code> </code>
  
Line 99: Line 99:
 sudo apt install smartmontools sudo apt install smartmontools
 </code> </code>
 +
 +  * **-d sat**:  Sata disks.
 +
 +See:  https://www.smartmontools.org/
  
 </WRAP> </WRAP>
 +
 +----
  
 ===== Initialize the free disks ===== ===== Initialize the free disks =====
nas/build_a_linux_nas/prepare_the_raid_disks.1634070364.txt.gz · Last modified: 2021/10/12 20:26 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki