免费注册 查看新帖 |

Chinaunix

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

solaris10镜像问题 [复制链接]

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-04-05 12:14 |只看该作者 |倒序浏览
root@nccs-05-2 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t5000CCA0434662C0d0 <HITACHI-H109060SESUN600G-A606-558.91GB>
          /scsi_vhci/disk@g5000cca0434662c0
       1. c0t5000CCA043440700d0 <HITACHI-H109060SESUN600G-A31A cyl 64986 alt 2 hd 27 sec 668>  solaris
          /scsi_vhci/disk@g5000cca043440700
Specify disk (enter its number): 0
selecting c0t5000CCA0434662C0d0
[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
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, 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
        expand - expand label to use whole disk
        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
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk sectors available: 1172107150 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector          Size          Last Sector
  0        usr    wm               256       558.90GB           1172107150   
  1 unassigned    wm                 0            0                0   
  2 unassigned    wm                 0            0                0   
  3 unassigned    wm                 0            0                0   
  4 unassigned    wm                 0            0                0   
  5 unassigned    wm                 0            0                0   
  6 unassigned    wm                 0            0                0   
  8   reserved    wm        1172107151         8.00MB           1172123534   

partition> q


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
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> q
root@nccs-05-2 # prtvtoc /dev/rdsk/c0t5000CCA043440700d0s2|fmthard -s - /dev/rdsk/c0t5000CCA0434662C0d0s2
fmthard: Partition 0 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).

root@nccs-05-2 # prtvtoc /dev/rdsk/c0t5000CCA043440700d0s2|fmthard -s - /dev/rdsk/c0t5000CCA0434662
root@nccs-05-2 # prtvtoc /dev/rdsk/c0t5000CCA043440700d0s2                                       
* /dev/rdsk/c0t5000CCA043440700d0s2 (volume "solaris") partition map
*
* Dimensions:
*     512 bytes/sector
*     668 sectors/track
*      27 tracks/cylinder
*   18036 sectors/cylinder
*   64988 cylinders
*   64986 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*   1171726776    360720 1172087495
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00   65542824 204816816 270359639   /
       2      5    00          0 1172087496 1172087495
       3      3    01          0  65542824  65542823
       4      0    00  270359640 204816816 475176455   /u01
       5      0    00  475176456 696333888 1171510343   /u02
       7      0    00  1171510344    216432 1171726775
root@nccs-05-2 # prtvtoc /dev/rdsk/c0t5000CCA043440700d0s2|fmthard -s - /dev/rdsk/c0t5000CCA0434662
root@nccs-05-2 # prtvtoc /dev/rdsk/c0t5000CCA0434662C0d0s2
* /dev/rdsk/c0t5000CCA0434662C0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
* 1172123568 sectors
* 1172123501 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*          34       222       255
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      4    00        256 1172106895 1172107150
       8     11    00  1172107151     16384 1172123534

solaris10U11下面做RAID1,在同步两块磁盘的时候,报错(标红部分),不知道有没有什么解决办法?还是说要把第二块盘重建?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2014-04-05 13:38 |只看该作者
告警提示的是Partition 0 overlaps partition 2. Overlap is allowed
没有overlaps
我的判断:
0号盘的标签格式是EFI,需要转成VTOC格式即 SMI格式;
处理建议:
format -e
format> 0
format> label


退出后再次搞。~

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
3 [报告]
发表于 2014-04-08 18:42 |只看该作者
回复 2# DC_楚楚


    谢谢,按你说的可以做

root@nccs-fep-ats-2 # format -e c0t5000CCA04340B41Cd0
selecting c0t5000CCA04340B41Cd0
[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
        inquiry    - show vendor, product and revision
        scsi       - independent SCSI mode selects
        cache      - enable, disable or query SCSI disk cache
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]?
Auto configuration via generic SCSI-2[no]?
format> q
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP