Showing posts with label Server. Show all posts
Showing posts with label Server. Show all posts

Tuesday, 8 March 2016

There's the right way, then there's my way.

Sometimes you just can't do things the "right" way straight off the bat.
This is a great example of that. I've been trying to get Jerry (The NAS server) working so we can share files among our LAN. Unfortunately the RAID card in there doesn't like to play nicely with *BSD so I've gone back to Linux which I know. And has drivers for the card.

Unfortunately I couldn't find an easy way to boot from the USB drive that FreeNAS was using. So I had to use a normal Hard Drive. The only one I had spare with SATA was a little 2.5" laptop drive. That is fine, except I don't have 2.5" caddys for the bays in the front and I can't see any other spots to put this. So I've attached it to the backplane and you can see to do that it couldn't be sitting right on the bottom of the tray. However if I left it like that there could be problems with dust or rodents. So I slipped a normal caddy in, lifting up the front of the drive a little to slide it under.
Hmmm, a bit sketchy, but it let me test this idea without spending money or stupid amounts of time on it.

It's in the bottom tray here, just before I boot to test this. The middle caddy has my big drive and is unplugged to make sure it doesn't cause issues. The top one is just a blanking caddy.

So sometimes you can get away with doing something without having everything perfect. So don't let the fact that it's not the best way to do something don't let it stop you from doing it.

Cheers,
Rex

Monday, 29 February 2016

In search of Xen

Apparently this is what searching for Xen looks like.

After getting the NAS box running (Although it seems to have developed some issues.) I wanted to move on to getting my other server set up and ready to go. This one will be acting as a router/firewall/proxy/all the good stuff and also as my webserver/minecraft server/all the other good stuff server. However I want to do this in such a way that when/if the time comes where I have/need to dedicate a separate machine for any of those tasks it will be fairly easy to migrate across.

To make migrations easier I am planning on running a Xen based hypervisor which will allow me to install pfsense for the router functions and a linux distro for the other server functions. However first I need to install Xen. The first way I tried to do this was by installing Xen over a Debian Jessie install to use that as dom0. This probably would've worked however it needed command line tools and that is something I'm trying to move away from. Particularly with software I don't understand.

Installing Debian was fairly easy and went like any other linux install except for one small detail. The machine didn't want to boot from the CD drive. Now it wasn't the CD. There is something funny here which means that I have to have the below abomination.
Yes, that is every drive that is connected to this machine beside the case, practically in the walkway for this room. To get it to boot from a CD basically you get the boot disk, put it in one of the CD drives, then try it, if it doesn't work keep trying to re-boot, swap drives and try putting another bootable disk in the other CD drive until it boots. Thankfully booting from the Hard Drives is reliable.

Unfortunately because of the whole command line thing I am now playing with XenServer which gives me the dom0 and the Xen install along with the XAPI interface which allows me to control the server from OpenXenManager which is written in Python and as such should run on Linux, Windows or Mac which is perfect for me.

Unfortunately there seem to be issues with that install booting as well so after I finish the last few things on Nathan's Computer I will spend some more time there and get it working.

Speaking of Nathan's computer. It is nearly ready to go, so once windows 7 has finished burning to the USB drive for installation I will be installing that and probably having some fun with benchmarks. Expect a write up of that later this week once I have finalised everything.

If you have played with hypervisors before and can see me running headlong into some giant problems please let me know so I can change course while it is still easy to do so. Alternatively if you don't wan to be hearing about my dodgy servers and would rather see some of the other cool stuff I've been working on let me know and I'll do some more posts on that.

Cheers,
Rex

Sunday, 21 February 2016

New NAS Server... Yay

My new server arrived. It is a HP Prolient DL 320S and has 12 drive bays in the front.

Unfortunately it only came with 3 drive caddies that will hold drives. There are 3 open spaces and the other 6 spaces are filled with blank things. Presumably to maintain proper airflow across all of the drives all the time. Unfortunately because of that they cannot be used for putting drives in. This means that for RAID 6  I need at least 4 Drives. Particularly if I want to keep my 2TB drive in there that I have at the moment I will need at least 6 more spaces for drives. So I need to get at least 2 more bays.

This is my precious. A 2TB SATA Hard Drive. This is really wat I have everything that I really don't want to lose on. As I said above I would like to move to a RAID 6 array for storage. However for now as long as I still have the space I can live with no redundency for now.

