亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 2045 | 回復: 11
打印 上一主題 下一主題

為何總是起動系統(tǒng)盤? [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-12-20 12:48 |只看該作者 |倒序瀏覽
我有一臺v440 ,原來做了raid1 ,現(xiàn)在給 dettach了,我把vfstab 改回 /dev/dsk/c1t1d0s0了,
到ok下, 看原來的devsalias,disk1確實是第二塊盤的別名。每次boot disk1 總是其的 /dev/md/dsk/d0,那第一個盤呀?
我記錄下,大家?guī)兔纯础?br />

root # cd /etc
root@ # more vfstab
#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/d1  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      logging
/dev/md/dsk/d3  /dev/md/rdsk/d3 /export ufs     2       yes     logging
swap    -       /tmp    tmpfs   -       yes     -
root# mount /dev/dsk/c1t1d0s0
mount: mount point cannot be determined
root# mount /dev/dsk/c1t1d0s0 /mnt
root # cd /mnt/etc              可以看出來 第二塊盤的 vfstab我已經(jīng)改過來了
root # more vfstab
#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/c1t1d0s1       -       -       swap    -       no      -
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0    /       ufs     1       no      logging
/dev/dsk/c1t1d0s3       /dev/rdsk/c1t1d0s3      /export ufs     2       yes     
logging
swap    -       /tmp    tmpfs   -       yes     -

root # init 0
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
httpd stopping.
Print services already stopped.
Dec 20 18:43:37 epiccweb1 syslogd: going down on signal 15
The system is down.
syncing file systems... done
Program terminated
{2} ok
{2} ok
{2} ok
{2} ok devalias
net                      /pci@1c,600000/network@2
net1                     /pci@1f,700000/network@1
net0                     /pci@1c,600000/network@2
cdrom                    /pci@1e,600000/ide@d/cdrom@0,0:f
ide                      /pci@1e,600000/ide@d
disk3                    /pci@1f,700000/scsi@2/disk@3,0
disk2                    /pci@1f,700000/scsi@2/disk@2,0
disk1                    /pci@1f,700000/scsi@2/disk@1,0  沒有設置別名 ,系統(tǒng)自帶的
disk0                    /pci@1f,700000/scsi@2/disk@0,0
disk                     /pci@1f,700000/scsi@2/disk@0,0
scsi                     /pci@1f,700000/scsi@2
i2c                      /pci@1e,600000/isa@7/i2c@0,320
sc-control               /pci@1e,600000/isa@7/rmc-comm@0,3e8
ttyb                     /pci@1e,600000/isa@7/serial@0,2e8
ttya                     /pci@1e,600000/isa@7/serial@0,3f8
pci1f                    /pci@1f,700000
pci1e                    /pci@1e,600000
pci1d                    /pci@1d,700000
pci1c                    /pci@1c,600000
isa                      /pci@1e,600000/isa@7
name                     aliases
{2} ok boot disk1   啟動的是第二塊盤  

SC Alert: Host System has Reset
Probing system devices
Probing memory
Probing I/O buses
screen not found.
keyboard not found.
Keyboard not present.  Using ttya for input and output.
Probing system devices
Probing memory
Probing I/O buses


Sun Fire V440, No Keyboard
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.17.2, 16384 MB memory installed, Serial #64153215.
Ethernet address 0:3:ba:d2:e6:7f, Host ID: 83d2e67f.



Rebooting with command: boot disk1                                    
Boot device: /pci@1f,700000/scsi@2/disk@1,0  File and args:
SunOS Release 5.9 Version Generic_118558-35 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
WARNING: forceload of misc/md_trans failed
WARNING: forceload of misc/md_raid failed
WARNING: forceload of misc/md_hotspares failed
WARNING: forceload of misc/md_sp failed
Hardware watchdog enabled
configuring IPv4 interfaces: ce0.
Hostname: epiccweb1
The system is coming up.  Please wait.
checking ufs filesystems
/dev/md/rdsk/d3: is logging.
starting rpc services: rpcbind done.
Setting netmask of ce0 to 255.255.192.0
starting internet domain name server.
Setting default IPv4 interface for multicast: add net 224.0/4: gateway epiccweb1
syslog service starting.
httpd starting.
volume management starting.
The system is ready.


