-
Notifications
You must be signed in to change notification settings - Fork 0
/
jbod.conf
61 lines (42 loc) · 1.29 KB
/
jbod.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
#################################################################
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin"
export PATH
#################################################################
# SQLite DB
DB=/var/db/jbod.db
#################################################################
# JBOD and HBA link
# "ses" device
SES=/dev/ses
# Number of slots
NSLOTS="60"
# Number of shelters by tray
SPT=12
# Number of multipath ways
NCMP=2
#################################################################
# ZPOOL values
# Zpool name
ZPOOL="jails"
# Number of vdevs
NVDEV="9"
# Number of drives by vdev
NDVDEV="6"
# Drives for vdevs
VDEV_MODEL="ST600MM0006"
VDEV_PREFIX="raidz2"
VDEV_DRIVES="$(sqlite3 ${DB} "select serialnumber from devs where Product='${VDEV_MODEL}' order by slot" |uniq |awk '{print "multipath/"$1}')"
# Drives for ZIL/logs
ZIL_MODEL="ZeusRAM"
ZIL_PREFIX="mirror"
ZIL_DRIVES="$(sqlite3 ${DB} "select serialnumber from devs where Product='${ZIL_MODEL}' order by slot" |uniq |awk '{print "multipath/"$1}')"
# Drives for L2ARC
L2ARC_MODEL=""
L2ARC_PREFIX=""
L2ARC_DRIVES="mfisyspd0"
# ZPOOL options
ZPOOL_OPTS="autoreplace=on"
# ZFS options
ZFS_OPTS="compression=gzip atime=off"
#################################################################