It boots !

It even has a GUI. Surely the first thing I have used in a while that has a GUI for system management stuff.

However the first problem I have found with the software I'm using. The GUI only shows support for Ext2. The 2TB drive has my data on it in an Ext4 partition. This is my only drive this big. Thankfully there is less than 1TB of data on it which means that I can use my external Hard Drive. Unfortunately it is currently also formatted Ext4.

So with the 2TB drive plugged into my only other computer that can plug into it, I have also connected my external drive and am reformatting the external drive.
This would be only a little bit dodgy. However apparently formatting a drive in Windows Vista takes a long time. It's been a few hours but it is still only at 20% so this will be sitting until tomorrow afternoon. Such is life.

But I have found a new home for the NAS. For now anyway.
It is on the floor but I don't think it will be a problem. It will probably be moving a fair few times yet so this won't be the last place it lives I dare say.

So the beginning for a very exciting project. But still a little way to go before I am happy with the way it is set up.

Cheers,
Rex

Wednesday, 17 February 2016

Big Changes in my serving

No I haven't re-built the kitchen. For the last 18 or so months I have been running a number of servers from this:
It doesn't look like much. And in terms of "real" professional servers it isn't. However it has been more than good enough for me. Unfortunately there are some things I am not really that happy about. Recently I have become very fond of Arch Linux and have been enjoying some of it's features more than the Debian that is installed on this server. I know Debian is probably better for servers, but I'm just doing this at home for fun. So I'll do what I want.

The other main thing I haven't been so happy about is storage.
This is what the case looked like after I opened it up for the 1st time in 18 months. Probably a record for one of my computers. As you can see, arranged across the bottom is my network storage array. A jumble of random drives that has very little rhyme or reason, other than I could get my hands on them for the right price.

What they look like out of the case.

This is going to be changing soon. I have bought a case on ebay that will hopefully work as a NAS box. This will be my next big server thing to do. Also depending on how I'm going, this jumble of random drives will probably be dispersed somewhat and the old 20GB drives either retired from server, or relegated to use as boot drives with regular backups. Probably boot disks.

Another thing I will be probably looking at is airflow. Mainly with regards to dust. The house I live in is not new and has had plenty of time to start producing dust. Also this house doesn't have a dedicated server room with filtered AC. Bummer. This however is nothing new and hopefully I can reduce the amount of dust in this case (and the new one) with some slightly (?) informed planning of case ventilation.

I haven't decided on what software I'm going to run on the NAS box yet. That will have to wait until I get it. But I am starting to realise that the hodge podge of HDDs and no actual backup is really, really quite bad. So I dare say that both of those things will change in the future, even if I keep them like this for now.

However if you do happen to have a bunch of reasonable sized HDDs burning a hole in your pocket I know a quiet place where they can go to stay.

Cheers,
Rex

Saturday, 28 November 2015

Network Sharing - Samba, Linux and Macs

Just a quick one today. I've been having issues with my samba server here at home recently and I finally had to fix it today.

Problem:What was happening was my computers running Linux would be able to connect to the smb shares on my server and I have put my movie collection onto it that way. However my girlfriend's Mac could get onto the shares but could only paste small files. Nowhere near big enough for a movie.

What was happening is samba was sharing /media which has /media/part{1,2} in it which are both mounts to large hard drives that the movies are on. I have also set up the root partition to be very small and it has relatively little space left; which is fine because almost everything else is on other partitions.

When you tried to copy across a movie on the Mac it would say there was no space left on the device and it can't copy the files. When I turned on the status bar on finder I saw that no matter what folder I was in the space it was reporting free was small, about what df -h said was free on the server's root.

The solution? Share /media/part1 & /media/part2 separately so that the free space is reported correctly.

Why:It seems that samba only shares the free space for the root of the share. Unfortunately in this situation because there were partitions mounted within the share the free space was wrong. This wasn't an issue with my linux computers because they seem to just copy until an error is given, rather then testing for free space first. The problem with the Mac system is that because it seems to be testing to make sure it can copy first and it was seeing the incorrect size it just gave up at the beginning.

Sorry for the wordy post today. Hopefully this will help someone. Probably even me if I remember to look this up here.

Cheers,
Rex