Archive for September, 2011

Open Solaris Studies

So i had made it through the history section while fighting sleep and found a command that is fairly useful to use. Its one of those, “Why didnt I know about this command”. I am familiar with the history command but i have never used the “!!” or “!<#>” to reuse a command from history. Its pretty cool actually. Simple and sweet. Here is an example:

stor0:~$ history
1  sudo -i
2  exit
3  sudo -i
4  sudo -i
5  date
6  history
7  history 5
8  history 1
9  history 1
10  history 1!
11  exit
12  history

stor0:~$ !1
sudo -i
Password:

So look at the output of the history command. The first entry is “sudo -i” which drops me into the root user shell. Well instead of typing that LOOOOOONNGGGG command out I can just reuse it by typing “!1″. This may seen like a trivial matter but what till u have a rsync command and your in front of a console screen with no mouse support. Yeah just wait. Alternatively you can use the CTRL+r, which is the reverse search option and that may help if supported and the command is cached and of course the favored up/down arrows. OK back to reading.

There will always be pain :( The latest project in getting the rack back to its former computing glory we have the need for a new and revitalized storage server. We PLANNED to use OpenFiler to provide Fibre Channel targets to our servers. Well before we could even do that we had to install all the new parts and cables then configure the RAID card with some of our 1.5TB drives we had laying around. Well here comes the first issue.

When trying to boot the system the RAID card cant get past the kernel loading phase and just sat there. After troubleshooting, researching, reloading the firmware using a USB floppy disk drive, yeah i went there, no freak’n luck. Then I decide to remove the cables. It works! So added the drives back to the system, connect the cables, and reboot. Were back to square 1 DAM! I know this card, an Adaptec 31605, can utilize these 1.5s because they use to be in a R6 volume using the very same card. Then i thought about what I had to do to get them to work. The card has the latest firmware but guess what. The sweet ass Dell 2950 Gen II system I have doesn’t have the latest BIOS or backplane firmware :( So i guess were using 500GB drives. Since i don’t feel like updating the firmware by using Win-blows and they didn’t find a floppy/flash upgrade option I decided to continue on with the build by installing Openfiler.

Aighty now were cooking. We got the system installed, LACP configured, were pinging in and out…yeah were good baby. OK lets take a look around here and get FC Targets configured. We drop to the command shell and check out the forums on how the hell to do this….QLogic nah I got an Emulex PCI-E card…what there is no support for Emulex……in Openfiler……IM GOING TO BED!

Well what can we do now. I look around and I have used ZFS before as you may know from some of my previous posts.  I have looked into OpenSOlaris but didn’t feel like learning a new OS. WELL guess what, since im not buying a QLogic card right now and I want this bad boy up and storing stuff. I guess its high time to crack open a book or two. Yeah kI know reading a book is not the shortest route but think of the benefits. Plus, fuck Windows. So I snagged a copy of the Open Indiana and the Open Solaris Bible after I read the first page I started to write this entry. I’m so focused right now (sarcasm). I will get through it and practice as I go. If anything this is good for me. I will learn an Enterprise OS environment just in case I need it in the future. Now I gotta learn a new OS’ networking setup all over again. Also I installed the server edition…NO GUI BABY!!!!!!

Over the roof and through the walls to your PC we go….

Well we have been doing a lot of work in Miami these past few weeks for a customer who runs quite a few childern’s schools. We are actively getting two of them up to par as far as their requested needs are concerned for their network. With cabling and L2 planning we have our work cut out for us. The hardest thing about retrofitting is walls and budget.

For this new project we have to setup wifi across two buildings. While avoiding digging, concrete cutting, and keeping patching to a minimum. This will allow the customer to stay on the low end of pricing and give them what they need. Its really small in comparison to some work I have seen but the walls are so thick it presents a new challenge. A gain antenna will most definitely be needed to get enough signal through the wall. I don’t want a cable strung across the roof of the buildings either. So here is the plan. We get a simple router with a outside grade antenna that will amplify the signal and give us the power to push data through the walls. I have already used an old Linksys B router and my laptop to test. I set the router up in the main building on the right and pinged from the farthest class room in the left building with decent delay in pings but with a horrible signal that would surely be affected by a gust of wind. Yet enough to at least view a simple web page is my thought. Now to make it even better I am thinking (as I write this) that we can use an antenna on the 5GHz spectrum to avoid microwave signals and some power line interference if any in the area. Plus there is an airport near by which may interfere. My hope is that it also survive possible rain storms….hoping, though I have expressed this to the customer as a cause of disruption and they understand.

With my research thus far i fing that 5GHz routers are priced high and the antennas out there are mostly for the 2,4GHz band. This is fine though cause I can use the old faithful WRTG54L routers that everyone knows and loves.  Planning out this branch though does make me think about getting all sites connected. So far i ahve been to three of their facilities and I see they have 6. Possible Site to Site VPN tunnels that leverage their current DSL or possible PTP connections to a central hub. The latter is wishful thinking and not really needed. Though it doesn’t need so much processing power to accomplish. The cost is still high it just cooler for centralized services like backups.

Im thinking that with this setup another antennae could be put on the opposite side of the main building, if needed, to give internet access to the play ground which stretches to the length of a football field. Again, if needed.

 

 

Rookie Mistake!

OK CLASS! Can anyone tell me whats wrong with this config.....
Look closely,
Cause I sure as hell didn't.
auto bond0.3
iface bond0.3 inet static
        address 172.18.3.8
        netmask 255.255.255.0
        #gateway 172.18.3.3
        vlan-raw-device bond0
Okay I will narrow it down.
#gateway 172.18.3.3
Now what will make local network connectivity possible but wont allow you
to reach remote networks.
A. Mac address tables in a switch not showing your IP until power cycled..
   maybe
B. Improper bond (link aggregation) setup in config file...
   yeah that could probably do it.
C. FREAKING LEAVING THE GATEWAY PARAMETER COMMENTED OUT!!!!!....
   YEAH THAT'LL FREAKING REALLY DO IT!
I went through it for a bit trying to figure this one out. I learned
quite a bit and I was able to recall my recent CCENT studies with
this problem also. Which made me feel kinda good. This is for my clone
server which i dusted off for a project that needs to be completed and
for future projects also if they come about. I added a two more interfaces
to the bond0 interface and changed the interface's IP to my current
network setup. I thought all was good till i just could not get access 
when doing updates. It took a bit of back and forth but I just sat down 
and read through the conf and there it was. The darn gateway option was 
commented out. SIGH! Well i did some pretty good trouble shooting and 
sharpened my deduction skills like a regular slueth, "I say my dear 
Watson I think I figured this one out." Needless to say this was a rookie 
mistake and should have been apparent when I saw this.
root@clone0:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.18.3.0      *               255.255.255.0   U     0      0        0 bond0.3
192.168.1.0     *               255.255.255.0   U     0      0        0 bond0.6
No default route. SIGH...again. Sometimes you get caught up in the more 
advance stuff and forget about the fundamentals. Not only layer 1 but 
configuration. Here is how its suppose to look.
root@clone0:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.18.3.0      *               255.255.255.0   U     0      0        0 bond0.3
192.168.1.0     *               255.255.255.0   U     0      0        0 bond0.6
default         172.18.3.3      0.0.0.0         UG    100    0        0 bond0.3
Either way the box is back up and ready to image and restore. Once I 
finish the original I will clone the system accordingly. The clone server 
is an older HP server with 10k and 15k U320 SCSI drives in RAID 10. So it 
can do imaging/restoring pretty fast even when running the array at only 
10k since that's the slowest disk speed. It also has 4Gb of ECC RAM and 
two Dual core Intel Xeon Processors running at 2.4 GHz. I have tested it 
before and it does its job very well. I like re-purposing older servers 
and giving them new task. Sometimes these waste machines produces by not 
being recycled or re-purposed doesn't make sense.
Aight time for some sleep I will have nightmares about #s now. :(

So we finally sat down and began getting some real documentation done instead of  the old, “Um i think I emailed it to you” question/statement. We are using Foswiki which is the open source fork of TWiki. It was painful to start up because I don’t read manuals the first time around and I like to enable every plug-in and feature till I find out that caching will always show old content….yeah that had me pulling my hair out.  Either way its up and functional and is looking good so far. Of course i cant really show you because its some private info in there but trust me its pretty cool.

We also began documenting IP addresses for our personal, production, and customer networks. We use GestioIP for this which has some really nice built in tools for IP address subnetting, VLAN assignments, block usage/splitting, and an import tool for larger networks. Its great so far.

With these two tools we can do a lot better in device and overall network management. So next time I get the question, “hey whats that customer IP again?”  I will gladly answer “Go look that shit up!”

 

FosWiki

GestioIP