Operating System - HP-UX
1819684 Members
3616 Online
109605 Solutions
New Discussion юеВ

How to find out if a system have dual boot?

 
Helen Gao
Occasional Contributor

How to find out if a system have dual boot?

Hi, all.

How do I find out if my hp box has dual boot of hp ux of 11.x and 11.x without rebooting it?

Thanks.
9 REPLIES 9
Sebastian Galeski_1
Trusted Contributor

Re: How to find out if a system have dual boot?

Hi
If i understood well, You mean that You have two disk and You want to check if sevcond one is bootable.
1.setboot
will show You alternate path for booting
2. lifls -l /dev/dsk/cxtxdx
will show lif, if HPUX exist OK
3. lifcp /dev/dsk/cxtxdx:AUTO -
will show string for booting should be hpux

if 1),2),3) looks like above
probably You can boot from alternate path

hope it help
Paula J Frazer-Campbell
Honored Contributor

Re: How to find out if a system have dual boot?

Hi

lvlnboot -v will display boot disks:-

root@N-0/sysadmin>lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t6d0 (0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/2/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t6d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c1t6d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c1t6d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c1t6d0, 0


Paula
If you can spell SysAdmin then you is one - anon
James George_1
Trusted Contributor

Re: How to find out if a system have dual boot?

Hi

See lvlnboot -v


see the man page for lvlnboot.

James
forum is for techies .....heaven is for those who are born again !!
federico_3
Honored Contributor

Re: How to find out if a system have dual boot?

lvlnboot -v

Re: How to find out if a system have dual boot?

Hmmm - have we understood the question here...

If you mean

I have a server set up to boot 11.00 off of one disk and 11.11 off another disk, and I want to tell what version is on what disk?

then not easily... You could try something like this (untested!):

Identify all the disks on your system:

lssf /dev/dsk/* | grep -v \?\?\? | awk '{ print $NF}'

Now for each disk see if it has a LIF area

lifls /dev/dsk/cXtYdZ

If it returns LIF data that includes a HPUX file then its a bootable disk - now try:

lifcp /dev/dsk/cXtydZ:HPUX - | what

This returns version info for the HPUX bootstrap program...

My 11.00 boxes return:

reloc_it.c $Date: 1999/04/20 14:25:10 $Revision: r11ros/cup_ros_ep3_pb/3 PATCH_11.00 (PHKL_18325)
conf.c $Date: 1999/04/20 14:24:28 $Revision: r11ros/cup_ros_ep3_pb/3 PATCH_11.00 (PHKL_18325)
hpux_rel.c $Date: 1999/04/20 14:24:44 $Revision: r11ros/cup_ros_ep3_pb/4 PATCH_11.00 (PHKL_18325)
exec.c $Date: 1999/04/20 14:24:36 $Revision: r11ros/cup_ros_ep3_pb/2 PATCH_11.00 (PHKL_18325)
malloc.c $Date: 1999/04/20 14:25:02 $Revision: r11ros/cup_ros_ep3_pb/2 PATCH_11.00 (PHKL_18325)
pif.c $Date: 1999/10/28 10:22:26 $Revision: r11ros/3 PATCH_11.00 (PHKL_20169)
iodc_util.c $Date: 1999/04/20 14:24:48 $Revision: r11ros/cup_ros_ep3_pb/2 PATCH_11.00 (PHKL_18325)
machdep.c $Date: 1999/04/20 14:24:52 $Revision: r11ros/cup_ros_ep3_pb/4 PATCH_11.00 (PHKL_18325)
flags.c $Date: 1999/04/20 14:24:40 $Revision: r11ros/cup_ros_ep3_pb/3 PATCH_11.00 (PHKL_18325)
srt0.s $Date: 1999/04/20 14:25:15 $Revision: r11ros/cup_ros_ep3_pb/3 PATCH_11.00 (PHKL_18325)
X11.00.U HP-UX() #1: Oct 26 1999 09:57:35
sys.c $Date: 97/10/31 16:19:11 $ $Revision: 1.73.106.8 $ PATCH_11.00 (PHKL_13052)


Note all the references to 11.00 and lots of patches

My 11.11 boxes return:

X11.01.F HP-UX() #1: Aug 20 2000 09:46:02

Note this is 11.01 (rather than 11.11)

I'll leave it to others who actually have a dual boot setup to determine how reliable this is (I'm not even sure if the LIF format is compatible between 11.00 and 11i)

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: How to find out if a system have dual boot?

Some other interesting things I found while figuring out this...

1. A secret message from the HPUX development team or just a coincidence?

# xd /stand/rootconf
0000000 dead beef 0041 cb60 0003 f000
000000c

2. The 'hp internal' names for all their servers:

lifcp /dev/dsk/cXtYdZ:CONFIGDATA - | more

Why don't they keep these names? Ther so much better than the letter and number combinations we end up with! If only I'd known that my knackered old 715/50 had the code name SCORPIO!!

Cheers

Duncan

I am an HPE Employee
Accept or Kudo
Helen Gao
Occasional Contributor

Re: How to find out if a system have dual boot?

Thanks for the prompt response.

I tried setboot and lifls according to your response and got the following output. lifls complained about file not found. Does it mean the system doesn't have an alternate boot?

1) setboot
root-hpux(/root) $ setboot
Primary bootpath : 8/4.8.0
Alternate bootpath : 8/4.5.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

2) lifls
root-hpux(/root) $ lifls -l /dev/dsk/cxtxdx
lifls(open): No such file or directory
lifls: Can't list /dev/dsk/cxtxdx; file not opened


Re: How to find out if a system have dual boot?

when we say /dev/dsk/cxtxdx, we mean the disk devices as identified from:

lvlnboot -v

not literally cxtxdx

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Helen Gao
Occasional Contributor

Re: How to find out if a system have dual boot?

Thanks, all. It helped.