免费注册 查看新帖 |

Chinaunix

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

zpool镜像错 [复制链接]

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-09 17:21 |只看该作者 |倒序浏览

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

bash-3.00# format -e c0t5000CCA03C4C4024d0                                    
selecting c0t5000CCA03C4C4024d0: solaris
[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
        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[0]: 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 -f  rpool  c0t5000CCA03C4C3CB0d0 c0t5000CCA03C4C4024d0                                    
cannot label 'c0t5000CCA03C4C4024d0': EFI labeled devices are not supported on root pools.
bash-3.00#

论坛徽章:
20
申猴
日期:2013-09-12 19:39:05狮子座
日期:2014-07-20 21:19:51寅虎
日期:2014-08-16 18:37:47水瓶座
日期:2014-10-15 18:58:25天蝎座
日期:2015-01-22 18:19:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015亚冠之胡齐斯坦钢铁
日期:2015-06-03 11:28:502015亚冠之吉达阿赫利
日期:2015-09-19 12:41:47午马
日期:2013-09-18 14:36:40戌狗
日期:2013-09-18 14:44:39处女座
日期:2013-09-24 17:46:41CU十二周年纪念徽章
日期:2013-10-24 15:41:34
2 [报告]
发表于 2013-04-09 17:39 |只看该作者
回复 1# tomer


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

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2013-04-09 18:10 |只看该作者
本帖最后由 DC_楚楚 于 2013-04-09 18:18 编辑

c0t5000CCA03C4C3CB0d0 是rpool现有的盘么?

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
4 [报告]
发表于 2013-04-10 09:24 |只看该作者
回复 3# DC_楚楚


    是的,这是系统盘

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

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

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

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2013-04-10 10:31 |只看该作者
回复 4# tomer

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

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

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

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
6 [报告]
发表于 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个分区,做什么用了?没用?。

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
7 [报告]
发表于 2013-04-10 10:53 |只看该作者
回复 5# DC_楚楚

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

   

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2013-04-10 11:09 |只看该作者
回复 7# tomer


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

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
9 [报告]
发表于 2013-04-10 11:11 |只看该作者
回复 7# tomer


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

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2013-04-10 13:00 |只看该作者
回复 9# tomer


    默认就是整个盘啊,只是它把所有空间放到了s0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP