Operating System - HP-UX
1748036 Members
4617 Online
108757 Solutions
New Discussion юеВ

Re: unable to boot on 11.0 server

 
Bernie Vande Griend
Respected Contributor

unable to boot on 11.0 server

I have an old HP-UX 11.0 server on A180c that we attempted to upgrade to 11i The upgrade did not go well. We had disconnected the mirror drive and now if we boot to it we have issues. It looks like the header might be off so I tried to boot into maintenance mode which works but get this error:
fsck: /dev/vg00/lvol1: possible swap device (cannot determine)
fsck SUSPENDED BY USER.
/dev/vg00/lvol1: No such device or address
Unable to mount /stand - please check entries in /etc/fstab

I try to do a vgchange -a y vg00 so I can repair the lvlnboot info and get the normal errors on the other drive that I disconnected and stale extents which I suspect. However when I got to do a lvlnboot -v or vgdisplay -v I get an error that I can't query either boot disk, including the one I'm booted off of. I can see it with an ioscan. Any clues here. This came from another site so I don't have an ignite tape.
Ye who thinks he has a lot to say, probably shouldn't.
14 REPLIES 14
Steven E. Protter
Exalted Contributor

Re: unable to boot on 11.0 server

Shalom,

swap was not mirrored.

You need to boot into logical volume maintenance mode and set up a new lvm for swap

hpux -lm
At the IPL prompt.

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
sujit kumar singh
Honored Contributor

Re: unable to boot on 11.0 server

hi,


assuming that u had 2 disks and that now u have the disk /dev/dsk/c2t0d0 is the disk that u wish to boot the system with , let that disk only be connected , disconnect the other disk on which u had tried the unsuccessful upgrade.

boot the system in LVM Mintenance mode that is interrupting the boot and gettting to the ISL prompt ,

ISL > hpux -lm -lq

this shall boot in the LVM maintenance mode.


after the system boots do an ioscan -fnCdisk to confirm the disk path and device file, remember the disk devive file and i assume that to be /dev/dsk/c0t0d0.


do an vgexport

#vgexport /dev/vg00
#mkdir /dev/vg00
#mknod /dev/vg00/group c 64 0x000000
#vgimport -v /dev/vg00 /dev/dsk/c0t0d0

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

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


#vgcfgbackup


#setboot -p -b on

to set this disk as the boot path of the system.


reboot
#shutdown -ry 00

And reboot normally.


Regards
sujit
sujit kumar singh
Honored Contributor

Re: unable to boot on 11.0 server

hi

and when the system comes up u can mirror the other disk all over and newly altogether


Regards
sujit
Bernie Vande Griend
Respected Contributor

Re: unable to boot on 11.0 server

I attempted to vgexport vg00 and import it again, that part seems to go ok. The disk I'm booted from is c0t5d0
After the import though, the vgcfgbackup vg00 command gives these same errors:
vgcfgbackup: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":The specified path does not correspond to physical volume attached to this volume group vgcfgbackup: Warning: couldn't query all of the physical volumes. vgcfgbackup: Couldn't query physical volume "/dev/dsk/c0t5d0": The specified path does not correspond to physical volume attached to this volume group vgcfgbackup: Couldn't query physical volume "/dev/dsk/c0t5d0": The specified path does not correspond to physical volume attached to this volume group
I get those errors after I activate vg00 and do vgdisplay as well.

I also get this:
# lvrmboot -r /dev/vg00/lvol3 lvrmboot: Volume group "/dev/vg00/lvol3" does not exist in the "/etc/lvmtab" file. lvrmboot: Illegal path "/dev/vg00/lvol3".
and this:
# lvlnboot -r /dev/vg00/lvol3 lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c0t5d0": The specified path does not correspond to physical volume attached to this volume group lvlnboot: Warning: couldn't query all of the physical volumes. Logical Volume is not defined on any physical volume. "" is missing Physical Volumes.
It seems like it still can't query the disk I'm booted off of and it does show up in an ioscan. I'll submit points at the end when we figure out exactly what is going on here. I'm pretty sure swap partition lvol2 is fine as this was the original boot disk and it did get imported back in.
Ye who thinks he has a lot to say, probably shouldn't.
sujit kumar singh
Honored Contributor

