just how dangerous is this??

2 messages, 2 authors, 2002-05-28 · open the first message on its own page

just how dangerous is this??

From: James Fillman <hidden>
Date: 2002-05-28 17:55:11

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I've got a large number of linux server to build and I'm using SuSE's ALICE 
install program to build them. ALICE is SuSE's auto install program and has 
limited functionality. Most importantly, it doesn't do RAID. So what I'm 
doing is having ALICE partition two drives with the partitions being of type 
"FD". It installs linux just fine on "sda" and when it's all done, I boot a 
rescue disk, and do a "mkraid -c ./raidtab --really-force /dev/md[0-4]" to 
create the mirrors. I'm just trying it out now and it seems to be working but 
I've got very little experience working with SoftRAID and I thought I'd ask 
if I'm playing with fire!!

the mkraid command warns me that it will delete all the data on the partitions 
when creating the mirrors, but it doesn't. 

What sort of implications am I looking at with this? Will it be unstable?


cheers,
- -- 
#########################
#  James Fillman
#  Linux Systems Architect
#  CUCBC
#
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE888R/B2UIX/PVkc0RAgDaAJ9zSa6lglc6+U6YtBQOlEi2IrmU0ACffnez
2AXqeuFKQUELieKfree5nJo=
=u7iJ
-----END PGP SIGNATURE-----

Re: just how dangerous is this??

From: Danilo Godec <hidden>
Date: 2002-05-28 19:20:39

On Tue, 28 May 2002, James Fillman wrote:
I've got a large number of linux server to build and I'm using SuSE's ALICE
install program to build them. ALICE is SuSE's auto install program and has
limited functionality. Most importantly, it doesn't do RAID. So what I'm
doing is having ALICE partition two drives with the partitions being of type
"FD". It installs linux just fine on "sda" and when it's all done, I boot a
rescue disk, and do a "mkraid -c ./raidtab --really-force /dev/md[0-4]" to
create the mirrors. I'm just trying it out now and it seems to be working but
I've got very little experience working with SoftRAID and I thought I'd ask
if I'm playing with fire!!
I think this shouldn't work at all - have you rebooted the machine yet?

It's not quite clear how the mirrors reconstruct if one of the disks
(partitions) already has a filesystem on it, but I'm almost sure it's not
ment to reconstruct it properly...

AFAIK making a filesystem on a Linux SW RAID array is somewhat different
from making it on a 'normal' disk, so while you may end up with a
filesystem, it will probably be full of errors.

How does your raidtab look like?

The 'right' way of doing this is:

- create a 'degraded' mirror with sda* partitions marked as 'failed'
- copy all the data from sda* partitions to the appropriate mirrors
  (/dev/md*)
- modify /etc/fstab on the mirrored filesystem to use the mirrors
- reboot, use filesystems on the mirror (root=/dev/md?)
- hot add sda* partitions to approprate mirrors (using raidhotadd or
  mdadm)
- wait for the reconstruction to finish
- make sure that both disks have the boot loader installed in MBR, so they
  can both be used for booting

This should be it. Unfortunately, this procedure is not that easy to
script.
the mkraid command warns me that it will delete all the data on the partitions
when creating the mirrors, but it doesn't.
I guess it doesn't delete the data, it destroys it... :)
What sort of implications am I looking at with this? Will it be unstable?
I am no super-expert or guru, but I'd say YES. Try booting the system with
a rescue disk and run e2fsck on your mirrored filesystems. If this goes
through OK... Well, then I might be wrong and it's OK to do this with new
kernel/raidtools...

   D.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help