Situation: Setting up a basic server for testing a couple of software packages. I picked up a stripped down Dell R200 refurb. It did not have hardware RAID but I wanted some fault tolerance so I went with a software RAID1 array.
I found a bunch of instructions using standard partitions but CentOS puts the root, swap and home partitions in a single logical volume. After sifting through a few older tutorials and a few about setting up RAID using LVM and a few restarts, I came up with the following process:
Setup_RAID1_CentOS6.pdf
Now to the question.
In step 2 preparing the disks for RAID1 you copy the partition table from the active drive to the new drive.
I found a bunch of instructions using standard partitions but CentOS puts the root, swap and home partitions in a single logical volume. After sifting through a few older tutorials and a few about setting up RAID using LVM and a few restarts, I came up with the following process:
Setup_RAID1_CentOS6.pdf
Now to the question.
In step 2 preparing the disks for RAID1 you copy the partition table from the active drive to the new drive.
Code:
sfdisk -d /dev/sda | sfdisk