Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: JLPARSEC <jlanier@parsec.com>
Subject: Re: need to replace a mirrored drive
Date: 31 May 2007 01:14:26 -0700	[thread overview]
Message-ID: <1180599266.729370.108170@x35g2000prf.googlegroups.com> (raw)
In-Reply-To: <1180562636.068329.227820@w5g2000hsg.googlegroups.com>

On May 30, 4:03 pm, dazole <daz...@gmail.com> wrote:
> On May 30, 2:36 pm, Uusimäki <uusimaki@nospam_exdecfinland.org> wrote:
>
> > Have you read this:
>
> >http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/ARH9B...
>
> > There is a short description of the needed steps when replacing a boot
> > disk which is mirrored with LSM.
>
> Not that one exactly.  I was using the 51A version of the docs since
> thats what my es40 is running.  So it looks like my confusion is
> knowing for sure that
> this is the boot disk.  I feel like it should be obvious, since there
> are only 2 disks and they are mirrored, so it has to be a boot disk.
> I just want to be 100%,
> since this is a mission critical system and all :).  Is there a
> command I can run that would help me verify this?
>
> Thanks,
> David


Hello,

To confirm your boot disk, you can type "/sbin/consvar -g
bootdef_dev".

Also, here's a shell script that provides a little more verbosity
(should be able to cut & paste paste it to your Tru64 system):


#!/bin/ksh
#Display console boot device
CONSVAR=/sbin/consvar
WHOAMI=`whoami`
export CONSVAR WHOAMI
if [[ $WHOAMI != root ]]
then
echo "\nThis script must be run by root, exiting..\n"
exit 1
fi
echo "\nConsole boot disk info. for node `hostname -s | tr "[a-z]" "[A-
Z]"`:\n"
echo "`$CONSVAR -g Bootdef_dev|awk -F"." '{print $1}'| tr "[a-z]" "[A-
Z]"` (`$CO
NSVAR -g bootdef_dev|awk -F"." '{print $1}' | tr "[a-z]" "[A-Z]"`)"
echo "`$CONSVAR -g Booted_dev|awk -F"." '{print $1}' | tr "[a-z]" "[A-
Z]"` (`$CO
NSVAR -g booted_dev|awk -F"." '{print $1}'| tr "[a-z]" "[A-Z]"`)"
echo ""
#done!

Example output (5.1B; I believe that 5.1A should have different
output):
------------------------------------------------------------------------------------------------------

Console boot disk info. for node NODENAME:

BOOTDEF_DEV = DSK0 (BOOTDEF_DEV = DSK0)
BOOTED_DEV = DSK0 (BOOTED_DEV = DSK0)


Hope this helps,

John Lanier
PARSEC Group
Email:  jlanier@parsec.com
AIM ID: JLparsec
WWW: http://www.parsec.com



  reply	other threads:[~2007-05-31  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-30 20:34 need to replace a mirrored drive dazole
2007-05-30 21:36 ` Uusimäki
2007-05-30 22:03   ` dazole
2007-05-31  8:14     ` JLPARSEC [this message]
2007-05-31 11:12     ` Mike Ingram
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox