1

I have server and there is one 1TB drive in it and I guess it's not running any raid, I'm thinking if it's possible to add another 1TB HDD and setup RAID1 somehow?(software raid1)

Server is running CentOS 6.4

Is it possible to do that? Would it occur any downtime, perhaps data loss? How simple is it?

2 Answers2

1

If you are on a lvm install, it's more or less feasible and even easy, with the lvm tools suite. May be possible something mdadm if you use the classic partitioning scheme, but don't take that for granted.

Refer to this superuser and even this superuser question.

41754
  • 95
0

In the simplest case where you have a separate physical device for booting (i.e. where kernel and initrd are loaded from), it is certainly possible with mdadm. If you need to just mirror an existing drive, and don't have a space there for mdadm's superblock, you have to use array which is rebuilt on every boot, and you'll have to take extra care to ensure data integrity and avoid unnecessary reimaging on every boot (see the --assume-clean option for mdadm). If you can create a RAID with superblock things get much easier down the road.

If you are booting from the very device you want to mirror, one of the options muight actually be adding one extra device (preferably a small SSD or even CompactFlash card attached via an ATA adapter), boot from that and use the 1TB drive for data solely (or for data and rootfs).

peterph
  • 30,838