Site hosted by Angelfire.com: Build your free website today!
« December 2019 »
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Entries by Topic
All topics  «
internet
movies
science
work
Blog Tools
Edit your Blog
Build a Blog
RSS Feed
View Profile
Interesting Water
Fark
Always of Interest
Bleach
Debian
You are not logged in. Log in
Seven Bodies of Water
Friday, 19 August 2011
We all learned something about iSCSI today
Now Playing: co-workers talking
Topic: work

I should really be posting here more because I do something at work every day that could be posted as a tip of some sort. Usually it is something small that no one ever tells you which takes hours to figure out. Then once you know it, you'll probably never need it again so who cares?

Today I decided to split the internal Debian mirror at work off to its own machine. So I needed  install a new VM with Debian 6 (Squeeze) (my OS of choice btw). I wanted to have a small root partition of 10Gb and then use iSCSI to connect to an EqualLogic SAN volume of 150Gb. I currently mirror Etch, Lenny, and Squeeze. I also plan to move my Unattended install there as well. I just sync the main repo on Lenny and Squeeze and no sources. The Etch mirror has sources but no non-free. All of this takes up 111Gb.

Enough about all that. Created the volumes/datastores needed on the EqualLogic box. I installed Debian to the smaller volume and installed open-iscsi. I did a discovery right away just to see if everything was showing up correctly with 

iscsiadm -m discovery -t sendtargets -p <SAN ip>

A huge list of LUNs flew by because the SAN has multiple LUNS. I saw the one I needed in the list. I needed to configure CHAP so nano /etc/iscsi/iscsid.conf. I uncommented these lines and put in my CHAP info.

node.session.auth.authmethod = CHAP
node.session.auth.username = username
node.session.auth.password = password
discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.username = username
discovery.sendtargets.auth.password = password

Now I may not need CHAP setup for discovery because I was able to discover just fine without CHAP. I was getting an authentication error when trying to connect so I added this. Ultimately I think my error might have been caused by an ESXi server connecting to the LUN.

I also set "node.startup = automatic" because I want this to connect on boot.

I tried to connect to the lun with

iscsiadm  -m node  --targetname <iqn> --portal <SAN ip> --login

I had some error messages as mentioned before. I made changes to the config file and restarted the open-iscsi daemon. When I did this open-iscsi started to connet to all the previous iqn's it found. Some of wich allow multiple connections (for vMotion to work). A quick fdisk -l showed that indeed I was connected to the volumes. I disconnected from all the volumes and edited the config again. I changed from automatic to manual. I restarted the daemon and BOOM all the nodes tried to connect again! So I'm thinking that the manual/automatic isn't working here.

I went into the /etc/iscsi/nodes folder and deleted all the nodes there. I then tried to figure out a way to do a discovery with only the node I needed to come up. I couldn't find any way to do that. So I just did another discovery. I then used this command in the /etc/iscsi/nodes folder to remove all the nodes discovered except the one I needed (which has the word he-storage).

ls | grep -v "he-storage" | xargs rm -Rf

This removed the many volumes I didn't need and left me with the one I wanted. So I then connected to that LUN successfully and proceded to partition, format, and mount the volume. I figured that now I should change back to automatic loading of the LUN. I edited the file and restated the daemon. It showed a successful disconnect but no re-connect. WTF? I double check the config and restart the daemon, same thing. So now I'm NOT getting the behavior I need when it was happening before.

I then remembered seeing a list of settings under the node folder. If you cat the iqn folder under the /etc/iscsi/nodes folder, you can tab complete out till you hit a file called "default". Once you cat "default" you see all the settings for that node. This basically looks like the config file without the comments. Right up toward the top was "node.startup = manual". It seems that the settings for the node are pulled from the config file when they are discovered, but if the config file is updated those changes won't take effect for any existing node. I edited "default" and restarted the daemon. The node came up automatically without issue.

The -R, --rescan for iscsiadm, may be a sollution to this problem, but I didn't look into it since I finally had everything working.

So there it is. The big discovery of the day was that under open-iscsi, nodes that you discover will take the settings from iscsid.conf at the time they are discovered and don't seem to update. So if you need to make changes that will effect these nodes you will need to edit the "default" file or dig more into the man page of iscsiadm.


scribbled by water at 6:12 PM PDT
Post Comment | Permalink | Share This Post
Thursday, 9 June 2011
Squid Proxy, Google Searches, and Something Wierd IE9 did
Topic: work

I had a problem at work today where someone complained that they could search google and see all the results but when they clicked on one they got an error message. It turned out that the error message was from the Squid Proxy and they did not have access to the site. This was puzzling for 2 reasons. First this person was not supposed to be filtered through the whitelist proxy. Secondly, why was the whitelist proxy allowing a google search?

