Benutzer-Werkzeuge

Webseiten-Werkzeuge


freebsd:nas

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
freebsd:nas [2026/04/06 07:59] – [FreeBSD als NAS konfigurieren] adminfreebsd:nas [2026/04/12 06:40] (aktuell) – [Problem mit ACPI] admin
Zeile 3: Zeile 3:
   * https://www.davd.io/freebsd-nas/ -- Building a FreeBSD NAS   * https://www.davd.io/freebsd-nas/ -- Building a FreeBSD NAS
  
-===== ZPool =====+===== Troubleshooting ===== 
 + 
 +==== Problem mit ACPI ==== 
 + 
 +In ''/boot/loader.conf'': 
  
 <code> <code>
-Run zpool import on FreeBSD : lists all pools+#get rid of acpi messages (AE_NOT_FOUND) 
 +debug.acpi.disabled="thermal" 
 +</code> 
 + 
 + 
 +==== Problem mit /etc/rc.conf ==== 
 + 
 +Stuck in single user mode due to error in file (how to check/validate after editing?):\\ 
 +''zfs set readonly=off zroot/ROOT/default'' 
 +===== ZPool ===== 
 + 
 +<code bash> 
 +zpool import lists all pools
 zpool import -f <pool_name> zpool import -f <pool_name>
 zpool status zpool status
 +zfs set mountpoint=/mnt/mypool mypool # mountpoint neu setzen
 </code> </code>
  
Zeile 14: Zeile 31:
 ===== Iocage ===== ===== Iocage =====
  
 +''/mnt/poolname/iocage/jails/jailname/config.json''
  
-/mnt/poolname/iocage/jails/jailname/config.json+===== Migrate to Bastille Jail =====
  
 +  * https://bastille.readthedocs.io/en/latest/chapters/migration.html#iocage
 +
 +<code bash>
 +bastille setup # select zpool: mypool
 +
 +# Firewall
 +pfctl -sr              # listet die Regeln
 +vi /etc/pf.conf        # Regeln anpassen
 +pfctl -f /etc/pf.conf  # Regeln neu laden
 +</code>
 +
 +===== Upgrade Bastille Jail =====
 +<code bash>
 +bastille bootstrap 14.4-RELEASE
 +?? bastille update 14.4-RELEASE ??
 +bastille upgrade Mail 14.4-RELEASE
 +</code>
 ==== SMB ==== ==== SMB ====
 +=== Install ===
 +
   * https://vermaden.wordpress.com/2018/12/27/smb-cifs-on-freebsd/    * https://vermaden.wordpress.com/2018/12/27/smb-cifs-on-freebsd/ 
   * https://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec284.html   * https://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec284.html
 +  * https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html -- Handbuch
 +
 +<code bash>
 +pkg search samba
 +pkg install samba423
 +
 +* Your configuration is: /usr/local/etc/smb4.conf
 +* All the relevant databases are under: /var/db/samba4
 +* All the logs are under: /var/log/samba4
 +* Provisioning script is: /usr/local/bin/samba-tool
 +</code>
 +
 +<code bash>
 +sysrc samba_server_enable=YES
 +#samba_server_enable:  -> YES
 +
 +sysrc samba_server_enable
 +#samba_server_enable: YES
 +
 +cat /etc/rc.conf
 +...
 +samba_server_enable="YES"
 +
 +# Now we can start the Samba service.
 +service samba_server start
 +</code>
 +
 +=== Test ===
 +Test SMB from MacOS
 +<code bash>
 +smbutil view smb://192.168.178.101/
 +</code>
 +
 +=== Update ===
 +
 +<code bash>
 +service samba_server stop
 + pkg install samba416
 +--- pkg detects samba413 and asks to remove / replace y/N: Y
 + service samba_server start
 +</code>
 +
 +=== Config ===
  
  
freebsd/nas.1775462344.txt.gz · Zuletzt geändert: von admin