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

  免費注冊 查看新帖 |

Chinaunix

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

關(guān)于SUN服務(wù)器 Fire-280R的硬盤分區(qū)表重新恢復(fù)的方法 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-06-21 17:04 |只看該作者 |倒序瀏覽
SUN服務(wù)器F280R安裝SUNOS5.8配有二塊73G的硬盤disk1:c1t0d0、disk2:c1t1d0我們在對主機系統(tǒng)進行維護性重起后,發(fā)現(xiàn)原來的/u目錄不能掛上,系統(tǒng)提示要進行文件系統(tǒng)的修復(fù),用fsck對DISK2進行修復(fù)時,系統(tǒng)提示DISK2的超級塊壞,無法修復(fù)出錯如下:
THE FOLLOWING SECTORS COULD NOT BE READ: 104815424 104815425 104815426 104815427
** /dev/rdsk/c1t1d0s1
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).
** /dev/rdsk/c1t1d0s2
** Last Mounted on /dbs
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
6 files, 49455874 used, 2184125 free (21 frags, 273013 blocks,  0.0% fragmentation)
打電話于SUN公司的技術(shù)員聯(lián)系,要求我把以上出錯信息發(fā)給他們,他們回信說可以通過以下辦法80%的情況都可以解決:
Please try follow steps :

With the information that I have, it looks like you should be able to install an alternate superblock as follows:

