轉換 Oracle® Solaris 10 至 Oracle Solaris 11.2

結束列印檢視

更新日期: 2014 年 12 月
 
 

ZFS 根集區裝置需求

一般來說,安裝系統時會重新標示根集區裝置並建立根集區。

  • 在 Oracle Solaris 11 中,在 SPARC 與 x86 系統安裝期間,會將 SMI (VTOC) 標籤自動套用至根集區磁碟,如下列範例輸出所示:

    # zpool status rpool
    pool: rpool
    state: ONLINE
    scan: none requested
    config:
    
    NAME        STATE     READ WRITE CKSUM
    rpool       ONLINE       0     0     0
    c7t0d0s0  ONLINE       0     0     0
  • 從 Oracle Solaris 11.2 開始,在安裝啟用 GPT 功能之韌體 (請參閱 韌體、磁碟標籤以及 EEPROM 變更。) 的 SPARC 系統與大多數 x86 系統時,會將 EFI 標籤自動套用至根集區磁碟。否則,會在根集區磁碟上安裝 VTOC 磁碟標籤,如下列範例所示:

    # zpool status rpool
    pool: rpool
    state: ONLINE
    scan: none requested
    config:
    
    NAME      STATE     READ WRITE CKSUM
    rpool     ONLINE       0     0     0
    c7t0d0  ONLINE       0     0     0

    當您連接磁碟以建立鏡像根集區時,請使用整個磁碟語法。

    # zpool attach rpool c7t0d0 c7t2d0
    Make sure to wait until resilver is done before rebooting.

    集區會維持在 DEGRADED 狀態,直到重建新磁碟為止。

    # zpool status rpool
    pool: rpool
    state: DEGRADED
    status: One or more devices is currently being resilvered.  The pool will
    continue to function in a degraded state.
    action: Wait for the resilver to complete.
    Run 'zpool status -v' to see device specific details.
    scan: resilver in progress since Thu Jan 24 08:15:13 2013
    224M scanned out of 22.0G at 6.59M/s, 0h56m to go
    221M resilvered, 0.99% done
    config:
    
    NAME        STATE     READ WRITE CKSUM
    rpool       DEGRADED     0     0     0
    mirror-0  DEGRADED     0     0     0
    c7t0d0  ONLINE       0     0     0
    c7t2d0  DEGRADED     0     0     0  (resilvering)
  • 集區必須存在於一個或多個鏡像的磁碟片段上。如果嘗試在 beadm 作業期間使用不支援的集區配置,將會出現與下列類似的訊息:

    ERROR: ZFS pool name does not support boot environments
  • 在 x86 系統上,磁碟必須包含 Oracle Solaris fdisk 分割區。安裝 x86 系統時,會自動建立 Oracle Solaris fdisk 分割區。請參閱Managing Devices in Oracle Solaris 11.2 中的Using the fdisk Option

如需關於管理 ZFS 根集區的更多一般資訊,請參閱Managing ZFS File Systems in Oracle Solaris 11.2 中的第 4 章Managing ZFS Root Pool Components