- 论坛徽章:
- 0
|
这个问题根本原因是因为device id在metadb中错误造成的
上述两个
md_devid_destroy=1;
md_keep_repl_state=1;
这两个参数是屏蔽device id信息的
完整的metastat重建文档
solaris9故障
POST:Testing Flash/SRAM
POST:Testing SC
POST:Testing XSCF
POST:Banner
POST:FATAL check
POST:Testing Timer1
POST:Testing Tick
POST:Testing MMU
POST:Testing CPU Type
POST:Testing DTAG
POST:Memory Probe
POST:Testing Memory
POST:Testing Softint
POST:Testing U2P
POST:Testing Slave Device
POST:Testing Master Device
POST:System Configure
POST:OBP Start
Fujitsu PRIMEPOWER450 4x SPARC64 V, No Keyboard
OpenBoot 3.19.1-1, 16384 MB memory installed
Ethernet address 0:b:5d:f3:dd:cc, Host ID: 80f2ddcc.
XSCF Version: 4.14.1
Executing last command: boot
Boot device: disk File and args:
SunOS Release 5.9 Version Generic_122300-12 64-bit
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
[url=]/pci@80,4000/fibre-channel@3[/url] (fjpfca0):
INFO : link down.
[url=]/pci@80,2000/fibre-channel@2[/url] (fjpfca1):
INFO : link down.
[url=]/pci@80,2000/fibre-channel@2[/url] (fjpfca1):
INFO : NPORT link up (connected fabric. id=0x9c0300, 2Gbps.)
[url=]/pci@80,2000/fibre-channel@2[/url] (fjpfca1):
found target. target_id=0x1 port_id=0x9c0000 wwn=200600a0b8321a2a alias=CMAPORT1
[url=]/pci@80,4000/fibre-channel@3[/url] (fjpfca0):
INFO : NPORT link up (connected fabric. id=0x1a0300, 2Gbps.)
[url=]/pci@80,4000/fibre-channel@3[/url] (fjpfca0):
found target. target_id=0x1 port_id=0x1a0000 wwn=200700a0b8321a2a alias=CMBPORT1
Cannot mount root on [url=]/pseudo/md@0:0,100,blk[/url] fstype ufs
panic[cpu0]/thread=140c000: vfs_mountroot: cannot mount root
000000000140b970 genunix:vfs_mountroot+70 (0, 0, 0, 200, 148fc38, 0)
%l0-3: 0000000001483400 0000000001483400 0000000000002000 00000000014cede0
%l4-7: 00000000014d4800 0000000001416f18 0000000001483c00 0000000001486c00
000000000140ba20 genunix:main+ac (140bba0, f009e5bc, 140bec0, 3952a7, 2000, 500)
%l0-3: 0000000000000001 000000000140c000 0000000001418188 0000000000000000
%l4-7: 0000000078002000 0000000000398000 00000000014dfcf8 000000000106bf38
skipping system dump - no dump device configured
rebooting...
Resetting ...
Jul 16 16:28:32 CST 2008 XSCF:I::[02030100] Start reset sequence
Jul 16 16:28:33 CST 2008 XSCF:I::[02030200] Reset released...
Jul 16 08:28:36 GMT 2008 PowerOn SelfTest start
解决方法:
1. Booting from CD-RM
ok boot cdrom -s
2.Executing file system check to /(root) partition.
# fsck -y /dev/rdsk/c0t8d0s0
3.Mounting /(root) partition.
# mount /dev/dsk/c0t8d0s0 /mnt
4.Editing /etc/vfstab
# TERM=vt100;export TERM
# vi /mnt/etc/vfstab
(before editing)
--------------------------------------------------------------------------------
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d10 - - swap - no -
/dev/md/dsk/d100 /dev/md/rdsk/d100 / ufs 1 no -
/dev/md/dsk/d60 /dev/md/rdsk/d60 /export/home ufs 2 yes -
/dev/md/dsk/d50 /dev/md/rdsk/d50 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#RMS#/dev/dsk/c4t1d0s6 /dev/rdsk/c4t1d0s6 /opt/goat ufs 2 yes -
---------------------------------------------------------------------------------
(after editing)
--------------------------------------------------------------------------------
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /export/home ufs 2 yes -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#RMS#/dev/dsk/c4t1d0s6 /dev/rdsk/c4t1d0s6 /opt/goat ufs 2 yes -
---------------------------------------------------------------------------------
5. Commenting out "rootdev" line of /etc/system
# vi /mnt/etc/system
(before editing)
--------------------------------------
* Begin MDD root info (do not edit)
forceload: misc/md_trans
forceload: misc/md_raid
forceload: misc/md_hotspares
forceload: misc/md_sp
forceload: misc/md_stripe
forceload: misc/md_mirror
forceload: drv/pcipsy
forceload: drv/fjulsa
forceload: drv/sd
rootdev:/pseudo/md@0:0,100,blk
* End MDD root info (do not edit)
--------------------------------------
(after editing)
--------------------------------------
* Begin MDD root info (do not edit)
forceload: misc/md_trans
forceload: misc/md_raid
forceload: misc/md_hotspares
forceload: misc/md_sp
forceload: misc/md_stripe
forceload: misc/md_mirror
forceload: drv/pcipsy
forceload: drv/fjulsa
forceload: drv/sd
* rootdev:/pseudo/md@0:0,100,blk
* End MDD root info (do not edit)
--------------------------------------
6.Commenting out "mddb_bootlist" line of /kernel/drv/md.conf file.
# vi /mnt/kernel/drv/md.conf
(before editing)
---------------------------------------------
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
# Begin MDD database info (do not edit)
mddb_bootlist1="sd:15:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:135:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/";
# End MDD database info (do not edit)
---------------------------------------------
(after editing)
---------------------------------------------
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
# Begin MDD database info (do not edit)
# mddb_bootlist1="sd:15:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:135:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/";
# End MDD database info (do not edit)
---------------------------------------------
7.Editing /etc/lvm/mddb.cf and /etc/lvm/md.cf
# cd /mnt/etc/lvm
# mv ./mddb.cf ./mddb.cf.bak
# touch ./mddb.cf
# chgrp sys ./mddb.cf
# mv ./md.cf ./md.cf.bak
# touch ./md.cf
# chgrp sys ./md.cf
8.Clearing the status databese area to 0.
# dd if=/dev/zero of=/dev/rdsk/c0t8d0s3 bs=1024k
# dd if=/dev/zero of=/dev/rdsk/c0t0d0s3 bs=1024k
9.Unmount /(root) partition
# cd /
# umount /mnt
10.Executing file system check /(root) partition again.
# fsck -y /dev/rdsk/c0t8d0s0
11.Shuting down the system
# shutdown -i0 -g0 -y
-----------------------------------------------------------------------------------------------------------------------------------------------------
12.Booting the system up
# boot
After system is booted up, please execute metadb/metastat and then you may see
the message "there are no existing databases" for confirming there is no meta device.
13.Creating status database.
# metadb -f -a -c 3 c0t8d0s3
# metadb -f -a -c 3 c0t0d0s3
14.Creating mirror of /(root) partition.
# metainit -f d11 1 1 c0t8d0s0
# metainit -f d12 1 1 c0t0d0s0
# metainit d1 -m d11
# metaroot d1
confirm that the root partition in /etc/vfstab is metadevice and rooddev is added in the
/etc/systme.
15. Invalidating device ID
# vi /kernel/drv/md.conf
(before editing)
---------------------------------------------
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
# Begin MDD database info (do not edit)
mddb_bootlist1="sd:15:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:135:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/";
# End MDD database info (do not edit)
---------------------------------------------
(after editing)
---------------------------------------------
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
md_devid_destroy=1;(add it)
md_keep_repl_state=1;(add it)
# Begin MDD database info (do not edit)
mddb_bootlist1="sd:15:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:135:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/";
# End MDD database info (do not edit)
---------------------------------------------
16.Locking the file system and then reboot it once.
# lockfs -fa
# shutdown -i6 -g0 -y
Confirming the result of executing metastat turns to be that device ID is invalid.
valid
Device Relocation Information:
Device Reloc Device ID
c1t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800UFU
c0t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800ULK
invalid
Device Relocation Information:
Device Reloc Device ID
c1t0d0 No
c0t0d0 No
17.Creating mirror of the rest of partitions.
# metainit -f d21 1 1 c0t8d0s1
# metainit -f d22 1 1 c0t0d0s1
# metainit d2 -m d21
# metainit -f d51 1 1 c0t0d0s5
# metainit -f d52 1 1 c1t0d0s5
# metainit d50 -m d51
# metainit -f d61 1 1 c0t0d0s6
# metainit -f d62 1 1 c1t0d0s6
# metainit d60 -m d61
18.Editing /etc/vfstab
# vi /etc/vfstab
(before editing)
--------------------------------------------------------------------------------
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /export/home ufs 2 yes -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#RMS#/dev/dsk/c4t1d0s6 /dev/rdsk/c4t1d0s6 /opt/goat ufs 2 yes -
---------------------------------------------------------------------------------
(after editing)
--------------------------------------------------------------------------------
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d10 - - swap - no -
/dev/md/dsk/d100 /dev/md/rdsk/d100 / ufs 1 no -
/dev/md/dsk/d60 /dev/md/rdsk/d60 /export/home ufs 2 yes -
/dev/md/dsk/d50 /dev/md/rdsk/d50 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#RMS#/dev/dsk/c4t1d0s6 /dev/rdsk/c4t1d0s6 /opt/goat ufs 2 yes -
---------------------------------------------------------------------------------
19.Rebooting the system
# shutdown -i6 -g0 -y
20.Synchronizing the mirror disks
# metattach d1 d12
# metattach d2 d22
*You can confirm the status of mirror synchronization by executing the command below.
# metastat | grep %
As a result, please confirm all the status are Okay.
21. Setting the dump device.
# dumpadm -d swap |
|