AVForums South Africa

Tutorials => PC and related tutorials => Topic started by: GearSlave on April 01, 2011, 02:19:42 PM

Title: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 02:19:42 PM
So I figured I'd post a link to a little How-To that I've put together in getting it done. This is a very first rough draft, please be so kind as to give any suggestions on making it more useful. I'm hoping that there'll be enough people inspired to go and put their own NAS's together and so we should be able get better configurations together.

http://www.studiob.co.za/setupnas.html (http://www.studiob.co.za/setupnas.html)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: alternativeroute on April 01, 2011, 02:50:38 PM
Nice guide... although I must say that 'CLI' kinda puts me off... Then again without the overhead of a GUI the machine should be pretty fast...

What hardware are you using? Can I bring my ol' 486 down from the cupboard to give it a go?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: fdlsys on April 01, 2011, 03:03:49 PM
Nice work mast'a! Thanks for this, it'll sure help quite a few people.

If I may ask - what exactly put you off FreeNAS?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 03:09:12 PM
Can I bring my ol' 486 down from the cupboard to give it a go?
Hehe, that might be a little optimistic ;D

The big reason for having it CLI based is to limit bloat and overhead. I'd imagine there'd also be some benefit in power consumption. What makes Ubuntu Server better than, say, FreeNAS is that you have infinite flexibility. Yes, it's not as pretty or straightforward, but once you can copy what someone else did, it should do much easier. Another thing that irked me with FreeNAS was that you were buggered with bleeding edge hardware. Because FreeNAS was a generation behind on BSD you were forced to use older hardware to make sure the OS supports it. With Ubuntu it'll support whatever is out there, there's no abstraction between you and the OS.

I figured this should resonate with a bunch of you here, esp those running Media streamers and squeezeboxes. This is about as frugal as you can go for an always-on solution.

For reference, I've gone for a build that'll use as little power as possible. I'm using a Celeron 430 CPU, this has a total TDP of around 40W if I'm not mistaken. When idle, the CPU draws less than half that. I still need to measure the consumption, but I think I'm at around 40W in total for the whole box. This includes the 4 2TB HDD's and 2GB of RAM. I'm still experimenting with getting the drives to spin down as well to save me that extra little bit of juice.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 03:13:31 PM
If I may ask - what exactly put you off FreeNAS?

I alluded to it above, but the hardware support is the biggest issue I had. This, and the fact that FreeNAS is now in limbo going over to FreeNAS 8. This is really a new application as everything is being re-written.

I was also having throughput issues using Realtek NICs on FreeNAS. Running Ubuntu I'm getting almost linespeed (I've seen almost 90MB/s transfers on big files)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: fdlsys on April 01, 2011, 03:17:17 PM
90Mbs! Wow!!!

Let me talk to Ara... ;)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 03:25:23 PM
90Mbs! Wow!!!

Let me talk to Ara... ;)

Yes I'm listening...  ;D Do you want FreeNAS 7, FreeNAS 8 RC4 but it is already 100% usable or do you want Ubuntu  :D

@gbyleveldt

what no ZFS and no NFS  ;)?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on April 01, 2011, 03:28:10 PM
I alluded to it above, but the hardware support is the biggest issue I had. This, and the fact that FreeNAS is now in limbo going over to FreeNAS 8. This is really a new application as everything is being re-written.

I was also having throughput issues using Realtek NICs on FreeNAS. Running Ubuntu I'm getting almost linespeed (I've seen almost 90MB/s transfers on big files)

-I can concur on the slow throughput speeds of freeNAS. Guess what I will be doing in the next couple of weeks...
Thanx for the guide Gert!!

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: fdlsys on April 01, 2011, 03:35:17 PM
Yes I'm listening...  ;D Do you want FreeNAS 7, FreeNAS 8 RC4 (mmmmhh...?) but it is already 100% usable or do you want Ubuntu  :D

@gbyleveldt

what no ZFS and no NFS  ;)?
I'll leave it to you 2 geeks to fight it out  :D :D ;D

...popcorn coming...
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 03:36:02 PM
I alluded to it above, but the hardware support is the biggest issue I had. This, and the fact that FreeNAS is now in limbo going over to FreeNAS 8. This is really a new application as everything is being re-written.

I was also having throughput issues using Realtek NICs on FreeNAS. Running Ubuntu I'm getting almost linespeed (I've seen almost 90MB/s transfers on big files)

That is copying from what to what? I must say I have never experienced any hardware problems with FreeNAS or slow throughput (maybe not as fast a Ubuntu server) but still not slow. The thing I like the most is that you can setup FreeNAS for someone and then just let it be and they can continue configuring it further without stuffing it up. Just today helped a collegue to get get going in about an hour and showed him all the options and what he can do, etc. What I do want to do though is play around with virtual machines on Ubuntu
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 03:44:25 PM
I'll leave it to you 2 geeks to fight it out  :D :D ;D

...popcorn coming...

Are you sturing  ;D... I'm just asking where is the HOWTO for ZFS and NFS. I'm sure he can quickly update it for us  ;)

The only hardware issue I ever had (and which I know about) is the realtek issue which I just avoid. For me though ease of setup and configuring is just such a big plus I have never had any speed issues. I always copy form USB drive via a computer to the NAS and there I always get 30-35MB/s which is pretty much the limitation of any USB2 device.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 03:46:34 PM
what no ZFS and no NFS  ;)?

I must be honest that I've not tried ZFS yet. I come from the bad old RAID days, so I stick with what I know. I also believe that ZFS on Ubuntu is still not on the same level as Solaris or netBSD. I will try it one day, as I like the fact that you can grow your volumes as you want.

I used to have NFS setup for the Mede8er when I ran FreeNAS as that worked better than Samba. But with Ubuntu I'm not getting these issues so haven't felt the need. Besides, NFS means little if you run a Windows network ;)

That is copying from what to what? I must say I have never experienced any hardware problems with FreeNAS or slow throughput (maybe not as fast a Ubuntu server) but still not slow.

This was a plain copy from the Ubuntu RAID5 volume to the SSD on my main machine. The poor FreeNAS performance I lay squarely at the borked Realtek NIC support in BSD 6 (and less than ideal Samba implementation on BSD).

The thing I like the most is that you can setup FreeNAS for someone and then just let it be and they can continue configuring it further without stuffing it up. Just today helped a collegue to get get going in about an hour and showed him all the options and what he can do, etc.

Yes, Ubuntu CLI is not pretty. But I vested less time into getting a purring Ubuntu box than I did with slamming my head against the wall trying to get FreeNAS to work the way I wanted. And I did run FreeNAS for over 5 months.


