Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirrored boot drive 1

Status
Not open for further replies.

cndcadams

IS-IT--Management
Feb 11, 2004
725
US
I was wondering if there is a command in the OS that will tell me which device of my mirrored boot drives the system was booted from.

Thanks

CA
 
do you have an ILO/MP card within your host? I found an entry in ConsoleLog
Boot device's HP-UX HW path is: 0/1/1/0.1.0

just doublechecked: If you are lucky it is still in the dmesg

Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
setboot -v

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
yes, I'm a nitpicker ;-) : setboot -v displays the value of a variable, which might have changed since last boot

Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
Here you are ...

echo bootdev/X | adb /stand/vmunix /dev/kmem |\
awk '/[0-9i]/{print "Boot disk:/dev/dsk/c"substr($2,4,1)"t"substr($2,5,1)"d0"}'

Example ...

root@xxx# echo bootdev/X | adb /stand/vmunix /dev/kmem |\
> awk '/[0-9i]/{print "Boot disk:/dev/dsk/c"substr($2,4,1)"t"substr($2,5,1)"d0"}'
Boot disk:/dev/dsk/c1t6d0



Martin
 
Gentlemen;

Thanks for the responses. setboot command I was aware of but it shows primary and alternate which I was not sure if it would change if someone decided to boot the alternate drive. I figured it would still show the same paths for primary and alternate no matter which one you booted(I will have to run a test to see what happens.


daFranze thanks for your input, I will keep that in mind.

Martin999 your response gains a star for effort. I ran the command it is what I was looking for. I will have to document that as I know I will not remember the syntax.

Thanks again

CA
 
Glad it was of help, yep, got it documented as I can't remember it either .... thanks for the star
 
Martin999:
works an PA-RISC, but on itanium systems bootdev/X does not work. Any idea what to change?
 
Try ...

echo bootdev/X | adb /stand/vmunix /dev/kmem (and process the output - leading 0x at 11.23)

or:

echo boot_string/S | adb /stand/vmunix /dev/kmem

Unfortunately, just discovered we haven't actually got any Itanium systems yet ... so this is untested.
Let me know how you get on.

Thanks,

Martin
 
Hi Martin,
echo bootdev/X | adb /stand/vmunix /dev/kmem
gives the error message
adb: warning: Unrecognized format character - 'X'.

echo boot_string/S | adb /stand/vmunix /dev/kmem
says
adb: warning: Unrecognized format character - 'S'.

I wonder if there is a document out there explaining the differences between adb on pa-risc and itanium systems.
Thanks for your help,
stefan
 
rtfm you could say: when i use the -o flag for adb it works in backward compatibility mode and works just as on any pa-risc system:

echo bootdev/X | adb -o /stand/vmunix /dev/kmem
bootdev:
bootdev: 0x1f021002
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top