版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Solaris 10拆除镜像单盘启动1. 概述在Solaris系统发生故障,系统重启后无法进入系统,也不会自动进入维护模式(metadb全部丢失),不断自动重启情况下,通过修改vfstab和system文件,恢复到不带镜像的单盘启动操作系统。操作环境如下:主机系统版本硬盘列表备注Sun Fire V240Solaris10 Sparcc0t0d0系统盘c0t1d0系统盘2. 操作准备 1、准备一张Solaris 10的光盘用于进入单用户模式;2.1. 确认故障u 根据下列系统启动信息,可才发现系统找不到启动的镜像盘,可以判断是两块镜像硬盘同时故障,或metadb文件全部丢失所致。ok boot
2、 Sun Blade 2500, No KeyboardCopyright 1998-2003 Sun Microsystems, Inc. All rights reserved.OpenBoot 4.9.7, 4096 MB memory installed, Serial #60984762.Ethernet address 0:3:ba:a2:8d:ba, Host ID: 83a28dba.Rebooting with command: boot Boot device: /pci1d,700000/scsi4/disk1,0 File and args: SunOS Release
3、 5.10 Version Generic_147147-26 64-bitCopyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.Cannot open mirrored root device, error 19 /不能启动镜像磁盘Cannot remount root on /pseudo/md0:0,100,blk fstype ufs paniccpu0/thread=180e000: vfs_mountroot: cannot remount root000000000180b950 g
4、enunix:vfs_mountroot+398 (60010fdaac0, 1869298, 188d858, 18b3400, 18bb800, 1863bd0) %l0-3: 0000060010fdaac0 0000000001296400 0000000001863968 0000060010fdaac0 %l4-7: 000000000188d858 0000000000002021 0000000000000021 0000000000002000000000000180ba10 genunix:main+10c (18b2800, 180c000, 183b1c0, 10a80
5、00, 0, 183c070) %l0-3: 0000000000000001 0000000070002000 0000000070002000 0000000000000000 %l4-7: 0000000001843800 0000000000000000 0000000001815400 0000000001815648syncing file systems. doneskipping system dump - no dump device configuredrebooting. /系统不断自动重启Sun Blade 2500, No KeyboardCopyright 1998
6、-2003 Sun Microsystems, Inc. All rights reserved.OpenBoot 4.9.7, 4096 MB memory installed, Serial #60984762.Ethernet address 0:3:ba:a2:8d:ba, Host ID: 83a28dba.Rebooting with command: boot Boot device: /pci1d,700000/scsi4/disk0,0:a File and args: |/k / 3. 解决方法(修改vfstab和system文件)3.1. 进入ok模式在维护模式输入ini
7、t 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 terminatedok ok3.2. 从光盘引导进入单用户模式把盘放入光驱,boot cdrom s从光盘引导进入单用户模式ok boot cdrom -sBoot device: /pci1e,600000/ided/c
8、drom2,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.Booting to milestone "milestone/single-user:default".Configuring devices.Using RPC Bootparams for network configuration information.Att
9、empting 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 bge0.Skipped interface bge0Req
10、uesting System Maintenance ModeSINGLE USER MODE# #3.3. Mount磁盘分区到/a# formatSearching for disks.doneAVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci1d,700000/scsi4/sd0,0 1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci1d,700000/scsi4/sd1,0Specify disk
11、(enter its number): 1selecting c0t1d0disk formattedFORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the
12、 disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !<cmd> - execute <cmd>, then re
13、turn quitformat> pPARTITION MENU: 0 - change 0' partition 1 - change 1' partition 2 - change 2' partition 3 - change 3' partition 4 - change 4' partition 5 - change 5' partition 6 - change 6' partition 7 - change 7' partition select - select a predefined table modi
14、fy - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !<cmd> - execute <cmd>, then return quitpartition> pCurrent partition table (original):Total disk cylinders available: 14087 + 2 (
15、reserved cylinders)Part Tag Flag Cylinders Size Blocks 0 root wm 2013 - 10063 39.07GB (8051/0/0) 81926976 1 swap wu 0 - 2012 9.77GB (2013/0/0) 20484288 2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312 3 home wm 10064 - 13082 14.65GB (3019/0/0) 30721344 4 unassigned wu 0 0 (0/0/0) 0 5 unassigned w
16、u 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wm 13083 - 13103 104.34MB (21/0/0) 213696partition> qFORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the di
17、sk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-c
18、haracter volume name !<cmd> - execute <cmd>, then return quitformat> q# # # mount /dev/dsk/c0t1d0s0 /a /把c0t1d0s0分区mount到/a目录 有时会提示需要fsck先检测磁盘的文件系统,如果文件系统损坏则无法mount3.4. 修改vsftab和system文件在format中查看硬盘,找到系统根目录所在分区,并把该分区挂载给/a。 # TERM=vt100;export TERM; /修改当前环境变量,用户vi编辑# cd /a/etc /进入/a/et
19、c/目录#cp vfstab vfstab.bak /备份vfstab文件#vi vfstab /编辑vfstab文件 /注释掉镜像的行,添加关于磁盘分区的信息#device device mount FS fsck mount #to mount to fsck point type pass at boot options#fd - /dev/fd fd - no -/proc - /proc proc - no -/dev/dsk/c0t1d0s1 - - swap - no -#/dev/md/dsk/d110 - - swap - no -/dev/dsk/c0t1d0s3 /dev
20、/rdsk/c0t1d0s3 /export/home ufs 2 #/dev/md/dsk/d130 /dev/md/rdsk/d130 /export/home ufs 2 /dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no -#/dev/md/dsk/d100 /dev/md/rdsk/d100 / ufs 1 no - "vfstab" 18 lines, 709 characters # #cp system system.bak /备份system文件# vi system /编辑/a/etc/system文件* Be
21、gin MDD root info (do not edit)#rootdev:/pseudo/md0:0,100,blk /注释掉启动盘信息* End MDD root info (do not edit)#set md:mirrored_root_flag=1 /注释掉关于镜像启动的信息3.5. Umount目录/a编辑好/a/etc/vfstab和/a/etc/system文件后,取消mount的/a目录,不mount可能会出现挂载问题;# cd / /回到根目录,# umount /a /umount 目录/a3.6. 重启系统并查看系统状态重启系统,并查看系统状态# init 0sy
22、ncing file systems. doneProgram terminatedok ok boot disk1Sun Blade 2500, No KeyboardCopyright 1998-2003 Sun Microsystems, Inc. All rights reserved.OpenBoot 4.9.7, 4096 MB memory installed, Serial #60984762.Ethernet address 0:3:ba:a2:8d:ba, Host ID: 83a28dba.Rebooting with command: boot disk1 Boot d
23、evice: /pci1d,700000/scsi4/disk1,0 File and args: SunOS Release 5.10 Version Generic_147147-26 64-bitCopyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.Hostname: test-02test-02 console login: Nov 20 16:41:56 svc.startd9: svc:/system/mdmonitor:default: Method "/lib/svc/m
24、ethod/svc-mdmonitor" failed with exit status 1.Nov 20 16:41:59 svc.startd9: svc:/system/mdmonitor:default: Method "/lib/svc/method/svc-mdmonitor" failed with exit status 1.Nov 20 16:42:01 test-02 sendmail534: My unqualified host name (test-02) unknown; sleeping for retryNov 20 16:42:2
25、6 test-02 svc.startd9: system/mdmonitor:default failed: transitioned to maintenance (see 'svcs -xv' for details)Nov 20 16:43:01 test-02 sendmail534: unable to qualify my own domain name (test-02) - using short nametest-02 console login: rootPassword: Nov 20 16:43:31 test-02 login: ROOT LOGIN /dev/consoleLast login: Wed Nov 19 20:28:08 on consoleOracle Corporation SunOS 5.10 Generic Patch January 2005# # # # bashbash-3.2# df -hFilesystem size used avail capacity Mounted on/dev/dsk/c0t1d0s0 38G
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 深圳市劳务员考试题库及答案
- 人卫技师考试题库及答案
- 辅警职责培训课件
- 辅警作风建设培训课件
- 护理对医疗质量改进的贡献
- 2026年深圳中考语文文言文翻译专项试卷(附答案可下载)
- 2026年深圳中考英语临考冲刺押题试卷(附答案可下载)
- 2026年深圳中考物理易混考点辨析试卷(附答案可下载)
- 2026年深圳中考生物专题整合训练试卷(附答案可下载)
- 2026年深圳中考生物名师原创预测试卷(附答案可下载)
- 2026上海碧海金沙投资发展有限公司社会招聘备考题库及答案1套
- 二十届四中全会测试题及参考答案
- 公司电脑使用规范制度
- 2026年全年日历表带农历(A4可编辑可直接打印)预留备注位置
- 办公楼高清网络视频监控系统解决方案
- 膜分离技术论文
- 春节序曲简谱
- 三菱FX3U系列PLC编程技术与应用 第三章
- 麦尔兹石灰窑培训
- GA/T 947.2-2015单警执法视音频记录系统第2部分:执法记录仪
- 工程施工合理化建议及优惠条件
评论
0/150
提交评论