Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

online backup 1

Status
Not open for further replies.

quizzical

Programmer
Jul 13, 2004
1
IN
Hello, new to aix...
I had heard that it was possible to backup the installation to another disk, and that if the primary installation disk should fail you can use the backup. Is this possible with aix and if so how do I go about this procedure. Your patience is welcome with this poor misguided soul.

Thanks;
 
Preparation:
1. A second disk needs to be installed with nearly the same size. No volume group should be assigned to it. Check the disk available by typing : #lspv.
The disk should have volume group information ‘none’, no volume group should be assigned.
2. To check your disk is bootable run:
#bootinfo -B hdisk(x)
If the system returns a 1 its bootable by AIX
3.Check the following APAR Fixes are installed on the system:
IX62417 (bosboot failure)
IX68483 (dump device patch)
IX70884 (latest device driver)
IX72085 (latest mirroring/unmirroring fixes)
Those are Fixes for mirroring in AIX 4.2.1 and should be installed.
4.To check the existence of patches execute:
#instfix -I -k <apar-number> (e.g. IX62417).
Procedure to mirror:
The following steps, assume the user has rootvg contained on hdisk2 and is attempting to mirror the rootvg on a new disk: hdisk0.
1. Extend rootvg to hdisk0 by executing the following:
#extendvg rootvg hdisk0
2. To mirror the disk, type the following command:
#mirrorvg rootvg hdisk0
In the above situation the system was installed on a 2048MB disk, which is hdisk2, the mirror disk has a size of 2148MB. It cannot work the other way around; the mirror c an be only bigger (slightly).
3. After step 2 has finished type the following:
#bosboot -a -d /dev/hdisk2
hdisk2 is the first disk listed under the PV heading after the command
lslv –l hd5 has executed.
4. Initialise the boot list by executing the following:
#bootlist –m normal hdisk2 hdisk0
WARNING: Even though this command identifies the list of possible boot disks, it does not guarantee that the system will boot from the alternate disk in all cases involving failures of the first disk. In such situations, it may
be necessary for the user to boot from the installation or maintenance
media: select maintenance, reissue the bootlist command leaving out the
failed disk, and then reboot. On some models, firmware provides a utility (SMS) for selecting the boot device at boot time. This may also be used to force the system to boot from the alternate disk.
5. Shutdown and reboot the system by executing the following command:
#shutdown –Fr
This is so that the Quorum OFF functionality takes effect.
That’s how mirroring works.

Testing failure situation ‘unmirror’:

Power has been unplugged from hdisk0 which is the first boot disk.
There will be no notification to the user, only errpt shows write back cache on mirror and disk operation error on hdisk0. To check the error in detail, type: #errpt –a –N <err-number> |more
1.Reboot the system by executing the following command:
#shutdown –Fr
2.After the system is up again execute the following command:
#unmirrorvg rootvg hdisk0 (this will break the mirror in between hdisk2 and hdisk0).
3.To clear hd5 as only one boot log volume execute the command:
#mkboot –c –d /dev/hdisk2
4. Run the bosboot command:
#bosboot –a –d /dev/hdisk2
5.Clear the bootlist by executing:
#bootlist –m normal hdisk2
6.Remove the mirror-disk by executing:
#reducevg rootvg hdisk0
7.Shutdown the system by executing:
#shutdown now
8.Replace the failed disk by the same or slightly bigger.
9. Start-up your system.
Mirror ‘rootvg’ by running the procedure in the beginning of this document.
End of procedure!

Backup
1.Prepare a tape which can handle the amount of rootvg split onto two tapes. Generally it will be DLT or AIT, only those can handle more than 4GB in our environment. Load the tape manually into the drive as you do for normal backup.
2.Run ‘backup the system’ from scismit, this will take approximately double the time than a normal backup, because the two disks are backed up instead of one.

Restore
1.Load the tape into the drive.
2.Boot-up the system and press F1 after the first ‘beep’ or before the last
indicator appears on the screen in your ‘SMS’ tool.
3.Select tape as 1 from your boot list, and save the selection.
4.Do all necessary steps until you reach your list of disks for installation.
Note: Only one disk is highlighted. If you press Enter, the system will
return ‘disk has not enough space’, press enter to go back to the list
of disks. Select two disks of the same size and continue.
5.Restoring the system will take double the time as usual, because its
restoring rootvg onto two disks.
6. After the sysload has finished the system will reboot.
7. after you reach the login, do the following changes:
a. change the host name from ‘localhost’ to ‘ripro(x)’, or whatever was used as original name.
b. Change the ip-adresse on your default board to the correct one, or
restore ‘/etc/hosts’ from tape or diskette. &quot;Long live king Moshiach !&quot;
h
 
Thanks; just what I was looking for. By chance are any of you gurus located in the Huntsvill, Al region?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top