Page 1 of 1

NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 06 Oct 2015 18:50
by zoon01
The nas4free team is pleased to announce the release of 10.2.0.2.1868

http://sourceforge.net/projects/nas4fre ... .0.2.1868/

Everyone can upgrade from NAS4Free version 9.3.0.2.1310 or Higher.

README & CHANGELOG

NAS4Free Upgrade from below 9.3.0.2.1310 is NOT possible!!!
=====================================================
Upgrading NAS4Free "Embedded" or "Full" from any version below 9.3.0.2.1310 by webgui or from
LiveCD/USB is problematic, due a new size of boot partition & partition layout.
Please download and save your NAS4Free config to a safe place and backup all files from second
partition if you use boot disk as data disk.
INSTALL FROM SCRATCH IS THE ONLY WAY!
After installation you can restore your config.
Sorry for inconvenience.
** ! Tools to write extracted embedded file are not supported ! **
You must use the liveusb/CD for it's first installation!!!.

Install from scratch notes
======================
** Embedded.img.xz is only for upgrades by WEBGUI, do not extract and write to any media! **

Download NAS4Free livecd or liveusb and boot from it.
The compressed LiveUSB.img.gz needs to be extracted before you can write it to usb media,
you can use it with Win32DiskImager or any other tool.
Press 9 for the install menu and perform an embedded installation.

Upgrade note:
============
You must associate CARP with physical interface explicitly after upgrading to 10.X.
You may need modifying your NFS and AFP share setting.
You may need modifying your ftp setting, no longer SSL is supported (only TLS).
Send Buffer Size/Receive Buffer Size in CIFS/SMB is changed to 128480 since 9.3.0.2.1375.
/var and /var/tmp size has changed.
After the upgrade please do make a new backup of your config System|Backup/Restore.

ZFS User note!
After upgrading, you must re-sync ZFS configuration from Disks|ZFS|Configuration|Synchronize.

Requirements
============
Embedded: 2GB CF/USB/SSD (NAS4free "Embedded" is Recommended Install)
Full: 4GB HDD/SSD (For developers and some advanced users, Not Recommended!)
Swap less: physical memory 2GB or higher needed.
With swap: physical memory 512MB + swap 512MB (swap 1024MB recommended).

*Note: LiveCD is not supported on swap mode except installation and upgrading.

BUILD 10.2.0.2.1868
=================
Changes:
- Upgrade to FreeBSD 10.2-RELEASE-P5.
- Add Mellanox ConnectX-2 EN driver module. (x64 only)
- Add Auxiliary parameters in Samba AD.
- Add bhyve and related files. (CLI only)
- Add hint.acpi_throttle.0.disabled="0", hint.p4tcc.0.disabled="0".
- Add dlna user and group.
- Add minidlna. (CLI only)
- Remove usesendfile on CIFS/SMB.
- Upgrade bash 4.3 to patch 42.
- Upgrade lighttpd to 1.4.37.
- Upgrade samba to 4.2.4.
- Upgrade isboot to 0.2.11.
- Upgrade tzdata to 2015g.
- Upgrade php to 5.6.14.

Fixes:
- Fix NFS share network. (ticket #238)
- Fix boot time ntpdate fail when AD DC enabled.
- Fix wrong path in Samba AD. (ticket #228, #232)
- Undefined symbol "av_find_stream_info" in fuppes/libmetadata_libavformat.so.
- AFP share is not advised.
- Fix webserver user logins.
- Fix wrong path ticket 228.

Note:
- iperf2 has been replaced for iperf3 because of inconsistent results for UDP above 2Gbps.
- iperf3 is not backwards compatible with iperf2.x.

Permanent restrictions:
- It is not possible to format a SoftRAID disk with MSDOS FAT16/32.
- It is not possible to encrypt a disk partition, only complete disks are supported.
- AFP shares with TimeMachine support are limited to max. 4 shares.

Regards,
The NAS4Free Team

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 06 Oct 2015 22:47
by wingenieur
Hi!

Great release, thank you!
It seems the bug regarding my hardware configuration has finally gone in p5. :-)
Reboot is as quickly as it should be, even with Intel server board.

No other worries at the moment, keep up the great work!

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 07 Oct 2015 01:20
by T1g3rs65
i see minidlna was added for command line would liked to be linked to more information on that if possible

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 07 Oct 2015 04:06
by zoon01
T1g3rs65 wrote:i see minidlna was added for command line would liked to be linked to more information on that if possible
The sample configuration is installed as minidlna.conf.sample.
Please create config, symlink to it and edit for your needs.
At lease, you need to edit "media_dir=" line for your files.

This is an example if HDD is mounted on /mnt/data:

# cp /usr/local/etc/minidlna.conf.sample /mnt/data/minidlna.conf
# ln -s /mnt/data/minidlna.conf /usr/local/etc
# nano /mnt/data/minidlna.conf
# /usr/local/etc/rc.d/minidlna onestart

Note: You can edit the config from Advanced|File Editor

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 07 Oct 2015 04:13
by Parkcomm
First post should be edited - current version of extendedGUI works on 10.2.0.2

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 07 Oct 2015 04:19
by Parkcomm
zoon1 wrote:- AFP shares with TimeMachine support are limited to max. 4 shares.
This restriction seems odd to me - what its the course (just out of interest, I'm only running time machine on four macs at the moment)

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 07 Oct 2015 07:08
by Parkcomm
Just upgraded over openVPN - went smooth as a whistle (apart from a brief struggle with "Failed to create in-memory file system." Subject of another post.

Everything seems to be working so far. Thanks team.

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 09 Oct 2015 05:35
by T1g3rs65
i just got 2 new hard drives and made a zfs virtual device but when i go into tools to do vdev add the device does not show up to be added to the pool. i was not sure if i should post it here since im using this version.

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 12 Oct 2015 11:59
by HoPla-HL
I got an "permission denied"-error when using MiniDLNA in the 1868-Build :-(

I'm using root, holger and dlna as "user" in the minidlna.conf-File ... but the result is always the same. All folders have 777 permissions.

Code: Select all

[2015/10/11 14:39:50] minidlna.c:1033: warn: Starting MiniDLNA version 1.1.5.
[2015/10/11 14:39:50] minidlna.c:356: warn: Creating new database at /mnt/zfs/scripts/minidlna_db/files.db
[2015/10/11 14:39:50] minidlna.c:1082: warn: HTTP listening on port 8200
[2015/10/11 14:39:50] scanner.c:758: warn: Error scanning /mnt/zfs/holger/Multimedia/Videos [Permission denied]
[2015/10/11 14:39:50] scanner.c:758: warn: Error scanning /mnt/zfs/holger/Multimedia/Musik [Permission denied]
[2015/10/11 14:39:50] playlist.c:125: warn: Parsing playlists...
[2015/10/11 14:39:50] playlist.c:259: warn: Finished parsing playlists.
[2015/10/11 14:39:51] inotify.c:107: error: inotify_add_watch[kqueue,open](/mnt/zfs/holger/Multimedia/Videos) [Permission denied]
[2015/10/11 14:39:51] inotify.c:107: error: inotify_add_watch[kqueue,open](/mnt/zfs/holger/Multimedia/Musik) [Permission denied]
[2015/10/11 14:39:51] inotify.c:107: error: inotify_add_watch[kqueue,open](/mnt/zfs/holger/Multimedia/Videos) [Permission denied]
[2015/10/11 14:39:51] inotify.c:107: error: inotify_add_watch[kqueue,open](/mnt/zfs/holger/Multimedia/Musik) [Permission denied]
Any hint??!!

HoPla-HL

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 15 Oct 2015 07:42
by HoPla-HL
I'm an idiot :cry:

Checking my ZFS-permissions solved the problem :|

For reboot MiniDLNA:

Here is my solution to start MiniDLNA after reboot ... i'm creating a batch called "start_minidlna.sh" (in my case in /mnt/zfs/scripts)

Code: Select all

#!/bin/sh
ln -s /mnt/zfs/scripts/minidlna.conf /usr/local/etc 
/usr/local/etc/rc.d/minidlna onestart
then create a Post-Init-Command in System/Advanced

Code: Select all

/mnt/zfs/scripts/start_minidlna.sh
Don't forget to add rc.conf

Code: Select all

minidlna_enable="YES"
After reboot .. check the processes ... et voila :-) MiniDLNA is starting!! :mrgreen: Perhaps not the best way, but it works :mrgreen:

HoPla-HL

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 20 Oct 2015 02:56
by Jack Foobar
One thing I've noticed with this release is that the cpu load graph under status system doesn't seem to be able to display accurately. I've had 0% load consistently since this update. The server is under load, and I don't think my cpu is all that awesome. Maybe it's a freebsd bug. Here is what I have.

# sysctl dev.cpu
dev.cpu.1.cx_usage: 100.00% last 24885us
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_supported: C1/1/0
dev.cpu.1.temperature: 30.0C
dev.cpu.1.coretemp.throttle_log: 0
dev.cpu.1.coretemp.tjmax: 100.0C
dev.cpu.1.coretemp.resolution: 1
dev.cpu.1.coretemp.delta: 70
dev.cpu.1.%parent: acpi0
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%driver: cpu
dev.cpu.1.%desc: ACPI CPU
dev.cpu.0.cx_usage: 100.00% last 6815us
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_supported: C1/1/0
dev.cpu.0.freq_levels: 2933/88000 2566/77000 2199/66000 2133/63000 1866/55125 1600/49000 1400/42875 1200/36750 1000/30625 800/24500 600/18375 400/12250 200/6125
dev.cpu.0.freq: 2933
dev.cpu.0.temperature: 30.0C
dev.cpu.0.coretemp.throttle_log: 1
dev.cpu.0.coretemp.tjmax: 100.0C
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.delta: 70
dev.cpu.0.%parent: acpi0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%driver: cpu
dev.cpu.0.%desc: ACPI CPU

# sysctl kern.cp_time
kern.cp_time: 1094663 0 360544 15155 132334664

# sysctl kern.cp_time && sleep 2 && sysctl kern.cp_time
kern.cp_time: 1094697 0 360585 15156 132344402
kern.cp_time: 1094705 0 360592 15156 132344899

# top
last pid: 65443; load averages: 0.12, 0.19, 0.17 up 6+02:21:22 05:49:02
22 processes: 1 running, 20 sleeping, 1 zombie
CPU: 1.4% user, 0.0% nice, 1.0% system, 0.0% interrupt, 97.7% idle
Mem: 19M Active, 2656M Inact, 472M Wired, 24M Cache, 336M Buf, 11M Free
Swap: 16G Total, 146M Used, 16G Free

PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
1394 root 1 20 0 13624K 2052K select 1 5:44 0.00% devd
1519 root 1 20 0 14548K 928K select 0 1:13 0.00% syslogd
62895 root 2 20 0 321M 12044K kqread 0 0:14 0.00% smbd
1720 root 1 20 0 278M 5088K select 0 0:08 0.00% smbd
63014 root 2 20 0 327M 13876K kqread 1 0:06 0.00% smbd
1974 root 1 52 0 44744K 4040K kqread 1 0:06 0.00% lighttp
1718 root 1 20 0 214M 3212K select 1 0:04 0.00% nmbd
1842 root 1 20 0 16612K 900K nanslp 0 0:00 0.00% cron
1897 root 1 20 0 12856K 976K select 1 0:00 0.00% mDNSRes
64609 root 1 20 0 57552K 5292K select 0 0:00 0.00% sshd
64657 root 1 20 0 25644K 3640K pause 1 0:00 0.00% csh
65314 root 1 20 0 21940K 2732K CPU1 1 0:00 0.00% top
64656 user 1 20 0 47732K 2560K wait 0 0:00 0.00% su
2081 root 1 52 0 25644K 748K pause 0 0:00 0.00% csh
64655 user 1 20 0 17640K 3296K wait 0 0:00 0.00% bash
64654 user 1 20 0 57552K 5368K select 0 0:00 0.00% sshd
pres.jpg
Perhaps this is moot in the next revision, but just to document what I'm seeing I'm posting here.
Also, when I go directly to the status page and cpu graph, it says the cpu graph cannot be displayed, then displays it with a null load.

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 20 Oct 2015 07:44
by raulfg3
Jack Foobar wrote:ne thing I've noticed with this release is that the cpu load graph under status system doesn't seem to be able to display accurately. I've had 0% load consistently since this update. The server is under load, and I don't think my cpu is all that awesome. Maybe it's a freebsd bug. Here is what I have.
Please update to latest 1906

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 20 Oct 2015 09:21
by daoyama
Jack Foobar wrote:One thing I've noticed with this release is that the cpu load graph under status system doesn't seem to be able to display accurately. I've had 0% load consistently since this update. The server is under load, and I don't think my cpu is all that awesome. Maybe it's a freebsd bug. Here is what I have.
Please check with /etc/inc/system.inc to 10x values.
It will show 0.5% instead of 0%.

Code: Select all

[root@nas4free-testb /etc/inc]# diff -au system.inc.orig system.inc
--- system.inc.orig     2015-09-26 00:16:29.000000000 +0000
+++ system.inc  2015-10-20 07:16:56.928494000 +0000
@@ -296,7 +296,7 @@
                $a = array_splice($a_dstat, 0, 5);
                $idle = $a[4];
                $total = array_sum($a);
-               $a_usage[$i] = floor(100 * (($total - $idle) / $total));
+               $a_usage[$i] = floor(1000 * (($total - $idle) / $total)) / 10;
        }
        return $a_usage;
 }
@@ -320,7 +320,7 @@
                $totalused = 0.001;
        }

-       return floor(100 * ($totalused / $totalDiff));
+       return floor(1000 * ($totalused / $totalDiff)) / 10;
 }

 // Get CPUID
 

Re: NAS4Free 10.2.0.2.1868 released (FreeBSD 10.2-RELEASE-P5)

Posted: 21 Oct 2015 00:52
by Jack Foobar
OK, thanks guys.