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:~#

你可能感兴趣的:(cgi)