Tuesday, May 29, 2007

Kuchh Baat Hai Ke Hasti Mit’ti Nahin Hamari

Yunan-o-Misr-o-Roma Sab Mit Gaye Jahan Se
Ab Tak Magar Hai Baki Naam-o-Nishan Hamara
Kuchh Baat Hai Ke Hasti Mit’ti Nahin Hamari
Sadiyon Raha Hai Dushman Daur-e-Zaman Hamara.
- Allama Iqbal

Saluting 150 years of First Great Indian Revolution in May 1857. I went through so many articles and so manythings.

Actually I feel that British did a good things to us - they united us, they made us stand like one country, till 1857 it was struggle to get free from them but individually, finally we made it after 90 years in 1947.

I salute all the martyrs. What all pain they have gone through to get the freedom and what all things they did! the sacrifice. If they would have not done that we would have not been here and taking breath in Free India.

BBCHindi has very good coverage on the whole subject.

Same goes with out existing Army! they are there thats why we are good. And what do we for country? we do not do any good for country.. I wasted my 30 years and so did others, we encourage corruption because we end up paying less, we encourage bribe because we want our work to get done illegaly and fast, we do not want to stand in queues and pay more money for that.. what will happen to those who can not pay? we are cheating them! we are cheating everyone! STOP, even if we try to fight it, its big thing now.. I really do not know what to do and what should we do?

Read this if you can -> Ae Mere Watan Ke Logon

Sunday, May 27, 2007

Backups with LVM

Some time back I came across this link -> apps that make linux users powerful! « Jag! and came to know about many applications which exists for Linux but we do not know about them.

Why do we not know about them, its just only one reason, because we do not pay enough attention. But some one is doing it.

Recently we came across a problem that we had to take backup of Linux Open files. Our current solution could not take backup just because we purchase stupid software without thinking about it. I was not INVOLVED in that decision, but some how now I have manage that.

Next upgrade of backup software, which can take open files backup was $90K away. And I was NO way interested in purchasing that. We came up with an idea of using Linux snapshots, but since our systems were RHEL 3.0 Kernel 2.4, Linux snap shot was not an easy go. We came up with an error of not able to allocate memory while creating snapshot logical volume.

So error was lvcreate -- ERROR "Cannot allocate memory" creating VGDA and any time I search for something on Google I am point to this mail thread with no answers from any one. All forums would point to it and some suggested to upgrade to LVM2 with Kernel 2.6, which was not the answer I was looking for. I had to fix this some how!

I got hold of some patches, started looking through code, patching and booting kernel did not get me any where! the error was causing because of himem allocation error or something like that. While going through plain C code for like 9 hours, I found the solution but on the same time I realized that I can pass it to kernel as mem boot option. But I changed the code compiled the kernel, increased the default memory! And voila it worked, but this was not manageable, because everytime kernel sources gets updated I need to recompile the kernel, I tried to pass this as boot option (mem=4000m) and it worked again.

So to fix this error, most probably you need to add this boot option in grub.conf and you are most probably sorted. (fingers crossed)

So after that it was just so smooth to do backups with LVM Snapshot!

I really do not know, why people are still afraid of using Linux?

Saturday, May 12, 2007

Open Solaris, FreeBSD and Ubuntu

I have been thinking about these three Operating systems, I know very good committers from these three communities who can go in-depth about praising their operating system.

So I am writing something similar to network sniffer. When I talked to three gurus seperately they told me how to take advantage of their system and not the other ones. Now I am totally confused with what to use.

I do not have patience or time to checkout which network stack is more mature.. I think I will just start with Linux, apparently Linux has bigger community with network stack but immature network stack. Really do not know what to do..

Updates in few more days! I need to choose one of these three.. btw I was almost chose RTLinux or Ubuntu.