Solaris 10单镜像盘启动系统

  • 格式:docx
  • 大小:39.34 KB
  • 文档页数:20

Solaris 10单镜像盘启动系统1.概述在Solaris系统重启后,发现其中一块镜像盘物理故障,或一块硬盘上的metadb或数据有丢失,导致系统启动时自动进入维护模式,本文档介绍在上述情况下启动系统的操作。

操作环境如下:2.操作准备1、准备一张Solaris 10的光盘用于进入单用户模式;2.1.确认硬盘故障查看系统启动告警信息ok bootSun Ultra 45 Workstation, No KeyboardCopyright 2005 Sun Microsystems, Inc. All rights reserved.OpenBoot 4.21.2, 4096 MB memory installed, Serial #68148048.Ethernet address 0:14:4f:f:db:50, Host ID: 840fdb50.Rebooting with command: bootBoot device: /pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/disk@0,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 maintenanceHostname: 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 deleted.Mar 23 17:56:03 svc.startd[9]: svc:/system/metainit:default: Method "/lib/svc/method/svc-metainit" failed with exit status 96.Mar 23 17:56:03 svc.startd[9]: system/metainit:default misconfigured: transitioned to maintenance (see 'svcs -xv' for details)Mar 23 17:56:05 svc.startd[9]: svc:/system/filesystem/usr:default: Method "/lib/svc/method/fs-usr" failed with exit status 95.Mar 23 17:56:05 svc.startd[9]: system/filesystem/usr:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)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 System Maintenance Mode //系统自动进入维护模式Mar 23 17:59:19 su: 'su root' succeeded for root on /dev/consoleOracle Corporation SunOS 5.10 Generic Patch January 2005#在维护模式查看镜像状态,发现有一半子镜像需要维护,这一半子镜像都分布在同一块硬盘,这块硬盘上的metadb也处于unknow状态,可以确定c1t1d0硬盘故障,拔出故障硬盘。

# metastatd130: MirrorSubmirror 0: d131State: OkaySubmirror 1: d132State: Needs maintenancePass: 1Read option: roundrobin (default)Write option: parallel (default)Size: 30722044 blocks (14 GB)d131: Submirror of d130State: OkaySize: 30722044 blocks (14 GB)Stripe 0:Device Start Block Dbase State Reloc Hot Spare c1t0d0s3 0 No Okay Yesd132: Submirror of d130State: Needs maintenanceInvoke: metareplace d130 c1t1d0s3 <new device>Size: 30722044 blocks (14 GB)Stripe 0:Device Start Block Dbase State Reloc Hot Spare c1t1d0s3 0 No Maintenance Yesd110: MirrorSubmirror 0: d111State: OkaySubmirror 1: d112State: Needs maintenancePass: 1Read option: roundrobin (default)Write option: parallel (default)Size: 20482820 blocks (9.8 GB)d111: Submirror of d110State: OkaySize: 20482820 blocks (9.8 GB)Stripe 0:Device Start Block Dbase State Reloc Hot Spare c1t0d0s1 0 No Okay Yesd112: Submirror of d110State: Needs maintenanceInvoke: metareplace d110 c1t1d0s1 <new device>Size: 20482820 blocks (9.8 GB)Stripe 0:Device Start Block Dbase State Reloc Hot Spare c1t1d0s1 0 No Maintenance Yesd100: MirrorSubmirror 0: d101State: OkaySubmirror 1: d102State: Needs maintenancePass: 1Read option: roundrobin (default)Write option: parallel (default)Size: 71683312 blocks (34 GB)d101: Submirror of d100State: OkaySize: 71683312 blocks (34 GB)Stripe 0:Device Start Block Dbase State Reloc Hot Sparec1t0d0s0 0 No Okay Yesd102: Submirror of d100State: Needs maintenanceInvoke: metareplace d100 c1t1d0s0 <new device>Size: 71683312 blocks (34 GB)Stripe 0:Device Start Block Dbase State Reloc Hot Sparec1t1d0s0 0 No Maintenance YesDevice Relocation Information:Device Reloc Device IDc1t1d0 Yes id1,sd@n5000c50002f5d577c1t0d0 Yes id1,sd@n5000c50002f54e2b###### metadbflags first blk block counta m p lu 16 8192 /dev/dsk/c1t0d0s7 a p l 8208 8192 /dev/dsk/c1t0d0s7 a p l 16400 8192 /dev/dsk/c1t0d0s7M W p l 16 unknown /dev/dsk/c1t1d0s7 M W p l 8208 unknown /dev/dsk/c1t1d0s7M W p l 16400 unknown /dev/dsk/c1t1d0s7#3.解决方法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.svc.startd: The system is down.syncing file systems... doneProgram terminatedokok3.2.从光盘引导进入单用户模式把盘放入光驱,boot cdrom –s从光盘引导进入单用户模式ok boot cdrom -sSun Ultra 45 Workstation, No KeyboardCopyright 2005 Sun Microsystems, Inc. All rights reserved.OpenBoot 4.21.2, 4096 MB memory installed, Serial #68148048.Ethernet address 0:14:4f:f:db:50, Host ID: 840fdb50.Rebooting with command: boot cdrom -sBoot device: /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/cdrom@0,0:f File and args: -s SunOS Release 5.10 Version Generic_147440-01 64-bitCopyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.WARNING: i2c_0 failed to add interrupt.WARNING: i2c_0 operating in POLL MODE onlyWARNING: i2c_1 failed to add interrupt.WARNING: i2c_1 operating in POLL MODE onlyWARNING: i2c_0 failed to add interruptWARNING: Failed to open device(/pci@1f,700000:devctl), rv(19)WARNING: ppm_init_cb: ppm domain domain_pciegfx will be offline.Booting to milestone "milestone/single-user:default".Configuring 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 interface ce0Attempting to configure interface bge1...Skipped interface bge1Attempting to configure interface bge0...Skipped interface bge0Requesting System Maintenance ModeSINGLE USER MODE#3.3.修改/etc/system文件在format中查看硬盘,找到系统根目录所在分区,并把该分区挂载给/a。