?
Solved

restoring mksysb on AIX on NEW hard drive AIX 4.2.1

Posted on 2001-08-02
10
Medium Priority
?
504 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 800 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

801 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