Koozali.org: home of the SME Server

Software mirroring working after a install on a single hard?

Offline HomePlayer

  • ***
  • 55
  • +0/-0
Software mirroring working after a install on a single hard?
« on: November 04, 2004, 11:12:30 AM »
Is it possible to get software mirroring working after a install on a single hard disk?

I did a install on a single hard disk of 160Gb, on SME 6.0.1-01
I have a second hard disk of the same type and size, and I would like to install this disk into the SME server to increase the security of data loss.

A backup to the desktop is out off the question because there is to match date on the server now about 60Gb and the desktops have a 20Gb hard disk.

I did some research on this topic, I only found information about installing a second Hard disk to mount to a ibay or a map. Of course I could do this and use a script to backup the date to this hard disk.

But I prefer to use software mirroring.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Software mirroring working after a install on a single hard?
« Reply #1 on: November 04, 2004, 07:25:16 PM »
HP,

Sure is...
...just remember Linux Software Raid is partition based, not drive based...

Reservation: It is quite laborius to make the SME setup a bootable raid1 "after install" though (it can be done look at the software raid faq ref I keep posting here .-) - in this case I'd recommend a backup of your user data, bare metal SME install and restore...

If you want just a simple mountable "user" Raid1 partition its fairly straightforward.

You just make a new Raid1 drive called md0 and mountable "everywhere"  like possibly in /home/e-smith/files/ibays/raid1_secured_data <g>
 
- use Knoppix or the like to resize the original (hda) root partition
- just make 2 new same size partitions on hdaX and hdcX with fdisk,
- write the new raidtab and
- preferably use mdadm to start the raid (man mdadm)

It all depends on which security where
(note: Linux autodetects raid-partition so even with the OS gone you can reinstall the setup if you keep the partition and raidtab data...)

Enjoy
Reinhold
............

Offline HomePlayer

  • ***
  • 55
  • +0/-0
Where to find this raid FAQ
« Reply #2 on: November 05, 2004, 10:12:58 AM »
Thanks Reinhold

Before i start to reinstall the server, i have to still read a lot.

but i cant find this software raid FAQ, i keep finding ather intresting stuff to read.

so if some one can help me out here thanks

HomePlayer

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Software mirroring working after a install on a single hard?
« Reply #3 on: November 05, 2004, 11:30:13 AM »
HP

Are you using Search (on upper left in forum) ?
Please use (heavily <g>) and notice the blue Show all results Button <evil grin>
(IMO "in"visibility of that button is the major reason for questions here :roll: )

You will/would find:
Quote
Raid5 works fine with built in kernel software on SME - just set up the disks and a raidtab, partition, format and mount ...
http://www.tldp.org/FAQ/Linux-RAID-FAQ/
http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html


Personally I would reinstall for RAID1 (no help needed for Raid1 ... it autodetects 2HDs and asks to make that RAID1... just say yes)
If you need more storage buy at least one more disk and go RAID5  :-D

Regards
Reinhold
............