Solved

restoring mksysb on AIX on NEW hard drive AIX 4.2.1

Posted on 2001-08-02
10
492 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
Comment Utility
0
 
LVL 6

Expert Comment

by:bira
Comment Utility
0
 
LVL 6

Expert Comment

by:bira
Comment Utility
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
 

Author Comment

by:mmssi
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:mmssi
Comment Utility
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
Comment Utility

 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
Comment Utility
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
Comment Utility
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
Comment Utility

 Congratulations, man

      Regards

   Bira
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now