HI, before a manth I've installed suse 9.2 on this: hda1 30GB (Windows) and hda2 50GB (suse) now I have second hard disk that is formated like this: hdb1 50GB and hdb2 10GB I would like to make RAID1 of hda2 and hdb1. Can I do that with YaST? There is an option "make raid", but I don't want to screw my suse instalation wich works like charm. Does anybady made RAID1 after installation of suse on one hard disk? How can I make RAID1 and keep my nice installation? -- Mirko
On Thursday 20 January 2005 09:15 pm, Mirko Perak wrote:
HI, before a manth I've installed suse 9.2 on this: hda1 30GB (Windows) and hda2 50GB (suse)
now I have second hard disk that is formated like this: hdb1 50GB and hdb2 10GB
I would like to make RAID1 of hda2 and hdb1. Can I do that with YaST? There is an option "make raid", but I don't want to screw my suse instalation wich works like charm. Does anybady made RAID1 after installation of suse on one hard disk? How can I make RAID1 and keep my nice installation? -- Mirko
Yes, you can do that, I'm not sure there is yast module for it yet or not, but you can use software raid for this, its pretty much bullet proof. Avoid raid-ing your boot device, it just complicates the matter, but even that is do-able. man mdadm http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html -- _____________________________________ John Andersen
On Thu, 2005-01-20 at 16:52, John Andersen wrote: <SNIP>
I would like to make RAID1 of hda2 and hdb1. Can I do that with YaST? There is an option "make raid", but I don't want to screw my suse instalation wich works like charm. Does anybady made RAID1 after installation of suse on one hard disk? How can I make RAID1 and keep my nice installation? -- Mirko <SNIP> man mdadm http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html
I create a "broken" raid device from hdb1 with an /etc/raidtab like this: raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 persistent-superblock 1 device /dev/hda2 failed-disk 0 device /dev/hdb1 raid-disk 1 Then mkraid /dev/md0 and format it. Mount the new device somewhere and copy to it using "cp -a". Don't copy /proc or the mount point for the new raid device. Just create the directories. Modify fstab *on the new raid device*. Create an entry in grub on *both* devices to boot it. If everything boots OK use raidhotadd to to make hda2 part of the raid system (this is the point of no return). Then use grub: grub Grub>device (hd0) /dev/hda Grub>root (hd0,0) and then: Grub>setup (hd0) Grub>device (hd0) /dev/hdb Grub>root (hd0,0) and then: Grub>setup (hd0) quit This has worked for me on several machines. I hope it helps you out. Louis Richards
On Friday 21 January 2005 09:26, Louis Richards wrote:
<SNIP>
man mdadm http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html
I create a "broken" raid device from hdb1 with an /etc/raidtab like this:
raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 persistent-superblock 1 device /dev/hda2 failed-disk 0 device /dev/hdb1 raid-disk 1
Then mkraid /dev/md0 and format it. Mount the new device somewhere and copy to it using "cp -a".
Don't copy /proc or the mount point for the new raid device. Just create the directories.
Modify fstab *on the new raid device*. Create an entry in grub on *both* devices to boot it.
If everything boots OK use raidhotadd to to make hda2 part of the raid system (this is the point of no return).
Thank you for this. This looks a little dangerous to me, but this is something I looking for. Very nice hack. Maybe it's better to setup RAID during installation of operating system. -- Mirko
participants (3)
-
John Andersen
-
Louis Richards
-
Mirko Perak