Title: Re: Setting up a NAS using Ubuntu Server
Post by: fdlsys on April 01, 2011, 03:49:22 PM
Are you sturing  ;D...
Dzinggg - Round-1 finished
...
Dzinggg - Round-2: ...
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 03:57:06 PM
NFS is also fine for Windows  ;). Before FreeNAS I ran NFS file shares from my Windows PC, but I mostly use it with the mede8er. ZFS on the other hand is great and that is one of the main reasons I tend to keep with FreeNAS. For me it was the opposite though. I installed FreeNAS about 7 months ago and had just left it since.

gbyleveldt do you know whether you can configure something like rSync from the Webmin console?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 05:05:35 PM
NFS is also fine for Windows  ;).

Natively? I didn't know that...

gbyleveldt do you know whether you can configure something like rSync from the Webmin console?

At what point did I give you the impression I'm an expert? :D I don't even know what rSync is :D :D :D I must admit, as I understand Linux better I find there's more things I tend to do in the CLI than using a pretty GUI. Besides, real men type, they don't click.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 05:25:43 PM
Natively? I didn't know that...

At what point did I give you the impression I'm an expert? :D I don't even know what rSync is :D :D :D I must admit, as I understand Linux better I find there's more things I tend to do in the CLI than using a pretty GUI. Besides, real men type, they don't click.

It's not "entirely" natively but it perform very well. rSync is a differential sync service that will say look evey 15 minutes to see what computer location is available and backup the information to a place you designate. It is very quick as it does a true differential backup. Well I read your link and it was done very well. Just like you would expect from an expert. Nice and easy to follow.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 06:11:52 PM
FreeNAS performance

77032055 B/s = 75,226 KB/s = 73.47MB/s
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 06:32:14 PM
Well I read your link and it was done very well. Just like you would expect from an expert. Nice and easy to follow.

I'll take that as a compliment then :)

FreeNAS performance

77032055 B/s = 75,226 KB/s = 73.47MB/s

That's pretty good actually. I never got past around 55MB/s using FreeNAS on a Realtek NIC. You using an Intel NIC? If so, which one?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 01, 2011, 07:06:34 PM
I'll take that as a compliment then :)

That's pretty good actually. I never got past around 55MB/s using FreeNAS on a Realtek NIC. You using an Intel NIC? If so, which one?


Will check the NIC and yes def. a compliment. And they thought there was going to be a fight   :D ;D
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 01, 2011, 08:30:19 PM
I'm curious - why's you use SAMBA rather than NFS?  Guess you're sharing with Windows OS' somewhere?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 01, 2011, 08:32:43 PM
Because I'm still a Linux virgin, all the desktops and laptops here run Windows.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: gavinbirss on April 04, 2011, 02:05:01 PM
gbyleveldt, interesting thread.
Only stumbled across it now...
Can RAID 5 array not rather be formatted ext4? As it should yield better performance?

Not that gbyleveldt howto is not well thought out,  a newbie might like the below TurnKey appliance more although it still needs Squeezebox server.
http://www.turnkeylinux.org/fileserver (http://www.turnkeylinux.org/fileserver)

NFS support can even be handy with ESX/i datastors... or Windows Server with Windows services for Unix (SFU) as apposed to SMB/SAMBA...
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 04, 2011, 02:12:28 PM
Thanks Gavin, that is an interesting link.

For my purposes, I was trying to stay away from any 'boutique' distributions and rather wanted to stick to something more universal. This way I'm not at the mercy of something that'll fall out of favour in future. But I'm also a bit of a propellerhead and like to tinker, another reason to do it from scratch.

I've also not spent too much time looking into ext4. I kinda stick to things I now when I know very little ;) and didn't want to risk the data on newer technologies. ext3 works for me and I've got more than enough performance, but I will look into ext4 in future as well.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 18, 2011, 06:06:12 PM
Nice guide, just installing Ubuntu Server on a 4GB memory stick plugged into the MicroServer's motherboard.  Must add, the MicroServer's a pretty nifty little package.

Quick question if I may - the SBS database is unlikely to be static for long, I'm thinking it'd be better to house it on a HDD, and guessing the easiest way to do that is to link the DB files on the memory stick to the real McCoy which one can dump in a folder of one's choosing?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 18, 2011, 06:37:17 PM
I wouldn't worry about it, to be honest. The logs are written to very frequently, you don't add music to your db that often to be of concern.

Also, with the newer USB sticks it's become superfluous really to use a RAM drive because of the wear levelling they use.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 18, 2011, 07:02:13 PM
Do lots of tag editing, also participating in a project that entails building many additional tables in SBS and generates 1000's of records. Now I think about it, the 4GB memory stick isn't going to suffice, so I'm going to have to make a plan.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 18, 2011, 08:28:50 PM
It just so happens that Cyberdyne's having a special on 16GB SSD's for R550 incl. This might just be the solution for you?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 18, 2011, 10:09:14 PM
^^^ going to see if I can get links going first.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: BWS on April 19, 2011, 07:49:46 AM
I'm in total awe of what's happening here.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 19, 2011, 08:49:25 AM
It just so happens that Cyberdyne's having a special on 16GB SSD's for R550 incl. This might just be the solution for you?
Just thinking this one through, it's not going to be an option as I've 5x2TB drives going into the Microserver.  I can either revert to using one of the drives as OS & data or I can use a symlink to point SBS's cache folder to one of the 2TB drives.

BTW, know much about LVM - planning on using it to pool all the 2TB drives as a single logical volume.  My question is, if the memory stick fails, do I need black magic & voodoo to resurrect the drive contents or wil the drives stand alone without LVM.  I'm guessing it's the latter, just haven't had a chance to do the reading yet?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 19, 2011, 09:42:59 AM
Aren't you going to be running RAID on that volume? If so, you won't need LVM. In fact, I would strongly suggest against spanning an LVM across multiple drives without any redundancy down the line. Unless I'm completely missing you here?

