OpenSolaris zfs attach mirror

為了 zfs 開始玩 OpenSolaris,想不到一開始作 attach 另外一顆硬碟作 mirror 就發生 I/O error 的錯誤,參考以下的步驟作才能解決,參考的網址如下:
http://defect.opensolaris.org/bz/show_bug.cgi?id=5405
總之要先作以下的步驟,看來新磁碟還是要先 format 過才能用,哈
user@opensolaris:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c4t0d0 <DEFAULT cyl 4174 alt 2 hd 255 sec 63>
/pci@0,0/pci1000,30@10/sd@0,0
1. c4t1d0 <DEFAULT cyl 4174 alt 2 hd 255 sec 63>
/pci@0,0/pci1000,30@10/sd@1,0
Specify disk (enter its number): 1
selecting c4t1d0
[disk formatted]
/dev/dsk/c4t1d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
format> par
format> pr
Current partition table (original):
Total disk cylinders available: 4174 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 4172 31.96GB (4172/0/0) 67023180
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 4173 31.97GB (4174/0/0) 67055310
3 unassigned wu 0 0 (0/0/0) 0
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wu 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wu 0 0 (0/0/0) 0
partition> q
format> q

user@opensolaris:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c4t0d0 <DEFAULT cyl 4174 alt 2 hd 255 sec 63>
/pci@0,0/pci1000,30@10/sd@0,0
1. c4t1d0 <DEFAULT cyl 4174 alt 2 hd 255 sec 63>
/pci@0,0/pci1000,30@10/sd@1,0
Specify disk (enter its number): 0
selecting c4t0d0
[disk formatted]
/dev/dsk/c4t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
format> par
format> pr
Current partition table (original):
Total disk cylinders available: 4174 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 4172 31.96GB (4172/0/0) 67023180
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 4173 31.97GB (4174/0/0) 67055310
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 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
partition> q
format> q
user@opensolaris:~#
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值