* need to replace a mirrored drive
@ 2007-05-30 20:34 dazole
2007-05-30 21:36 ` Uusimäki
0 siblings, 1 reply; 5+ messages in thread
From: dazole @ 2007-05-30 20:34 UTC (permalink / raw)
I have an es40 with a mirrored 2 scsi drive setup. Recently, one of
the drives failed. Lucky for me, noone at my company has *ever* had
to replace one before, so all this is completely new to me. I believe
I have the steps I need to do but would like some verification,
suggestion:
:hwmgr -show scsi
SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID
PATH
-------------------------------------------------------------------------
65: 0 es40g disk none 0 1 dsk0 <---
failed drive
66: 1 es40g disk none 2 1 dsk1
[0/1/0]
67: 2 es40g cdrom none 0 1 cdrom0
[1/0/0]
HWID 65 is the failed drive.
:volprint -Adt
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm dsk0h - - - - NODEVICE
dm dsk1d-AdvFS dsk1d nopriv 0 16672768 -
dm dsk1h dsk1h simple 4096 13848 -
dm root01 dsk0a nopriv 0 2097152 FAILING
dm root02 dsk1a nopriv 0 2097152 -
dm swap01 dsk0b nopriv 0 16777216 -
dm swap02 dsk1b nopriv 0 16777216 -
dm usr01 dsk0d nopriv 0 16672768 FAILING
**remove the disk from lsm**
:voldg -k rmdisk root01
:voldg -k rmdisk usr01
:voldg -k rmdisk swap01
:voldg -k rmdisk dsk0h
:voldisk rm dsk0
**remove the disk from hwmgr**
:hwmgr del scsi -did 0
:hwmgr show scsi (make sure its gone)
Physically swap the drives
**scan for the new drive**
:hwmgr scan scsi
:hwmgr show scsi (until the drive shows up)
:hwmgr redirect scsi -src 0 -dest whatever_the_new_DID_is
**Add the new disk to lsm**
: disklabel -rwn dsk0
:voldisksetup -i dsk0
:voldg -g rootdg -k adddisk root01=dsk0
:voldg -g rootdg -k adddisk usr01=dsk0
:voldg -g rootdg -k adddisk swap01=dsk0
:voldg -g rootdg -k adddisk dsk0h=dsk0
**recover the volume**
:volrecover -sb rootdg
Or would it be
:volrecover -sb rootvol
:volrecover -sb usrvol
:volrecover -sb swapvol
since volinfo shows:
usrvol fsgen Started
rootvol root Started
swapvol swap Started
Thanks for any info, pointers, etc.
David
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: need to replace a mirrored drive
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
0 siblings, 1 reply; 5+ messages in thread
From: Uusimäki @ 2007-05-30 21:36 UTC (permalink / raw)
Have you read this:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/ARH9BDTE/CHPTRBLX.HTM#replace-failed-boot
There is a short description of the needed steps when replacing a boot
disk which is mirrored with LSM.
dazole wrote:
> I have an es40 with a mirrored 2 scsi drive setup. Recently, one of
> the drives failed. Lucky for me, noone at my company has *ever* had
> to replace one before, so all this is completely new to me. I believe
> I have the steps I need to do but would like some verification,
> suggestion:
>
> :hwmgr -show scsi
>
> SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
> HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID
> PATH
> -------------------------------------------------------------------------
> 65: 0 es40g disk none 0 1 dsk0 <---
> failed drive
> 66: 1 es40g disk none 2 1 dsk1
> [0/1/0]
> 67: 2 es40g cdrom none 0 1 cdrom0
> [1/0/0]
>
> HWID 65 is the failed drive.
>
> :volprint -Adt
> Disk group: rootdg
>
> DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
>
> dm dsk0h - - - - NODEVICE
> dm dsk1d-AdvFS dsk1d nopriv 0 16672768 -
> dm dsk1h dsk1h simple 4096 13848 -
> dm root01 dsk0a nopriv 0 2097152 FAILING
> dm root02 dsk1a nopriv 0 2097152 -
> dm swap01 dsk0b nopriv 0 16777216 -
> dm swap02 dsk1b nopriv 0 16777216 -
> dm usr01 dsk0d nopriv 0 16672768 FAILING
>
> **remove the disk from lsm**
> :voldg -k rmdisk root01
> :voldg -k rmdisk usr01
> :voldg -k rmdisk swap01
> :voldg -k rmdisk dsk0h
> :voldisk rm dsk0
>
> **remove the disk from hwmgr**
> :hwmgr del scsi -did 0
> :hwmgr show scsi (make sure its gone)
>
> Physically swap the drives
>
> **scan for the new drive**
> :hwmgr scan scsi
> :hwmgr show scsi (until the drive shows up)
>
> :hwmgr redirect scsi -src 0 -dest whatever_the_new_DID_is
>
> **Add the new disk to lsm**
> : disklabel -rwn dsk0
> :voldisksetup -i dsk0
> :voldg -g rootdg -k adddisk root01=dsk0
> :voldg -g rootdg -k adddisk usr01=dsk0
> :voldg -g rootdg -k adddisk swap01=dsk0
> :voldg -g rootdg -k adddisk dsk0h=dsk0
>
> **recover the volume**
> :volrecover -sb rootdg
>
> Or would it be
> :volrecover -sb rootvol
> :volrecover -sb usrvol
> :volrecover -sb swapvol
>
> since volinfo shows:
> usrvol fsgen Started
> rootvol root Started
> swapvol swap Started
>
>
> Thanks for any info, pointers, etc.
>
> David
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: need to replace a mirrored drive
2007-05-30 21:36 ` Uusimäki
@ 2007-05-30 22:03 ` dazole
2007-05-31 8:14 ` JLPARSEC
2007-05-31 11:12 ` Mike Ingram
0 siblings, 2 replies; 5+ messages in thread
From: dazole @ 2007-05-30 22:03 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: need to replace a mirrored drive
2007-05-30 22:03 ` dazole
@ 2007-05-31 8:14 ` JLPARSEC
2007-05-31 11:12 ` Mike Ingram
1 sibling, 0 replies; 5+ messages in thread
From: JLPARSEC @ 2007-05-31 8:14 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: need to replace a mirrored drive
2007-05-30 22:03 ` dazole
2007-05-31 8:14 ` JLPARSEC
@ 2007-05-31 11:12 ` Mike Ingram
1 sibling, 0 replies; 5+ messages in thread
From: Mike Ingram @ 2007-05-31 11:12 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
"dazole" <dazole@gmail.com> wrote in message
news:1180562636.068329.227820@w5g2000hsg.googlegroups.com...
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
Hi David,
I'm not sure about LSM, but I recently replaced a boot disk on my system.
First, I ran a "df" command to check the domain of the boot disk:
# df -k
Filesystem 1024-blocks Used Available Capacity Mounted on
cluster_root#root 5880152 100065 5773992 2% /
root1_domain#root 262144 39349 217816 16%
/cluster/members/member1/boot_partition
<snip>
Next, look in the fdmns directory:
# find /etc/fdmns
/etc/fdmns/root1_domain
/etc/fdmns/root1_domain/dsk3a
<snip>
This tell me that the boot disk is dsk3
Regards,
Mike.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-31 11:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-05-31 11:12 ` Mike Ingram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox