linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can you IMAGE Mirrored OS Drives?
@ 2006-08-15 22:55 andy liebman
  2006-08-16  2:24 ` Guy
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: andy liebman @ 2006-08-15 22:55 UTC (permalink / raw)
  To: linux-raid

Okay, I figured out how to take my existing OS installation from a 
single SATA drive and put it on a set of mirrored partitions on two 
different SATA drives. I looked at ALL of the "recipies" I could find on 
the Web -- none of them were quite right for MY situtation.

I will post my recipe here tomorrow for others to see -- maybe it will 
help somebody else. I just want to edit a few things to clarify before I 
post it. Some of the gotchas were were amusing -- like I couldn't run 
LILO on degraded raid1 arrays, and running "mkinitrd" from within 
Mandriva 2006 produces gzipped initrd files, but running "mkinitrd" by 
chrooting in from a LIVE CD produces initrd files that needs cpio to 
decompress and read it.

So, now that I have a running mirrored OS, I have a few more questions.

-- If I were to create disk images of EACH drive (i.e., /dev/sda and 
/dev/sdb), could I restore each of those images to NEW drives -- with 
all of their respective partitions -- and have a working RAIDED OS?  I 
ask because my ultimate goal is to put a RAIDED OS on many systems, and 
once I get ONE working, it would be nice to clone them the way I already 
clone SINGLE OS drives. Can you clone RAIDS? It would mean, of course, 
that the UUIDs would be the same on each system. Is that bad? Is there 
any risk here?

-- I know there was a lot of discussion on the list a while back about 
whether or not to mirror SWAP space. Was there ever any conclusion? It 
seems to me that mirroring will ensure that if one drive fails, you 
don't lose information in virtual memory. My applications rarely if 
every use virtual memory anyway so I'm not worried about speed. I want 
the ultimate in stabilty for the OS drive. Otherwise, I guess I would 
designate swap space on just one drive (but prepare identical partitions 
on each for swap). If the first drive failed (/dev/sda -- with the swap 
space), /dev/sdb would become the new /dev/sda anyway. And so fstab 
would be correct in pointing to /dev/sda.

Sound opinions welcome.

Thanks,
Andy Liebman

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-04 18:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-15 22:55 Can you IMAGE Mirrored OS Drives? andy liebman
2006-08-16  2:24 ` Guy
2006-08-16  7:03 ` Gordon Henderson
2006-08-16 10:06   ` andy liebman
2006-08-16 11:02     ` Gordon Henderson
2006-08-19  1:18     ` Gabor Gombas
2006-09-04 18:18     ` Bill Davidsen
2006-08-16  7:38 ` Luca Berra
2006-08-19  1:13   ` Gabor Gombas
2006-08-19  7:05     ` Luca Berra
2006-08-22 17:30       ` Gabor Gombas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).