LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Migrating /boot to RAID - 1 (https://www.linuxquestions.org/questions/linux-server-73/migrating-boot-to-raid-1-a-4175410892/)

vikas027 06-11-2012 12:02 PM

Migrating /boot to RAID - 1
 
Dear All,

I have given a task by a customer to move /boot Non-RAID partition to RAID-1 on CentOS 6.2 64-Bit machines for the reason best known to them :) (probably they want some redundancy for /boot)

This is my current setup.
Code:

# df -hTP
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-lvroot ext3  7.7G  2.9G  4.5G  39% /
tmpfs        tmpfs    244M    0  244M  0% /dev/shm
/dev/sda1    ext3    97M  28M  65M  30% /boot
/dev/mapper/rootvg-lvhome ext3  124M  5.6M  113M  5% /home
#
# fdisk -l /dev/sda

Disk /dev/sda: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00028741

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          13      102400  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        1567    12479488  8e  Linux LVM
#

Any suggestions/links to achieve this. I did spent some time google-ing and tried few things, but none worked for me. Thanks in advance.

Reuti 06-12-2012 04:51 AM

A 12 GB disk? Where is the other /dev/sdb you need for RAID-1?

vikas027 06-12-2012 06:33 AM

Solved :)
 
Hi Reuti,

Thanks. Indeed, I took a 150 MB disk for /dev/sdb and partitioned it (/dev/sdb1) sector wise according to /dev/sda1.

The below links helped to get this done. I am a happy man now. :D

http://www.kkoncepts.net/node/198
http://www.howtoforge.com/how-to-cre...hat-6.0-system


All times are GMT -5. The time now is 01:15 PM.