Link to home
Start Free TrialLog in
Avatar of Shaun Wingrin
Shaun WingrinFlag for South Africa

asked on

HowTo Backup and Restore RAID 1, HP ML110 G5 Onboard RAID

Hardware RAID - HP Proliant ML110 G5,

Say, I need this for Linux Centos 5.4 system.
I have an external USB drive available.
I suspect I need to load the raid driver - but how?
Raid Manual:
http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c00771065/c00771065.pdf
Avatar of rindi
rindi
Flag of Switzerland image

First of all I'd just try booting the CentOS install CD, chances are the driver is already recognized. If it isn't look on the HP site, there are Red-Hat drivers available from there. Also check the HP Server CD's you got with the server (they used to be called smart-start CD in the days that those servers were still made by Compaq, maybe the tool is called differently now). These CD's usually have installation routines for the different OS's, including Red-Hat. These routines should help you build the array, start the installation and include the drivers.
If you have system installed there is no problem backing up filesystems (use tar or pax)
"Onboard RAID" is SATA AHCI, which means it is of "Software RAID" shame.
If you see it as two disks - they are same, just use one for backup.
Avatar of Shaun Wingrin

ASKER

Thanx gheist.
I need more specific backup and restore instructions please.
It has two drives that are seen as one as using RAID1
I have the external usb drive which is bigger than the RAID.
# tar cfz archive.tgz file1 ...fileN... dir ...dirN
Tx, but this is just too brief and how do I restore it?
$man tar

$ tar xf archive.tgz (optional filespec)

Tx, but I need very explicit and detailed instructions.
The restored drive has to be bootable too as it must restore to a new set of hard drives initialised as RAID 1.
There is no way to save BIOS settings in ML110 for recovery on OTHER system.
Just enjoy a file backop restorable on BOOTABLE system (like systemstate)
I don't need to save BIOS settings, but rather to simply copy one RAID set to another.

However see this link as far as saving BIOS settings  -I believe its possible. NB I wish to restore to a 2nd ML110

http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c00771065/c00771065.pdf

Can you tell me more about "systemstate"
SYSTEMSTATE is a backup set in Windows system you just love to use.
If you look to CLONE server - there is DD command
dd if=/dev/sda0 of=/mnt/image
and reverse for restore.
Tx.
Can you tell me how to use SYSTEMSTATE as would like to clone an identical windows raid too.
How would I use dd to copy to a usb hard disk and then restore?
I'm not sure how to mount the usb and find its name etc.
You should have started with that ;)
In two hours I will get home.
By that time try to use "unetbootin" to transfer bootable recent ubuntu onto your USB drive (it takes 1/2GB, rest is available for disk image)
Rest of how-to to follow after.

"systemstate" is from windows world, no such thing in Linux.

Remember - we do not do backup and restore, we do clone the disks (correct name for what you need)
Apologies for confusion.
Its not Ubuntu, but CentOS5.4
"unetbootin" --> command not found
unetbootin is a program that makes bootable cd from ISO
it does not matter which live-cd you install - mandriva one, netbsd, or centos

it needs to transfer image (usb devices listed in usbdevs and dmesg)
to a file on mounted usb filesystem.

it can be fat32 if you use unetbootin.
Recipe:

$ sudo bash
# dmesg|less
/mass storage
(guess the full disk name)
q
# dd if=/dev/xda of=/media/disk/dumpfile bs=4096
(takes some time to make a copy)
# poweroff

now you have raw disk image on your USB stick
Tx and how do I restore it to a new raid hard disk?
Please can you also elaborate on these commands. I have tried them but without success:
# dmesg|less
/mass storage
(guess the full disk name)

I'll bet this will make it much easier: http://www.gparted.org/
Get the Live CD which will let you easily copy partitions to and from just about anything.
I've tried gparted - it doesn't allow copying of the RAID, when I tried. Any suggestions?
Gheist: When I tried copying with:" dd if=/dev/xda of=/media/disk/dumpfile bs=4096 " to the usb device (formatted in Win98) it returns error: Directory doesn't exist...
you have not mounted your USB drive. "Formated in win98" means 2GB file size limit.
"xda" disk name is WRONG, used as placeholder. You have to find yours from dmesg output.
How do I mount the usb?
I repalced xda with the result of fdisk - l which was /dev/hdc1
I don't know how to use dmesg output....?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tx, this helps a lot. OS is CENTOS 5.4. What instructions would I use to restore it from the USB to the new hardware?
How would I omit slipstream?
This is fdisk -l without the usb drive. There is an sda1 and 2 - do I back up both? How do I restore?
[root@localhost ~]# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       30377   243898830   8e  Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2              14       30377   243898830   8e  Linux LVM
[root@localhost ~]#
Actually your "RAID" controller is not a raid controller, just a space for config data for software RAID.
You back up one, then restore to both disks in new system.
Ok, but still what exact commands are needed as per above fdisk -l
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tx. Looks G8.
2) make a linux FS on your usb drive mkfs.ext2  /dev/sdc1
Will this format the usb. its god win98 partition on it already.
YES step #2 will DESTROY any valid data on your USB drive so make sure you DON'T have anything that you want to keep there.

At the end don't forget to reformat to a windows format if you want to reused it for windows like said in my post.
you can use "split" command to write multiple 2GB files on FAT32
also if you have gigabit network g4u and good ftp server (like filezilla) you can distribute image via network.
Tx.Please can you repeat the script above with the "split" command.
dd if=/dev/rawdisk bs=4096(or more) | gzip -1 | dd bs=4096 | split -b 1073741824(one gig pieces)  - /mnt/usbstick/
Thank you  - hope to test soon....
I've tried this split command by get an error. I was trying to copy image to a file. The idea is to restore it from the image. Please see my attempts:
Please see below."File size limit exceeded". I have tried :
dd if=/dev/sdb bs=4096 | gzip -1 | dd bs=4096 | split -b 1073741824 of=/mnt/myusb/DiskDump.bin
But see error below:
Tx
________________

[root@localhost /]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     234222232   3911792 218220688   2% /
/dev/mapper/ddf1_250GMirrorp1
                        101086     19716     76151  21% /boot
tmpfs                   516832         0    516832   0% /dev/shm
/dev/sdc1            488263744 145548448 342715296  30% /mnt/myusb
[root@localhost /]#  dd if=/dev/sdb of=/mnt/myusb/DiskDump.bin bs=64k
File size limit exceeded
[root@localhost /]#
________________
[root@localhost /]# ls /mnt/myusb -sh
total 4.1G
4.0G DiskDump.binbs=64k
________________
[root@localhost /]# dd if=/dev/sdb bs=4096 | gzip -1 | dd bs=4096 | split -b 1073741824 of=/mnt/myusb/DiskDump.bin
split: 1073741824 of=/mnt/myusb/DiskDump.bin: invalid number of bytes
Try `split --help' for more information.
Still not 100% solved but a long way.
Best you can do is to clone disk (Norton Ghost is not a valid cloning solution) and restore to same size disk setup
Tx, but what software can one use for that. This is the results of my manual clone but its not working and rather complicated...

I've tried this split command by get an error. I was trying to copy image to a file. The idea is to restore it from the image. Please see my attempts:
Please see below."File size limit exceeded". I have tried :
dd if=/dev/sdb bs=4096 | gzip -1 | dd bs=4096 | split -b 1073741824 of=/mnt/myusb/DiskDump.bin
But see error below:
Tx
________________

[root@localhost /]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     234222232   3911792 218220688   2% /
/dev/mapper/ddf1_250GMirrorp1
                        101086     19716     76151  21% /boot
tmpfs                   516832         0    516832   0% /dev/shm
/dev/sdc1            488263744 145548448 342715296  30% /mnt/myusb
[root@localhost /]#  dd if=/dev/sdb of=/mnt/myusb/DiskDump.bin bs=64k
File size limit exceeded
[root@localhost /]#
________________
[root@localhost /]# ls /mnt/myusb -sh
total 4.1G
4.0G DiskDump.binbs=64k
________________
[root@localhost /]# dd if=/dev/sdb bs=4096 | gzip -1 | dd bs=4096 | split -b 1073741824 of=/mnt/myusb/DiskDump.bin
split: 1073741824 of=/mnt/myusb/DiskDump.bin: invalid number of bytes
Try `split --help' for more information.
last command needs pure file name as last parameter (omit of=)
command before hits 4GB file size limit of FAT32
Tx, but I'm confused as the is an sda and sdb. Must I backup both? How do I restore?

This is fdisk -l without the usb drive. There is an sda1 and 2 - do I back up both? How do I restore?
[root@localhost ~]# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       30377   243898830   8e  Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2              14       30377   243898830   8e  Linux LVM
[root@localhost ~]#
Hi

I have provided a simpler solution which implied formating the usb drive and I think that formating a drive is a lot simpler than using the split command ....Also the price of the usb drive worth a lot less than the time that you took to try to resolve this don't you think ?

Just my 2 ¢
Will have to study.