InfoDoc ID   Synopsis   Date
18469   Procedure for replacing primary, alternate pathed, mirrored bootdisk on a Sun StorEdge[TM] A5000   9 Jul 2002

Status Issued

Description
This procedure is for replacing a primary bootdisk that is located in an A5000,
dual pathed with AP 2.1, mirrored with Vxvm.


If there is a vxapslice on this disk - 

  1)	apconfig -D
  2)	apdb -d /dev/rdsk/c?t?d?s?

otherwise continue from here

3)	vxdiskadm opt#4		"Remove Disk for Replacement"
4)	vxdiskadm opt#11	"offline removed disk"
5)	luxadm remove_device <BoxName>,f/r#
6)	luxadm insert_device <BoxName>,f/r#
7) 	apdisk -u -p <primaryPath> -a <AlternatePath>
8) 	apdb -C
9) 	touch /devices
10) 	drvconfig -i ap_dmd
11) 	apconfig -R
12)	vxdctl enable
13)	vxdiskadm opt#5		"Replace failed disk"

Wait until all rootdisk volumes are re-synced ...

If you do have patch 105463-07 or later on SEVM 2.5, or you do not
have patch 106606-02 or later on SEVM 2.6, or you are running a
release prior to SEVM 2.5 then you will need to create slices for
/usr, /opt & /var (if applicable).

  14)	vxprint -th -g rootdg
  15)	/etc/vx/bin/vxmksdpart -g rootdg <swap-subdisk> 1 0x03 0x01
  16)	/etc/vx/bin/vxmksdpart -g rootdg <usr-subdisk> <slice#> 0x04 0x00
  17)	/etc/vx/bin/vxmksdpart -g rootdg <var-subdisk> <slice#> 0x07 0x00
  18)	/etc/vx/bin/vxmksdpart -g rootdg <opt-subdisk> <slice#> 0x00 0x00

19)	prtvtoc /dev/rdsk/c?t?s?s2
20)	Edit /etc/vfstab.prevm or the comments in /etc/vfstab to reflect
	any renumbering of the slices.

If there was a vxapslice on this disk

  21)	vxedit rm rootdiskAPDB
  22)	vxapslice rootdisk
  23)	apdb -c /dev/rdsk/c?t?d?s?

Finally you should schedule some downtime to change the boot disk's device
path in the NVRAM.

At the OBP prompt ...
24)	nvunalias disk
25)	nvalias disk <PathToPrimaryBootDisk>
26)	boot <PrimaryBootDisk> or boot disk

                  
SUBMITTER: Ken Booth APPLIES TO: Hardware/Disk Storage Subsystem/StorEdge Disk Array/StorEdge A5000 ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.