Re: unable to boot on 11.0 server

hi

while in the LVM maintenance mode can u please post the O/ps after making sure that VG vg00 is active?


please post the O/p for the following

#vgdisplay -v vg00
#vgcfgrestore -l -n vg00
#ioscan -fnCdisk
ifpossible

#strings /etc/lvmtab
and if possible

#lvlnboot


These O/ps will sure be lot helpful

Regards
Sujit
Bernie Vande Griend
Respected Contributor

Re: unable to boot on 11.0 server

Here is the information you requested. strings does not appear to be an option in maintenance mode.
Ye who thinks he has a lot to say, probably shouldn't.
sujit kumar singh
Honored Contributor

Re: unable to boot on 11.0 server

Hi Bernie,

please try the following:

please try to post the O/P of all the commands as u execute as given below.

boot the system in LVM Maintenance mode.
do a vgexport of the current root vg vg00
#vgexport -p -f vg00.out /dev/vg00
#cat vg00.out

see if this reports some disk.(please do post the O/P for this)

do an ioscan to make sure that u are able to see that Disk in the ioscan.(please post the ioscan)
#ioscan
#insf -eC disk
#ioscan -fnCdisk
#pvdisplay -v /dev/dsk/c0t5d0
#mv /etc/lvmtab /etc.lvmtab.old
#vgscan -apv
#vgscan -av


try reading the LIF area of the disk using lifls

#lifls /dev/rdsk/c0t5d0

check for the AUTO,LABEL,ISL,PAD and HPUX if they are present there.

try reading the auto file content

#licp /dev/rdsk/c0t5d0:AUTO -

this should show some "hpux" or "hpux /stand/vmunix -lq"



#mkdir /dev/vgroot
#mknod /dev/vgroot/group c 64 0x010000
#vgexport /dev/vg00
#vgimport /dev/vgroot /dev/dsk/c0t5d0

#mv /etc/lvmtab /etc/lvmtab.old.1
#vgscan -av
to see the PV is listed in the VG vgroot do
#vgexport -p -f /vgroot.out /dev/vgroot
#cat /vgroot.out


if the import was successsful

#vgchange -a y vgroot
#vgdisplay -v vgroot(note if the PV /dev/dsk/c5t0d0 shows correctly)
#lvdisplay -v /dev/vgroot/lvol1

try mounting the lvol4 to a directory and read the ls of files.

#fstyp -v /dev/vgroot/lvol4
know if that is HFS OR vxfs
#mkdir /newtmp
#mount -F hfs OR -F vxfs /dev/vgroot/lvol4 /newtmp
#cd /newtmp
#ll

#umount /newtmp

please post the O/P.


if these go suucessful,

then do

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

#lvlnboot -v
#setboot -p -b on
#setboot


see if u can edit the fstab file if all successful

change all vg00 entries to vgroot

#reboot

Regards
Sujit

sujit kumar singh
Honored Contributor

Re: unable to boot on 11.0 server

hi


also if possible give the O/P of the

#cat /etc/fstab
#bdf

this shall help us know reading from the /etc/fstab to have an idea which volumes were generally used to mount the / and /stand.

that will be interesting as ur VG is trying to sense the /dev/vg00/lvol1 as swap probabaly .


Regards
Sujit
Bernie Vande Griend
Respected Contributor

Re: unable to boot on 11.0 server

tried to post this last night but it didn't take. I ran the commands as requested but still having issues with query of that disk and therefore some commands did not work. The box is hung right now on the fstype, I'll reset and get the fstab but it is normal. We've requested the ignite tapes from the site to try to rebuild. The box is beat up a lot and I suspect we might have some hardware issues here too perhaps.
Ye who thinks he has a lot to say, probably shouldn't.