Showing posts with label BACKUP. Show all posts
Showing posts with label BACKUP. Show all posts

Wednesday, August 5, 2015

How to restore mksysb image from tape drive in aix?

How to restore mksysb image from tape drive in aix?


    1. Make sure that tape drive is attached to the machine
    2. Boot the server in to the SMS mode.
    3. Select multibootàbootsequence àset boolist to tape drive and exit
    4. Then server starts booting from tape, press F1 & enter  to configure console
    5. Press 1 and enter to  select English as language during install.
    6. Select  “starts maintenance mode for system recovery”
    7. Select “install from the system backup”
    8. Provide the options such as disk, where it need  to be restored
    9. Then it will starts restoring data from tape to disk


If you happy with the above topic, please leave your reactions/comments

How to perform savevg and restvg in aix?

How to perform savevg and restvg in aix?



Note: Savevg is to take the backup of the non-rootvg.

The below screenshot would explain to you about how to take savevg and restvg:





As per the above screenshot, testvg has only one filesystem named /testfs

That /testfs has only one file named "profiles.tar.gz" 


SAVEVG:

1) savevg command executed and take the backup of the testvg,  on the rootvg ( that is the destination place of the backup is rootvg)  as we have much available space on the rootvg.

2) unmount the /testfs filesystem

3) varyoff the testvg volume group

4) Remove the volume group using exportvg command

5) Now the testvg volume group has been removed and the disk has to be in none.


RESTVG:


6) Execute the restvg command "restvg -q -f /rootvg hdisk1" and restore it on the hdisk1

7) It will create the volume group with the same name on the hdisk1 and restore the content

8) Once the restore done, we confirm the content of the VG (that the /testfs filesystem is restored )




If you happy with the above topic, please leave your reactions/comments.












Saturday, May 23, 2015

How to confirm the mksysb backup is good for restore in aix?

How to confirm the mksysb backup is good for restore in aix?


Being as a system admin, many times we are dealing with mksysb backup. We need to take the mksysb backup before we are doing any maintenance activity. 

If you executing the mksysb backup, then you can able to identify whether the mksysb is successfully taken or not by the output of the mksysb command. In case, someone already taken the mksysb or script taken the mksysb, in this case you really should not know the mksysb backup is successfully taken or not.

Actually speaking, There is no true verification of the “restorability” of a mksysb other than actually restoring it. Taking precautions such as understanding the flags used for the creation of the mksysb, checking your error report for any serious disk related errors before running the mksysb, and verifying the readability of the mksysb after creation are all good checks.

To verify the readability of your backup run the following command.

listvgbackup -f <mksysb_name>

#listvgbackup –f /tmp/mksysb_tst01

once you execute the command, It will list out a long output, dont panic.if you get the prompt (#) then we can confirm that the mksysb is backed up successfully without any issues.

Any errors that occur while reading the headers of any of the files will be displayed, otherwise only the initial backup header information will be displayed. Keep in mind that this check tests the readability of the data only, not the writeability.


If you happy with above topic, Kindly rate your reactions/comments below

Tuesday, March 31, 2015

How to perform the mksysb restore from nim?

How to perform the mksysb restore from nim?

Pre-check:

Ø Get the latest mksysb image of your client onto the NIM server.
Ø Ensure you have the location details of the root disk; disk onto which you have to restore mksysb. Select the correct root disk, donot select the data disk, this shall destroy the data on the data disk.
Ø Confirm the client is defined, if not define the client 


Installation Instructions:

1.Define your client in the NIM Master   -> #smitty nim_mkmac

2. Get the mksysb image of your client to the NIM Master

3. Creation of Resource using the Mksysb of your Client   --> #Smitty nim_mkres

4. Smitty nim_task_inst.-->   Install the Base Operating System on Standalone Clients

5. Select your client

6. Choose the Mksysb as Installation type

7. Choose the resource which is created by your mksysb image

8. Choose the Spot which is higher than your Client

9. Change "Initiate reboot and installation now?" to "no"

10. The following steps are optional if the hardware is similar . The steps are required if new hardware drivers will be needed. If you aren't sure, do the steps.

                 a. choose the 61TL01_lpp_source
                 b. set "ACCEPT new license agreements" to "yes"
                 c. set "ACCEPT new license agreements" in the "installp Flags" section to "yes"

11. Reboot your Client and Get into SMS mode, start your restoration

12. Press 1 to get into the SMS menu,

13.In the SMS menu the first screen , we have 3 options

14.Select the option 3, Utilities,

15.Select option “Remote Initial Program Load Setup” , 

16.Enter the IP parameters,

17.Specify the Client IP ( IP of the server on which the mksysb image will be restored ), Server IP ( IP of the NIM Server ), Check if the subnet mask is correct. Specify, gateway if needed. Perform a ping test

18. Come back to the menu, by pressing X,

19. Select the option Multiboot,

20. Select Boot Device, and select the Ethernet card

             Exit from SMS menu by pressing X, the server (a.k.a NIM client) would try to connect to the NIM server, once the packet count starts it means that the NIM client is connected and receiving the packets from the NIM master.

We get the boot screen now, Press 1

Accept the language as English, Press 1 now,

Select 0,

You may change the settings by selecting the right number,

Once selected it comes back to the main menu,

The installation would start now


This progress can also be monitored on the NIM Master,  lsnim –l <  clinet hostname>
Once done, the system should reboot automatically



Verification / Post-check:
Ø Make sure the server is accessible from the network (ssh and telnet should work)
Ø All the Volume groups should be varied On
Ø Confirm all the file systems are mounted
Ø Check all the logins are working fine
Ø Make sure all the required services are running
Ø Get the confirmation from the application team that everything working fine.



Backout:
There is no backout for ‘mksysb restore’; it is itself a backout. Perhaps the mksysb restore of the previous image could be a backout in this case.