[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

restoring mksysb on AIX on NEW hard drive AIX 4.2.1

Posted on 2001-08-02
10
Medium Priority
?
506 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 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…
Suggested Courses

650 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