System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.
Bernie Vande Griend
Respected Contributor

Re: unable to boot on 11.0 server

As it boots it shows this:
System Console is on the Built-In Serial Interface Logical volume 64, 0x3 configured as ROOT Logical volume 64, 0x2 configured as SWAP Logical volume 64, 0x2 configured as DUMP

# cat /etc/fstab # System /etc/fstab file. Static information about the file systems # See fstab(4) and sam(1M) for further details on configuring devices. /dev/vg00/lvol3 / vxfs delaylog 0 1 /dev/vg00/lvol1 /stand hfs defaults 0 1 /dev/vg00/lvol4 /tmp vxfs delaylog 0 2 /dev/vg00/lvol5 /home vxfs delaylog 0 2 /dev/vg00/lvol6 /opt vxfs delaylog 0 2 /dev/vg00/lvol7 /usr vxfs delaylog 0 2 /dev/vg00/lvol8 /var vxfs delaylog 0 2 /dev/vg00/fnsw /fnsw vxfs delaylog 0 2 /dev/vg00/local /fnsw/local vxfs delaylog 0 2
can't run bdf or df from maint mode. It sure looks like stand and / are in the right place and swap is on lvol2 like it should be.
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,

8/16/5.5.0 is the path of ur disk.

please also take a screen shot of all the operations as u perform here also, that shall be helpful.

please bear with the silliness i might be showing.

assuming the VG is in the mode as shown in the last O/P by u and that the system is up in the same status since the last commands had been executed on them.


remeber if bdf does not work mount and umount should work.

when u try to mount lvol1 make syre that u specify -F hfs and -F vxfs for all other filesystems with the mount command.

do
#vgchange -a n vgroot
#vgchange -a y -q n vgroot
and see if u are able to activate the vg
do a

#vgdisplay -v vgroot

see if the listing are like this

ACT PV and Cur PV shud both show 1

that means ur VG is getting activated OK

if not follow the following steps:

just cant boot my system in LVM Miantenance mode thats why cant say but vgchgid should work.

do the following
#vgchange -a n vgroot
#vgexport /dev/vgroot
#vgexport /dev/vg00
#mv /etc/lvmtab /etc/lvmtab.old.xxx

make sure by looking in the /dev/dsk and /dev/rdsk directories that the dev files for c0t5d0 are there.

#ll /dev/dsk/c0*
#ll /dev/rdsk/c0*

this is important to note that /dev/rdsk/c0t5d0 definitely exists.

even if that exists do freshly installation of these files.

#rmsf -H 8/16/5.5.0

#ioscan
#ioscan -fnCdisk

#ll /dev/dsk/c0*
#ll /dev/rdsk/c0*

just to ensure that the dev files for the disk have been removed

do an

#insf -e -H 8/16/5.5.0

again check that u get these files installed

#ll /dev/dsk/c0*
#ll /dev/rdsk/c0*


they will get freshly created

make sure that the ownership of these files is bin:sys and that major number shud be 31 like that.

#/usr/sbin/vgchgid /dev/rdsk/c0t5d0

#mkdir /dev/vgroot
#mknod /dev/vgroot/group c 64 0x010000
#vgimport /dev/vgroot /dev/dsk/c0t5d0
#vgchange -a y -q n /dev/vgroot
#vgdisplay -v

make sure that u get to see that act PV and Cur PV are both 1 .

that will mean that ur VG is activated properly and also that in the last lines of the vgdisplay -v O/P as /dev/dsk/c0t5d0


if that happens to be like that please make sure that u do the following.

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


#lvlnboot
#setboot -p 8/16/5.5.0 -b on -s on


try these things for the time being.


let me see if i can take my own system down and can take that in LVM maintenance mode.

regards
sujit



Bernie Vande Griend
Respected Contributor

Re: unable to boot on 11.0 server

We're going to rebuild this server, thanks everyone for your help.
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 Grand,

in short i think u needed to do this:

u can try this once before u can start the Ignite restore: just a chance to see if this worked or not . Might take few more minutes that s all.

#vgexpot /dev/vgroot
#vgexport /dev/vg00
#mv /etc/lvmtab /etc/lvmtab.old.xxx
#vgchgid /dev/rdsk/c0t5d0
#mkdir /dev/vgroot
#mknod /dev/vgroot/group 0x000000
#vgimport /dev/vgroot /dev/dsk/c0t5d0
#vgchange -a y -q n /dev/vgroot

and if all had been fine:

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

#lvlnboot
#setboot -p -b on -s on



Regards
Bernie Vande Griend
Respected Contributor

Re: unable to boot on 11.0 server

I tried the vgchid and other commands from your last post and this one including removing the dsk files and recreating and I still get errors with querying the disk. We're going to try to rebuild now, thanks again.
Ye who thinks he has a lot to say, probably shouldn't.