Showing posts with label OpenSolaris. Show all posts
Showing posts with label OpenSolaris. Show all posts

Friday, August 21, 2009

Linux + ZFS = Nexenta

I stumbled across Nexenta, another OS that runs ZFS but behaves like Linux. I thought OpenSolaris looked and behaved like linux, but hey, what do I know? Hoping it might have a more user friendlier approach to ZFS, I think I might give it a try. The community that supports Nexenta seems to be geared a little more to beginners, something that most Linux users are used to. So I am continuing the epic quest to set up a hassle free network access storage server.

Friday, August 14, 2009

ZFS Fail

So after a reinstall of OpenSolaris and starting from scratch and carefully going through the newly learned steps of setting up my home file server, I finally got it working to the stage when the server had a ZFS pool and could share it over the network and I could read and write to it. I recorded the terminal commands that I used to get it going in a Google Doc if anyone wants to try if for themselves.

However, every time I tried to copy anything big to it, it would disappear off the network until it was rebooted. Not sure what is causing this and the OpenSolaris community aren't newbie friendly. In fact, they're not helpful at all. The problem could be a hardware fault, but I don't know my way around OpenSolaris well enough to determine that and operating systems that require terminal commands to get anything done just seems so... '80's...

I'm not giving up just yet though. Today, Uncle Phil is donating his old PC to the cause. It's a PC that he doesn't use anymore because he now has an iMac, something that's been happening a bit in our circle of friends lately. Phil's old PC isn't shabby at all, with a Core2Duo processor and plenty of RAM so it'll be interesting if this makes a difference.

Here we go again!

Thursday, July 30, 2009

A Win Followed By Another Problem

Yay! I googled and googled and googled and eventually found a few blogs with useful information and guides to get Windows to see OpenSolaris shares, and if Windows can do it, the Mac can.

If you've happened on this page looking for the answer I found, I apologize. It was like 4am when I got it working and I went to sleep pretty much immediately but I'll post a few pages from the history that I think were helpful.... I was pretty tired.

A good place to start if you're just considering using OpenSolaris for NAS (network access storage)
Simons Blog:A Home Fileserver using ZFS
I started following the guide at:
Corner 11:Adventures in Opensolaris - Build a ZFS pool as a network share
but he got a bit vague on a couple of steps but got me most of the way.
This one cleared up the steps I was having problems with.

Anyway, the point is that after yet another fresh install of OpenSolaris and lots of reading and typing terminal commands, I can now access my ZFS File server from my Mac. That's what the "Yay!" was about.

I've only been playing with OpenSolaris for about a week now in it's painfully obvious to me that I still have a lot to learn. A fact that hit home hard when I tried to copy something onto the file server. I couldn't. In fact, I couldn't even copy a file to the ZFS volume from OpenSolaris. So my next challenge is to decipher folder permissions. I think I have a clue... it's starts with chmod.

I'm sure there's a whole lot more reading and probably some lengthy terminal sessions involved... Mick suggested that I visit a OpenSolaris IRC Chat Room, a suggestion I took about a day before I received. OpenSolaris comes with Pidgin - a multi service chat client (like MSN or GoogleTalk but more useful) and checking out the IRC channel (#opensolaris at Freenode.net) was what I was doing while googling.

Is it too soon to say googled with a little 'g'?

I like to scope an IRC channel before I blurt out a question - especially a channel full of techies. I've worked as a computer tech so I know what it's like to be asked stupid questions - often the same questions from different people, and some tech-type channels have rules like "Don't ask questions that are already answered in our FAQ" and "No Noobs". So I said "hi" when I entered and sat back to see if I could understand what everyone was saying, to see if I had learned enough to jump into a conversation.

Considering OpenSolaris is kind of like the 'in-development-bleeding-edge' version of Sun Solaris, it wasn't surprising that these guys were talking like programmers and developers, not a newbie helpline.

Still, I might ask them about chmod... nah!

Wednesday, July 29, 2009

Foray into ZFS

So, as I was saying, I've installed OpenSolaris onto the old rig, which probably can't be called 'old' anymore because it's got a new motherboard, new RAM and a new CPU. I've discovered some things about OpenSolaris. It's a lot like Linux. It uses the Gnome GUI. Getting ZFS to work requires use of Terminal which is like a DOS box, only more useful, but is easy enough after a few online tutorials.

The PC has four hard drives all of different sizes. The first one accommodates the OpenSolaris install. The other three are all grouped together into a single partition that is both striped and mirrored and is also expandable! In layman's terms, it means this - those of you with large video/music/photo collections will be able to appreciate this: You have a folder shared across your network that any computer can access. It contains all your media. These are quite common now and are usually referred to as a Media Server or Home File Server. Normally when you run out of space on your hard drive you have a couple of options - delete something to make room or add another hard drive, the latter option being the one we're interested in. When you add another hard drive, you format it and share it as another folder on the network meaning you'll end up with folders like MOVIES1, MOVIES2, MUSIC.A-J, MUSIC.K-Z, etc... and that's just annoying. The ZFS feature in OpenSolaris allows you to "join" your hard drives together so that when you add another hard drive it simply creates more space on the partition. The hard drives don't even need to be the same size! On top of that, ZFS can sustain a hard drive failure, so if you have one of your hard disks crash, OpenSolaris will be able to rebuild the data that was stored on that crashed disk when you replace it with a new one!

This is very impressive technology, which is why I used so many exclamation marks. However, while there is a lot of documentation online on how to set up OpenSolaris and ZFS, getting it to play nice with my Macs over the network is insanely difficult and complicated.

OpenSolaris comes from a *nix background so it shares certain traits with UNIX, Linux and even OS X in some ways, but this very same *nix background brings with it a veritable Fort Knox of security features with dozens of User levels and Groups, and the vast majority of configuration options can only be accessed through a Terminal window using long and complicated commands. Needless to say, it's a steep learning curve for someone who hasn't had experience with Linux style operating systems and Joe Average can just forget about it.

It's a shame that getting network shares working on OpenSolaris isn't easier. Everything else was pretty much configured automatically. The network is there and configured, I can access the Internet with Firefox and can ping the other computers on the network. It came bundled with a few applications like Firefox and Thunderbird for e-mail, a package installer to get more software, a media player and everything on OpenSolaris works quite well... until you want to configure something on the system. Then it's that damn Terminal window again...

Although I've had it installed and running with ZFS for three days now, I've still yet to browse a single network share on the new OpenSolaris box, from either Windows or Mac.

Back to the forums I guess...

Saturday, July 25, 2009

Super User!

I just discovered the # su command! All doors have opened!

OpenSolaris

I'm installing OpenSolaris, a free UNIX operating system on my old windows machine today. I'm hoping to turn it into a network file server and try out ZFS. This could be the fate of Blackpearl.