restoring mksysb on AIX on NEW hard drive AIX 4.2.1

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.
mmssiAsked:
Who is Participating?
 
biraConnect With a Mentor Commented:

 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
 
biraCommented:
0
 
biraCommented:
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
biraCommented:
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
 
mmssiAuthor Commented:
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
 
biraCommented:
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
 
mmssiAuthor Commented:
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
 
mmssiAuthor Commented:
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
 
mmssiAuthor Commented:
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
 
biraCommented:

 Congratulations, man

      Regards

   Bira
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.