Solaris 10单镜像盘启动系统Word格式文档下载.docx
- 文档编号:5102155
- 上传时间:2023-05-04
- 格式:DOCX
- 页数:25
- 大小:21.10KB
Solaris 10单镜像盘启动系统Word格式文档下载.docx
《Solaris 10单镜像盘启动系统Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《Solaris 10单镜像盘启动系统Word格式文档下载.docx(25页珍藏版)》请在冰点文库上搜索。
f:
db:
50,HostID:
840fdb50.
Rebootingwithcommand:
boot
Bootdevice:
/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/disk@0,0:
aFileandargs:
SunOSRelease5.10VersionGeneric_147147-2664-bit
Copyright(c)1983,2013,Oracleand/oritsaffiliates.Allrightsreserved.
WARNING:
md:
d102:
(Unavailable)needsmaintenance
Hostname:
test-01
Insufficientmetadevicedatabasereplicaslocated.
Usemetadbtodeletedatabaseswhicharebroken.
IgnoreanyRead-onlyfilesystemerrormessages.
Rebootthesystemwhenfinishedtoreloadthemetadevicedatabase.
Afterreboot,repairanybrokendatabasereplicaswhichweredeleted.
Mar2317:
56:
03svc.startd[9]:
svc:
/system/metainit:
default:
Method"
/lib/svc/method/svc-metainit"
failedwithexitstatus96.
system/metainit:
defaultmisconfigured:
transitionedtomaintenance(see'
svcs-xv'
fordetails)
05svc.startd[9]:
/system/filesystem/usr:
/lib/svc/method/fs-usr"
failedwithexitstatus95.
system/filesystem/usr:
defaultfailedfatally:
RequestingSystemMaintenanceMode
(See/lib/svc/share/READMEformoreinformation.)
Consoleloginservice(s)cannotrun
Rootpasswordforsystemmaintenance(control-dtobypass):
//输入root密码
single-userprivilegeassignedto/dev/console.
EnteringSystemMaintenanceMode//系统自动进入维护模式
59:
19su:
'
suroot'
succeededforrooton/dev/console
OracleCorporationSunOS5.10GenericPatchJanuary2005
#
◆在维护模式查看镜像状态,发现有一半子镜像需要维护,这一半子镜像都分布在同一块硬盘,这块硬盘上的metadb也处于unknow状态,可以确定c1t1d0硬盘故障,拔出故障硬盘。
#metastat
d130:
Mirror
Submirror0:
d131
State:
Okay
Submirror1:
d132
State:
Needsmaintenance
Pass:
1
Readoption:
roundrobin(default)
Writeoption:
parallel(default)
Size:
30722044blocks(14GB)
d131:
Submirrorofd130
Stripe0:
DeviceStartBlockDbaseStateRelocHotSpare
c1t0d0s30NoOkayYes
d132:
Invoke:
metareplaced130c1t1d0s3<
newdevice>
c1t1d0s30NoMaintenanceYes
d110:
d111
d112
20482820blocks(9.8GB)
d111:
Submirrorofd110
c1t0d0s10NoOkayYes
d112:
metareplaced110c1t1d0s1<
c1t1d0s10NoMaintenanceYes
d100:
d101
d102
71683312blocks(34GB)
d101:
Submirrorofd100
c1t0d0s00NoOkayYes
d102:
metareplaced100c1t1d0s0<
c1t1d0s00NoMaintenanceYes
DeviceRelocationInformation:
DeviceRelocDeviceID
c1t1d0Yesid1,sd@n5000c50002f5d577
c1t0d0Yesid1,sd@n5000c50002f54e2b
#metadb
flagsfirstblkblockcount
amplu168192/dev/dsk/c1t0d0s7
apl82088192/dev/dsk/c1t0d0s7
apl164008192/dev/dsk/c1t0d0s7
MWpl16unknown/dev/dsk/c1t1d0s7
MWpl8208unknown/dev/dsk/c1t1d0s7
MWpl16400unknown/dev/dsk/c1t1d0s7
3.解决方法1(修改system文件)
3.1.进入ok模式
在维护模式输入init0进入ok模式
#init0
#svc.startd:
Thesystemiscomingdown.Pleasewait.
svc.startd:
81systemservicesarenowbeingstopped.
Thesystemisdown.
syncingfilesystems...done
Programterminated
ok
ok
3.2.从光盘引导进入单用户模式
把盘放入光驱,bootcdrom–s从光盘引导进入单用户模式
okbootcdrom-s
bootcdrom-s
/pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/cdrom@0,0:
fFileandargs:
-s
SunOSRelease5.10VersionGeneric_147440-0164-bit
Copyright(c)1983,2011,Oracleand/oritsaffiliates.Allrightsreserved.
i2c_0failedtoaddinterrupt.
i2c_0operatinginPOLLMODEonly
i2c_1failedtoaddinterrupt.
i2c_1operatinginPOLLMODEonly
i2c_0failedtoaddinterrupt
Failedtoopendevice(/pci@1f,700000:
devctl),rv(19)
ppm_init_cb:
ppmdomaindomain_pciegfxwillbeoffline.
Bootingtomilestone"
milestone/single-user:
default"
.
Configuringdevices.
UsingRPCBootparamsfornetworkconfigurationinformation.
Attemptingtoconfigureinterfacece3...
Skippedinterfacece3
Attemptingtoconfigureinterfacece2...
Skippedinterfacece2
Attemptingtoconfigureinterfacece1...
Skippedinterfacece1
Attemptingtoconfigureinterfacece0...
Configuredinterfacece0
Attemptingtoconfigureinterfacebge1...
Skippedinterfacebge1
Attemptingtoconfigureinterfacebge0...
Skippedinterfacebge0
SINGLEUSERMODE
#
3.3.修改/etc/system文件
在format中查看硬盘,找到系统根目录所在分区,并把该分区挂载给/a。
#format
Searchingfordisks...done
AVAILABLEDISKSELECTIONS:
0.c1t0d0<
SEAGATE-STT14685CLAR146-E50Acyl65533alt2hd4sec1093>
/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0
Specifydisk(enteritsnumber):
0
selectingc1t0d0
[diskformatted]
format>
p
partition>
Currentpartitiontable(original):
Totaldiskcylindersavailable:
65533+2(reservedcylinders)
PartTagFlagCylindersSizeBlocks
0rootwm4685-2108034.18GB(16396/0/0)71683312
1swapwu0-46849.77GB(4685/0/0)20482820
2backupwm0-65532136.62GB(65533/0/0)286510276
3homewm21081-2810714.65GB(7027/0/0)30722044
4unassignedwm00(0/0/0)0
5unassignedwm00(0/0/0)0
6unassignedwm00(0/0/0)0
7unassignedwm28108-2811312.81MB(6/0/0)26232
#mount/dev/dsk/c1t0d0s0/a//把c1t0d0s0分区mount到/a目录
有时会提示需要fsck先检测磁盘的文件系统,如果文件系统损坏则无法mount
#TERM=vt100;
exportTERM;
//修改当前环境变量,用户vi编辑
#cd/a/etc//进入/a/etc/目录,不要直接vi/etc/system
#cpsystemsystem.bak//备份system文件
#visystem//编辑/a/etc/system文件
*BeginMDDrootinfo(donotedit)
rootdev:
/pseudo/md@0:
0,100,blk
*EndMDDrootinfo(donotedit)
setmd:
mirrored_root_flag=1//最后加入这一行,用户在metadb仅一半有效时候仍能启动系统
3.4.Umount目录/a
编辑好/a/etc/system文件后,取消mount的/a目录,不mount可能会出现挂载问题;
#cd///回到根目录,
#umount/a//umount目录/a
3.5.重启系统并查看系统状态
重启系统,并查看系统状态。
#init6
/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/disk@0,0Fileandargs:
test-01consolelogin:
root
Password:
Lastlogin:
MonMar2411:
54:
36onconsole
Mar2412:
19:
21test-01login:
ROOTLOGIN/dev/console
#bash
bash-3.2#df-h
FilesystemsizeusedavailcapacityMountedon
/dev/md/dsk/d10034G4.7G29G15%/
/devices0K0K0K0%/devices
ctfs0K0K0K0%/system/contract
proc0K0K0K0%/proc
mnttab0K0K0K0%/etc/mnttab
swap13G1.7M13G1%/etc/svc/volatile
objfs0K0K0K0%/system/object
sharefs0K0K0K0%/etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
34G4.7G29G15%/platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
34G4.7G29G15%/platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd0K0K0K0%/dev/fd
swap13G40K13G1%/tmp
swap13G40K13G1%/var/run
/dev/md/dsk/d13014G15M14G1%/export/home
/vol/dev/dsk/c0t0d0/sol_10_811_sparc
2.1G2.1G0K100%/cdrom/sol_10_811_sparc
bash-3.2#
bash-3.2#metadb
ampluo168192/dev/dsk/c1t0d0s7
apluo82088192/dev/dsk/c1t0d0s7
apluo164008192/dev/dsk/c1t0d0s7
bash-3.2#metastat
DeviceStart
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Solaris 10单镜像盘启动系统 10 单镜像盘 启动 系统