Make sure that this fs is not mounted (it probably won't let you mount anyway)

1 - first find the alternate superblocks:

# newfs -N /dev/rdsk/c1t1d0s1

This will list the superblocks, with the first one being the default.  This is non-destructive.

2 - second, install the second superblock:

# fsck -F ufs -o b=[superblock number] /dev/rdsk/c1t1d0s1

3 - test the filesystem with:

# fsck -y /dev/rdsk/c1t1d0s1

repeate this step until it runs through cleanly with no errors, if you persistantly get a superblock error repeat steps 2 & 3 with a different superblock.

If you try more than 3 different superblocks and still get the errors, it means that you have an unrecoverable filesystem and can be fixed WITH LOSS OF ALL DATA as follows:

# newfs /dev/rdsk/c1t1d0s1
他們的意思是假如通過以上辦法3次還不能恢復(fù)超級塊的話,那么這個文件系統(tǒng)的內(nèi)容就沒有辦法取出來了,然而我做了5次以后,仍然是以上的出錯信息,SUN公司的技術(shù)人員認為硬盤可能壞了,準備派工程師到現(xiàn)場來換硬盤了,但通過SUN的EXPLORER實用程序也沒有檢查出硬盤有什么地方壞呀。為了不掉失數(shù)據(jù),我們暫時沒有讓SUN公司的工程師來換硬盤,想通過其他方法把數(shù)據(jù)讀出來,當(dāng)時的系統(tǒng)分區(qū)目錄情況如下:
/dev/dsk/c1t0d0s0    4144014  133813 3968761     4%    /
/dev/dsk/c1t0d0s6    8072333 6208710 1782900    78%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/dsk/c1t0d0s3    4038702 3203108  795207    81%    /var
swap                 15132192       8 15132184     1%    /var/run
swap                 15132608     424 15132184     1%    /tmp
/dev/dsk/c1t0d0s5    4038702 1315588 2682727    33%    /opt
/dev/dsk/c1t0d0s7    40204291 36685648 3116601    93%    /home
/dev/dsk/c1t0d0s1    1988887  334093 1595128    18%    /usr/openwin
/dev/dsk/c1t1d0s0    51639999 49455874 1667726    97%    /dbs
目錄/U已經(jīng)不能MOUNT上去了,通過查看各個硬盤的分區(qū)表,發(fā)現(xiàn)DISK1的分區(qū)表正常,DISK2的分區(qū)表已經(jīng)完全破壞了:
DISK1的分區(qū)表:
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -   826        4.01GB    (827/0/0)     8415552
  1        usr    wm     827 -  1229        1.96GB    (403/0/0)     4100928
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3        var    wm    1230 -  2035        3.91GB    (806/0/0)     8201856
  4       swap    wu    2036 -  3646        7.82GB    (1611/0/0)   16393536
  5 unassigned    wm    3647 -  4452        3.91GB    (806/0/0)     8201856
  6        usr    wm    4453 -  6063        7.82GB    (1611/0/0)   16393536
  7       home    wm    6064 - 14086       38.93GB    (8023/0/0)   81642048
與實際使用的各個目錄情況相一致。
DISK2當(dāng)時的分區(qū)表:
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    25      129.19MB    (26/0/0)       264576
  1       swap    wu      26 -    51      129.19MB    (26/0/0)       264576
  2     backup    wu       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm      52 - 14086       68.10GB    (14035/0/0) 142820160
  7 unassigned    wm       0                0         (0/0/0)             0
與實際使用的2個分區(qū)情況完全不同了,并且分區(qū)大小也不一致了,但DISK2的C1T1D0S0經(jīng)過修復(fù)后仍然能夠掛起:
dev/dsk/c1t1d0s0    51639999 49455874 1667726    97%    /dbs
并且數(shù)據(jù)內(nèi)容全部在,文件系統(tǒng)大小基本于原來相當(dāng)(原來的分區(qū)表沒有了,只能大概估計一下了)。
為了能夠把/u目錄掛上,我們決定重新寫入DISK2的分區(qū)表,這樣是很危險的,弄的不好,DISK2上的所有數(shù)據(jù)就要掉失,包括現(xiàn)在能用的/dbs目錄下的數(shù)據(jù),為了保險期間,我們先把/dbs的數(shù)據(jù)備份出來。
這樣我們可以對DISK2進行重新劃分分區(qū)表了,依據(jù)是我們根據(jù)掛上的目錄來判斷DISK2應(yīng)該就劃了2個分區(qū)/dbs用了50G,/u用了20G左右。用SUN的FORMAT命令將DISK2上原來的分區(qū)清除掉,改成2個分區(qū),保存分區(qū)表,最后再用FSCK命令對/u文件系統(tǒng)進行恢復(fù)掃描后,/u文件系統(tǒng)可以掛上了,數(shù)據(jù)全部都在,避免了不必要的損失。具體步驟如下:
szeaibak:root>[/dbs/oradata] format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100000c505622fa,0
       1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100000c50568761,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.


partition> 0
Part      Tag    Flag     Cylinders      Size            Blocks
  0       root    wm       0 - 25      129.19MB    (26/0/0) 264576

Enter partition id tag[root]: unassigned
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 0
Enter partition size[264576b, 26c, 129.19mb, 0.13gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders     Size            Blocks
  0 unassigned    wm       0            0         (0/0/0) 0
  1 unassigned    wm       0            0         (0/0/0) 0
  2 unassigned    wm       0            0         (0/0/0) 0
  3 unassigned    wm       0            0         (0/0/0) 0
  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       0            0         (0/0/0) 0

partition> 0
Part      Tag    Flag     Cylinders     Size            Blocks
  0 unassigned    wm       0            0         (0/0/0) 0

Enter partition id tag[unassigned]: dbs
`dbs' not expected.
Enter partition id tag[unassigned]: bak
`bak' not expected.
Enter partition id tag[unassigned]: usr
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 50gb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0        usr    wm       0 - 10304       50.00GB    (10305/0/0) 104863680
  1 unassigned    wm       0                0         (0/0/0)             0
  2 unassigned    wm       0                0         (0/0/0)             0
  3 unassigned    wm       0                0         (0/0/0)             0
  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       0                0         (0/0/0)             0

partition>
partition> 1
Part      Tag    Flag     Cylinders         Size            Blocks
  1        var    wm   10305 - 12365       10.00GB    (2061/0/0)   20972736

Enter partition id tag[var]:
Enter partition permission flags[wm]:
Enter new starting cyl[10305]:
Enter partition size[20972736b, 2061c, 10240.59mb, 10.00gb]: 19gb
`19.00gb' is out of range
Enter partition size[20972736b, 2061c, 10240.59mb, 10.00gb]: 18gb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0        usr    wm       0 - 10304       50.00GB    (10305/0/0) 104863680
  1        var    wm   10305 - 14014       18.00GB    (3710/0/0)   37752960
  2 unassigned    wm       0                0         (0/0/0)             0
  3 unassigned    wm       0                0         (0/0/0)             0
  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       0                0         (0/0/0)             0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0        usr    wm       0 - 10304       50.00GB    (10305/0/0) 104863680
  1        var    wm   10305 - 14076       18.30GB    (3772/0/0)   38383872
  2 unassigned    wm       0                0         (0/0/0)             0
  3 unassigned    wm       0                0         (0/0/0)             0
  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       0                0         (0/0/0)             0

partition> 2
Part      Tag    Flag     Cylinders         Size            Blocks
  2 unassigned    wm       0                0         (0/0/0)             0

Enter partition id tag[unassigned]: backup
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 68.35gb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0        usr    wm       0 - 10304       50.00GB    (10305/0/0) 104863680
  1        var    wm   10305 - 14076       18.30GB    (3772/0/0)   38383872
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  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       0                0         (0/0/0)             0

partition> 1
Part      Tag    Flag     Cylinders         Size            Blocks
  1        var    wm   10305 - 14076       18.30GB    (3772/0/0)   38383872

Enter partition id tag[var]:
Enter partition permission flags[wm]:
Enter new starting cyl[10305]:
Enter partition size[38383872b, 3772c, 18742.12mb, 18.30gb]: 18.35gb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0        usr    wm       0 - 10304       50.00GB    (10305/0/0) 104863680
  1        var    wm   10305 - 14086       18.35GB    (3782/0/0)   38485632
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  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       0                0         (0/0/0)             0

partition> l
Ready to label disk, continue? y

partition> quit


FORMAT 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 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 return
        quit
format> q
szeaibak:root>[/dbs/oradata]
szeaibak:root>[/dbs/oradata] cd         
szeaibak:root>[/] df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0    4144014  133814 3968760     4%    /
/dev/dsk/c1t0d0s6    8072333 6208710 1782900    78%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/dsk/c1t0d0s3    4038702 3203108  795207    81%    /var
swap                 15131920       8 15131912     1%    /var/run
swap                 15132336     424 15131912     1%    /tmp
/dev/dsk/c1t0d0s5    4038702 1315588 2682727    33%    /opt
/dev/dsk/c1t0d0s7    40204291 36685648 3116601    93%    /home
/dev/dsk/c1t0d0s1    1988887  334093 1595128    18%    /usr/openwin
/dev/dsk/c1t1d0s0    51639999 49455874 1667726    97%    /dbs
szeaibak:root>[/] umount /dbs
szeaibak:root>[/] fsck /dev/rdsk/c1t1d0s1
** /dev/rdsk/c1t1d0s1
** Last Mounted on /u
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
112 files, 10190936 used, 8400594 free (58 frags, 1050067 blocks,  0.0% fragmentation)
szeaibak:root>[/] mount /dev/dsk/c1t1d0s1 /u
szeaibak:root>[/] cd /u
szeaibak:root> ls
backup                      spctab.lis
clientsdk.2.90.FC4.SOL.tar  spcusr.lis
error97.txt                 test1.sh
lost+found                  test1.sql
oradata                     test2.sql
sp_1_2.lst                  zyb
spcpkg.lis
szeaibak:root> mount /dev/dsk/c1t1d0s0 /dbs
szeaibak:root> cd /dbs
szeaibak:root>[/dbs] ls
lost+found  oradata     rdbs
szeaibak:root>[/dbs] pwd
/dbs
szeaibak:root>[/dbs] ls
lost+found  oradata     rdbs
szeaibak:root>[/dbs] cd /u
szeaibak:root> ls
backup                      spctab.lis
clientsdk.2.90.FC4.SOL.tar  spcusr.lis
error97.txt                 test1.sh
lost+found                  test1.sql
oradata                     test2.sql
sp_1_2.lst                  zyb
spcpkg.lis
szeaibak:root> ls -l
total 193064
drwxr-xr-x   2 root     other        512 Jul 13  2004 backup
-rw-r--r--   1 root     other    98458112 Feb 27 10:20 clientsdk.2.90.FC4.SOL.tar
-rw-r--r--   1 oracle   dba       220548 Jan 12  2005 error97.txt
drwx------   2 root     root        8192 Jun  8  2004 lost+found
drwxrwxrwx   2 oracle   dba         1024 Apr  6 11:55 oradata
-rw-r--r--   1 oracle   dba        75322 Apr 15  2005 sp_1_2.lst
-rw-r--r--   1 oracle   dba          190 Apr 15  2005 spcpkg.lis
-rw-r--r--   1 oracle   dba         2154 Apr 15  2005 spctab.lis
-rw-r--r--   1 oracle   dba         4174 Apr 15  2005 spcusr.lis
-rw-r--r--   1 oracle   dba           28 Apr 15  2005 test1.sh
-rwxr-xr-x   1 oracle   dba         2052 Apr 15  2005 test1.sql
-rwxr-xr-x   1 oracle   dba         1743 Apr 15  2005 test2.sql
drwxr-xr-x   3 oracle   dba          512 May 19 08:55 zyb

經(jīng)過測試,ORACLE數(shù)據(jù)庫也能夠正常運行,所有數(shù)據(jù)全部都在。
通過這次經(jīng)歷我們認為,SUN的操作系統(tǒng)的文件系統(tǒng)類型UFS不夠強壯,因此使用SUN系統(tǒng)應(yīng)該經(jīng)常備份各個文件系統(tǒng)的數(shù)據(jù)。

論壇徽章:
0
2 [報告]
發(fā)表于 2006-06-21 18:45 |只看該作者
sf
一定要頂

論壇徽章:
0
3 [報告]
發(fā)表于 2006-06-21 19:39 |只看該作者
呵呵呵 我也遇到過一次 那是t3 ,系統(tǒng)數(shù)據(jù)庫升級后 t3的分區(qū)表就亂了 我也是這么搞好的,我那時7個分區(qū) 600多g 的數(shù)據(jù)阿

論壇徽章:
7
榮譽會員
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-06-05 06:20:0015-16賽季CBA聯(lián)賽之吉林
日期:2016-06-20 08:24:0515-16賽季CBA聯(lián)賽之四川
日期:2016-08-18 15:02:02
4 [報告]
發(fā)表于 2006-06-21 21:38 |只看該作者
vxfs好上一點

論壇徽章:
0
5 [報告]
發(fā)表于 2006-06-21 21:47 |只看該作者
這是SUN公司的技術(shù)員給的? 印度人吧?(玩笑)

-----------------------------
Please try follow steps :

With the information that I have, it looks like you should be able to install an alternate superblock as follows:

Make sure that this fs is not mounted (it probably won't let you mount anyway)

1 - first find the alternate superblocks:

# newfs -N /dev/rdsk/c1t1d0s1

This will list the superblocks, with the first one being the default.  This is non-destructive.

2 - second, install the second superblock:

# fsck -F ufs -o b=[superblock number] /dev/rdsk/c1t1d0s1

3 - test the filesystem with:

# fsck -y /dev/rdsk/c1t1d0s1

論壇徽章:
0
6 [報告]
發(fā)表于 2006-06-22 01:29 |只看該作者
Whe you did 維護性重起, did you have a clean shutdown of
Oracle and the OS?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(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