Fedora Cheat Cube

I just found this “Cheat Cube” created by the Fedora marketing team. Thanks to Planet Fedora and especially to Juan Rodriguez who post it ;) You can find it in English, Español and Russian on the Marketting page of the Fedora wiki.

This was intended to be distributed in fedora event, but you can print it for you or for someone else who’s new with Linux and they will have a small, cute and easy to find Cheat sheet!


Howto: Sar and Ksar ( Part two )

This is the part two of my test with sar and ksar. I tested the remote feature in ksar. In short, you use ksar to execute the same command that got executed just before midnight in the second post, in other words, the daily summary.

Having spare time tonight, here’s few screenshot..

Ksar remote connection

Click on: Data => “Launch SSH Command”

Enter the login information: user@ip-address, and click on yes.

You can click on yes here.

After you are asked to enter the SAR command. The default will be good. Click on Yes.

After that you can see the classic view, the same on we’ve got when we loaded text files.

I’d like to show you another sweet things with ksar. You can open few windows within ksar and arrange them, so you can compare your server stats. Open more than one window ( click on file => New window  ) and then click on Window => Tile

That’s it! It not harder than loading a local text file.. I’ll post a third post on Sar and kSar this week for people who would like to get a multiple day report.

Thanks for reading!


Google “Ski View” on Google Maps for the 2010 Vancouver Olympic

I just found that Google did a lot of work capturing image from the Whistler Mountains.

From the Official Google Blogs:

The Street View team’s constant experimenting yielded a snowmobile decked out with cameras to capture slope-level imagery of several runs on Whistler Blackcomb Mountains. The view from the top of 7th Heaven chairlift on Blackcomb and from the peak of Whistler are among my favourites, as are the top of the Dave Murray downhill, where the men’s alpine skiing events will start, and the Peak 2 Peak gondola. (That’s Whistler’s new feat of engineering which takes skiers and riders from Whistler to Blackcomb.) With the Street View trike, we’ve also covered Whistler Village and Whistler Creekside at the mountains’ bases. There’s more about the snowmobile’s journey and this imagery on the Google Lat Long Blog.

Take few minutes to see how beautiful those mountains are! If you never felt the feeling of walking on top of a mountains like this, you have to.. I swear to you, you feel like you are walking on top of the world! It’s even better with a snowboard/ski under your feet!

There’s the snowmobile they used to capture those images:

Here’s a shot from the top of the mountains:

By the way, you can follow the 2010 Vancouver Winter Games using a special pages google made available here: www.google.com/games10

Thanks again Google!

Error: inconsistent raid set nvidia_djfaedbj

Today I was installing a fresh fedora 12 x64 on a computer having a msi k9n platinum as a motherboard.

First I had to disable apic and acpi, otherwise I was getting a “ht msi mapping”  error and the boot stopped there but sometimes the system was booting fine..

After “fixing” this issue, I was able to enter the Anaconda installer. Everything went fine untill the disk partitioning. Anaconda was unable to see the drive, but my test on the console (hitting ctrl+alt F2) and typing # fdisk -l  I was able to see my drive.. So the system was able to see it, but anaconda was unable. After looking at logs I found few error about the nvidia raid.

inconsistent raid set nvidia_djfaedbj

Bizzar… Can’t find anything on google regarding this error.. The motherboard have Raid support, but it’s disabled. After few minutes I finally enabled the raid, and then I was able to enter the RAID configuration screen.. Then I saw there was a FAILED RAID. This computer is for testing.. someone pick a a hard disk. I deleted the raid..

After a reboot, everything was fine.. It looks like Anaconda was able to read the raid information, even if the raid was disabled in the bios…

This post could be more helpful with all the error but I was in a hurry to test something and I was unable to store the exact error and document it.. I hope this can help someone!


Howto: Sar and Ksar ( Part one )

This week a friend show me the SAR tool and ksar. So I gave it a try, and here’s how I setup the tools and few information on both tools.

SAR stand for “System Activity Report” on Linux this tool included in the sysstat package. It’s an incredible tool used to collect and display system data. SAR is the perfect tool to track down performance bottlenecks and multiple stats of your servers 24/7. The only “problem” is the readability of the displayed data.. It’s not perfect but you can find the information you are looking for, but if you are looking for a more “cute” and easy to read way to display the result, the answer is Ksar.