If your stick does fail and you re-install the os, provided you are running RAID, mdadm will be able to string all the drives back together (I've done this many times). You simply mount the volume and all your data will be there. Not too sure about a spanned LVM volume, but like I said you shouldn't span such a big volume without redundancy.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 19, 2011, 11:41:35 AM
My understanding from what I have read on LVM is that should one drive fail you need tech level beyond mortals to recover (if at all as there is a lot of varying opinions about it). So I'm with Gert on this one.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 19, 2011, 12:52:54 PM
Ok, I think a clarification is in order re how this box is to be used. Its sole purpose is to serve music & video, it's not intended to be a backup at all (though I do want to minimize inconvenience in the event of a disk failure). I have two raid5 hardware enclosures that serve only as backup and have sufficient capacity to replicate all music held on the microserver.

So, from a maximising storage capacity perspective I want to avoid raid5 and from an avoiding downtime perspective I need to steer clear of JBOD (striped or unstriped) and also LVM. If I'm not mistaken that leaves me with individually mounted drives loaded via fstab as the most pragmatic solution?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 19, 2011, 01:01:51 PM
I've not tried this myself, so I can be talking out my ass, but why don't you create a 'Music' folder in root and mount each volume separately under that? With SBS you just point it to the 'Music' folder and it'll scan all the mounted volumes under that. No LVM, no fancy pants RAID or anything.

You then setup rSync (Yes ara, I read up about it :D) to sync with your backup boxes. Personally, I'd still got for RAID5 (you'll only lose 1 drive). Compared to the time it'll take to copy all that data over in the event of failure makes the loss of 1 drive worth it to me...
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 19, 2011, 01:14:02 PM
What you're proposing re mounting to a single folder is exactly what I've in mind as the compromise. Unfortunately if I use raid5 in this instance I'm going to lack sufficient storage (hence my earlier questions about 3tb drives). Ja nee, fair to say "dis f!$ken baie musiek"
Title: Re: Setting up a NAS using Ubuntu Server
Post by: BWS on April 19, 2011, 01:53:51 PM
(you'll only lose 1 drive).

And the array can rebuild
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 19, 2011, 09:18:00 PM
LOL, I just made the most amateur mistake  :o

Opened a terminal window, ssh connection to the Microserver
Code: [Select]
sudo mkfs.ext4 /dev/sda1 All going well.  Get impatient as there are another 4 drives to deal with, open another terminal window and do the same, only this time I forget to ssh to microserver.  Thank goodness /dev/sdb1 is a bunch of old crap I've not looked at in years  :-[
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 20, 2011, 06:10:39 AM
So I ended up with /media/audiolib/disk1....5 mounted via fstab and /media/audiolib shared across the network using NFS. NAS is sold.  :)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 20, 2011, 07:18:44 AM
Excellent! Are you going to be putting a UPS on? I suppose it's not so much of an issue if you not running RAID.

As I got my Microserver, Ara convinced me to try FreeNAS again. Installation went smooth and I was up in an hour. For 3 days I messed around with FreeNAS to get my UPS working, so decided to go back to Ubuntu. Like I said when I started this guide, Ubuntu might not be the most user friendly, but it is surely more flexible than FreeNAS.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 20, 2011, 09:48:44 AM
Excellent! Are you going to be putting a UPS on? I suppose it's not so much of an issue if you not running RAID.

As I got my Microserver, Ara convinced me to try FreeNAS again. Installation went smooth and I was up in an hour. For 3 days I messed around with FreeNAS to get my UPS working, so decided to go back to Ubuntu. Like I said when I started this guide, Ubuntu might not be the most user friendly, but it is surely more flexible than FreeNAS.
I'm no linux gun - my experience is limited to having run Suse then Ubuntu on the desktop for the past 7 years or so. Having said that, I found Ubuntu server pretty easy to configure (webmin does a lot for you e.g setting up mountpoints via GUI web interface). I think it pretty much comes down to knowing which packages need to be installed (and why the nfs server isn't installed by default is a mystery to me). As soon as I've found a replacement battery for my APC I'll be attempting the UPS integration.  Definitely need UPS up before I add to the raid arrays. Funny thing that, I bought the UPS whilst in Australia, specifically because we were coming home. It's saved my RAID array bacon at least 3x with unexpected power loss.

As an aside, I wonder how many billions are spent here on power protection & security (incl. ironically lighting & electricity) because of the local situation compared with other 'normal' countries where you can take electricity & safety more or less for granted. Still, it's lekker to be home.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 20, 2011, 10:08:41 AM
Well I just love FreeNAS because of the nice interface and ease of use for most people. I'm busy building trying to build my own version of FreeNAS (64-bit) but want to try and slip in Squeezebox so that I can run 64-bit for ZFS plus Squeezebox. That is why I'm a bit slow in posting on how to setup ZFS, NFS, iScsi, etc on the other thread.

On a side node I have been running Raid5/Raid6/ZFS for the past 5 year without a battery backup or UPS. The only thing that can get damage if you write to disks is the file you are busy writting to (when the power goes off). I have had a lot of power failures without and problems.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 20, 2011, 10:20:54 AM
Is there any real advantage in running 64 bit?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 20, 2011, 10:26:51 AM
Is there any real advantage in running 64 bit?

If you use ZFS there is a huge benefit so for people that run Linux (without ZFS  ;D) there is no real benefit accept that 32-bit can only use 3.5GB of memory.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: jaxx on April 21, 2011, 03:26:35 PM
Well I just love FreeNAS because of the nice interface and ease of use for most people. I'm busy building trying to build my own version of FreeNAS (64-bit) but want to try and slip in Squeezebox so that I can run 64-bit for ZFS plus Squeezebox. That is why I'm a bit slow in posting on how to setup ZFS, NFS, iScsi, etc on the other thread.

On a side node I have been running Raid5/Raid6/ZFS for the past 5 year without a battery backup or UPS. The only thing that can get damage if you write to disks is the file you are busy writting to (when the power goes off). I have had a lot of power failures without and problems.

Hi ara,

Im also running FreeNas 7 on a Microserver - currently playing around with a single 250GB HDD for now, but plan to go 2X2TB mirrored in the not too distant future.
I was thinking of mirroring using RSYNC as an alternative to RAID, because I was under the impression that RAID would be much less tolerant of power outages. Would there be any benefit ? ( I understand the RAID is always available etc, but just wanted a simpler but more resilient alternative)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 21, 2011, 09:09:42 PM
@ ara, I'm having a few NFS issues I'm battling to resolve.  Mind dumping $ cat /etc/exports for me from your Freenas install?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 21, 2011, 10:06:46 PM
Hi ara,

Im also running FreeNas 7 on a Microserver - currently playing around with a single 250GB HDD for now, but plan to go 2X2TB mirrored in the not too distant future.
I was thinking of mirroring using RSYNC as an alternative to RAID, because I was under the impression that RAID would be much less tolerant of power outages. Would there be any benefit ? ( I understand the RAID is always available etc, but just wanted a simpler but more resilient alternative)


