Solved

restoring mksysb on AIX on NEW hard drive AIX 4.2.1

Posted on 2001-08-02
10
497 Views
Last Modified: 2013-12-06
I have an AIX box with 2 hard drives in it.  It was currently on AIX 4.3.3.   The hdisk0 went bad and IBM replaced it. Now I have to reinstall AIX on the new hdisk0.  The hdisk1 is still ok and has good data on it I want to keep and it was mounted as /home2. Also hdisk1 is NOT part of the rootvg volume group.  Now I have a mksysb for my system that was on AIX 4.2.1 at the time.

My question is can I restore from that mksysb to restore the OS and everything that was on the hdisk0 drive, without any worries of the install will delete or mess with the hdis1 drive and its data?  I am worried that it will remove or damage my hdisk1 drive even though hdisk1 is NOT a part of the rootvg volume group.  Only hdisk0 is on my mksysb.  Also how does the system view that second hard drive when I reboot it and how can I make it see it again and mount it as /home2 so I can get my data and use my data on hdisk1?  Any help or suggestions would GREATLY be appreciated.
0
Comment
Question by:mmssi
  • 6
  • 4
10 Comments
 
LVL 6

Expert Comment

by:bira
ID: 6345849
0
 
LVL 6

Expert Comment

by:bira
ID: 6345852
0
 
LVL 6

Expert Comment

by:bira
ID: 6345855
Hi

  Once you restore the mksysb image, the system wont
recognize the data in hdisk1, but the data will be there.

  After restoring the image, You must use the command  importvg in order to make aix to recognize it.

see man importvg for the flag options.

  Anyway, it is always good to have a backup before anything.
 

0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:mmssi
ID: 6346113
If my hdisk1 was originally in volume group vg2  then I would use this command below to have AIX see it again right?

importvg -y vg2 hdisk1

Correct?

What if in a case I didn't know the name of the volume group on hdisk1?  How would I do it then? if there is a way.
0
 
LVL 6

Expert Comment

by:bira
ID: 6346152
According to the man importvg,

-y VolumeGroup  Specifies the name to use for the new volume group.
If this flag is not used, the system automatically generates a new name.

  Let me know.

       Do you have a backup of the data in hdisk1 ?
0
 

Author Comment

by:mmssi
ID: 6346191
no I don't.  That is the problem.  If I had a tape backup I would be up and going already since restoring from tape is simple.  The tape backup device is going bad as well in the machine so therefor no good backup in recent weeks.

So all my data that I need is on hdisk1, which was /dev/lv01 and there is only a /home2 partition on it.  That is why I really need the data off of that drive.

Any suggestions with the importvg or anything else?  
0
 
LVL 6

Accepted Solution

by:
bira earned 200 total points
ID: 6346228

 I could advise you to run the importvg without the flag
  -y
 but unfortunatelly if you dont have a good backup, you
run the risk of loss of data if it does not work.

   Perhaps you can wait for another experts intervention
 here to add something more about the problem, if you have time for it.

          Good luck

 
0
 

Author Comment

by:mmssi
ID: 6346607
after re-starting my heart that command worked and my data is all there!!!!!  Thanks for your help bira!!!!!

The command I used was

importvg -y scndvg hdisk1
0
 

Author Comment

by:mmssi
ID: 6346608
after re-starting my heart after running that command it worked and my data is all there!!!  Thanks.

The command I used was

importvg -y scndvg hdisk1

0
 
LVL 6

Expert Comment

by:bira
ID: 6346643

 Congratulations, man

      Regards

   Bira
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to find files recursively in ftp server quickly? 7 124
unix scripting question 1 104
Linux hostname change 2 83
Shell Script on AIX 7 112
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question