mdadm to create RAID1 on existing CENTOS
Posted: 2016/10/24 07:56:49
I am using CENTOS 5.8.
I had been using CENTOS system about a year.
Recently, I felt that my OS and HDD requires a redundant mirror, so I want to try out mdadm utility to create a RAID1 mirror instead.
This is to duplicate my current CENTOS + HDD to create exact mirror.
I bought an identical hard disk (1TBB and same brand/model by WD).
QUESTION:
-------------------------------------------------------------------------------------------------------------------------------------
1) I would like to create a raid1 on this existing CENTOS and duplicate it without any data loss. Is that ok?
2) Is mdadm suppose to use before OS installation? (unsure but don't think so).
3) Is there any correct steps to achieve this? by using mdadm.
Current OS is in /dev/sda, new added harddisk is /dev/sdb
The main reason I ask here is I worry that I format or do it wrongly and mdadm will remove my existing CENTOS OS instead.
I had been using CENTOS system about a year.
Recently, I felt that my OS and HDD requires a redundant mirror, so I want to try out mdadm utility to create a RAID1 mirror instead.
This is to duplicate my current CENTOS + HDD to create exact mirror.
I bought an identical hard disk (1TBB and same brand/model by WD).
QUESTION:
-------------------------------------------------------------------------------------------------------------------------------------
1) I would like to create a raid1 on this existing CENTOS and duplicate it without any data loss. Is that ok?
2) Is mdadm suppose to use before OS installation? (unsure but don't think so).
3) Is there any correct steps to achieve this? by using mdadm.
Current OS is in /dev/sda, new added harddisk is /dev/sdb
The main reason I ask here is I worry that I format or do it wrongly and mdadm will remove my existing CENTOS OS instead.