Replacing a defective disk with a used disk
We recommend to replace a defective disk with a brand-new one from the same model and part number.
As an alternative, you can replace the defective disk with a good used disk.
Use the procedure below on a good used disk to make it look new to the appliance.
|
|
Important - Run the procedure on a server without a RAID card. |
-
Connect a good used disk to a Linux/Windows server that does not have a RAID card.
-
Overwrite the good used disk content with the dd tool:
-
On Linux OS
-
For NVME SSD:
-
To make sure you are running the commands for the correct disk, run:
smartctl -a /dev/nvmexnX
For example:
smartctl -a /dev/nvmexn1
-
Run the dd commands:
dd if=/dev/zero of=/dev/nvmexn1 bs=512 count=1024
dd if=/dev/zero of=/dev/nvmexn1 seek=$(( $(blockdev --getsz /dev/nvmexn1) - 1024 )) bs=512 count=1024
Note - nvmexn1is the SSD listed in the /dev folder
-
-
For HDD:
-
To make sure you are running the commands for the correct disk, run:
smartctl -a /dev/sdx
Example output:
[Expert@LinuxMachine:0]# smartctl -a /dev/sdd
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.18.0-372.9.1cpx86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: ST8000NM017B-2TJ103
Serial Number: WWZ4T84Z
LU WWN Device Id: 5 000c50 0e85balea
Firmware Version: SNO3
User Capacity: 8,001,563,222,016 bytes [8.00 TB]
Sector size: 512 bytes logical 1006 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-4 (minor revision not indicated)
SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Dec 12 13:59:56 2024 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
-
Run the dd commands:
dd if=/dev/zero of=/dev/sdx bs=512 count=1024
dd if=/dev/zero of=/dev/sdx seek=$(( $(blockdev --getsz /dev/sdx) - 1024 )) bs=512 count=1024
Note -
sdxis the HDD listed in the /dev folder.
-
-
-
On Windows OS
The Windows dd.exe is a GPL license tool you can download from http://www.chrysocome.net/dd. Make sure you select the correct drive.
-
To view the list of available drives, the specific drive's ID and full block size, run:
dd --list
Example output:
NT Block Device Objects
\\?\Device\CdRom0
size is 2147483647 bytes
\\?\Device\Harddisk0\Partition0
link to \\?\Device\Harddisk0\DR0
Fixed hard disk media. Block size = 512
size is 7681501126656 bytes
\\?\Device\Harddisk1\Partition0
link to \\?\Device\Harddisk1\DR1
Fixed hard disk media. Block size - 512
size is 7681501126656 bytes
\\?\Device\Harddisk1\Partition1
link to \\?\Device\HarddiskVolume1
\\?\Device\Harddisk1\Partition2
link to \\?\Device\HarddiskVolume2
Fixed hard disk media. Block size = 512
size is 16777216 bytes
\\?\Device\Harddisk1\Partition3
link to \\?\Device\HarddiskVolume3
\\?\Device\Harddisk1\Partition4
link to \\?\Device\HarddiskVolume4
Fixed hard disk media. Block size = 512
size is 631242752 bytes
-
Run the command:
dd if=/dev/zero of=\\?\Device\Harddiskx\DRx bs=512 seek=0 count=1024
Note -
Harddiskx\DRxis the disk from thedd --listoutput.Make sure you identify the correct disk.
Example output:
F:\dd_06beta3>dd if=/dev/zero of=\\?\Device\Harddisk0\DR0 bs=512 seek=0 count=1024
rawwrite dd for windows version 0.6betas.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.
1024+0 records in
1024+0 records out
-
Run the command:
dd if=/dev/zero of=\\?\Device\Harddiskx\DRx bs=512 seek=15002930864 count=1024
Example output:
F:\dd_06beta3>dd if=/dev/zero of=\\?\Device\Harddisk0\DR0 bs=512 seek=15002930864 count=1024
rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.
1024+0 records in
1024+0 records out
-
-
-
Connect the good used disk to the appliance and synchronize the RAID.
-
On Smart-1 7000-XL / Smart-1 7000-UL:
The disk starts to rebuild automatically when you place it back into the appliance.
-
On Smart-1 7000-L appliance:
When placing the disk back into the appliance, the disk status shows as UBad in the output of
storcli64 /c0 show all.For example:
EID:Slt DID State DG Size Intf Med SED PI Sesz Model Sp Type
-------------------------------------------------------------------------------
252:0 21 onln 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
252:1 23 onln 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
252:2 2 onln 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
252:3 8 UBad - 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ U -
252:4 18 UGood 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
252:5 16 UGood 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
252:6 24 onln 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
252:7 11 UGood 0 7.276 TB SATA HDD N N 512B ST8000NM017B-2TJ103 U -
For the RAID to start synchronizing, run from the Gaia Expert mode:
storcli64 /c0/ex/sx set good
In the example above:
EID = e252
Slt = s3
The command is:
storcli64 /c0/e252/s3 set good
-
|
|
Note - To identify the defective disk, run the command:
Example output:
The status LED for the failed disk carrier blinks in an Amber color. |