免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1802 | 回复: 0
打印 上一主题 下一主题

solaris8升级后,磁盘重新安装恢复 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-05 21:42 |只看该作者 |倒序浏览
背景信息:
开发环境,运行sybase12.5
OS: solaris8
2块磁盘
原来有个软阵列raid0, 用disksuite建立的
后来,OS出了问题(使用shell过程中,可能是系统文件受到影响),系统重新安装,为简单起见,采用upgrade方式
升级安装完成后,只有一块磁盘自动加载了,另外一块通过手工加载分区,也没问题
但是原来的raid0分区不知怎么恢复(组成的分区知道,两磁盘对应的20G的分区就是)?
升级前的配置信息被overwrite
下面是磁盘信息:
---------------------------------

bash-2.03# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0   hdb
          /pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
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
        !     - execute , then return
        quit

format> p
PARTITION 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
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        ! - execute , then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  3004       14.58GB    (3005/0/0)   30578880
  1 unassigned    wm    3005 -  6038       14.72GB    (3034/0/0)   30873984
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm    7688 -  7708      104.34MB    (21/0/0)       213696
  4 unassigned    wm    7709 - 11830       20.00GB    (4122/0/0)   41945472
  5       swap    wu    6039 -  7687        8.00GB    (1649/0/0)   16780224
  6 unassigned    wm       0                0         (0/0/0)             0
  7       home    wm   11831 - 14086       10.95GB    (2256/0/0)   22957056
------------------- above is 1st disk info---------------------
bash-2.03# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0   hdb
          /pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0: hdb
[disk formatted]
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
        !     - execute , then return
        quit
format> p
PARTITION 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
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        ! - execute , then return
        quit
partition> p
Volume:  hdb
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0 -  7708       37.41GB    (7709/0/0)   78446784
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm    7709 - 11830       20.00GB    (4122/0/0)   41945472
  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>


------------

# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0    15058251 7860844 7046825    53%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
swap                 14936456      16 14936440     1%    /var/run
swap                 14936456      16 14936440     1%    /tmp
/dev/dsk/c1t0d0s1    15203499 9174316 5877149    61%    /opt
/dev/dsk/c1t0d0s7    11304940  650191 10541700     6%    /export/home
/dev/dsk/c1t1d0s0    38631235 25546961 12697962    67%    /data-hdb
#
# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr         ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s5       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      -
/dev/dsk/c1t0d0s7       /dev/rdsk/c1t0d0s7      /export/home    ufs     2       yes     -
/dev/dsk/c1t0d0s1       /dev/rdsk/c1t0d0s1      /opt    ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -
/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /data-hdb       ufs     2       yes     -
#

--------------恢复方法--------------
--新手看到磁盘不会自动mount上来时(第二块磁盘,非引导磁盘),不知怎么办好
--upgrade安装后,第二块磁盘上的分区不会自动mount上来,需要手工mount,并添加到 /etc/vfstab,一般普通分区知道怎么mount上来(每个分区mount上来,看看内容,可以获得一些信息后,就可以知道mount point)
--阵列分区,可能不知道怎么mount上来,查下资料,得知raid分区在 /dev/md/dsk/*下,一般从d0开始编号,可以尝试mount上来看看内容

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/68079/showart_1108421.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP