tomer 发表于 2013-04-09 17:21

zpool镜像错


bash-3.00# zpool attach -frpoolc0t5000CCA03C4C3CB0d0 c0t5000CCA03C4C4024d0
cannot label 'c0t5000CCA03C4C4024d0': EFI labeled devices are not supported on root pools.

bash-3.00# format -e c0t5000CCA03C4C4024d0                                    
selecting c0t5000CCA03C4C4024d0: solaris



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
      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
Ready to label disk, continue? y

format> quit
bash-3.00# prtvtoc /dev/rdsk/c0t5000CCA03C4C3CB0d0s2 | fmthard -s - /dev/rdsk/c
0t5000CCA03C4C4024d0s2
fmthard:New volume table of contents now in place.
bash-3.00# zpool attach -frpoolc0t5000CCA03C4C3CB0d0 c0t5000CCA03C4C4024d0                                    
cannot label 'c0t5000CCA03C4C4024d0': EFI labeled devices are not supported on root pools.
bash-3.00#

znnnz 发表于 2013-04-09 17:39

回复 1# tomer


    SMI Label后,还要type制定硬盘类型,然后确认分区是0-7,并且2分区不为空,然后再label后尝试。

DC_楚楚 发表于 2013-04-09 18:10

本帖最后由 DC_楚楚 于 2013-04-09 18:18 编辑

c0t5000CCA03C4C3CB0d0 是rpool现有的盘么?

tomer 发表于 2013-04-10 09:24

回复 3# DC_楚楚


    是的,这是系统盘

# zpool status
池:rpool
状态:ONLINE
清理:未请求
配置:

      NAME                     STATE   READ WRITE CKSUM
      rpool                      ONLINE       0   0   0
          c0t5000CCA03C4C3CB0d0s0ONLINE       0   0   0

错误:无已知的数据错误
#

DC_楚楚 发表于 2013-04-10 10:31

回复 4# tomer

你的rpool status是
# zpool status
池:rpool
状态:ONLINE
清理:未请求
配置:

      NAME                     STATE   READ WRITE CKSUM
      rpool                      ONLINE       0   0   0
          c0t5000CCA03C4C3CB0d0s0ONLINE       0   0   0

可以看到rpool使用的是s0分区,且rpool是不支持EFI格式的,默认rpool使用的是s0分区,应该用:
# zpool attach -frpoolc0t5000CCA03C4C3CB0d0s0 c0t5000CCA03C4C4024d0s0

tomer 发表于 2013-04-10 10:50

回复 5# DC_楚楚


    没错,

Part      Tag    Flag   Cylinders         Size            Blocks
0       root    wm       0 -9153       78.73GB    (9154/0/0)   165101544
1 unassigned    wm       0                0         (0/0/0)            0
2   backup    wm       0 - 64985      558.89GB    (64986/0/0) 1172087496
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    9154 - 64985      480.17GB    (55832/0/0) 1006985952

那么第7个分区,做什么用了?没用?。

tomer 发表于 2013-04-10 10:53

回复 5# DC_楚楚

也就是安装系统是,根池用的是s0?

   

DC_楚楚 发表于 2013-04-10 11:09

回复 7# tomer


    嗯,对的,如果是你在系统里创建的其他池,就可以使使用d#

tomer 发表于 2013-04-10 11:11

回复 7# tomer


    那我安装时想把整个盘都给根池怎么办

DC_楚楚 发表于 2013-04-10 13:00

回复 9# tomer


    默认就是整个盘啊,只是它把所有空间放到了s0
页: [1] 2
查看完整版本: zpool镜像错