Guest User

jac zfs server 2

a guest
Mar 30th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. #
  2. ## /etc/rc.conf
  3. ## Run Control configuration
  4. ## for Root-on-ZFS distributions
  5. #
  6.  
  7. ## Network
  8. # feel free to change the hostname, but you need to edit /etc/hosts as well
  9. hostname="zfsguru2.bsd"
  10.  
  11. # add interfaces at your leisure when requiring static configuration
  12. #ifconfig_DEFAULT="DHCP"
  13. # some examples (you can override your own interface keeping DEFAULT intact)
  14. # example1: static IP address (also set defaultrouter and also /etc/resolv.conf)
  15. #ifconfig_em0="inet 10.0.0.100 netmask 255.255.255.0"
  16. # example2: enable 'Jumbo Frames' which is MTU larger than 1536 bytes
  17. #ifconfig_em0="DHCP mtu 7000"
  18. # example3: force interface to gigabit full-duplex link if autodetect is borked
  19. #ifconfig_em0="DHCP media 1000baseTX mediaopt full-duplex"
  20.  
  21. # if you want static IP, you need to specify default gateway here
  22. defaultrouter="192.168.2.254"
  23. # don't forget to edit /etc/resolv.conf for DNS configuration as well!
  24. # note that DHCP interfaces may override the /etc/resolv.conf
  25.  
  26. ifconfig_em0="inet 192.168.2.152 netmask 255.255.255.0"
  27.  
  28. #ifconfig_ix1="inet 192.168.3.2 netmask 255.255.255.0"
  29. ifconfig_ix0="inet 192.168.3.152 netmask 255.255.255.0 mtu 9000"
  30. ixgbe_load="YES"
  31.  
  32. ## Local Daemons
  33. zfs_enable="YES"
  34. powerd_enable="YES"
  35. ntpdate_enable="YES"
  36. ntpdate_hosts="0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
  37.  
  38. ## Network listening Daemons
  39. lighttpd_enable="YES"
  40. sshd_enable="YES"
  41. samba_enable="YES"
  42.  
  43. ## Firewall
  44. #pf_enable="YES"
  45.  
  46. ## NFS
  47. nfs_server_enable="YES"
  48. mountd_enable="YES"
  49. mountd_flag="-r"
  50. rpcbind_enable="YES"
  51. rpc_lockd_enable="YES"
  52. rpc_statd_enable="YES"
  53. # if you have problems, perhaps you can try the old NFS server:
  54. #oldnfs_server_enable="YES"
  55.  
  56. ## Sendmail
  57. sendmail_enable="NO"
  58. sendmail_submit_enable="NO"
  59. sendmail_outbound_enable="NO"
  60. sendmail_msp_queue_enable="NO"
  61. sendmail_clientmqueue_enable="NO"
  62.  
  63. ## Graphics environment
  64. #moused_enable="YES"
  65. #usbd_enable="YES"
  66. # note: you need services installed for the settings below to have any effect
  67. #gnome_enable="YES"
  68. #kdm_enable="YES"
  69. #xfce_enable="YES"
  70.  
  71. ## ZFSguru autostart
  72. zfsguru_enable="YES"
  73. # APM or Advanced Power Management controls power saving features of your hard
  74. # drives. To disable the dreaded 'headparking' feature, it is common to enable
  75. # APM to a setting of 254, to disable headparking altogether.
  76. zfsguru_apm_enable="NO"
  77. zfsguru_apm_disks="ada1 ada2 ada3"
  78. zfsguru_apm_level="254"
  79. # To enable your disks to spindown whenever inactive for a number of seconds,
  80. # configure both the timer (in seconds) and the disks you want to be spun down.
  81. zfsguru_spindown_enable="NO"
  82. zfsguru_spindown_timer="300"
  83. # If you have a pool with L2ARC cache devices present, you might want to warm
  84. # up the L2ARC right afte[M Q>r boot with metadata. We can do that by scanning all
  85. # directory layout which will cause metadata to be written to the L2ARC cache.
  86. # Without L2ARC cache, enabling this will cause metadata to be cached in RAM.
  87. zfsguru_arc_warmup_enable="YES"
  88. spindown_enable="YES"
  89. spindown_flags="-b -d ada0 -d ada1 -d ada2 -d ada3 -d da10 -d da11 -d da12 -d da13 -d da14 -d da15 -t 300"
  90. spindown_flags="-b -d da0 -d da1 -d da2 -d da3 -d da4 -d da5 -d da6 -d da7 -d da8 -d da9 -t 300"
  91.  
  92.  
  93.  
  94. ## Misc
  95. # this value needs to be NO for LiveCD/Embedded distribution
  96. # and must be YES (the default) for Root-on-ZFS distributions
  97. root_rw_mount="YES"
  98.  
  99. # GPU power saving - turns off monitor after 300 sec (5 min)
  100. saver="green"
  101. blanktime="300"
  102.  
  103. # CPU power saving - enable highest C power state available for your CPU
  104. performance_cx_lowest="Cmax"
  105. economy_cx_lowest="Cmax"
  106.  
  107. ## Synchronous DHCP
  108. # enabling sync. DHCP will cause the system to wait for a DHCP lease before
  109. # it finishes booting. This should prevent services to not have a working
  110. # network interface when they start at boot time.
  111. # enabling this setting may cause a long wait time during boot if you
  112. # don't have any DHCP functionality.
  113. synchronous_dhclient="YES"
  114.  
  115. # end
  116.  
  117. # Nut service
  118. nut_enable="YES"
  119. nut_upslog_enable="YES"
  120. nut_upsmon_enable="YES"
Advertisement
Add Comment
Please, Sign In to add comment