1、f:db:50, Host ID: 840fdb50.Rebooting with command: boot Boot device: /pci1e,600000/pci0/pci9/pci0/scsi1/disk0,0:a File and args: SunOS Release 5.10 Version Generic_147147-26 64-bitCopyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.WARNING: md: d102: (Unavailable) needs maint
2、enanceHostname: test-01Insufficient metadevice database replicas located.Use metadb to delete databases which are broken.Ignore any Read-only file system error messages.Reboot the system when finished to reload the metadevice database.After reboot, repair any broken database replicas which were dele
3、ted.Mar 23 17:56:03 svc.startd9: svc:/system/metainit:default: Method /lib/svc/method/svc-metainit failed with exit status 96. system/metainit:default misconfigured: transitioned to maintenance (see svcs -xv for details)05 svc.startd9:/system/filesystem/usr:/lib/svc/method/fs-usr failed with exit st
4、atus 95. system/filesystem/usr:default failed fatally:Requesting System Maintenance Mode(See /lib/svc/share/README for more information.)Console login service(s) cannot runRoot password for system maintenance (control-d to bypass): /输入root密码 single-user privilege assigned to /dev/console.Entering Sy
5、stem Maintenance Mode /系统自动进入维护模式59:19 su: su root succeeded for root on /dev/consoleOracle Corporation SunOS 5.10 Generic Patch January 2005# 在维护模式查看镜像状态,发现有一半子镜像需要维护,这一半子镜像都分布在同一块硬盘,这块硬盘上的metadb也处于unknow状态,可以确定c1t1d0硬盘故障,拔出故障硬盘。# metastatd130: Mirror Submirror 0: d131 State: Okay Submirror 1: d132
6、 State: Needs maintenance Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 30722044 blocks (14 GB)d131: Submirror of d130 Stripe 0: Device Start Block Dbase State Reloc Hot Spare c1t0d0s3 0 No Okay Yes d132: Invoke: metareplace d130 c1t1d0s3 c1t1d0s3 0 No Maintenance
7、Yes d110: d111 d112 20482820 blocks (9.8 GB)d111: Submirror of d110 c1t0d0s1 0 No Okay Yes d112: metareplace d110 c1t1d0s1 c1t1d0s1 0 No Maintenance Yes d100: d101 d102 71683312 blocks (34 GB)d101: Submirror of d100 c1t0d0s0 0 No Okay Yes d102: metareplace d100 c1t1d0s0 c1t1d0s0 0 No Maintenance Yes
8、 Device Relocation Information:Device Reloc Device IDc1t1d0 Yes id1,sdn5000c50002f5d577c1t0d0 Yes id1,sdn5000c50002f54e2b# metadb flags first blk block count a m p lu 16 8192 /dev/dsk/c1t0d0s7 a p l 8208 8192 /dev/dsk/c1t0d0s7 a p l 16400 8192 /dev/dsk/c1t0d0s7 M W p l 16 unknown /dev/dsk/c1t1d0s7 M
9、 W p l 8208 unknown /dev/dsk/c1t1d0s7 M W p l 16400 unknown /dev/dsk/c1t1d0s73.解决方法1(修改system文件)3.1.进入ok模式在维护模式输入init 0进入ok模式# init 0# svc.startd: The system is coming down. Please wait.svc.startd: 81 system services are now being stopped. The system is down.syncing file systems. doneProgram termina
10、tedok ok3.2.从光盘引导进入单用户模式把盘放入光驱,boot cdrom s从光盘引导进入单用户模式ok boot cdrom -s boot cdrom -s /pci1e,600000/pci0/pci1/pci0/ide1f/cdrom0,0:f File and args: -sSunOS Release 5.10 Version Generic_147440-01 64-bitCopyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. i2c_0 failed to add int
11、errupt. i2c_0 operating in POLL MODE only i2c_1 failed to add interrupt. i2c_1 operating in POLL MODE only i2c_0 failed to add interrupt Failed to open device(/pci1f,700000:devctl), rv(19) ppm_init_cb: ppm domain domain_pciegfx will be offline.Booting to milestone milestone/single-user:default.Confi
12、guring devices.Using RPC Bootparams for network configuration information.Attempting to configure interface ce3.Skipped interface ce3Attempting to configure interface ce2.Skipped interface ce2Attempting to configure interface ce1.Skipped interface ce1Attempting to configure interface ce0.Configured
13、interface ce0Attempting to configure interface bge1.Skipped interface bge1Attempting to configure interface bge0.Skipped interface bge0SINGLE USER MODE#3.3.修改/etc/system文件在format中查看硬盘,找到系统根目录所在分区,并把该分区挂载给/a。# formatSearching for disks.doneAVAILABLE DISK SELECTIONS: 0. c1t0d0 /pci1e,600000/pci0/pci9/
14、pci0/scsi1/sd0,0Specify disk (enter its number): 0selecting c1t0d0disk formattedformat ppartitionCurrent partition table (original):Total disk cylinders available: 65533 + 2 (reserved cylinders)Part Tag Flag Cylinders Size Blocks 0 root wm 4685 - 21080 34.18GB (16396/0/0) 71683312 1 swap wu 0 - 4684
15、 9.77GB (4685/0/0) 20482820 2 backup wm 0 - 65532 136.62GB (65533/0/0) 286510276 3 home wm 21081 - 28107 14.65GB (7027/0/0) 30722044 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 28108 - 28113 12.81MB (6/0/0) 26232# mount /dev/dsk/c1t0d0s0
16、/a /把c1t0d0s0分区mount到/a目录 有时会提示需要fsck先检测磁盘的文件系统,如果文件系统损坏则无法mount# TERM=vt100;export TERM; /修改当前环境变量,用户vi编辑# cd /a/etc /进入/a/etc/目录,不要直接vi /etc/system#cp system system.bak /备份system文件# vi system /编辑/a/etc/system文件* Begin MDD root info (do not edit)rootdev:/pseudo/md0:0,100,blk* End MDD root info (do
17、not edit)set md:mirrored_root_flag=1 /最后加入这一行,用户在metadb 仅一半有效时候仍能启动系统3.4.Umount目录/a编辑好/a/etc/system文件后,取消mount的/a目录,不mount可能会出现挂载问题;# cd / /回到根目录,# umount /a /umount 目录/a3.5.重启系统并查看系统状态重启系统,并查看系统状态。# init 6 /pci1e,600000/pci0/pci9/pci0/scsi1/disk0,0 File and args:test-01 console login: rootPassword:
18、Last login: Mon Mar 24 11:54:36 on consoleMar 24 12:19:21 test-01 login: ROOT LOGIN /dev/console# bashbash-3.2# df -hFilesystem size used avail capacity Mounted on/dev/md/dsk/d100 34G 4.7G 29G 15% /devices 0K 0K 0K 0% /devicesctfs 0K 0K 0K 0% /system/contractproc 0K 0K 0K 0% /procmnttab 0K 0K 0K 0%
19、/etc/mnttabswap 13G 1.7M 13G 1% /etc/svc/volatileobjfs 0K 0K 0K 0% /system/objectsharefs 0K 0K 0K 0% /etc/dfs/sharetab/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 34G 4.7G 29G 15% /platform/sun4u-us3/lib/libc_psr.so.1/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 34G 4.7G 29G
20、 15% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1fd 0K 0K 0K 0% /dev/fdswap 13G 40K 13G 1% /tmpswap 13G 40K 13G 1% /var/run/dev/md/dsk/d130 14G 15M 14G 1% /export/home/vol/dev/dsk/c0t0d0/sol_10_811_sparc 2.1G 2.1G 0K 100% /cdrom/sol_10_811_sparcbash-3.2# bash-3.2# metadb a m p luo 16 8192 /dev/dsk/c1t0d0s7 a p luo 8208 8192 /dev/dsk/c1t0d0s7 a p luo 16400 8192 /dev/dsk/c1t0d0s7bash-3.2# metastat Device Start
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2