console login:
console login: root

Dec 20 18:46:50 login: ROOT LOGIN /dev/console
Last login: Tue Dec 19 19:30:46 on console
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
Sourcing //.profile-EIS.....

root#cd /etc
root # more vfstab
#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/d1  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      logging
/dev/md/dsk/d3  /dev/md/rdsk/d3 /export ufs     2       yes     logging
swap    -       /tmp    tmpfs   -       yes     -
可以看出來 啟動的又是 系統(tǒng)盤, 第一塊盤

到底為什么不能啟動到第二塊盤呢?

論壇徽章:
2
IT運維版塊每日發(fā)帖之星
日期:2016-03-19 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-07-05 06:20:00
2 [報告]
發(fā)表于 2006-12-20 14:32 |只看該作者
你是怎么判斷是從第一塊盤啟動的?
Rebooting with command: boot disk1                                    
Boot device: /pci@1f,700000/scsi@2/disk@1,0  File and args:
明明是從第二地位啟動的嗎!!

論壇徽章:
0
3 [報告]
發(fā)表于 2006-12-20 14:52 |只看該作者
你看到我剛才用 mount  把第二塊盤 掛上來 ,看到是more vfstab  的內(nèi)容,第一塊的more vfstab內(nèi)容是不同的,第一塊硬盤 是 用md起的,第二塊是 /dev/dsk/c1t1d0s0起的,可以分出。

論壇徽章:
0
4 [報告]
發(fā)表于 2006-12-20 15:14 |只看該作者
在OK下將下輸出貼出來.

probe-scsi-all
printenv

論壇徽章:
0
5 [報告]
發(fā)表于 2006-12-20 15:20 |只看該作者
root # eeprom
test-args: data not available.
diag-passes=1
local-mac-address?=true
fcode-debug?=false
scsi-initiator-id=7
oem-logo: data not available.
oem-logo?=false
oem-banner: data not available.
oem-banner?=false
ansi-terminal?=true
screen-#columns=80
screen-#rows=34
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttyb-mode=9600,8,n,1,-
ttya-mode=9600,8,n,1,-
output-device=screen
input-device=keyboard
auto-boot-on-error?=true
error-reset-recovery=sync
load-base=16384
auto-boot?=false
network-boot-arguments: data not available.
boot-command=boot
diag-file: data not available.
diag-device=disk
boot-file: data not available.
boot-device=disk:a disk1
use-nvramrc?=false
nvramrc: data not available.
security-mode=none
security-password: data not available.
security-#badlogins=0
verbosity=normal
diag-trigger=error-reset power-on-reset
service-mode?=false
diag-script=normal
diag-level=max
diag-switch?=false

ls -l
total 80
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s0 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:a
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s1 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:b
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s2 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:c
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s3 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:d
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s4 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:e
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s5 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:f
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s6 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:g
lrwxrwxrwx   1 root     root          42 Dec  5 16:37 c0t0d0s7 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:h
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s0 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:a
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s1 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:b
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s2 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:c
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s3 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:d
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s4 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:e
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s5 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:f
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s6 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:g
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t0d0s7 -> ../../devices/pci@1f,700000/scsi@2/sd@0,0:h
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s0 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:a
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s1 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:b
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s2 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:c
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s3 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:d
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s4 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:e
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s5 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:f
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s6 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:g
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t1d0s7 -> ../../devices/pci@1f,700000/scsi@2/sd@1,0:h
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s0 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:a
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s1 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:b
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s2 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:c
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s3 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:d
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s4 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:e
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s5 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:f
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s6 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:g
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t2d0s7 -> ../../devices/pci@1f,700000/scsi@2/sd@2,0:h
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s0 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:a
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s1 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:b
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s2 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:c
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s3 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:d
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s4 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:e
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s5 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:f
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s6 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:g
lrwxrwxrwx   1 root     root          43 Dec  5 16:37 c1t3d0s7 -> ../../devices/pci@1f,700000/scsi@2/sd@3,0:h

