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 08:06] – [SMB] 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
  
 +===== Troubleshooting =====
 +
 +==== Problem mit ACPI ====
 +
 +In ''/boot/loader.conf'': 
 +
 +<code>
 +#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 ===== ===== ZPool =====
  
Zeile 9: Zeile 25:
 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 === === Install ===
Zeile 22: Zeile 57:
   * 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> <code bash>
 pkg search samba pkg search samba
 pkg install samba423 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>
  
-<code bash +<code bash> 
-sysrc samba_server_enable=YES +sysrc samba_server_enable=YES 
-samba_server_enable:  -> YES+#samba_server_enable:  -> YES
  
-sysrc samba_server_enable +sysrc samba_server_enable 
-samba_server_enable: YES+#samba_server_enable: YES
  
-cat /etc/rc.conf +cat /etc/rc.conf 
-hostname="samba" +...
-ifconfig_em0="inet 10.0.10.40/24" +
-defaultrouter="10.0.10.1" +
-sshd_enable="YES"+
 samba_server_enable="YES" samba_server_enable="YES"
  
-Now we can start the Samba service.+Now we can start the Samba service. 
 +service samba_server start 
 +</code>
  
-# service samba_server start+=== Test === 
 +Test SMB from MacOS 
 +<code bash> 
 +smbutil view smb://192.168.178.101/
 </code> </code>
  
freebsd/nas.1775462796.txt.gz · Zuletzt geändert: von admin