Operating System - HP-UX
1753687 Members
5405 Online
108799 Solutions
New Discussion юеВ

Lvlnboot: No Boot Local Volume - rlvol3b still present

 
MUM_HPS
Advisor

Lvlnboot: No Boot Local Volume - rlvol3b still present

Hi All,

I have an intersting problem, I am not sure what happend on this server (may be my counterpart has working on this something), now things are looks really different.

The lvlnboot shows No boot LV/
--------------------------

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
No Boot Logical Volume configured <<<<-------
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

Current path "/dev/dsk/c14t2d2" is an alternate link, skip.
#

And adding to that..

I have the Mirror PEs problem..

see the PE number on the Mirror Disk..
----------------------
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 400
Current LE 50
Allocated PE 100
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/dsk/c0t6d0 50 50
/dev/dsk/c3t6d0 50 50

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c0t6d0 00000 current /dev/dsk/c3t6d0 02515 current
00001 /dev/dsk/c0t6d0 00001 current /dev/dsk/c3t6d0 02516 current
00002 /dev/dsk/c0t6d0 00002 current /dev/dsk/c3t6d0 02517 current
00003 /dev/dsk/c0t6d0 00003 current /dev/dsk/c3t6d0 02518 current
00004 /dev/dsk/c0t6d0 00004 current /dev/dsk/c3t6d0 02519 current
00005 /dev/dsk/c0t6d0 00005 current /dev/dsk/c3t6d0 02520 current
00006 /dev/dsk/c0t6d0 00006 current /dev/dsk/c3t6d0 02521 current
00007 /dev/dsk/c0t6d0 00007 current /dev/dsk/c3t6d0 02522 current
00008 /dev/dsk/c0t6d0 00008 current /dev/dsk/c3t6d0 02523 current
00009 /dev/dsk/c0t6d0 00009 current /dev/dsk/c3t6d0 02524 current

-------------------

and surprisingly.. i see that the rlvol3b is still present.

# cd /dev/vg00
# ls -lrt rlvol3b
crw-r----- 1 root sys 64 0x000016 Jan 13 09:09 rlvol3b

=======
OK, now to resolve this i believe these steps will do the work for me..

======================
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2


Check the settings again
# lvlnboot -v


Now we need to fix lvol3 minor number issue.

In order to fix the above we need to reboot the system in lvm maintenance mode, export vg00 and reimport the disks for vg00.


NOTE:Before booting into maintenance mode, write down the device files for the disks in vg00 ( In our case it is /dev/dsk/c0t6d0 and /dev/dsk/c3t6d0) and note their minor number for the group file of vg00 (0x000000).


1. Reboot the system and stop the boot process:


bo pri (you can try p0 if pri fails)


Boot on the primary disk and answer yes to interacting with isl. At the isl prompt, type:


ISL> hpux -lm


2. Once the unix prompt is reached, type:


# vgexport vg00


# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x000000
# vgimport vg00 /dev/dsk/c0t6d0 /dev/dsk/c3t6d0
# strings /etc/lvmtab (This should have the correct disks for vg00)
# reboot (This will reboot the system.)


Please rerun the following commands after rebooting the system.


# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2


Check the settings again
# lvlnboot тАУv

===========================

I am not sure what happes to the PE number after this work plan ??

Kindly can someone point me if i am doing it right ???

I am doing this tomorrow..

Inputs are welcome..

Many Thanks in Advance!!

Regards,
Govind.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Lvlnboot: No Boot Local Volume - rlvol3b still present

Shalom,

Complete procedure.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

If however the current system will not boot its too late and time to restore ignite backup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens
Honored Contributor

Re: Lvlnboot: No Boot Local Volume - rlvol3b still present

----
# cd /dev/vg00
# ls -lrt rlvol3b
crw-r----- 1 root sys 64 0x000016 Jan 13 09:09 rlvol3b
----
did someone try to split (lvsplit) these logical volumes ?

Could you post ll /dev/vg00?