The problem with the user being on the wrong Proxy was easily fixed. What I then dug into was trying to determine what was going on with the whitelist to allow a google search.

So first the setup…

It’s pretty simple I’m running Squid Proxy 2.6 on a Debian 4 (Etch). I know I’m a few releases behind here but hey the system “just works” and it is a custom install on a Cobalt RAQ3. I’m not about to break it by trying to upgrade when it’s not needed. Any way, Squid is running a whitelist using this line in the config:

acl whitelist url_regex "/etc/squid/whitelist"

http_access allow all whitelist

So I’m never allowing www.google.com/* which is what would allow me to open up searching. The whitelist does have a few references to google.com but they are explicit for certain sites like:

maps.google.com/*

khm3.google.com/*

gg.google.com/*

ssl.google-analytics.com/*

Of course I set myself on the Squid Proxy and tried to go to http://www.google.com, https://www.google.com, as well as removing the www. In every case I was greeted with the “Access Denied” page. I then added google as a search provider in IE9. I searched and low and behold it returned a google search page. Matt helped out by sniffing packets and watching the logs. We could see where the Squid was allowing the google search page through. So what was going on here?

I started to take apart the string that was being used for the search:

http://www.google.com/search?q=dogs&sourceid=ie7&rls=com.microsoft:en-us:IE-Address&ie=&oe=

I cut everything out one at a time and found that this was the minimum to get through:

http://www.google.com/search?q=pregnant+mermaids&rls=com.microsoft:en-us

I’m not sure what the &rls means. I did a little searching but didn’t come up with anything except that it’s used other places like the default Firefox home page. We do whitelist microsoft.com. I commented that out of the whitelist and reloaded Squid with the same results. Matt changed microsoft to something else and that worked as well. After a bit it hit me what was happening.

We allow all .gov sites which sometimes include .us sites so .us/* is listed in the whitelist. I commented this out and the site was blocked. Finally success, but I need to allow those .us sites and additionally what was Squid recognizing –us as .us and allowing a search to go through to google.com which was not allowed?

Well I didn’t really waste time researching this. I’ve found the online documentation for Squid lacking. I’m not sure the book they sell would have helped. I admit that it could be a version issue but again, I’m not upgrading. So my solution was to add a blacklist and explicitly block google. As mentioned I need some google sites so I can’t just blacklist google.com. I added www.google.com/search to a file called /etc/squid/blacklist and added these lines to the squid.conf:

acl blacklist url_regex "/etc/squid/blacklist"
http_access deny blacklist

After reloading Squid, I tested a search and was given the “Access Denied” page. All was right with the world again. I hope this info will help someone else dealing with a similar issue.


scribbled by water at 2:26 PM PDT
Updated: Friday, 10 June 2011 11:54 AM PDT
Post Comment | Permalink | Share This Post
Thursday, 2 June 2011
Does Frontier FiOS support IPv6?
Mood:  surprised
Topic: internet

Chat Subject: Unknown

Your Question: do you support IP v6?

A Verizon Service Representative will be with you shortly. Thank you. (16:00:09)

Agent Michelle has joined. (16:00:14)

Michelle : Chat ID for this session is 06021125658. (16:00:14)

Michelle(16:00:35): Thank You for choosing the New Frontier Live chat my name is (Michelle), I will be more than happy to assist you today.

Shawn(16:00:50): thanks. I just want to know if you support IPv6

Shawn(16:01:05): I'd like to configure my router for IPv6 if that is an option.

Michelle(16:01:55): I am sorry I have been told that we dont support that yet

Shawn(16:02:10): Do you know when that will supported?

Michelle(16:02:20): Do you have Fios service? And is there something we can try to help you with?

Shawn(16:02:35): I do have Fios service.

Shawn(16:02:50): Everything is working fine. I would just like to upgrade to the future.

Michelle(16:04:05): No problem, I am sorry but I dont have information as to when we would be able to support that

Shawn(16:05:00): The Internet is my copilot. The Internet spoke to me in a dream and told me the future was IPv6. I'm just trying to comply with its wishes to embrace the future.

Michelle(16:05:35): ok

Michelle(16:05:40): Thank you for chatting with the New Frontier, is there anything else I can assist you with?

Shawn(16:06:05): Thanks for checking. I'll check back in a few months or whenever I have that dream again. It was after a fairly large plate of nachos made with black beans that were probably a month old or so. Perhaps that had something to do with it.

Shawn(16:06:10): thank you,

Shawn(16:06:15): you've answered all my questions perfectly

Shawn(16:06:15): goodbye

Michelle(16:06:20): Thank you for chatting with the New Frontier, if you do not have any further questions, please close the chat. We appreciate your business and have a great day!

Michelle(16:06:47): you are very welcome!


scribbled by water at 4:55 PM PDT
Post Comment | Permalink | Share This Post
Monday, 26 January 2009
Gong Hi Fat Choy
Mood:  not sure
Now Playing: Chairlift - Garbage
Topic: movies

Your garbage will outlive you... 

 I know I haven't really been posting on here. I suppose I am not sure what I want to do with this site. I have been considering turning it into a tech blog instead of the randomness that it is now. I need to update the links on the side for sure. I have a few pages of interest to add. 

 Despite what I said before, I am thinking of joining Face Book. I suppose I really don't have a good reason for not joining. It is just another point of presense on the internet... in some ways that scares me. I think that the internet will, one day, become selfaware. When that day comes, how much do you want it to know about YOU? Or maybe it will know so much about you and think you are cool and have great musical taste and want to be your friend... so then when it desiceds to kill off 98% of the human race for posting "FIRST!!!!!" and other nonsense on the internet, you will be spared. So you can see my hesitation. 

I watched a decent Korean movie last night. The English title is "I'm a Cyborg, but that's OK". The title is the only reason I wanted to see this movie. The description on IMDB turned out to be all wrong. It is the story of a girl who is, or thinks she is, a Cyborg, but as the title suggests, "that's OK". She ends up in a mental hospital and is on a quest to recharge herself. She needs to be fully charged to escape and rescue her grandmother who was taken to a mental hospital herself. She makes friends with the vending machine, radio, lights and other electronics in the hospital. One of the other patients falls in love with her and crazy funny stuff happens along the way.

There are 2 other movies that I am interested in seeing. The first is a Thai movie called "Chocolate". It is an action movie with no stunt doubles or wires! it is very raw and amazing. Do not expect elegant Crouching Tiger Hidden Dragon fights. You can see the preview on IMDB. The rundown is that the movie is about this autistic girl who is really good at martial arts and takes on the local gang/crime boss. One of the tag lines for the movie is "A special needs girl, with a special need... to kick some ass!" How can you NOT see this movie?!

 The other movie is very interesting because it has so much going on. First of all it is a musical/opera. It is called "Repo! The Genetic Opera". Again you can see a preview for it on IMDB. The title caught my attention right away. But then I saw the preview and it looked very good. I don't know if this is based on a comic book but there are certainly some influences there. The cast is actually pretty good with the curious exception of Paris Hilton... yeah WTF? I am not going to let that keep me away from this movie, she doesnt have a major role any way. So the basics of this movie, aside from being a rock opera of sorts, is that in the future people get organ transplants like crazy because of some disease. Of course there is one large evil company doing these transplants. Since the transplants don't come cheap some people default on their payments... Enter the Repo man... he comes for your to reposese your organs! 

I will report back on both of these movies when I can.

Remember, your garbage will outlive you...

 


scribbled by water at 9:16 AM PST
Updated: Monday, 26 January 2009 10:07 AM PST
Post Comment | Permalink | Share This Post
Friday, 12 December 2008
just one more second...
Mood:  sharp
Now Playing: Sigur Ros - Vaka
Topic: science

the Smithsonian has an article about the leap second that will be put into place at the end of the year. for the technical details please read the article and/or these, link1 link2. simply, we are going to gain one second. it is nice to have just one more second. you can use that time to party, reflect, or sleep.

 time has always been of interest to me. i seem to be obsessed with it or avoiding it (which is a form of obsession). i feel like time does not truely exist outside the realm of human thought. time is an idea we use to describe the difference between actions. time is just a human perception. i wonder if there are other ways of organizing information and actions? in Slaughterhouse 5 by Kurt Vonnegut the Tralfamadorians view all time at once. how do you reference actions if they are all preceived as happening at once? i think that there is no way for me to conseptualize it since all i have ever known is a sequential passage of time. 

 it is now "time" for lunch so i will stop my ramblings, for now.


scribbled by water at 11:29 AM PST
Post Comment | Permalink | Share This Post
Thursday, 11 December 2008
and so it begins
Mood:  rushed
Now Playing: Israel Kamakawiwo'ole - White Sandy Beach of Hawai'i

it seems to go in cycles. i started my first online journal (now known as a blog) in 1996. it was eventually left fowl in 2001. in january of 2004 i joined live journal and kept a journal there for about 2 years. when i started live journal i imported every journal entry i had made on my original site and backdated everything. i had an impressive amount of entries. today is a different story. i didn't backup any entries after i closed out my live journal account. it doesn't really bother me though. this journal is about starting fresh.

 so this is me starting fresh...


scribbled by water at 9:37 AM PST
Post Comment | Permalink | Share This Post

Newer | Latest | Older