SOLVED how to resize slog ssd

Status
Not open for further replies.

Caffe Mocha

Explorer
Joined
Aug 3, 2013
Messages
69
2 Questions

1. I tried to use this command gpart add -t freebsd-zfs -l slog -s 2G -b 1M ada0 from the link below
https://forums.freenas.org/index.php?threads/how-to-add-an-slog.16766/
but it says invalid argument , I double checked my ssd is ada0 by using volume manager and demesg.
could someone please tell me what i did wrong?

2. I also tried to use volume manager to set up ZIL, so do I volume extend to the pool or I can just leave it blank?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I've found it easier to use camcontrol to add a Host Protected Area of the SSD. This effectively reduces the size of the SSD and then you can add the device as a Log via the UI.

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
 

Caffe Mocha

Explorer
Joined
Aug 3, 2013
Messages
69
I've found it easier to use camcontrol to add a Host Protected Area of the SSD. This effectively reduces the size of the SSD and then you can add the device as a Log via the UI.

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

Thank you very much for replying , and a Merry Chrismase to you
I have solved the problem with gpart commands , but the remaining question is
what amount of slog is the right size. I don't really need it to be too fine grained
For now I set it at 4G , I wonder if I set that correctly?
Specs are 32 G of ram , 3tb X6 in raidz2
800g Intel 3700 (got it real cheap. )
Using 2 nics for back up.
I have read about 1/8 of ram size and 2 transition group . Or .625 per connection for 5 secs. (Don't really remember the specific number of)
Is more better ? Will there be performance impact if I set slog too small or big?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Thank you very much for replying , and a Merry Chrismase to you
I have solved the problem with gpart commands , but the remaining question is
what amount of slog is the right size. I don't really need it to be too fine grained
For now I set it at 4G , I wonder if I set that correctly?
Specs are 32 G of ram , 3tb X6 in raidz2
800g Intel 3700 (got it real cheap. )
Using 2 nics for back up.
I have read about 1/8 of ram size and 2 transition group . Or .625 per connection for 5 secs. (Don't really remember the specific number of)
Is more better ? Will there be performance impact if I set slog too small or big?
There will be a performance impact of it is set too small, but not if it's too big.

I'd suggest seeing it to 16 and then you wouldn't have to worry about it.
 
Status
Not open for further replies.
Top