Other Modify ssd Overprovision

Hello,
If I add an SSD on a freebsd server and that SSD supports overprovision with "Host Protected Area", is there a way to change the overprovision ratio natively on freebsd? (or do I have to boot a Linux or Windows to use a dedicated piece of software to do that?)
 
Hello,
If I add an SSD on a freebsd server and that SSD supports overprovision with "Host Protected Area", is there a way to change the overprovision ratio natively on freebsd? (or do I have to boot a Linux or Windows to use a dedicated piece of software to do that?)

Hey Patrick,
Maybe through camcontrol() hpa.
 
Thanks!

It works on my old gateway (FreeBSD 14):
Code:
# camcontrol hpa /dev/ada1
pass1: <KINGSTON SKC600MS512G S4800105> ACS-3 ATA SATA 3.x device
pass1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes)

Feature                      Support  Enabled   Value
Host Protected Area (HPA)      no

but it fails on my hosted server (FreeBSD 13):

Code:
# camcontrol hpa /dev/nvd0
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or nvd0 doesn't exist
# camcontrol hpa /dev/nvme0
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or nvme0 doesn't exist
 
I'm aware of this difference, but I don't understand if the failure on the NVMe drive comes from my config or from a limitation of camcontrol.

Edit: if I understand correctly, NVMe drives are not connected to the CAM subsystem, hence the inability to «camcontrol» them. Bummer.
 
Back
Top