zhangyudong1987 发表于 2014-04-05 12:14

solaris10镜像问题

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



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
* PartitionTagFlags    Sector   Count    SectorMount Directory
       0      2    00   65542824 204816816 270359639   /
       2      5    00          0 1172087496 1172087495
       3      3    01          06554282465542823
       4      0    00270359640 204816816 475176455   /u01
       5      0    00475176456 696333888 1171510343   /u02
       7      0    001171510344    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
* PartitionTagFlags    Sector   Count    SectorMount Directory
       0      4    00      256 1172106895 1172107150
       8   11    001172107151   16384 1172123534

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

DC_楚楚 发表于 2014-04-05 13:38

告警提示的是Partition 0 overlaps partition 2. Overlap is allowed
没有overlaps
我的判断:
0号盘的标签格式是EFI,需要转成VTOC格式即 SMI格式;
处理建议:
format -e
format> 0
format> label


退出后再次搞。~

zhangyudong1987 发表于 2014-04-08 18:42

回复 2# DC_楚楚


    谢谢,按你说的可以做

root@nccs-fep-ats-2 # format -e c0t5000CCA04340B41Cd0
selecting c0t5000CCA04340B41Cd0



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
SMI Label
EFI Label
Specify Label type: 0
Auto configuration via format.dat?
Auto configuration via generic SCSI-2?
format> q
页: [1]
查看完整版本: solaris10镜像问题