Tuesday, 20 January 2015

Reinitialize new partition without reboot in REDHAT 6



Reinitialize new partition without reboot in redhat 6 during partition creation



Notes: when we run command  partprobe /dev/sdb , it is showing error that you have to reboot to reinitialize the kernel for added  new partition. But if you want to reinitialize kernel without reboot



You can see that, there is not information for new added partition.
Now run the below command



Now run previous command to check latest information of partition.



Now you can use this partition

Wednesday, 14 January 2015

How to configure RAID 5 in linux


How to configure raid 5
First we have to create three  partition with fd ( raid) filesystem.

# Please use below command





Note: Above Screenshot, We came  to know that we have new hard disk /dev/sdb. We have to create our raid partition in this hard disk.



Note: As per Screenshot, we have to create three partitions like above screenshot. 


Note: As per above screenshot, we can see that we have three raid partition. Now we have configure raid.
       


    Note:  As per above screenshot , we created the raid 5 with three partition.  
    Details : C  -  create  ,  l  -  level of raid ,  --raid-device – total number of hard disk use for raid              array

  Now to check the raid status, we have to run below command.


   Now we have to get UUID of raid device with below command

  



Thereafter we have to write this entry in the file /etc/mdadm.conf with below command.

 Note: After write above entries in /etc/mdadm.conf. our raid device will active during reboot.
 Now we have to format our raid device with below command.
Now we have to create a mount point for use of raid device and mount our raid device on this mount point.  Use below commands.

Note: For permanent mount raid device on this mount point. We have to write the entries in /etc/fstab file.
Note: As per above screenshot, we have to write entries in this file. 
Now Reboot the system. Thereafter we can check our raid mount point and raid status with below commands.


<<<<<<<<<<<<<   Raid 5 has been configured properly >>>>>>>>>>>>>>>>>>>>>>>