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!

Restore a Backup

Status
Not open for further replies.

yordangs

ISP
Sep 7, 2001
91
MX
Hello how i can restore a entire system if i have a backup ?i know how restore some files but when i try to restore all the system my partitions space says me its full but before make the restore im look my space partitions and i have the 50 % free the procedure of the restore fill it all the free space and whe is runnig its breake the restore because i have no more space in the disk and what files i have to errase to back my system to the normality ?


thanks a lot to the people who helpe me in the past and any ideas were apreciated.
 
Are you currently mirroring and trying to put the stuff back across both disks...
or are you restoring and just selecting one disk to put it back on? Or maybe it is
the steps to do the restore...
Check out the following
(look at the end section on restore and the steps)

Mirroring non preservation

Restoring a mksysb

Be sure to select all physical volumes required for the root volume group. This is
especially important if there is mirroring. Mirrored disks must be selected at the
time of installation or an error like the following will be seen:

not enough physical volumes.

1.Boot in SERVICE mode.

a.If the system has a key, turn it to Service. If the system is keyless, consult the
model's documentation or contact your AIX support representative for
assistance.

b.Insert the mksysb tape into the tape drive.

c.Reboot the system by running the command shutdown -Fr or by
pressing the Reset button twice.

2.The system should now "boot" from the mksysb tape.

If the system will not boot, remove the mksysb tape and boot from install media
such as a CD-ROM or tape.

NOTE: Multiprocessor systems display a Maintenance Menu called a BUMP
MENU. This is a hardware menu. For more information, consult the model's
documentation or contact your AIX support center for assistance.

3.Next, at the message stating press F1 or 1 for Console, press the F1
key for a graphics display (or 1 for an ASCII display), and press Enter.

4.Press 1 for English, if asked.

5.The Installation and Maintenance menu should appear. If the
system was booted from media other than the mksysb tape, the tape can now be
inserted into the tape drive. Follow the steps listed in the following section,
Restore menus.

6.After the restore is complete, turn the key to Normal. If the system is keyless,
this is automatic.

7.The system will reboot once. The system displays events from inittab,
and a login prompt appears.

NOTE: If the system has volume groups other than rootvg, there may be error
messages prior to a login prompt. Ignore these messages unless they prevent you
from obtaining the prompt.

NOTE: Total restore time varies from system to system. A good rule of thumb,
providing the device blocksize is not set to 0, is twice the amount of time it took to
create the mksysb. If the blocksize of the source tape drive was 0, the mksysb
would have been created with a blocksize of 512. In this case, the restore time will
be 5-10 times longer than normal.

8.If there are other disks that contain other volume groups, they will need to be
imported into the newly created ODM. No references to the other volume groups
exist prior to this step.

a.Match the newly labeled hdisk#s to the appropriate SCSI location IDs. Do
not assume that the hdisks will be at the same location. The disks are
renumbered from lowest to highest location number and labeled accordingly.

Enter:

lsdev -Cc disk

b.Import each volume group into the new ODM. The following must be run for
each non-rootvg volume group. However, only one disk per volume group
need be selected.

importvg -y <vgname> hdisk#

For example, if there is another vg named &quot;data&quot; and it resides on hdisk3 and
hdisk4, enter:

importvg -y data hdisk3

c.Activate each non-root volume group by entering:

varyonvg <vgname>

d.Restart the system to resync the ODM and mount all file systems. Enter:

shutdown -Fr

NOTE: If the system is not to be rebooted again, use mount -a in place of
shutdown. This will mount all the new file systems. However, a system reboot
should be scheduled as soon as possible to be sure that everything is in sync.

e.A login prompt should now be displayed.



Restore menus

1.From the Installation and Maintenance Menu, select (3):

1) Start Installation Now with Default Settings
2) Change/Show Installation Settings and Install
3) Start Maintenance Mode for System Recovery

2.From the Maintenance Menu, select (4):

1) Access a Root Volume Group
2) Copy a System Dump to Removable Media
3) Access Advanced Maintenance Functions
4) Install from a System Backup

3.Choose a Tape Drive select (# of tape):

Tape Drive Path Name
1. tape /scsi/8mm /dev/rmt#

4.Select a language, if asked (# for language):

1) Type 1 and press Enter to have English during the install.

5.You will return to the Installation and Maintenance Menu. Now
select (2):

1) Start Installation Now with Default Settings
2) Change/Show Installation Settings and Install
3) Start Maintenance Mode for System Recovery

6.From the System Backup Installation and Settings, select
(1):

Setting: Current Choice(s):
1. Disk(s) where you want to install......... hdisk0
Use Maps.................................. No
2. Shrink File Systems....................... No
0. Install with the settings listed above.

7.Change Disk(s) Where You Want to Install (give # of disks).
Then select (0).

Type one or more numbers for the disks to be used for installation and press Enter.
The current choice is indicated by >>>. To deselect a choice, type the
corresponding number and press Enter. At least one bootable disk must be selected.
Choose the location by its SCSI ID.

Name Location Code Size (MB) VG Status Bootable
1. hdisk0 00-01-00-0,0 305 rootvg yes
2. hdisk1 00-01-00-1,0 400 rootvg yes
0. Continue with the choices indicated above

8.To shrink the file systems to reclaim free space allocated to the file systems, select
option 2 so the setting is set to Yes. For the file systems to be restored with the
same allocated space as the original system, make sure option 2 is set to No.

9.System Backup Installation and Settings, select (0 to
continue)

Setting: Current Choice(s):
1. Disk(s) where you want to install......... hdisk0
2. Use Maps.................................. No
3. Shrink File Systems....................... No
0. Install with the settings listed above.

10.The following message will appear:

WARNING: All data on the selected disks will be destroyed. Do you
wish to continue? &quot;Y/N&quot;

Select Y.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top