Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Updated: My adventures with FreeBSD as a server
New Posts  All Forums:Forum Nav:

Updated: My adventures with FreeBSD as a server - Page 7

post #61 of 87
Quote:
Originally Posted by T D View Post

Oh, I see. My intention of the status script is only to emulate the realtime checksumming - to an extent.
I guess I could check for an existing process. Kinda sucks that status hangs if there are errors, which is the whole point of using it!
It doesn't always hang, only under extreme circumstances (I've had it hang when my pool was severely corrupted and my SATA controller was broken so kept randomly dropping HDDs. Yet amazingly I was still able to recover all my data (and easily too). Any other file system / software RAID would have just dropped the whole file system.
Quote:
Originally Posted by T D View Post

But there are more immediate problems. I can't seem to resolve any hostnames on my box (finally got the hardware), even itself! Ping times out. I can ping direct IPs on both the LAN and internet. DHCP is off and I put the nameservers in resolv.conf (OpenDNS) so why wouldn't this work? I imagine Windows might have an issue with the different ways it resolves names (though I've turned off NetBIOS) but the BSD box can't ping itself?
Names are typically resolved via /etc/hosts then DNS (on both Windows and *nix - NetBIOS isn't really used even on Windows these days). So I'd set your primary DNS to be your router first then have the supplementary IPs being your ISP DNS (though you likely wont need to do this as your router "should" forward you to the other DNS servers as a matter of principle)

Ideally you hostname and static IP should also be in your /etc/hosts.
post #62 of 87
Quote:
Originally Posted by T D View Post

When you get it running though, how does it run? Getting it set up isn't an issue for me if it can be done. I have nothing to do for 3 weeks until I go back to university anyway tongue.gif

Personally I haven't tried it solely for the reason that it pretty much requires FUSE to be compatible OOTB with todays Linux distros, and I don't want to jump through hoops just to get my rootfs working.

Quote:
Originally Posted by Plan9 View Post

I couldn't disagree more.
ZFS and FreeBSD are both real easy. It's not any more hassle than getting BtrFS running. And your "acceptable level" is just a passive remark that really doesn't help quantify your statement at all. Why wouldn't ZFS be "acceptable" in FreeBSD? Or even FUSE? What benchmark or measure are you judging acceptability against?
When you actually look at the technology, BtrFS is still behind ZFS in terms of features and stability (albeit not that far behind these days). BtrFS also not had nearly as much testing in enterprise set ups as ZFS has - in fact BtrFS is still classed as beta where as ZFS is proven technology.
So I really wouldn't dismiss FreeBSD so readily. However if the question was purely about ZFoL, then BtrFS does become a more viable alternative. But again, it's still anything but as clear cut as you suggested. I'd certainly want to compare ZFS-FUSE permanence against native ZFS on FreeBSD benchmarks to gauge the negative impact FUSE has (as there's definitely some mixed messages being released about ZFS-FUSE) before even considering BtrFS.
If you just want a ZFS-like file system for a desktop OS, then BtrFS would be fine. But file servers need a lot more analysis as you're depending your data on them.

No, you're totally misunderstanding me. ZFS is awesome, I like the concept on it, but ZFoL is probably not the way to go - especially with the advancements made in BTRFS lately. IMHO, if you want to try ZFS, use FreeBSD. It works on Linux, very well, just not as a root drive.
The performance is questionable though - FUSE is - unavoidably by design - slow.
#well
(19 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H XFX Radeon HD 6950 Corsair CMX8GX3M2A2000C9 
Hard DriveHard DriveOptical DriveCooling
Samsung EVO 840 Hitachi HDS722020ALA330 Generic DVD±RW Burner Noctua NH-D14 
OSMonitorMonitorKeyboard
Windows 8.1 Dell U2711 LG W2453 Ducky DK9008 Overclock.net Edition, Cherry MX B... 
PowerCaseMouseMouse Pad
Corsair TX850 Antec Three Hundred Corsair Raptor M40 QPAD HeatoN M 
AudioAudioAudio
E-MU Tracker|pre Beyerdynamic DT-770 250 Ohm AntLion ModMIc 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
#well
(19 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H XFX Radeon HD 6950 Corsair CMX8GX3M2A2000C9 
Hard DriveHard DriveOptical DriveCooling
Samsung EVO 840 Hitachi HDS722020ALA330 Generic DVD±RW Burner Noctua NH-D14 
OSMonitorMonitorKeyboard
Windows 8.1 Dell U2711 LG W2453 Ducky DK9008 Overclock.net Edition, Cherry MX B... 
PowerCaseMouseMouse Pad
Corsair TX850 Antec Three Hundred Corsair Raptor M40 QPAD HeatoN M 
AudioAudioAudio
E-MU Tracker|pre Beyerdynamic DT-770 250 Ohm AntLion ModMIc 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
post #63 of 87
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

It doesn't always hang, only under extreme circumstances (I've had it hang when my pool was severely corrupted and my SATA controller was broken so kept randomly dropping HDDs. Yet amazingly I was still able to recover all my data (and easily too). Any other file system / software RAID would have just dropped the whole file system.
Names are typically resolved via /etc/hosts then DNS (on both Windows and *nix - NetBIOS isn't really used even on Windows these days). So I'd set your primary DNS to be your router first then have the supplementary IPs being your ISP DNS (though you likely wont need to do this as your router "should" forward you to the other DNS servers as a matter of principle)
Ideally you hostname and static IP should also be in your /etc/hosts.

Adding itself to hosts lets me ping itself by hostname but even adding my router to resolv.conf doesn't work for the other computers on the LAN. It looks like this
Code:
nameserver 192.168.0.1
nameserver 208.67.222.222

I want this box to use a static IP so I have to set the nameservers manually.

And also pinging the server from the other computers by hostname doesn't work either :S
Edited by T D - 9/3/12 at 4:52am
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
post #64 of 87
Quote:
Originally Posted by T D View Post

Adding itself to hosts lets me ping itself by hostname
Indeed. However some daemons like to have hostname resolved like that.
Quote:
Originally Posted by T D View Post

but even adding my router to resolv.conf doesn't work for the other computers on the LAN.
...
And also pinging the server from the other computers by hostname doesn't work either :S
They wont do. All you're doing is changing how FreeBSD resolves it's lookups, not how other PCs look up FreeBSD. For that, you'll have look into how those computer resolve requested domain names. You may need to configure FreeBSD to broadcast it's name to your router (quite how that's done I don't know, but you shouldn't need to use WINS these )

To be honest, this is usually all defined at the name server level - which, in this instance, would be your router. So while you can get FreeBSD to broadcast it's name, it might be easier to run your server on DHCP and have the static IP reservation defined in your router (typically by MAC address).
post #65 of 87
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Indeed. However some daemons like to have hostname resolved like that.
They wont do. All you're doing is changing how FreeBSD resolves it's lookups, not how other PCs look up FreeBSD. For that, you'll have look into how those computer resolve requested domain names. You may need to configure FreeBSD to broadcast it's name to your router (quite how that's done I don't know, but you shouldn't need to use WINS these )
To be honest, this is usually all defined at the name server level - which, in this instance, would be your router. So while you can get FreeBSD to broadcast it's name, it might be easier to run your server on DHCP and have the static IP reservation defined in your router (typically by MAC address).

I meant that even though I've added my router to resolv.conf, I can't ping other hostnames from my BSD box.
I removed all network info and configured it to use DHCP but it still won't resolve Windows hostnames, or itself. I don't get how I can allow it to resolve itself via hosts if its IP can change? I'll look into my router, there is a section on address reservation.
My Windows machines definitely aren't using NetBIOS over TCP/IP and I don't think they're using WINS as there are no WINS servers set up. But that's the extent of what I know about this.

Never liked networking rolleyes.gif

Edit: OK I've given the MAC on my server a reserved IP in the router and it gets assigned successfully. But it still won't resolve any hosts on the LAN! I don't even know if what you told me was supposed to fix that problem or something else tongue.gif
Edited by T D - 9/3/12 at 7:02am
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
post #66 of 87
Quote:
Originally Posted by T D View Post

I meant that even though I've added my router to resolv.conf, I can't ping other hostnames from my BSD box.
I removed all network info and configured it to use DHCP but it still won't resolve Windows hostnames, or itself. I don't get how I can allow it to resolve itself via hosts if its IP can change?
My Windows machines definitely aren't using NetBIOS over TCP/IP and I don't think they're using WINS as there are no WINS servers set up. But that's the extent of what I know about this.
Never liked networking rolleyes.gif

Your router may not support addressing like that then. A quick check would be: can you connect to other Windows PCs via machine name?

I have noticed before about how Linux and UNIX sometimes don't register internal name servers properly. In fact I have two FreeBSD servers at home and one does work by machine names and the other does not. But as 99% of the work I do is against static IPs anyway, I've never bothered to investigate the issue further (just lazily thrown an alias into the hosts file)

Does your router support fixed LAN IPs (it might be in the DHCP settings)? If so, you can fix all your critical PCs to their currently assigned IP on the router. This will mean that although their IPs are not "static" in the strictest sense of the term, the DHCP server (aka your router) will always dish out the same IP to them each time. So the net result is you'll have static IPs (this is what I do for home networks as it simplifies the network set up - work place LANs are a different matter)

Then once you have your IPs fixed, you can proceed to enter them into your hosts file.

[edit]
Meant to add: WINS is part of the the NetBIOS protocol (namely the name resolution part) and has since been superseded by DNS.
post #67 of 87
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Your router may not support addressing like that then. A quick check would be: can you connect to other Windows PCs via machine name?
I have noticed before about how Linux and UNIX sometimes don't register internal name servers properly. In fact I have two FreeBSD servers at home and one does work by machine names and the other does not. But as 99% of the work I do is against static IPs anyway, I've never bothered to investigate the issue further (just lazily thrown an alias into the hosts file)
Does your router support fixed LAN IPs (it might be in the DHCP settings)? If so, you can fix all your critical PCs to their currently assigned IP on the router. This will mean that although their IPs are not "static" in the strictest sense of the term, the DHCP server (aka your router) will always dish out the same IP to them each time. So the net result is you'll have static IPs (this is what I do for home networks as it simplifies the network set up - work place LANs are a different matter)
Then once you have your IPs fixed, you can proceed to enter them into your hosts file.
[edit]
Meant to add: WINS is part of the the NetBIOS protocol (namely the name resolution part) and has since been superseded by DNS.

My Windows machines have no problems communicating via machine names. It's just the BSD box that doesn't seem to like it.

Now the server isn't getting assigned an IPv4 address (inet 0.0.0.0) and it's broadcasting something stupid like 255.255.255.255. I have no idea what I changed to cause this. Back to the drawing board...

Edit: a reboot solved that. Why did a reboot solve what /etc/rc.d/netif restart couldn't? Time to get stuff in hosts.
Edited by T D - 9/3/12 at 8:06am
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
post #68 of 87
Thread Starter 
Having trouble mounting my Windows shares now -_- in my hosts, I have mappings for ::1 and 127.0.0.1, and also 192.168.0.9 HTPC. So my samba mount command looks like
mount_smbfs -I 192.168.0.9 //username@HTPC/sharename /mnt/sharename

But I get unable to open connection. What could cause this?
Ping htpc and 192.168.0.9 works.

Also tried mount_smbfs -I HTPC //username@blah/sharename /mnt/sharename

Now it just prints "recursive lock for object 1", whatever that means.
Edited by T D - 9/3/12 at 9:55am
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
post #69 of 87
Quote:
Originally Posted by T D View Post

Having trouble mounting my Windows shares now -_- in my hosts, I have mappings for ::1 and 127.0.0.1, and also 192.168.0.9 HTPC. So my samba mount command looks like
mount_smbfs -I 192.168.0.9 //username@HTPC/sharename /mnt/sharename
But I get unable to open connection. What could cause this?
Ping htpc and 192.168.0.9 works.
Also tried mount_smbfs -I HTPC //username@blah/sharename /mnt/sharename
Now it just prints "recursive lock for object 1", whatever that means.
You don't want the // preceding your user name
post #70 of 87
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

You don't want the // preceding your user name

Now it prints "no server name specified". All the examples I can find have // preceding the username anyway. Any other ideas? Take another rep smile.gif
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
Bob
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0GHz (1.2750V - LLC off, 200x20) Asus P6X58D-E PowerColor HD5770 2x2GB G.Skill DDR3 Ripjaw 12800 
Hard DriveOptical DriveOSMonitor
500GB 7200.11, 2x1TB Samsung F1 Pioneer DVR-218BK Windows 7 Pro x64 OEM Samsung SM2232BW + Acer AL1714 
KeyboardPowerCaseMouse
MS Curve 2000 Corsair 850HX CM HAF 932 Logitech G5 
Mouse Pad
Artsnow custom pad 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Updated: My adventures with FreeBSD as a server