The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Volume Manager; importing a disk BOFH Filesystems, Disks and Memory 1 02-06-2008 09:11 AM
Accessing info from Boot Sector of Diskette compdaugh High Level Programming 0 02-19-2005 10:13 AM
boot sector bad? or is is something else? HumanBeanDip Filesystems, Disks and Memory 1 09-15-2002 03:12 PM
boot sector for Solaris 8 larry UNIX for Dummies Questions & Answers 1 04-16-2002 11:20 AM
Boot Disk bobkat UNIX for Dummies Questions & Answers 1 08-26-2001 06:30 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Apr 2008
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Repair boot sector after stupidly importing disk into vg?

Hey guys,

I've bought a second-hand RS/6000 hardware with freshly installed AIX 5.3 on disk2 and freshly installed AIX 6 on disk1. I'm in possession of the original 5.3 install cds but the AIX 6 installation is just on the disk, I've no install media.

So first after getting the system, I wanted to save that AIX 6 installation if I do something wrong. Well...to accomplish that, I did boot into AIX 5.3, mounted a remote samba-share and wanted to mount that AIX 6 partitions/filesystems to dump them to the samba-share. Due to the fact that I was stupid, I imported disk1 (AIX6) into the volume group of my running AIX5.3 installation (thinking, this would be an equivalent to mounting, shame on me, now I know better but I'm completely new to AIX after working with Linux/BSD since years).

But before I did mount the volumes, I realized that it would be better to make a real disk dump via dd. So I did a dump of hdisk1 (while running AIX 5.3, hdisk0 is the 5.3 installation and hdisk1 is the AIX 6 installation) sucessfully.

Then, I changed the boot sequence via SMS (OpenFirmware) back to the first physical disk to boot AIX 6 again and play around with it. But guess what...it does not boot anymore (LED-message: "0557 ROOT MNT FAILED" and I see a white screen with "Starting Software, please wait" and a text block with "--------Welcome to AIX\nCurrent Time Stamp...\nKernel...\nBoot device\n------ but I can't enter anything).

So what can I do to make the AIX 6 installation boot again? I did a lot of google'ing but did not found any hints for my case. Well, I found hints to tools like bootlist and bosboot but I'm afraid to do more harm to the system. For me, it seems like the disk with AIX 6 has some corrupted boot/mounting root code and/or faulty volume group definition due to my stupid import of it into the other volume group (yes, I did export the AIX 6 disk from the AIX 5.3 volume group afterwards). The volumes itself of the AIX 6 installation seem to be ok (according to lqueryvg).

It would be great to hear some (rtfm-)hints, I really want to rescue that installation and learn AIX :-)

Greets, David
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-25-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 916
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I have bad news for you: by importing the disk into the another VG you ruined the boot sector - the boot code for AIX 6.1 is now overwritten by the boot code of AIX 5.3, which is different. The only way to restore it is to have a running 6.1 system which could write the boot sector over the disk. (To put it in a slang you might be more familiar with: its like issuing a "fdisk /mbr" on the disk.)

Once you get your machine running again, "dd" is not the tool to do backups at all in AIX. There is a tool called "mksysb" which completely backs up all the system area into a bootable image. Use a tape device as destination and you have a perfectly bootable (and restorable) system image on tape. You can also use a file (even on the originating system) as destination, bot you will need an external boot device (such as a CD, another tape, etc.) to boot from that and only then use the file to restore the system.

You might also want to read about the Logical Volume Manager (LVM) of AIX. It is the oldest and most mature one in the industry and most of the other UNIX suppliers have either copied its concepts (Linux LVMs) or outright licensed it (like HP for example). You should never use the rootvg (the default volume group of any AIX system) for non-system data, for instance - and after reading up on the concepts behind LVM you will know why.

There is a very good systems administration tool, called "SMIT". Start it by issuing "smit" (better yet: "smitty", to start it in non-graphic mode) and you can do most of the systems administration tasks. SMIT uses standard system commands and you can even look at how its doing it by pressing "PF6" in one of the final screens. Up comes a window with the command SMIT would issue. This way you can learn a lot about how things are done in AIX.

I hope this helps.

bakunin
Reply With Quote
  #3 (permalink)  
Old 04-28-2008
Registered User
 

Join Date: Apr 2008
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks a lot for your informative answer, even if I now know that I'm screwed completely ;-)

Smitty is my tool of choice since the first boot of AIX, without it I would not have known how to replace ksh with my beloved bash.

BTW: is it rather normal for the RS/6000 Hardware to need about 5 minutes after powering on to get to the OpenFirmware prompt? A lot of 4-digit codes change on the led while booting so I think thats quite usual...

Greets, David
Reply With Quote
  #4 (permalink)  
Old 4 Weeks Ago
Registered User
 

Join Date: Jun 2008
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
approx 5 minutes is normal for some machines before you get the first selection screen.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102