Friday, July 3, 2009

RAID

It is basicaly a file system use to manage data over multiple harddisk with and without backup depending upon the level of RAID (0,1,5)

The principle of raid is to use same make and model of harddisk.

How to create RAID ?


> first create three partitions

> then change TD from 83 to fd

> now create RAID by using these commands:

#mdadm -C /dev/md0 -l 5 -n 3 /dev/sda /dev/sdb /dev/sdc

> to check the details

#mdadm -D /dev/md0

> to watch online status of RAID

# watch cat /proc/mdstat

> now formatting the RAID partition

# mkfs.ext3 /dev/md0

> then make directory

# mkdir /dirname

> for permanent mounting add entry in fstab

# vim /etc/fstab
for eg. /dev/md0 /dirname ext3 defaults 0 0

# mount -a

> to show the RAID partition :

# df -TH

"FAULT TOLRENCE OF RAID"


> first to make faulty the partition

# mdadm /dev/md0 -f /dev/sdb ( this command is to use only to make faulty the partiton )

> then remove the faulty partition

# mdadm /dev/md0 -r /dev/sdb

> now create a new partition then add this partition on RAID

#mdadm /dev/md0 -a /dev/sdd

Create and Delete partitions in Linux system

Installation of REDHAT LINUX

Select option of Custom Layout and then
Make the three partitions in your free hardisk :-
1) /boot ( containing booting files ) Size= 100MB approx.
2) / (System files ) Size= 3 -10GB
3) Swap (virtual memory ) Size = Double of RAM

Creating Partitions

First check the Hard disk free space using command
#fdisk -l
Then create a partitions following commands and steps
#fdisk /dev/sda(if you have sata hard disk ) or /hda (if you have pata hard disk)

[""(then display)
The number of cylinders for this disk is set to 77520.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)


Command (m for help):

Press n to create partition

first create extended partition

By press e

then create logical drives with different size

To refresh the commonds partition use command

#partprobe /dev/sda

then format it

#mkfs.ext3 /dev/sda5( "5" is your drive number)


Then create mount point first make directory

#mkdir /directoryname

#mount /dev/sda5 /directoryname

then edit entry in fstab by

#vim /etc/fstab


then edit entry

for ex:- /dev/sda5 /dirname ext3 defaults 0 0

then save and exit form vim editor

#mount -a




Delete partition

first check the name of directory name &then
#umount /dirname
#vim /etc/fstab
delete entry from fstab

#mount -a

and delete partiton in
#fdisk /dev/sda
#partprobe

Sunday, June 21, 2009

RHCE ( REDHAT CERTIFIED ENGINEER )

We Started the redhat linux training in chandigarh
I will try to update my training

Monday, May 25, 2009

. . . . . . . . . . . . . . . . . . . . . . . .




1) NO SOUND IN THIS WORLD CAN BE MORE LOUDER THAN SILENCE AND
IF ANYONE CANNOT UNDERSTAND UR SILENCE THEY CAN NEVER UNDERSTAND UR WORDS....

2) Beauty is not on the face but lies in the eyes of observer!!!

3) ਜਿਨਾ ਨੂੰ ਲੱਗੇ ਅਸੀ ਚੰਗੇ ਉਨਾ ਦਾ ਧੰਨਵਾਦ, ਜਿਨਾ ਨੂੰ ਲੱਗੇ ਮਾੜੇ ਉਨਾ ਨੂੰ ਪਿਆਰ ਹਾਜ਼ਰ ਹੈ..
ਜਿਨਾ ਸਾਡੇ ਨਾਲ ਵੰਡਾਏ ਦੁਖ ਉਹ ਯਾਰ ਸਾਡੇ, ਜਿਨਾ ਨੇ ਦਿਤੇ ਦੁਖ ਉਨਾ ਲਈ ਵੀ ਜਾਨ ਹਾਜਰ ਹੈ..
ਚੰਗਾ ਮਾੜਾ ਹੌਵੇ ਕਿਸੇ ਨੂੰ ਕਿਹਾ ਤਾ ਕਰੀਉ ਮਾਫ ਯਾਰੌ, ਜਿਨਾ ਨੇ ਲੈਣੇ ਸਾਡੇ ਤੌ ਬਦਲੇ ਉਨਾ ਲਈ ਗੁਨਾਹਗਾਰ ਹਾਜਰ ਹੈ...

