Friday 10 January 2014

0301-184 bosboot error fixing in AIX


Issue:0301-184 bosboot: Copy 1 of boot logical volume hd5 is not contiguous error

Solution:

Recently when I am taking mksysb  image of the server ,it was failing by giving below error.
# /usr/bin/mksysb -eiXp /mksysb/umlpar.mksysb
0301-184 bosboot: Copy 1 of boot logical volume hd5 is not contiguous.
Tried to run the bosboot manually again got same error
# bosboot -ad /dev/hdisk1
0301-184 bosboot: Copy 1 of boot logical volume hd5 is not contiguous.
After some research I found the cause for the issue was due to

"If *hd5* consists of more than one logical partition, then, after mirroring *hd5*, the user must verify that the mirrored copy of *hd5* resides on contiguous physical partitions. This can be verified with the following
command:
# lslv -m hd5
If the mirrored *hd5* partitions are not contiguous, the user must delete the mirror copy of *hd5* (on *hdisk1*) and rerun the *mklvcopy* command for *hd5*, using the *-m* option. The user should consult documentation on the usage of the *-m* option for the *mklvcopy* command."

you can fix the issue by using below steps:

 Procedure:


1. Remove the hd5:
# rmlv hd5

2. Clear boot record on the disk
# chpv -c hdiskx

3. Create the boot lv hd5:
# mklv -t boot -y hd5 rootvg 1 hdiskx

4. Now re-create the BLV;
# bosboot -ad /dev/hdiskx -l hd5

5.Set bootlist
# bootlist -m normal hdsikx blv=hd5

5 comments:

  1. thanks for your nice post.
    but there is an error on line no 2
    " chdev -c hdiskx" which should be "chpv -c hdisk0"

    ReplyDelete
    Replies
    1. Here hdiskx is your bootdisk it may be either hdisk0 or hdisk1 or any other disk , which you configured on your system. you can check your boot disks using "bootlist -m normal -o"

      Delete
  2. I think you missed the poster's point . The command on line 2 should chpv not chdev

    ReplyDelete
  3. Thank for this post Unixmantra.. I was getting bosboot error 0301-184 bosboot: Copy 1 of boot logical volume hd5 is not contiguous...That I was able to resolve with this post...Thank you and god bless you. Keep up the great work.

    ReplyDelete