If you are going mirrored then go mirrored rather than rSync. Nothing wrong with going mirrored. you can setup rSync to mirror your whole drive but it will always be delayed as it run from a scheduler. The only real advantage is that you can say have 2x2TB drive that you want to use for stuff and 1x1TB for backup of important stuff then rSync makes sense. It is better for selective "mirroring".
Title: Re: Setting up a NAS using Ubuntu Server
Post by: ara on April 21, 2011, 10:09:09 PM
@ ara, I'm having a few NFS issues I'm battling to resolve.  Mind dumping $ cat /etc/exports for me from your Freenas install?


send you a pm with the details.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 22, 2011, 12:57:54 PM
Thx, I've hit a roadblock with NFS that defies logic (http://www.avforums.co.za/index.php/topic,9103.0.html).  First time I've come up against it and I cannot for the life of me find the solution.  The only thing I can think of is that NFS mounting a bunch of server drives by mounting the parent director doesn't work the way one would expect it to.  I'm going to explicitly share each drive and see if that changes anything.

Inelegantly solved.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on April 25, 2011, 07:09:43 PM
So I figured I'd post a link to a little How-To that I've put together in getting it done. This is a very first rough draft, please be so kind as to give any suggestions on making it more useful. I'm hoping that there'll be enough people inspired to go and put their own NAS's together and so we should be able get better configurations together.

http://www.studiob.co.za/SetupNas.html (http://www.studiob.co.za/SetupNas.html)

Gert, just wanted to clarify something in the guide.  Re installing power saving you include the following:
Code: [Select]
/usr/bin/test -e /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor && /bin/echo conservative > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
/usr/bin/test -e /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor && /bin/echo conservative > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
Presumably these two lines are superflous given the microserver only has two cores?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on April 25, 2011, 07:23:08 PM
Gert, just wanted to clarify something in the guide.  Re installing power saving you include the following:
Code: [Select]
/usr/bin/test -e /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor && /bin/echo conservative > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
/usr/bin/test -e /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor && /bin/echo conservative > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
Presumably these two lines are superflous given the microserver only has two cores?

Yup, you are correct. It's meant to be universal as many CPU's have maybe two cores but support virtualization (thus 4 virtual cores). It depends on how these cores are made visible to the OS, so it helps to play it safe and address more cores. As it turns out, Ubuntu 10.x has these enabled by default already, so the whole instruction set is superfluous. I actually need to make quite a bit of changes to that guide and include all the UPS stuff as well. Should have some time (read: energy) to do so the next few days.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on May 18, 2011, 12:12:18 PM
So I figured I'd post a link to a little How-To that I've put together in getting it done. This is a very first rough draft, please be so kind as to give any suggestions on making it more useful. I'm hoping that there'll be enough people inspired to go and put their own NAS's together and so we should be able get better configurations together.

http://www.studiob.co.za/SetupNas.html (http://www.studiob.co.za/SetupNas.html)

You killed the link?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on May 18, 2011, 04:28:52 PM
Grrr!!!! Damnit! I'm busy updating the website, I'll fix it up a little later. Sorry about that :-[
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on May 18, 2011, 05:42:27 PM
No biggie.  I was going to borrow from it to put together a step-by-step Ubuntu based Microserver for Squeezebox, including MusicIP integration.  It really makes for a great audio server.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on May 18, 2011, 07:23:54 PM
PM me your mail addie, I'll send you the HTML for it.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on May 31, 2011, 01:46:29 PM
This could be considered "newbie" question on this tread: Is it possible to turn Ubuntu desktop into Ubuntu server? I prefer GUI to CL, could add server add ons from software sources.
I used Ubuntu desktop in the past on dual boot with XP  when it was 8.. and 9... I think 9.04 wast the most reliable. Even considered to make it my main OS. Following this (and other treads) like idea of HP proliant microserver as home NAS for files and music.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on May 31, 2011, 01:53:43 PM
you can, it just means you carry unnecessary overhead.  Webmin gives you a GUI front-end to configuring the server, formatting, partitioning and mounting drives, configuring services etc.  So basically as soon as you've installed webmin the rest is GUI.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on May 31, 2011, 04:18:48 PM
 :) microserver on its way, found it in shop63, still for the "old" price. They supply it with 1 Gb ram, is that ok for Ubuntu server?
Decided will be brave and try CL installation ??? as per Gbyleveldt howto http://www.studiob.co.za/setupnas.html.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on May 31, 2011, 07:39:56 PM
^^^ You won't be sorry. If I can do it anyone can ;)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on May 31, 2011, 07:48:55 PM
1GB ram is fine, though personally I'd add another to have some headroom for data intensive operations.  FWIW, you don't have to use a RAID configuration unlessyou're after some redundancy in the event of a drive failure - the flipside is that you lose one drive's storage capacity off the bat to provide that redundancy.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on June 04, 2011, 12:51:18 AM
I am thinking to use 4 x WD 2TB green drives and set Raid 1 -mirroring option. Effective storage will be 4 TB but what a hek... I can always change in future if more storage is needed.
I  need reliable storage for high res music downloads, cd and dvd  rips plus all my work files. I carry with me 2 x 1 Tb notebook drives when travelling but feel permanent "non movable" storage is needed. Need to buy interactive ups for my dvi recorder  for security cameras. I could probably rearrange my cupboard to squeeze more room and place microserver near recorder so they can both share ups.
 
Microserver arrived, I need to arrive too, I am overseas right now. Once i get onto it will post results, good or bad  ;). Thank you guys for your feedback and support
Title: Re: Setting up a NAS using Ubuntu Server
Post by: LAV on June 13, 2011, 03:28:15 PM
What real impact does the choice of flash drive have on the OS performance?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on June 13, 2011, 03:59:09 PM
There should be little impact.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on June 13, 2011, 04:09:34 PM
USB read is pretty quick - make sure you gtet a fast USB stick.  Having said that I'm using an old dog and my server's up and running in no time.  Key to the server's performance is sufficient ram to enable it to do the stuff you want to use it for and minimising writes to the USB stick (lifespan).  For Squeezeboxserver you should definitely point it's data files to a hard drive.  Use a symbolic link to the hard drive and it's done.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: LAV on June 13, 2011, 04:22:43 PM
Thx guys! I have played with an entry-level and midrange Kingston (not the roadside stuff, hehe!). The midrange shows a definite performance advantage, as expected. This was just some general testing, will see what happens when I try it in the server.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on June 13, 2011, 06:28:05 PM
Thx guys! I have played with an entry-level and midrange Kingston (not the roadside stuff, hehe!). The midrange shows a definite performance advantage, as expected. This was just some general testing, will see what happens when I try it in the server.

