From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,599baf9e6515cbb9 X-Google-Attributes: gidfa528,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!x35g2000prf.googlegroups.com!not-for-mail From: JLPARSEC Newsgroups: comp.unix.tru64 Subject: Re: need to replace a mirrored drive Date: 31 May 2007 01:14:26 -0700 Organization: http://groups.google.com Message-ID: <1180599266.729370.108170@x35g2000prf.googlegroups.com> References: <1180557294.943447.140310@m36g2000hse.googlegroups.com> <465dee04$0$8409$9b536df3@news.fv.fi> <1180562636.068329.227820@w5g2000hsg.googlegroups.com> NNTP-Posting-Host: 75.70.214.221 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1180599283 13624 127.0.0.1 (31 May 2007 08:14:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 31 May 2007 08:14:43 +0000 (UTC) In-Reply-To: <1180562636.068329.227820@w5g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: x35g2000prf.googlegroups.com; posting-host=75.70.214.221; posting-account=Bo9Fnw0AAADWrnJsbc6zAgBj1D7kl9CN Xref: g2news1.google.com comp.unix.tru64:992 On May 30, 4:03 pm, dazole wrote: > On May 30, 2:36 pm, Uusim=E4ki 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=3D/sbin/consvar WHOAMI=3D`whoami` export CONSVAR WHOAMI if [[ $WHOAMI !=3D 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 =3D DSK0 (BOOTDEF_DEV =3D DSK0) BOOTED_DEV =3D DSK0 (BOOTED_DEV =3D DSK0) Hope this helps, John Lanier PARSEC Group Email: jlanier@parsec.com AIM ID: JLparsec WWW: http://www.parsec.com