Operating System - HP-UX
1833875 Members
1896 Online
110063 Solutions
New Discussion

getting error while doing "mkboot -a"

 
Suresh Babu G
Frequent Advisor

getting error while doing "mkboot -a"

Hi Experts,

I am getting the below error while executing mkboot command

mkboot -a hpux /dev/rdsk/c0t1d0
-a specified but no current boot area on /dev/rdsk/c0t1d0

can anyone help me to resolve the same, i have followed the attached steps.
10 REPLIES 10
Asif Sharif
Honored Contributor

Re: getting error while doing "mkboot -a"

Hi Suresh,

Read the below thread and you will find the solution.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=957941

Please post your question in relevant HP-UX System Administration thread.

Regards,
Asif Sharif
Regards,
Asif Sharif
Kapil Jha
Honored Contributor

Re: getting error while doing "mkboot -a"

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

you have to check out this document
When_Good_Disks_Go_Bad_WP.pdf

You must have missed some steps which mirroring the root disk or replacing.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
HCL Ash
Frequent Advisor

Re: getting error while doing "mkboot -a"

mkboot /dev/rdsk/cxtydz

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtydz

this will work


for PA system.

1) vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtydz
2) vgchange -a y vg00
3) mkboot /dev/rdsk/cxtydz
4) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtydz
5) vgsync vg00
6) lvlnboot -Rv


This will work :)
SUDHAKAR_18
Trusted Contributor

Re: getting error while doing "mkboot -a"

looks like , you have not used -B option with pvcreate. so the boot volume may not be created.
please check
Suresh Babu G
Frequent Advisor

Re: getting error while doing "mkboot -a"

Hi,

I am not able to proceed and i want to remove everything and redo it but when i try to give the lvreduce it is giving the below error.

ioscan output

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/0/0/0.1.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t1d0 /dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s1 /dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s1 /dev/rdsk/c0t1d0s3

lvdisplay shows error and the mirror copy as 0
--------------------------------------------
# lvdisplay -v /dev/vg00/lvol3 | more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t1d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 3072
Current LE 96
Allocated PE 96
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk3_p2 96 96
--------------------------------------------
lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c0t1d0
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.

pleasue suggest how to remove everything
it is a IVM

Regards
suresh
atul2701
Frequent Advisor

Re: getting error while doing "mkboot -a"

Hi Suresh,

its a PA Risc or Itanium?
Atul Gupta
Torsten.
Acclaimed Contributor

Re: getting error while doing "mkboot -a"

disk 1 0/0/0/0.1.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t1d0 /dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s1 /dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s1 /dev/rdsk/c0t1d0s3




This is a virtual machine running on Itanium server.


You MUST not include

/dev/dsk/c0t1d0

into vg00, but

/dev/dsk/c0t1d0s2


otherwise this disk will NEVER boot.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Suresh Babu G
Frequent Advisor

Re: getting error while doing "mkboot -a"

Hi,

thanks for your support, i got resolved

Regards
Suresh
Suresh Babu G
Frequent Advisor

Re: getting error while doing "mkboot -a"

Hi All,

In VMs as per HP Recommendation we should not assing the disks directly to the VM and it should be mirroed as the Host level and we should assign the LV to the guest

Regards
Suresh
so_2
Regular Advisor

Re: getting error while doing "mkboot -a"

qw