From: Doodle on
Hi, guys, I got a situation and would like to ask you a simple (for
you, not me) question. I use a UBUNTU 7.10 system for some days. Today
my boss came and ask me to add 2 more harddisks to my computer to make
a RAID1 (a mirror and a spare). I googled for a while, and download
the "mdadm ". and I'd like to ask:

1. Can I run mdadm under the current running system or should I boot
my computer with a UBUNTU CD? Do I have to install the UBUNTU again to
the new MD0? (oh! I hope no)
2. will my existing data in the first harddisk mirror to a newly added
disk automatically? Or the data will just get lost?

Thank you for your generous help!

John
From: Tauno Voipio on
Doodle wrote:
> Hi, guys, I got a situation and would like to ask you a simple (for
> you, not me) question. I use a UBUNTU 7.10 system for some days. Today
> my boss came and ask me to add 2 more harddisks to my computer to make
> a RAID1 (a mirror and a spare). I googled for a while, and download
> the "mdadm ". and I'd like to ask:
>
> 1. Can I run mdadm under the current running system or should I boot
> my computer with a UBUNTU CD? Do I have to install the UBUNTU again to
> the new MD0? (oh! I hope no)
> 2. will my existing data in the first harddisk mirror to a newly added
> disk automatically? Or the data will just get lost?


Not directly - but it is doable. I'm not
going to give step-by-step instructions,
as the details may vary from distribution
to another.

The strategy for a single mirrored disk is:

1. Add the disk to be pair for the existing one
2. Prepare the new disk for RAID, with
auto-raid partitions.
3. Format the new disk.
4. Copy data from old disk to the new one.
5. Prepare the new disk for booting.
6. Boot the new disk, RAID having a 'failed' unit: old
7. If the new system runs as it should,
prepare and format the old disk for RAID.
8. Add the old disk to the mirror.

The procedure is not very simple, and there is a fair
risk of data loss - backups are very recommended.

Another point is that the kernel setup and /etc/fstab
have to be changed to reflect the new md units.

Been there - done that.

--

Tauno Voipio
tauno voipio (at) iki fi

From: Hactar on
In article <85fac13d-4aac-4d7b-875f-83b463ac1047(a)2g2000hsn.googlegroups.com>,
Doodle <only4john(a)gmail.com> wrote:
> Hi, guys, I got a situation and would like to ask you a simple (for
> you, not me) question. I use a UBUNTU 7.10 system for some days. Today
> my boss came and ask me to add 2 more harddisks to my computer to make
> a RAID1 (a mirror and a spare). I googled for a while, and download
> the "mdadm ". and I'd like to ask:
>
> 1. Can I run mdadm under the current running system or should I boot
> my computer with a UBUNTU CD? Do I have to install the UBUNTU again to
> the new MD0? (oh! I hope no)
> 2. will my existing data in the first harddisk mirror to a newly added
> disk automatically? Or the data will just get lost?
>
> Thank you for your generous help!

I take it you can't:

make the new disks into a mirrored/RAIDed pair
copy the data to the array
make the old disk into the spare

?

--
-eben QebWenE01R(a)vTerYizUonI.nOetP royalty.mine.nu:81

Drive nail here > < for new monitor.