-cannot fault Kingston - have not had any of their flash drives fail on me or anyone I know of.
-makes to stay away from Verbatim -literally blows up!!

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: shadow.clone on June 14, 2011, 08:36:35 PM
I've been following these NAS setup threads with great interest. Thanks to Rudi, I can finally get my own NAS box going. Many thanks to all the guys that documented their setups as well. Hopefully I should be able to use these guides to setup my NAS with relative ease :).
Title: Re: Setting up a NAS using Ubuntu Server
Post by: LAV on June 14, 2011, 10:01:26 PM
Ouch, OK, so we're getting there....slowly! I have installed Ubuntu server onto the Microserver (onto flash), but...how do I install apps from a local filesystem instead of from the 'Net (but wait, there's more)  ???

I have Webmin and SBS on another USB stick...my HP-UX and Unix knowledge is not nearly as much use for Ubuntu/Linux as I thought it would be...hau.

So sudo it is for root privileges...have created a mountpoint / mount dir for the external flash disk...mounted it successfully. This is going to be a long night. Me, Google and Ubuntu server.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on June 14, 2011, 10:58:51 PM
Gert's instuctions included everything necessary to install the stuff straight off the web.  sudo apt-get install <packagename>

if you've downloaded .deb packages to a memory stick you can install them using
Code: [Select]
sudo dpkg -i filename.deb
Title: Re: Setting up a NAS using Ubuntu Server
Post by: LAV on June 15, 2011, 07:30:08 AM
Gert's instuctions included everything necessary to install the stuff straight off the web. 
Aboslutely, I agree. My challenge was finding a spot close enough to my ADSL router to plug the new server into, which I could not do last night (due to some substantial "furniture rearrangment" that would otherwise be needed.)

I did  eventually try some of the "dpkg" tricks, but then (and this I remember very well from Unix  :)) the old "Dependency A needs dependency c which in turns needs D" etc. problem arose.

Plan B will kick in. I have made up a loooong UTP flylead and I'm not afraid to use it.  ;D
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 01, 2011, 03:33:02 AM
I installed Ubuntu Server 11.04 and Webmin on HP proliant microserver on 4 gb usb stick as per Gbyleveldt  howto.
Got problem accessing Webmin from remote laptop using same credentials: login and password which I set during Ubuntu Server installation. I am getting message: "login failed please try again" on webmin access window. Do I need to setup new password? If so, I would need to find directory of webmin installation - but I don't know where webmin is installed and how to access it using CLI on the server. Any help would be greatly appreciated.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 01, 2011, 09:00:52 AM
So may be the first step would be to install midnight commander and look for webmin. I new I'll have problem with cli... ;)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on July 01, 2011, 09:31:42 AM
So may be the first step would be to install midnight commander and look for webmin. I new I'll have problem with cli... ;)


you will get used to cli - but running a window manager does make life easier ;)
-I use cli to fix errors or even to install, just quicker if you know basic cli syntax in the terminal window. And remember that each distron linux is different to where the apps gets installed.
 -best advice is to google and read the man pages!!

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 01, 2011, 11:28:02 AM
Midnight commander is more file manager like old Norton commander was under dos or early ms windows. I like its functionality to show dir structure and files location. I think it can also be used as file editor to some degree.

I googled webmin password issues but none of solution worked so far. at this point I am thinking to re-install ubuntu server and start over again, perhaps with older version 10.10 first.  Also 4 gb flash drive is bit too small for os, considering future upgrades and more server options, music streaming, etc...
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on July 01, 2011, 02:59:54 PM
Midnight commander is more file manager like old Norton commander was under dos or early ms windows. I like its functionality to show dir structure and files location. I think it can also be used as file editor to some degree.

I googled webmin password issues but none of solution worked so far. at this point I am thinking to re-install ubuntu server and start over again, perhaps with older version 10.10 first.  Also 4 gb flash drive is bit too small for os, considering future upgrades and more server options, music streaming, etc...