Ksar is a java SAR Grapher tool, it use the text file generated by SAR on Linux, Mac OS/X, Solaris, AIX, HPUX and you can load your SAR data using three different method: local file, local command execution, and remote command execution via SSH. Great isn’t ? Guest what, the tool even let you export the data in PDF/JPG/PNG/CSV.

I did this howto using Fedora 12. But as I said before you can use SAR under Linux, Mac OS/X, Solaris, AIX, HPUX.

Install and setup of SAR

First of all we will install the sysstat package, it’s available via the official Fedora repository.

# yum install sysstat

Once it’s done you will have to check  the file : /etc/cron.d/sysstat

You should see something like this:

 # cat /etc/cron.d/sysstat
 # Run system activity accounting tool every 10 minutes
 */10 * * * * root /usr/lib/sa/sa1 -S DISK 1 1
 # 0 * * * * root /usr/lib/sa/sa1 -S DISK 600 6 &
 # Generate a daily summary of process accounting at 23:53
 53 23 * * * root /usr/lib/sa/sa2 -A

We will need to generate the SAR files using C local because this is what Ksar will try to read.

According to the Ksar official Doc:

This parser use the output text file of the sar command. you need to have a spe-
cial precaution to make this file, since the parser is not locale time aware. The
parser is waiting for C locale output file

So make the /etc/crond./sysstat look like this:

# vim /etc/cron.d/sysstat
 # Run system activity accounting tool every 10 minutes
 */10 * * * * root LC_ALL=C /usr/lib/sa/sa1 -S DISK 1 1
 # 0 * * * * root /usr/lib/sa/sa1 -S DISK 600 6 &
 # Generate a daily summary of process accounting at 23:53
 53 23 * * * root LC_ALL=C /usr/lib/sa/sa2 -A

Now the sysstat cron is in place using C locale and it will gather information every 10 minutes, and generate a daily summary just before midnight. All the files generated by SAR will be put in /var/log/sa/. That’s it for the SAR part, now let’s take a look at Ksar.

Installing and using Ksar

You can download Ksar here: http://ksar.atomique.net/download.html

An interesting fact is that you can run Ksar direct from the website if you click on the “Run kSar via webstart” you open the Ksar.jnlp and Iced Tea webstart will handle the rest of the job.

We want to install the apps locally so click on “Download the Application locally” and save the zip file on your disk.

# unzip kSar-5.0.6
# cd kSar-5.0.6

You will need to execute Ksar using the root user to access the data generated by SAR.

# sh run.sh

You’ll see a screen like this:

Now you need to load the text file in Ksar. Click on the Data menu.

And then click on “Load from text file…”

Select the file SAR has generated in /var/log/sa/sar*. The number after “sar” should be the date of the day..

The sar* file is the result of the summary process accounting generated just before midnight every day. If you can’t see it, that mean you just setup your cron and you’re before midnight, or there’s something wrong with your setup. If you’ve just setup SAR minutes ago, simply execute those commands with the root user:

# LC_ALL=C /usr/lib/sa/sa1 -S DISK 1 1
# LC_ALL=C /usr/lib/sa/sa2 -A

And you can try to load the file again, the last commands put some data in the sar files and generated the summary.

Click Ok on the “Data Import is finished” message.

Now you can see the Ksar and all the stats in the left column, and a summary on the main page.

You can navigate the left menu and select the stats you want to watch!

Here’s a screenshot of what those graph look like:

That’s it! Once your data is loaded into Ksar if you click on data, you’ll be able to export the data or select a time frame for the generated graph.

I’ll test the ssh feature to load data from a command executed on a remote host and I’ll post the result soon!


Sar: http://www.softpanorama.org/Admin/Monitoring/Sar/linux_implementation_of_sar.shtml

Ksar: http://ksar.atomique.net/index.html

Please leave comments if there’s error or if you have suggestions!

First post!

This is my first post on this blog, if you want to know more about me check the about me page!!

I will use this blog to keep a trace and share my howto’s, test results, personal ideas on everything and anything, good memories from travel and other events.

The majority of my post will be in english because it will be easier to share my work with the world, otherwise personal stuff will often be written in french. I am a native french speaker from Quebec, Canada so please excuse me for future mistakes and feel free to correct me if I’m wrong!

See you soon :)