4) ਜਿੰਦਗੀ ਦੇ ਸਫਰ ਵਿੱਚ ਦੋਸਤ ਤਾਂ ਬਹੁਤ ਮਿਲਦੇ ਪਰ ਦਿਲੋਂ ਬਣਦਾ ਕੋਈ ਕੋਈ। ਚਿਰਾਗ ਤਾਂ ਸਾਰੇ ਰੌਸ਼ਨੀ ਕਰਦੇ ਨੇ
ਪਰ ਦਿਲ ਦੇ ਹਨੇਰੇ ਦੂਰ ਕਰਦਾ ਕੋਈ ਕੋਈ। ਕੋਈ ਨਾ ਕੋਈ ਗਲਤੀ ਤਾਂ ਹਰ ਕੋਈ ਇਨਸਾਨ ਕਰਦਾ
ਪਰ ਗਲਤੀ ਕਰਕੇ ਮੰਨਣ ਦੀ ਹਿੰਮਤ ਕਰਦਾ ਕੋਈ ਕੋਈ।ਸੁੱਖ ਵੇਲੇ ਤਾਂ ਬਹੁਤ ਦੋਸਤ ਬਣਦੇ ਦੁੱਖ ਵੇਲੇ ਨਾਲ ਖੜਦਾ ਕੋਈ ਕੋਈ।
ਵਾਆਦੇ ਤਾਂ ਦੂਜੇ ਨੂੰ ਜਾਨ ਦੇਣ ਦੇ ਹਰ ਕੋਈ ਕਰ ਦਿੰਦਾ ਪਰ ਲੋੜ ਪੈਣ ਤੇ ਜਾਨ ਦਿੰਦਾ ਕੋਈ ਕੋਈ

5) I was born alone I will die alone......

6) ਰੋਮ - ਰੋਮ ਵਿਚ ਰਚਿਆ ਪਾਣੀ ਪੰਜ ਦਰਿਆਵਾਂ ਦਾ..

7) Watch your thoughts, they become your words;
Watch your words, they become your actions;
Watch your actions, they become your habits;
Watch your habits, they become your character;
Watch your character...it becomes your destiny.

8) Go confidently in the direction of your dreams! Live the life you've imagined

9) किताबों के पनें पलट कर देखता हूँ........ यूँ पलट जाए मेरी ज़िंदगी तो कया बात होगी......
अपने ज़िंदा रहने तक तो दूँगा खुशी सबको ...... किसी को मेरी मौत पर हो जाए तो कया बात होगी........
सपनों में नानक रोज़ मिलते हैं ....... हकीकत में आएँ तो कया बात होगी .......

10) The greatest essentials to happiness in this life are something to do,
something to love and something to hope for.

11) Dreams are easy to see but harder to make truth!!

12) ਮੇਰੋ ਸੁੰਦਰੁ ਕਹਹੁ ਮਿਲੈ ਕਿਤੁ ਗਲੀ ॥ ਹਰਿ ਕੇ ਸੰਤ ਬਤਾਵਹੁ ਮਾਰਗੁ ਹਮ ਪੀਛੈ ਲਾਗਿ ਚਲੀ ॥੧॥ ਰਹਾਉ ॥ ਪ੍ਰਿਅ ਕੇ ਬਚਨ ਸੁਖਾਨੇ ਹੀਅਰੈ ਇਹ ਚਾਲ ਬਨੀ ਹੈ ਭਲੀ ॥ ਲਟੁਰੀ ਮਧੁਰੀ ਠਾਕੁਰ ਭਾਈ ਓਹ ਸੁੰਦਰਿ ਹਰਿ ਢੁਲਿ ਮਿਲੀ ॥੧॥ ਏਕੋ ਪ੍ਰਿਉ ਸਖੀਆ ਸਭ ਪ੍ਰਿਅ ਕੀ ਜੋ ਭਾਵੈ ਪਿਰ ਸਾ ਭਲੀ ॥ ਨਾਨਕੁ ਗਰੀਬੁ ਕਿਆ ਕਰੈ ਬਿਚਾਰਾ ਹਰਿ ਭਾਵੈ ਤਿਤੁ ਰਾਹਿ ਚਲੀ ॥

13)ਸੱਚੇ ਰੱਬ ਨਾਲ ਇਸ਼ਕ ਕਰੇ ਕੋਈ ਕੋਈ, ਸ਼ੋਹਰਤ ਨਾਲ ਇਸ਼ਕ ਹਰ ਕੋਈ ਕਰਦਾ ਹੈ‌ ‌‌ ਸਾਂਵਲੇ ਰੰਗ ਨੂੰ ਪਸੰਦ ਕਰੇ ਕੋਈ ਕੋਈ, ਗੋਰੇ ਰੰਗ ਉੱਤੇ ਹਰ ਕੋਈ ਮਰਦਾ ਹੈ |    
14) ਹਥ ਕਾਰ ਵਲ ਦਿਲ ਯਾਰ ਵਲ

Sunday, April 5, 2009

Create windows entery in grub boot loader

first of all you need to execute one command in the terminal and that is this...

$ sudo gedit /boot/grub/menu.lst
the text file is open and this have information about boot loader

you can write these in file

title Windows XP
root (hd0,1)
makeactive
chainloader +1

after this save the file and close .
you can boot in either linux or windows