/dev/sgX should be the devices.
You can pull device info with: smartctl -i /dev/sgX (0-5).
Example:
#Check the Drive to confirm serial number and current firmware rev.
root@host:/volume1/infrastructure/storage/samsung# smartctl -i /dev/sgX
smartctl 6.5 (build date Mar 2 2021) [x86_64-linux-3.10.105] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SAMSUNG
Product: MZILS3T8HCJM
Revision: CQPH
Compliance: SPC-4
User Capacity: 3,840,755,982,336 bytes [3.84 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Logical Unit id: 0x12345678901234
Serial number: 12345678901234
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Tue Jun 20 10:56:02 2023 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
#Update the firmware.
root@host:/volume1/infrastructure/storage/samsung# sg_write_buffer -m dmc_offs_save -I FMDELMZILS3T8HCJMCQPJ_NS /dev/sgX
#Check to make sure the update was successful.
root@host:/volume1/infrastructure/storage/samsung# smartctl -i /dev/sgX
smartctl 6.5 (build date Mar 2 2021) [x86_64-linux-3.10.105] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SAMSUNG
Product: MZILS3T8HCJM
Revision: CQPJ
Compliance: SPC-4
User Capacity: 3,840,755,982,336 bytes [3.84 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Logical Unit id: 0x12345678901234
Serial number: 12345678901234
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Tue Jun 20 10:56:16 2023 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
root@host:/volume1/infrastructure/storage/samsung#
For the formatting, you can follow the sticky. The block change WILL COMPLETELY ERASE THE DRIVE.
#Check the drive serial number, confirm the firmware.
root@host:/volume1/infrastructure/storage/samsung# smartctl -i /dev/sgX
smartctl 6.5 (build date Mar 2 2021) [x86_64-linux-3.10.105] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SAMSUNG
Product: MZILS3T8HCJM
Revision: CQPH
Compliance: SPC-4
User Capacity: 3,840,755,982,336 bytes [3.84 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Logical Unit id: 0x12345678901234
Serial number: 12345678901234
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Tue Jun 20 10:56:02 2023 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
The command that worked for me for 520 to 512 was:
sg_format -v --format --fmtpinfo=0 --pfu=0 --size=512 --six /dev/sgX
This may take up to 10min+ to complete. Reboot the host after the task completes, for it to take affect.