ART by www.wallpaperup.com
Copyright © 2004-2023 marpil, All Rights Reserved.
root@NAS: ~/ # sysrc zfs_enable="YES"
root@NAS: ~/ # service zfs start
root@NAS: ~/ # cat /boot/loader.conf
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
vfs.zfs.min_auto_ashift=12
zfs_load="YES" # to gdy cały basesystem stoi na ZFSie
root@NAS: ~/ # zpool create DATA mirror /dev/ada1 /dev/ada2
root@NAS: ~/ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0a 3.5G 1.8G 1.4G 57% /
devfs 1.0K 1.0K 0B 100% /dev
linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc
linsysfs 4.0K 4.0K 0B 100% /compat/linux/sys
tmpfs 211M 4.0K 211M 0% /compat/linux/dev/shm
DATA 899G 0G 899G 0% /DATA
root@NAS: ~/ # zpool status
pool: DATA
state: ONLINE
scan: scrub repaired 0 in 0h54m with 0 errors on Wed Nov 22 22:12:20 2017
config:
NAME STATE READ WRITE CKSUM
DATA ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
errors: No known data errors
root@NAS: ~/ # pkg install samba48
root@NAS: ~/ # sysrc samba_server_enable=YES
root@NAS:/ # adduser
Username: test
Full name:
Uid (Leave empty for default):
Login group [test]:
Login group is test. Invite test into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
...
...
...
adduser: INFO: Successfully added (test) to the user database.
Add another user? (yes/no): no
Goodbye!
root@NAS: ~/ # mkdir /DATA/win
root@NAS: ~/ # chown -R test /DATA/win
root@NAS: ~/ # cat /usr/local/etc/smb4.conf
[global]
workgroup = TEST
realm = test.local
netbios name = NAS
[data]
path = /DATA/win
public = no
writable = yes
printable = no
guest ok = no
valid users = test
root@NAS: ~/ # smbpasswd -a test
New SMB password:
Retype new SMB password:
root@NAS: ~/ # /usr/local/etc/rc.d/samba_server start
Use the w3-spin class to spin an element 360 degrees: