Page 1 of 1

NAS4Free hangs up after migration to ZFS

Posted: 08 Sep 2013 13:21
by tomk
I am running NAS4Free for several years now. It worked very well and stable for me. In the last couple of weeks I migrated from Software Raid5 to ZFS. In course of doing so I also upgraded to the latest version and did upgrade my memory to 8GB. Since then I am experiencing kind of hang ups:
- I cannot really access the data anymore
- The web interface returns pages only partly or some garbage which is then interpreted as some file being downloaded by the browser

I have to reboot then sometimes several times. If I don't get that fixed I have to switch back to Software Raid5 :(

My config:

Code: Select all

Nas4Free version: 9.1.0.1 - Sandstorm (revision 847)
Platform: x64-embedded on AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Motherboard: ASUSTek Computer INC. M2NPV-VM
dmesg -a output:

Code: Select all

Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.1-RELEASE-p5 #0 r254466M: Sat Aug 17 22:54:54 CEST 2013
    root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2004.23-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40fb2  Family = f  Model = 4b  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
real memory  = 8589934592 (8192 MB)
avail memory = 7963635712 (7594 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <Nvidia ASUSACPI>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
acpi0: <Nvidia ASUSACPI> on motherboard
acpi0: Power Button (fixed)
acpi0: reservation of cdee0000, 20000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, cdde0000 (3) failed
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
attimer0: Can't map interrupt.
atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
pci0: <memory, RAM> at device 0.6 (no driver attached)
pci0: <memory, RAM> at device 0.7 (no driver attached)
vgapci0: <VGA-compatible display> mem 0xfc000000-0xfcffffff,0xd0000000-0xdfffffff,0xfb000000-0xfbffffff irq 16 at device 5.0 on pci0
pci0: <memory, RAM> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 10.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 10.1 (no driver attached)
pci0: <memory, RAM> at device 10.2 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff at device 11.0 on pci0
usbus0 on ohci0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe02e000-0xfe02e0ff at device 11.1 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf400-0xf40f at device 13.0 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
atapci1: <nVidia nForce MCP51 SATA300 controller> port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f mem 0xfe02d000-0xfe02dfff irq 20 at device 14.0 on pci0
ata2: <ATA channel> at channel 0 on atapci1
ata3: <ATA channel> at channel 1 on atapci1
atapci2: <nVidia nForce MCP51 SATA300 controller> port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xcc00-0xcc0f mem 0xfe02c000-0xfe02cfff irq 21 at device 15.0 on pci0
ata4: <ATA channel> at channel 0 on atapci2
ata5: <ATA channel> at channel 1 on atapci2
pcib1: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci1: <ACPI PCI bus> on pcib1
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.4> port 0xbc00-0xbc3f mem 0xfdde0000-0xfddfffff,0xfddc0000-0xfdddffff irq 16 at device 8.0 on pci1
em0: Ethernet address: 00:1b:21:0a:22:48
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb3
acpi_tz0: <Thermal Zone> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <ISA Option ROM> at iomem 0xd0000-0xd0fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ctl: CAM Target Layer loaded
powernow0: <PowerNow! K8> on cpu0
powernow1: <PowerNow! K8> on cpu1
ZFS filesystem version 5
ZFS storage pool version 28
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to accept, logging disabled
iSCSI boot driver version 0.2.6
md0: Preloaded image </mfsroot> 232783872 bytes at 0xffffffff819a3c58
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <nVidia> at usbus0
uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <nVidia> at usbus1
uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub0: 8 ports with 8 removable, self powered
uhub1: 8 ports with 8 removable, self powered
ugen0.2: <APC> at usbus0
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <TRANSCEND 20071207> ATA-4 device
ada0: 66.700MB/s transfers (UDMA4, PIO 512bytes)
ada0: 955MB (1957536 512 byte sectors: 16H 63S/T 1942C)
ada0: Previously was known as ad0
ada1 at ata2 bus 0 scbus2 target 0 lun 0
ada1: <Hitachi HDS723020BLA642 MN6OAA10> ATA-8 SATA 3.x device
ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad4
ada2 at ata3 bus 0 scbus3 target 0 lun 0
ada2: <WDC WD20EURS-63S48Y0 51.0AB51> ATA-8 SATA 2.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
ada2: Previously was known as ad6
ada3 at ata4 bus 0 scbus4 target 0 lun 0
ada3: <Hitachi HDS723020BLA642 MN6OAA10> ATA-8 SATA 3.x device
ada3: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
ada3: Previously was known as ad8
ada4 at ata5 bus 0 scbus5 target 0 lun 0
ada4: <Hitachi HUA723020ALA640 MK7OAA10> ATA-8 SATA 3.x device
ada4: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada4: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
ada4: Previously was known as ad10
SMP: AP CPU #1 Launched!
GEOM: ada0: media size does not match label.
Trying to mount root from ufs:/dev/md0 []...
Loading configuration files.
Booting platform: embedded
Looking for configuration file: ada4 ada3 ada2 ada1 ada0
Found configuration on device=/dev/ada0a fstype=ufs.
Updating rc.conf:.....................................
Generating user database(s).
Starting GEOM devices.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
/dev/ufsid/4ff01b134c6d3336: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufsid/4ff01b134c6d3336: clean, 142420740 free (18620 frags, 17800265 blocks, 0.0% fragmentation)
hw.intr_storm_threshold: 1000 -> 9000
kern.coredump: 1 -> 0
kern.ipc.maxsockbuf: 2097152 -> 16777216
kern.ipc.nmbclusters: 25600 -> 262144
kern.ipc.nmbjumbo9: 6400 -> 131072
kern.ipc.nmbjumbo16: 3200 -> 65536
kern.ipc.nmbjumbop: 12800 -> 262144
kern.ipc.somaxconn: 128 -> 8192
kern.maxfilesperproc: 58982 -> 50000
net.inet.icmp.icmplim: 200 -> 300
net.inet.tcp.delayed_ack: 1 -> 0
net.inet.tcp.path_mtu_discovery: 1 -> 0
net.inet.tcp.recvbuf_inc: 16384 -> 262144
net.inet.tcp.recvbuf_max: 2097152 -> 4194304
net.inet.tcp.recvspace: 65536 -> 262144
net.inet.tcp.sendbuf_inc: 8192 -> 262144
net.inet.tcp.sendbuf_max: 2097152 -> 4194304
net.inet.tcp.sendspace: 32768 -> 262144
net.inet.udp.maxdgram: 9216 -> 57344
net.inet.udp.recvspace: 42080 -> 65536
net.local.stream.recvspace: 8192 -> 65536
net.local.stream.sendspace: 8192 -> 65536
Mounting local file systems:.
Load NOP GEOM class
GEOM_NOP: Device ada1.nop created.
GEOM_NOP: Device ada3.nop created.
GEOM_NOP: Device ada4.nop created.
Setting hostname: storage.local.
Starting dhclient.
em0: no link ..... got link
DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 192.168.178.1
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 192.168.178.1
bound to 192.168.178.26 -- renewal in 432000 seconds.
[: dhcp: bad number
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
	ether 00:1b:21:0a:22:48
	inet6 fe80::21b:21ff:fe0a:2248%em0 prefixlen 64 scopeid 0x3 
	inet 192.168.178.26 netmask 0xffffff00 broadcast 192.168.178.255
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
Starting devd.
dhclient already running? (pid=1319).
Updating hosts.
Generating host.conf.
Additional routing options:.
Creating clog files.
Starting syslogd.
Setting date via ntp.
 8 Sep 12:40:44 ntpdate[1599]: step time server 131.188.3.222 offset -0.966994 sec
Generating .websrv_htpasswd.
Initializing Acoustic/Standby/APM/UDMA on ATA disks: ada0 ada1 ada2 ada3 ada4 
Generating message of the day.
Network UPS Tools - UPS driver controller 2.6.5-Unversioned directory
Network UPS Tools - Generic HID driver 0.37 (2.6.5-Unversioned directory)
USB communication driver 0.31
Using subdriver: APC HID 0.95
Starting nut.
Network UPS Tools upsd 2.6.5-Unversioned directory
fopen /var/run/upsd.pid: No such file or directory
listening on ::1 port 3493
listening on 127.0.0.1 port 3493
Connected to UPS [ups]: usbhid-ups-ups
Starting nut_upslog.
Network UPS Tools upslog 2.6.5-Unversioned directory
logging status of ups@localhost to /var/log/ups.log (300s intervals)
Starting nut_upsmon.
Network UPS Tools upsmon 2.6.5-Unversioned directory
fopen /var/run/upsmon.pid: No such file or directory
UPS: ups@localhost (master) (power value 1)
Using power down flag file /var/etc/killpower
Removing stale Samba tdb files:  done
Load AIO module
Updating passdb.
Starting nmbd.
Starting smbd.
Starting smartd.
Configuring syscons: blanktime.
Starting sshd.
Generating local rsyncd cron scripts.
Starting cron.
Starting mdnsresponder.
Generating .htpasswd.
Starting lighttpd.
Setting hostuuid: 401a364e-6e99-db11-8180-001bfcdfacd7.
Setting hostid: 0x8bdbb828.
Preparing web-based file-management.
Starting background file system checks in 60 seconds.

Tom

Re: NAS4Free hangs up after migration to ZFS

Posted: 08 Sep 2013 15:45
by b0ssman
have you run a memtest?

how did you migrate to zfs. i assume you just copied the data to a new zfs array.

are you using an embedded install, or a full?

Re: NAS4Free hangs up after migration to ZFS

Posted: 08 Sep 2013 15:49
by raulfg3
if you upgrade RAM, need to use ZFSkerntune to tune your ZFS system to your actual RAM:

PD: save your actual config, do a new fresh install restore your config, import your pool if do not work, at this time must work, if still inestable, tune RAM using ZFSKerntune: viewtopic.php?f=71&t=1278