-If you go freeNAS, you will not have a space problem and easier to configure with the web interface. I was also thinking of installing Ubuntu 11.04, but that is not the stable release, I'd suggest trying 10.10. I curently, have freeNAS 7.02 running on an old PC, so will most prolly stick to it for now, until I can acquire the "cheap" storage on special!!

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 02, 2011, 09:24:35 AM
So (http://www.avforums.co.za/index.php/topic,9990.msg119018.html#msg119018) I setup a raid 5 array (4x Seagate 2TB Green) in the HP Microserver on Ubuntu 10.10 and it's... well... a little underwhelming at the moment. Using Ubuntu's Disk Utility I get a maximum write rate of 44MB/s. It looks artificially limited because the write speed is consistent throughout the benchmark.

(http://img151.imageshack.us/img151/7984/raidt.th.png) (http://imageshack.us/photo/my-images/151/raidt.png/)

Have any of you done some tuning on your raids to speed things up?

So (http://www.avforums.co.za/index.php/topic,9990.msg119018.html#msg119018) I guess I've got a weekend of googling left but I've found this http://askubuntu.com/questions/19325/improving-mdadm-raid-6-write-speed so far.
Quote
Have you tried tuning /sys/block/mdX/md/stripe_cache_size?

According to this forum post (in Norwegian, sorry) "tuning this parameter is more essential the more disks and the faster system you have":

    On my system I get the best performance using the value 8192. If I use the default value of 256 the write performance drops 66%.

Quoting his speed for comparison:

    Disks: 8xSeagate 2TB LP (5900RPM) in mdadm RAID6 (-n 512) (stripe_size_cache=8192).

    CPU: Intel X3430 (4x2.4GHz, 8GB DDR3 ECC RAM)

    Speed: 387 MB/s sequential write, 704 MB/s sequential read, 669 random seeks per sec.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 02, 2011, 10:40:15 AM
By just increasing the stripe_cache_size to the value in the above link (8192) my max write speed has gone up to 135MB/s and read speed has staid more or less the same. I'll tweak at it some more during the weekend but this jump in write speed is pretty impressive.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 02, 2011, 11:58:35 AM
-If you go freeNAS, you will not have a space problem and easier to configure with the web interface. I was also thinking of installing Ubuntu 11.04, but that is not the stable release, I'd suggest trying 10.10. I currently, have freeNAS 7.02 running on an old PC, so will most prolly stick to it for now, until I can acquire the "cheap" storage on special!!

:)

 Freenas 7.2 is much easier  :). I was able to set up Freenas in few hours but so far but I have very slow transfer speeds if I were using 4 x flash drives not 4x 2Tb Sata3 WDC hard drives. Got to sort this out. Still didn't give up on Ubuntu server 10.10  which I would like to have it running from 16 Gb Kingston G3 flash.
Everything worked brilliantly as per Master Gbyleveldt Howto until it came to Grub installation. I suspect this was because of older 11.04 server installation on this flash which weren't overridden properly by  new 10.10 install. Got to use killdisk to override flash with zeros (at least mbr area) and start over again. Got whole weekend. :) unless my wife decides otherwise  >:(.
Computers (and related things) are The Only recognized Black Arts known to human kind, don't you think ;D



Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 03, 2011, 06:16:09 PM
I spent a couple of hours playing with the raid this weekend and got it running pretty smoothly. The default settings in Ubuntu KILLS the speed for raid completely. I didn't try different stripe sizes since it took 27 hours to fully sync the array the first time but I did settle for a stripe cache size of 8192 since I do not have enough ram to increase it beyond that and a read ahead value of 65536. Increasing the read ahead value beyond that didn't improve the read speeds.

These benchmarks where made using bonnie++ (http://www.linux.com/archive/feature/139742) which is a very nice command line disk bench util.

Bonnie++ result prior to tuning:
(http://img6.imageshack.us/img6/1944/defaultsz.png)

After tuning:
(http://img200.imageshack.us/img200/5336/tuned.png)

What I'm interested in is the Sequential Output Block write and Sequential Input Block read. As you can see the most improvement is in the writing department which went up from 35MB/s to 100MB/s. Read speed went up from 370MB/s to 405MB/s.

After finding these tweaks separately I  found this blog that describes them on the same page:
http://randomitblog.blogspot.com/2009/10/ubuntu-raid-tweak.html

I'm currently copying my movies onto the NAS over the network and it's writing at a consistent 82.4MB/s (according to Win 7). Bmon on Ubuntu is showing peaks at 94.36MB/s at the same time.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on July 03, 2011, 06:19:38 PM
@Robert_E

-thanx for that twaeking info. Makes it easier for all of us in getting optimium performance out of our RAID 5's. Remember Windows timing a phenomenon all on its own. BTW is this tweaking with 4GB RAM?

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 03, 2011, 06:41:39 PM
That's with 1GB ram and the full gnome desktop running. It would be interesting to see what I can get out of it with more ram and a larger stripe cache size. I'm also dying to know what the effect of larger raid chunk sizes would be. I'm currently on 64K chunks but there's no way I'm going to redo the array again now just to see if a larger chunk might be an improvement.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on July 03, 2011, 06:56:01 PM
Geesh, thanks for this Robert. I'll be messing around a little more as I get some time.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 03, 2011, 07:25:31 PM
Something else I did was to format the raid in ext4 by specifying the stripe and stride width appropriate for the array.

This post has an example and a link to an online calculator
http://ubuntuforums.org/showthread.php?p=10841384#post10841384

I also did a lot of reading up on the new 'Advanced Format' harddrives and found that there are a lot of complaints on the way Western Digital drives degrade performance when you do not partition them correctly for the 4K sector sizes. The Seagate Green drives I'm using are also Advanced Format but Seagate uses something they call Smart Align on these drives that seems to work well and doesn't require user intervention.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 04, 2011, 07:19:18 PM
I've installed ubuntu server 10.10 and webmin on superfast 16 Gb corsair voyager gt. no problem with grub, installation went smoothly. Trying to access webmin interface - no chance - my wireless router Netgear DGN 2000 does not see microserver. Changing dhcp to static and vice versa in the  /etc/network/interfaces. In /etc/resolv.conf  DNS address is 192.168.0.1 which I think is correct address of Netgear router.  Trying different lan cables...no avail. Not a trace of microserver on router status screen. Has anyone experienced any problem with Netgear/microserver/ubuntu server setup?
Changing flash drive to 4 gb kingston traveller g3 with freenas and voila...freenas 7.2 works like a charm.
Where is the logic here >:(.
I guess I stay with freenas for the time being. My slow transfer speed on freenas (5000kb/s) are probably due to using wireless. When changing to wired lan (with wireless off) transfer gets better to around 12000 kb/s. These rates are reported by windows.
Are these file transfer rates  ok for home network? We have 3 computers with win 7 on wireless plus Integra STR 50.2 av receiver, multifunction HP office jet 6500A and hp microserver on wired lan connected to Netgear router.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 04, 2011, 07:57:01 PM
Try to go to http://192.168.0.1 in your browser. If the router's config login comes up then that's it's IP. If not then check on your windows machines what their gateways are with ipconfig in a console.

~12MB/s is around the max you can get on a 100Mb network but you should be getting much higher speed on a Gb lan.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 04, 2011, 09:14:46 PM
Try to go to http://192.168.0.1 in your browser. If the router's config login comes up then that's it's IP. If not then check on your windows machines what their gateways are with ipconfig in a console.

My router IP is 192.168.0.1 and I can access router  web interface. 192.168.0.1 is in microserver  /etc/resolv.conf as name server address but my router still does not recognize microserver. Microserver with ubuntu server 10.10 software is not listed under "connected devices' in router interface window

~12MB/s is around the max you can get on a 100Mb network but you should be getting much higher speed on a Gb lan.

It might pay off to invest in wireless gigabit router. It takes ages to transfer high res music files to microserver with freenas
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on July 05, 2011, 02:23:38 AM
Did you install 64 bit by any chance? For some reason with the 64 bit OS Webmin requires you to authenticate as root rather than your regular user account.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 05, 2011, 06:43:21 AM
Can you post the output of ifconfig and route here? Also can you ping anything on the network from Ubuntu?

Title: Re: Setting up a NAS using Ubuntu Server
Post by: Crankshaft on July 05, 2011, 10:04:52 AM
I'm battling to download the Ubuntu Server 10.10 iso.  Can anyone in Cape Town supply me with a disc.

Crank
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on July 05, 2011, 11:37:20 AM
I'm battling to download the Ubuntu Server 10.10 iso.  Can anyone in Cape Town supply me with a disc.

Crank

-not a problem, if you can collect -can give you freeNAS 7.03 as well.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Crankshaft on July 05, 2011, 12:31:17 PM
-not a problem, if you can collect -can give you freeNAS 7.03 as well.

Excellent.  Please PM me a contact number so we can talk.

 
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 05, 2011, 08:11:50 PM
Can you post the output of ifconfig and route here? Also can you ping anything on the network from Ubuntu?



screen printout below

********************************************************************************************************
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\chrisg>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : chrisg-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Wireless Network Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
   Physical Address. . . . . . . . . : 00-1E-64-54-D4-8D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) WiFi Link 1000 BGN
   Physical Address. . . . . . . . . : 00-1E-64-54-D4-8C
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::5ab:b058:3a98:beb9%13(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.4(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, July 05, 2011 18:14:29
   Lease Expires . . . . . . . . . . : Wednesday, July 06, 2011 18:14:29
   Default Gateway . . . . . . . . . : 192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 352329316
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-FE-5D-CD-E0-CB-4E-A3-37-6D

   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : 00-25-D3-AD-79-37
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Atheros AR8131 PCI-E Gigabit Ethernet Con
troller (NDIS 6.20)
   Physical Address. . . . . . . . . : E0-CB-4E-A3-37-6D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{9FDCF06F-4BA4-4DA1-B37C-4BA3DFC55EFA}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{79BE6694-4856-41AF-9AFE-4EC59D5597F9}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 21:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:14af:3ef2:d67a:a6b3(Pref
erred)
   Link-local IPv6 Address . . . . . : fe80::14af:3ef2:d67a:a6b3%31(Preferred)
   Default Gateway . . . . . . . . . : ::
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter 6TO4 Adapter:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable ISATAP Interface {D525492E-81A1-48E1-8DC9-7A3C79B0E302}:


   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 12:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable Microsoft 6To4 Adapter:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 11:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 13:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #5
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 14:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #6
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 15:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #7
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 16:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #8
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 17:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #9
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 18:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #10
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 19:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #11
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 20:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter #12
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Users\chrisg>
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\chrisg>route print -4
===========================================================================
Interface List
 16...00 1e 64 54 d4 8d ......Microsoft Virtual WiFi Miniport Adapter
 13...00 1e 64 54 d4 8c ......Intel(R) WiFi Link 1000 BGN
 12...00 25 d3 ad 79 37 ......Bluetooth Device (Personal Area Network)
 10...e0 cb 4e a3 37 6d ......Atheros AR8131 PCI-E Gigabit Ethernet Controller (
NDIS 6.20)
  1...........................Software Loopback Interface 1
 28...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 34...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 31...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
 15...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
 35...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
 19...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #4
 17...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #2
 18...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #3
 20...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #5
 21...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #6
 22...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #7
 23...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #8
 24...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #9
 25...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #10
 26...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #11
 27...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #12
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1      192.168.0.4     25
         127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
         127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.0.0    255.255.255.0         On-link       192.168.0.4    281
      192.168.0.4  255.255.255.255         On-link       192.168.0.4    281
   192.168.0.255  255.255.255.255         On-link       192.168.0.4    281
         224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
         224.0.0.0        240.0.0.0         On-link       192.168.0.4    281
 255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
 255.255.255.255  255.255.255.255         On-link       192.168.0.4    281
===========================================================================
Persistent Routes:
  None

C:\Users\chrisg>

from Netgear router Attached Devices screen:

 
#   IP Address          Device Name   MAC Address
1   192.168.0.2    UNKNOWN      00:09:B0:43:A4:A3    Integra av receiver
2   192.168.0.3    HP188A0B           3C:4A:92:18:8A:0B    HP multifunction
3   192.168.0.4    chrisg-PC           00:1E:64:54:D4:8C    my laptop   
4   192.168.0.5    acer-57dbddb91100:12:F0:3E:8F:BA   my daughter laptop   
5   192.168.0.6     Uriels_Corner   E0:2A:82:A7:AC:D5   my wife laptop
**********************************************************************************************************

I cannot ping from ubuntu. When pinging my laptop I am getting message "connect: network is unreachable"
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 06, 2011, 06:01:09 AM
Hi Chris,   ifconfig and route on the Ubuntu box please.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 06, 2011, 10:18:23 AM
 will try  :)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 06, 2011, 11:48:12 PM
Hi Chris,   ifconfig and route on the Ubuntu box please.

Hi Robert, as requested:

******************************************************
chrisg@ubuntu:~$ ifconfig
lo     Link encap:Local Loopback
     inet addr: 127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:580 (580.0 B)  TX bytes:580 (580.0 B)

chrisg@ubuntu:~$ route
Kernel IP routing table
Destination  Gateway      Genmask    Flags Metric Ref   Use Iface
chrisg@ubuntu:~$ ping 192.168.0.4
connect: Network is unreachable
chrisg@ubuntu:~$

*********************************************************
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 07, 2011, 06:35:46 AM
That shows there are no network interfaces running. How did you setup the network on Ubuntu? Could you post the contents of /etc/network/interfaces
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on July 07, 2011, 07:53:25 AM
^^^ are you sure the ethernet cable is properly seated on both ends?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 07, 2011, 08:37:55 AM
^^^ are you sure the ethernet cable is properly seated on both ends?

Cable is fine. I am using same cable for ubuntu and freenas

That shows there are no network interfaces running. How did you setup the network on Ubuntu? Could you post the contents of /etc/network/interfaces

****************************************************************************
# This file describes the network interfaces available on your system and how to activate them. For more information, see interfaces(5)

#loopbacknetwork interface
auto lo
iface lo inet loopback

#The primary network interfaces
auto eth0
iface eth0 inet static
192.168.0.250
255.255.255.0
192.168.0.0
192.168.0.255
192.168.0.1

********************************************************************************************
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 07, 2011, 09:32:48 AM
Here's an example of what it should look like:

http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

Quote
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 07, 2011, 09:49:01 AM
I corrected syntax for network configuration file as per server 10.04 guide:

*****************************************************************************************************
# This file describes the network interfaces available on your system and how to activate them. For more information, see interfaces(5)

#loopbacknetwork interface
auto lo
iface lo inet loopback

#The primary network interfaces
auto eth0
iface eth0 inet static
address 192.168.0.250
netmask 255.255.255.0
gateway 192.168.0.1

********************************************************************************************************
contents of /etc/resolve.conf:

namesrver 192.168.0.1

which is my Netgear router address

after reboot still no network. What I don't understand I was able to download webmin during installation so I had internet access but not now.
If I run now sudo apt-get update it gives me: temporary failure resolving 'za.archive.ubuntu.com'.

Here's an example of what it should look like:

http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/


Thanks, Robert ,  I actually had similar syntax earlier of /etc/network/interfaces then changed it. will go back and try again.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 07, 2011, 09:51:38 AM
Was the missing e in nameserver a typo or is the file like that?

Will you post the output of ifconfig and route again?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 07, 2011, 09:55:16 AM
no, it is my typo in this post. It is ok in the file
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 07, 2011, 09:59:03 AM
Was the missing e in nameserver a typo or is the file like that?

Will you post the output of ifconfig and route again?

Will do but want first to try all options from link you posted
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 07, 2011, 10:03:51 AM
  :) I am battling a little with cli and have no easy way to transfer screens images from microserver to my laptop.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 07, 2011, 10:09:22 AM
The easiest way is it to pipe the output into a file.

eg:
ifconfig > customFileName.txt

However since you don't have networking getting that file onto your windows machine is problematic unless you mount  a usb drive and copy it there.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Robert_E on July 07, 2011, 10:18:33 AM
Actually Chris, you should consider installing the Ubuntu Desktop version, I'm running 10.10 on that 1 GB Ram and it's flying.

I just used the graphical network config tool to setup my wired and wireless networks. The GUI also allows you to use VNC and TeamViewer for remote desktop viewing. The desktop version does everything the server version can do too.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on July 07, 2011, 10:23:04 AM
Actually Chris, you should consider installing the Ubuntu Desktop version, I'm running 10.10 on that 1 GB Ram and it's flying.

I just used the graphical network config tool to setup my wired and wireless networks. The GUI also allows you to use VNC and TeamViewer for remote desktop viewing. The desktop version does everything the server version can do too.

-yup much easier than messing with the cli, if you are not used to it. You can always use cli, when you get more comfortable with linux.

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: chrisg on July 07, 2011, 09:30:50 PM
Actually installing desktop version was my first thought sometime back. Right now network is working and I can access webmin interface. I will try to install Desktop 10.10 to 250 Gb hardrive  in cdrom bay over the weekend. I must admit usb installation although convenient is not always reliable in long terms. I am tempted to try dual boot: 10.10 ubuntu and freenas on the same drive. Thanks to everyone for help in particular to Robert_E for his guidance on and outside this forum.  :)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Prince on July 08, 2011, 07:22:57 AM
Actually installing desktop version was my first thought sometime back. Right now network is working and I can access webmin interface. I will try to install Desktop 10.10 to 250 Gb hardrive  in cdrom bay over the weekend. I must admit usb installation although convenient is not always reliable in long terms. I am tempted to try dual boot: 10.10 ubuntu and freenas on the same drive. Thanks to everyone for help in particular to Robert_E for his guidance on and outside this forum.  :)

-I have had reports from a friend that has done some testing, that the usb performance deteriorates over time. So, I will most prolly setup on my current freeNAS loaded 160Gb and use the 250Gb for some other purpose.

:)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: dkronie on December 28, 2011, 12:44:49 AM
I am using Ubuntu Server 10.04

I get an error/message when trying to install Squeezebox (sudo apt-get install squeezeboxserver)

The error/message (squeezebox server has no installation candidate) and I need to use logitechmediaserver

Has the software changed from [Squeezebox server] to [LogitechMedia Server] ?
or
Did I do something incorrectly ?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on December 28, 2011, 01:35:09 AM
It's changed.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on December 28, 2011, 06:05:57 AM
Yup, it has. I should actually go and redo the guide as there are many little things that has changed
Title: Re: Setting up a NAS using Ubuntu Server
Post by: LAV on December 28, 2011, 08:46:30 AM
I am using Ubuntu Server 10.04

Has the software changed from [Squeezebox server] to [LogitechMedia Server] ?
Yes, as said by the others. It is now Logitech Media Server, current version is 7.7.1 AFAIK.

Is yours a clean install?

I upgraded from SBS 7.6 to LMS 7.7.0 and then 7.7.1. The uninstallation script did not remove the original SBS startup scripts, causing me loads of fun (not!)
Title: Re: Setting up a NAS using Ubuntu Server
Post by: dkronie on December 28, 2011, 10:54:02 AM
Quote
Is yours a clean install?
Yip clean install , started it yesterday , the guide is done well ,thx

toke a chance and installed Logitech Media Server last night ,need to complete the rest today
Title: Re: Setting up a NAS using Ubuntu Server
Post by: dkronie on December 28, 2011, 05:14:33 PM
I am struggling to add a partition to the 250 gig drive , I cannot raid it because I only have the 1 x 250gig and 2gig flash drive

Should I first change my Partition format from MSDOS to Ext3 ?

SATA device A
Disk size: 232.88 GB | Make and model: ATA VB0250EAVER | Cylinders: 30401 | Partition format: MSDOS

This disk has no partitions yet.

Add primary partition.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: GearSlave on December 28, 2011, 05:22:32 PM
Should I first change my Partition format from MSDOS to Ext3 ?

Yup. It seems that drive is already partitioned incorrectly for Ubuntu (must've had an OS on it already). Delete that partition and create a native Linux one.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on December 28, 2011, 05:32:41 PM
Format it ext4
Title: Re: Setting up a NAS using Ubuntu Server
Post by: dkronie on December 28, 2011, 07:16:10 PM
Changed Partition Format from MSDOS to GPT

Disk size: 238.47 GB | Make and model: ATA VB0250EAVER | Cylinders: 30402 | Partition format: GPT

Where do i format it as ext4 ? Tried to mount as ext4 but getting error

Failed to save mount : Mount failed :

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on December 28, 2011, 08:28:12 PM
I'd remove whatever partition(s) exist on the disk and the use fdisk to repartition and format it.  If I recall correctly you can do the same from within webmin, including having the drive auto mounted at boot time.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: dkronie on December 28, 2011, 08:45:12 PM
Quote
d remove whatever partition(s) exist on the disk and the use fdisk to repartition and format it.  If I recall correctly you can do the same from within webmin, including having the drive auto mounted at boot time.
I have tried fdisk but not familiar with the commands

i will google for a  linux reference manual or something, it cannot be this difficult to partition and mount, so close but so far

Thx for the help 
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on December 28, 2011, 08:49:20 PM
Run sudo fdisk /dev/sdx where x is the drive you want to work with. Once in fdisk, m loads help to show commands.
Title: Re: Setting up a NAS using Ubuntu Server
Post by: dkronie on December 28, 2011, 09:36:24 PM
thx ,got it mounted and busy copying to the server  ;D

Liking Ubuntu more and more , any good Ubuntu book you can recommend ?
Title: Re: Setting up a NAS using Ubuntu Server
Post by: Rotten Johnny on December 28, 2011, 10:02:44 PM
Google is a great resource to find answers to specific questions. Ubuntuguide.org is a great reference for getting things done.