freebsd:nas
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| freebsd:nas [2025/12/31 08:10] – angelegt admin | freebsd:nas [2026/04/12 06:40] (aktuell) – [Problem mit ACPI] admin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== FreeBSD als NAS konfigurieren ====== | ====== FreeBSD als NAS konfigurieren ====== | ||
| - | * https:// | + | * https:// |
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== Problem mit ACPI ==== | ||
| + | |||
| + | In ''/ | ||
| + | |||
| + | < | ||
| + | #get rid of acpi messages (AE_NOT_FOUND) | ||
| + | debug.acpi.disabled=" | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Problem mit / | ||
| + | |||
| + | Stuck in single user mode due to error in file (how to check/ | ||
| + | '' | ||
| + | ===== ZPool ===== | ||
| + | |||
| + | <code bash> | ||
| + | zpool import # lists all pools | ||
| + | zpool import -f < | ||
| + | zpool status | ||
| + | zfs set mountpoint=/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Iocage ===== | ||
| + | |||
| + | ''/ | ||
| + | |||
| + | ===== Migrate to Bastille Jail ===== | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | <code bash> | ||
| + | bastille setup # select zpool: mypool | ||
| + | |||
| + | # Firewall | ||
| + | pfctl -sr # listet die Regeln | ||
| + | vi / | ||
| + | pfctl -f / | ||
| + | </ | ||
| + | |||
| + | ===== Upgrade Bastille Jail ===== | ||
| + | <code bash> | ||
| + | bastille bootstrap 14.4-RELEASE | ||
| + | ?? bastille update 14.4-RELEASE ?? | ||
| + | bastille upgrade Mail 14.4-RELEASE | ||
| + | </ | ||
| ==== SMB ==== | ==== SMB ==== | ||
| + | === Install === | ||
| + | |||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | <code bash> | ||
| + | pkg search samba | ||
| + | pkg install samba423 | ||
| + | |||
| + | * Your configuration is: / | ||
| + | * All the relevant databases are under: / | ||
| + | * All the logs are under: / | ||
| + | * Provisioning script is: / | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | sysrc samba_server_enable=YES | ||
| + | # | ||
| + | |||
| + | sysrc samba_server_enable | ||
| + | # | ||
| + | |||
| + | cat / | ||
| + | ... | ||
| + | samba_server_enable=" | ||
| + | |||
| + | # Now we can start the Samba service. | ||
| + | service samba_server start | ||
| + | </ | ||
| + | |||
| + | === Test === | ||
| + | Test SMB from MacOS | ||
| + | <code bash> | ||
| + | smbutil view smb:// | ||
| + | </ | ||
| + | |||
| + | === Update === | ||
| + | |||
| + | <code bash> | ||
| + | service samba_server stop | ||
| + | pkg install samba416 | ||
| + | --- pkg detects samba413 and asks to remove / replace y/N: Y | ||
| + | | ||
| + | </ | ||
| + | |||
| + | === Config === | ||
| + | |||
| + | |||
| + | < | ||
| + | root@freenas:/ | ||
| + | Load smb config files from / | ||
| + | Loaded services file OK. | ||
| + | Weak crypto is allowed | ||
| + | |||
| + | Server role: ROLE_STANDALONE | ||
| + | |||
| + | Press enter to see a dump of your service definitions | ||
| + | |||
| + | # Global parameters | ||
| + | [global] | ||
| + | aio max threads = 2 | ||
| + | bind interfaces only = Yes | ||
| + | disable spoolss = Yes | ||
| + | dns proxy = No | ||
| + | enable web service discovery = Yes | ||
| + | kernel change notify = No | ||
| + | load printers = No | ||
| + | logging = file | ||
| + | map to guest = Bad User | ||
| + | max log size = 5120 | ||
| + | nsupdate command = / | ||
| + | registry shares = Yes | ||
| + | server multi channel support = No | ||
| + | server role = standalone server | ||
| + | server string = FreeNAS Server | ||
| + | unix extensions = No | ||
| + | idmap config *: range = 90000001-100000000 | ||
| + | rpc_server: | ||
| + | rpc_daemon: | ||
| + | idmap config * : backend = tdb | ||
| + | directory name cache size = 0 | ||
| + | dos filemode = Yes | ||
| + | |||
| + | |||
| + | [Bilder] | ||
| + | ea support = No | ||
| + | guest ok = Yes | ||
| + | level2 oplocks = No | ||
| + | mangled names = no | ||
| + | oplocks = No | ||
| + | path = / | ||
| + | read only = No | ||
| + | smbd max xattr size = 2097152 | ||
| + | vfs objects = catia streams_xattr shadow_copy_zfs ixnas zfs_core aio_fbsd | ||
| + | streams_xattr: | ||
| + | streams_xattr: | ||
| + | fruit: | ||
| + | fruit: | ||
| + | fruit: | ||
| + | catia: | ||
| + | nfs4:chown = true | ||
| + | ixnas: | ||
| + | |||
| + | </ | ||
freebsd/nas.1767168649.txt.gz · Zuletzt geändert: von admin
