This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nas_on_debian [2017/08/13 06:06] – herwarth | nas_on_debian [2017/08/15 18:08] (current) – herwarth | ||
|---|---|---|---|
| Line 132: | Line 132: | ||
| systemctl daemon-reload | systemctl daemon-reload | ||
| systemctl enable network-wait-online | systemctl enable network-wait-online | ||
| + | ====Tuning==== | ||
| + | ===Swappiness=== | ||
| + | <code - / | ||
| + | vm.swappiness=1 | ||
| + | </ | ||
| + | ===SSD kernel scheduler=== | ||
| + | <code - / | ||
| + | # set deadline scheduler for non-rotating disks | ||
| + | ACTION==" | ||
| + | </ | ||
| ====S.M.A.R.T monitoring==== | ====S.M.A.R.T monitoring==== | ||
| apt install smartmontools | apt install smartmontools | ||
| TODO: monitoring config with smartd and cron | TODO: monitoring config with smartd and cron | ||
| + | ====Python and PIP==== | ||
| + | |||
| + | update-alternatives --list python | ||
| + | update-alternatives: | ||
| + | |||
| + | update-alternatives --install / | ||
| + | update-alternatives: | ||
| + | |||
| + | update-alternatives --install / | ||
| + | update-alternatives: | ||
| + | |||
| + | apt install python3-pip python-pip | ||
| + | Now we can switch using the update-alternatives --config python. Remember pip for python 3 is pip3. pip is for python 2.7 | ||
| + | |||
| =====Bcache===== | =====Bcache===== | ||
| Gather which disks are HDD and which are SDD.In my case: | Gather which disks are HDD and which are SDD.In my case: | ||
| Line 207: | Line 230: | ||
| load printers = No | load printers = No | ||
| printcap name = cups | printcap name = cups | ||
| + | max xmit = 32768 | ||
| + | min receivefile size = 2048 | ||
| server min protocol = NT1 | server min protocol = NT1 | ||
| passdb backend = ldapsam: | passdb backend = ldapsam: | ||
| security = USER | security = USER | ||
| server role = standalone server | server role = standalone server | ||
| + | deadtime = 15 | ||
| + | socket options = IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY | ||
| winbind enum groups = Yes | winbind enum groups = Yes | ||
| winbind enum users = Yes | winbind enum users = Yes | ||
| Line 219: | Line 246: | ||
| create mask = 0640 | create mask = 0640 | ||
| directory mask = 0750 | directory mask = 0750 | ||
| + | aio read size = 2048 | ||
| + | aio write size = 2048 | ||
| + | use sendfile = Yes | ||
| + | write cache size = 1024000 | ||
| Line 229: | Line 260: | ||
| [share] | [share] | ||
| path = / | path = / | ||
| + | force create mode = 0644 | ||
| + | force directory mode = 0755 | ||
| read only = No | read only = No | ||
| valid users = %U | valid users = %U | ||
| Line 266: | Line 299: | ||
| systemctl daemon-reload | systemctl daemon-reload | ||
| systemctl enable avahi-daemon | systemctl enable avahi-daemon | ||
| + | =====Docker===== | ||
| + | Add the Docker CE repo and install from there | ||
| + | apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common | ||
| + | |||
| + | curl -fsSL https:// | ||
| + | |||
| + | add-apt-repository "deb [arch=amd64] https:// | ||
| + | |||
| + | apt install docker-ce | ||
| + | For Kolla | ||
| + | mkdir -p / | ||
| + | < | ||
| + | tee / | ||
| + | [Service] | ||
| + | MountFlags=shared | ||
| + | EOF | ||
| + | </ | ||
| + | systemctl daemon-reload | ||
| + | |||
| + | systemctl restart docker | ||
| + | |||
| + | echo configfs >/ | ||
| + | systemctl status sys-kernel-config.mount | ||
| {{tag> | {{tag> | ||