現(xiàn)在我暫時不能去接串口 連到ok 只能給你看這個。

論壇徽章:
2
IT運維版塊每日發(fā)帖之星
日期:2016-03-19 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-07-05 06:20:00
6 [報告]
發(fā)表于 2006-12-20 15:44 |只看該作者
系統(tǒng)中運行以下命令可以知道是什么哪塊盤啟動的。
prtpicl -v |grep bootpath

然后比較盤物理地址。

[ 本帖最后由 bencyber 于 2006-12-20 15:47 編輯 ]

論壇徽章:
2
雙魚座
日期:2014-02-23 12:10:03操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-12-17 06:20:00
7 [報告]
發(fā)表于 2006-12-20 15:53 |只看該作者
# prtconf -pv|grep bootpath

論壇徽章:
0
8 [報告]
發(fā)表于 2006-12-20 16:09 |只看該作者
root # prtconf -pv|grep bootpath
        bootpath:  '/pci@1f,700000/scsi@2/disk@1,0:a'
root # prtpicl -v |grep bootpath
          :bootpath      /pci@1f,700000/scsi@2/disk@1,0:a
看樣子是啟動的第二塊,但more vfstab 怎么解釋?標記的啟動第二塊,但實際啟動的是第一塊呀,我暈!

論壇徽章:
0
9 [報告]
發(fā)表于 2006-12-20 17:48 |只看該作者
啟動順序首先是disk,然后是disk1
boot-device=disk:a disk1

boot  disk1 對應的就是 /pci@1f,700000/scsi@2/disk@1,0:a  也就是你現(xiàn)在啟動運行的盤


如果你想開機自動運行另一盤,將啟動設備順序設置如下:

boot-device=/pci@1f,700000/scsi@2/disk@0,0 disk disk0 disk1

disk0                    /pci@1f,700000/scsi@2/disk@0,0
disk                      /pci@1f,700000/scsi@2/disk@0,0

然后{OK} 狀態(tài)下  boot -r

論壇徽章:
0
10 [報告]
發(fā)表于 2006-12-20 22:42 |只看該作者
回樓主:
    如果想還原原始的啟動設備(比如:/dev/rdsk/c1t1d0s0),那么需要改2個地方:/etc/vfstab和/etc/system文件中的rootdev。注意是用*號注釋掉。
    用光盤啟動修改系統(tǒng)盤上的數(shù)據(jù),那么掌握一個原則:修改x硬盤,那么重新啟動也要啟動x硬盤,否則可能會出現(xiàn)系統(tǒng)盤上的數(shù)據(jù)“改”不回來的現(xiàn)象。

關(guān)于系統(tǒng)引導的過程建議你好好查查資料,系統(tǒng)是如何啟動鏡像模式的系統(tǒng)盤,以及在什么時候系統(tǒng)盤開始進行數(shù)據(jù)同步讀寫。我感覺是在讀取/etc/vfstab之后的mdmonitor進程之后開始同步讀寫系統(tǒng)數(shù)據(jù)。大約是在啟動級別2的時候。所以即使vfstab出現(xiàn)問題或者不存在,那么啟動單用戶是不受影響的。

    以上總結(jié)未經(jīng)驗證。有興趣可以試驗一下。對于問題的處理,我們都不可能知道所有問題的具體解決方案,但是我們要知道解決方法,從哪兒下手;A,基礎還是基礎。赫赫

boot -v 可以給你啟動過程中更detailed的信息。

要多多觀察系統(tǒng)的啟動過程和啟動的內(nèi)容。雖然這其中涉及的命令不多,但是可以讓你很好的理解solaris這個系統(tǒng),從而更方便的定位更多的啟動問題。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP