Double disk failure, recovering rootdg
Through no fault of mine, upon replacing rootmirror, rootdisk went belly up in a V880. we booted off DVD, placed an OS on disk1, installed netbackup software, and restored through disk1 to disk0 which was on /mnt, /mnt/usr, and /mnt/var. Restore worked fine, we followed some guidelines, touched the install-db file, and rebooted. when I attempted to re-encapsulate the disk that failed but now I have a rootdg I cant get rid of. How can I tell veritas this is a clean disk, and re-encapsulate the disk for adding to the original rootdg? or importing the old rootdg to a new DG and then moving those volumes to the new rootdg? I was thinking I could add c3t1d0s2 to rootdg, remove c3t0d0s2 and then run vxdiskadm on c3t0d0s2 to encapsulate it. I can do another restore if need be to disk0. We were trying to follow the following, however there was no bootdg so we did not perform step 15. using vxedit I was able to remove all the various plexes, subdisks, and volumes but I can not remove remove the new disk group or disk. https://sort.symantec.com/public/documents/sf/5.0/solaris/html/vxvm_tshoot/ts_ch_Solarisbootdiskrecovery_vm15.html
Bear in mind, this is part of a cluster, and the cluster appears to be running ok still. I am hoping to nurse this back to life and run for another year or so. also yes I am aware the webip is faulted, and yes I know this stuff was EOL like years ago.
garbcorp1# pkginfo -l VRTSvmsa
PKGINST: VRTSvmsa
NAME: VERITAS Volume Manager Storage Administrator
CATEGORY: system
ARCH: sparc
VERSION: 3.2,REV=07.27.2001.19.47
garbcorp1# rm /etc/vx/reconfig.d/state.d/install-db
garbcorp1# vxiod set 10
garbcorp1# vxconfigd -m disable
garbcorp1# vxdctl enable
vxvm:vxconfigd: WARNING: Disk c3t5d0s2 names group rootdg, but group ID differs
vxvm:vxconfigd: WARNING: Disk c3t2d0s2 names group rootdg, but group ID differs
vxvm:vxconfigd: WARNING: Disk c3t4d0s2 names group rootdg, but group ID differs
vxvm:vxconfigd: WARNING: Disk c3t3d0s2 names group rootdg, but group ID differs
garbcorp1# vxdg -f destroy rootdg
vxvm:vxdg: ERROR: Disk group rootdg: deport failed: Operation not allowed on root disk group
garbcorp1# vxdg -o override rmdisk rootdisk
vxvm:vxdg: ERROR: disassociating disk-media rootdisk:
Cannot remove last disk in disk group
garbcorp1# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 sliced - (prod-dg1) online
c1t1d0s2 sliced - (prod-dg1) online
c1t2d0s2 sliced - (prod-dg1) online
c1t3d0s2 sliced - (prod-dg2) online
c1t4d0s2 sliced - (prod-dg2) online
c1t5d0s2 sliced - (prod-dg2) online
c1t8d0s2 sliced - (ingres-dg1) online
c1t9d0s2 sliced - (ingres-dg1) online
c1t10d0s2 sliced - (ingres-dg1) online
c1t11d0s2 sliced - (ingres-dg2) online
c1t12d0s2 sliced - (ingres-dg2) online
c1t13d0s2 sliced - (ingres-dg2) online
c2t0d0s2 sliced - (prod-dg1) online
c2t1d0s2 sliced - (prod-dg1) online
c2t2d0s2 sliced - (prod-dg1) online
c2t3d0s2 sliced - (prod-dg2) online
c2t4d0s2 sliced - (prod-dg2) online
c2t5d0s2 sliced - (prod-dg2) online
c2t8d0s2 sliced - (ingres-dg1) online
c2t9d0s2 sliced - (ingres-dg1) online
c2t10d0s2 sliced - (ingres-dg1) online
c2t11d0s2 sliced - (ingres-dg2) online
c2t12d0s2 sliced - (ingres-dg2) online
c2t13d0s2 sliced - (ingres-dg2) online
c3t0d0s2 sliced rootdisk rootdg online
c3t1d0s2 sliced - - online
c3t2d0s2 sliced - (rootdg) online
c3t3d0s2 sliced - (rootdg) online
c3t4d0s2 sliced - (rootdg) online
c3t5d0s2 sliced - (rootdg) online
garbcorp1# vxprint -qhtrg rootdg
dg rootdg default default 0 1343344112.1025.garbcorp1
dm rootdisk c3t0d0s2 sliced 2888 71124291 -
garbcorp1# vxdg list rootdg
Group: rootdg
dgid: 1343344112.1025.garbcorp1
import-id: 0.1
flags:
version: 90
detach-policy: global
copies: nconfig=default nlog=default
config: seqno=0.1407 permlen=2112 free=2110 templen=2 loglen=320
config disk c3t0d0s2 copy 1 len=2112 state=clean online
log disk c3t0d0s2 copy 1 len=320
garbcorp1# /opt/VRTSvcs/bin/hastatus -summary
-- SYSTEM STATE
-- System State Frozen
A garbcorp1 RUNNING 0
A garbcorp2 RUNNING 0
-- GROUP STATE
-- Group System Probed AutoDisabled State
B ClusterService garbcorp1 Y N ONLINE
B ClusterService garbcorp2 Y N OFFLINE|FAULTED
B production_grp garbcorp1 Y N OFFLINE
B production_grp garbcorp2 Y N ONLINE
-- RESOURCES FAILED
-- Group Type Resource System
C ClusterService IP webip garbcorp2
since I could not delete rootdg I added rootmirror disk to the group, reencapsulated rootdisk, mirrored with option 6, and then readded my other rootdg disks. I seem to be okay now