[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

Imaging a Linux box that has 2 RAID Arrays

Hi guys,

Any help appreciated.

I have a linux box with 2 RAID arrays set up.
Disk 1+2: RAID 0
Disk 3-6: RAID 5

Guys,
I want to be able to do this:

1)Make an image of my Linux O/S eg.ghost?
2)How do I do this with a RAID setup?
3)What would be the procedure for not only creating the image, but the restore process?

Thanks in advance.

Simon
0
Simon336697
Asked:
Simon336697
  • 2
  • 2
  • 2
  • +1
3 Solutions
 
wesly_chenCommented:
Hi,

1. Create a boot floppy for restore process.
As root:
mkbootdisk /dev/fd0 `uname -r`   <== For RedHat/Fedora
Or
---Create GRUB boot floppy:
fdformat /dev/fd0H1440
mke2fs /dev/fd0
mount -t ext2 /dev/fd0 /mnt/floppy
grub-install --root-directory=/mnt/floppy '(fd0)'
cp /boot/grub/grub.conf /mnt/floppy/boot/grub/grub.conf
umount /mnt/floppy

--- Create LILO boot floppy
fdformat /dev/fd0H1440 # Lay tracks on new diskette
mkfs -t minix /dev/fd0 1440 # Create minix file system on floppy
mount /dev/fd0 /mnt/floppy # Mount floppy
cp -p /boot/chain.b /mnt/floppy # Copy chain loader
cp -p /boot/boot* /mnt/floppy
lilo -v -C /etc/lilo.floppy # Install lilo and the map onto floppy
umount /mnt/floppy

2. Use newer verion of Ghost, which have support RAID card driver, to do disk image (option "disk to disk" -> "image all").
Or create a image file (too big to fit into CD, I think) on disk.

3. Boot the machine with the image drive.
Or restore to another drive and boot from the drive.
If the boot loader fail, then use the boot floppy you just made to restore boot loader.
(As root)
grub-install /dev/sda1
or
cd /etc; lilo -f /etc/lilo.conf

I recommend you only do image on the OS disk (RAID 0 or RAID 1/mirror ?)
The data disk just restore from the tape backup or some other backup media.

If your OS disk is on mirror (RAID 1), then you just buy another same model disk and replace one.
The old is the image.
0
 
Simon336697Author Commented:
Hi wes!

Gosh youre a legend!

Can I just clarify something mate please.......
Basically Im pretty new to this.
Ive been asked to come up with a solution for us if our server goes down.

Im confused about this because I cannot see in what situation you need to make an image of the RAID 1 disk because if 1 disk fails, then we still have availability through the other RAID 1 disk.

Q.Is this correct that the server wont go down if one RAID 1 disk fails?

Q.Do you guys or is it good practice to image the system disk eg.the RAID 1 disk for disaster recovery? Even though you still have availability if one disk fails? Whats the point in imaging a RAID 1 disk?

- The RAID 1 disks are each 140GB
- The 'linux' version we are using is VMWare ESX Server 2.5

Q.If a RAID 1 disk goes down, should we still be able to function until we get the faulty disk replaced?

Q.With the 3 steps you outline above,
Is step 1 basically if you cannot boot?
With step 2, are you first booting from a floppy that contains the ghost program? Is this the floppy that was created in step 1?

Thanks so much for your help wes.

Simon







0
 
rindiCommented:
With raid1 normaly there is no problem if one disk goes down. A reason to use raid for this might be the following:

Some software error (virus, missconfiguration etc.) might cause even a raid 1 system not to function anymore, If it was backed up (using an image), that version could be easily restored.

Mainly its just that even if you are using raid, you still need a backup, as raid mainly protects you from hardware errors and not from software errors.
0
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
wesly_chenCommented:
A1. So you are using RAID1, not RAID 0. Yes. Just need a spare same model disk to replace the bad one (the LED
indicator will tell you which one is bad).

A2. RAID1 give you high availability, which your server is still running while one of disk fail.
     Backup or image covers you DRP (Diaster Recovery Plan), in case the side down and you have the image/backup
    to restore on other site in order for business continuity.

A3. Yes.

A4. Boot floppy for the situation that your disk image doesn't boot.
    Ghost tool gives you faster image procedure and clone to different size of disk or to a disk image file.
    It is separate floppy which you need to buy the software license.
    Ghost is not the floppy from step 1.
0
 
mburdickCommented:
What do you want to do with the image? If you're looking for a simple backup of your system in case the hardware fails, you could use systemimager (http://www.systemimager.com). It's not a trivial setup, but it does work pretty well once you're up and running.
0
 
Simon336697Author Commented:
Thanks guys!!!
0
 
rindiCommented:
thanx, too.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now