Benutzer-Werkzeuge

Webseiten-Werkzeuge


freebsd:nas

Dies ist eine alte Version des Dokuments!


Inhaltsverzeichnis

FreeBSD als NAS konfigurieren

Problem mit ACPI

In /boot/loader.conf:

#get rid of acpi messages (AE_NOT_FOUND)
debug.acpi.disabled="thermal"

ZPool

zpool import # lists all pools
zpool import -f <pool_name>
zpool status
zfs set mountpoint=/mnt/mypool mypool # mountpoint neu setzen

Iocage

/mnt/poolname/iocage/jails/jailname/config.json

SMB

Install

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
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

Test

Test SMB from MacOS

smbutil view smb://192.168.178.101/

Update

service samba_server stop
 pkg install samba416
--- pkg detects samba413 and asks to remove / replace y/N: Y
 service samba_server start

Config

root@freenas:/usr/local/etc # testparm 
Load smb config files from /usr/local/etc/smb4.conf
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 = /usr/local/bin/samba-nsupdate -g
	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:mdssvc = disabled
	rpc_daemon:mdssd = disabled
	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 = /mnt/mypool/data/Bilder
	read only = No
	smbd max xattr size = 2097152
	vfs objects = catia streams_xattr shadow_copy_zfs ixnas zfs_core aio_fbsd
	streams_xattr:store_stream_type = no
	streams_xattr:prefix = user.
	fruit:resource = file
	fruit:metadata = netatalk
	fruit:locking = netatalk
	catia:mappings = 0x01:0xf001,0x02:0xf002,0x03:0xf003,0x04:0xf004,0x05:0xf005,0x06:0xf006,0x07:0xf007,0x08:0xf008,0x09:0xf009,0x0a:0xf00a,0x0b:0xf00b,0x0c:0xf00c,0x0d:0xf00d,0x0e:0xf00e,0x0f:0xf00f,0x10:0xf010,0x11:0xf011,0x12:0xf012,0x13:0xf013,0x14:0xf014,0x15:0xf015,0x16:0xf016,0x17:0xf017,0x18:0xf018,0x19:0xf019,0x1a:0xf01a,0x1b:0xf01b,0x1c:0xf01c,0x1d:0xf01d,0x1e:0xf01e,0x1f:0xf01f,0x22:0xf020,0x2a:0xf021,0x3a:0xf022,0x3c:0xf023,0x3e:0xf024,0x3f:0xf025,0x5c:0xf026,0x7c:0xf027
	nfs4:chown = true
	ixnas:dosattrib_xattr = false
Diese Website verwendet Cookies. Durch die Nutzung der Website stimmen Sie dem Speichern von Cookies auf Ihrem Computer zu. Außerdem bestätigen Sie, dass Sie unsere Datenschutzbestimmungen gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website.Weitere Information
freebsd/nas.1775572727.txt.gz · Zuletzt geändert: von admin