nas:build_a_linux_nas:prepare_the_raid_disks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nas:build_a_linux_nas:prepare_the_raid_disks [2021/09/25 20:51] – peter | nas:build_a_linux_nas:prepare_the_raid_disks [2021/10/12 20:36] (current) – [Test the Disks] peter | ||
---|---|---|---|
Line 36: | Line 36: | ||
===== Obtain the Serial Numbers of the Disks ===== | ===== Obtain the Serial Numbers of the Disks ===== | ||
- | |||
- | Obtain the serial number for every disk; and keep a record of this somewhere safe. | ||
<code bash> | <code bash> | ||
Line 48: | Line 46: | ||
Model=ST16000NM001G-2KK103, | Model=ST16000NM001G-2KK103, | ||
</ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **IMPORTANT: | ||
+ | </ | ||
+ | |||
<WRAP info> | <WRAP info> | ||
Line 55: | Line 58: | ||
* The enclosure being used for the disks may not support hot-swapping and there may not be a separate light for each disk, so there may not be a straight-forward way to determine which specific disk has failed. | * The enclosure being used for the disks may not support hot-swapping and there may not be a separate light for each disk, so there may not be a straight-forward way to determine which specific disk has failed. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Test the Disks ===== | ||
+ | |||
+ | All hard drives, both new and old, should be tested before adding them to an array. | ||
+ | |||
+ | See S.M.A.R.T. to view smart data and run smart tests. | ||
+ | |||
+ | Do a short smart test: | ||
+ | |||
+ | <code bash> | ||
+ | smartctl -t short /dev/sdb [-d sat] | ||
+ | </ | ||
+ | |||
+ | Do a long smart test: | ||
+ | |||
+ | <code bash> | ||
+ | smartctl -t long /dev/sdb [-d sat] | ||
+ | </ | ||
+ | |||
+ | Check all smart attributes: | ||
+ | |||
+ | <code bash> | ||
+ | smartctl -a /dev/sdb [-d sat] | ||
+ | </ | ||
+ | |||
+ | Do a random readwrite test: | ||
+ | |||
+ | <code bash> | ||
+ | sudo fio --filename="/ | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** The smartmontools package might be needed to be installed: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install smartmontools | ||
+ | </ | ||
+ | |||
+ | * **-d sat**: | ||
+ | |||
+ | See: https:// | ||
</ | </ | ||
Line 222: | Line 270: | ||
===== Partition other Disks ===== | ===== Partition other Disks ===== | ||
- | Repeat the above instructions for the other free disks. | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ | ||
---- | ---- |
nas/build_a_linux_nas/prepare_the_raid_disks.1632603075.txt.gz · Last modified: 2021/09/25 20:51 by peter