How to undo size change (for ZIL) on an SSD?

Status
Not open for further replies.

ChinookTx

Dabbler
Joined
Feb 11, 2016
Messages
29
I have an Intel 80GB SSD that I had "shrunk" a while ago to use it for ZIL. It now only shows up as 16GB.

I cannot find anywhere the procedure I used to change it to that size, and my searches come up empty. I'm sure i'm not using the right terms.

Could anyone point me to the info? The drive is already out of the system and I would like to use it as a normal drive.

Thanks in advance.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
One way to restore or shrink drives is to add a Host Protected Area. In Linux, you use;
Code:
hdparm -N /dev/X

hdparm -N pnew_size /dev/X

Note that the first run lets you know the real size of the drive. The second sets it to the
new size. Plus, you prepend a "p" to make it permanent.

For FreeBSD, this should work, though I have not tested it;
Code:
camcontrol hpa  #to view current HPA settings
camcontrol security ada0 -e #enables editing of protected settings
camcontrol hpa ada0 -s  31250000  -P  # x 512B sectors =  16G

Make sure you shutdown and power off drive after you make the change. Then on power
up, verify it retained the change.
 
Status
Not open for further replies.
Top