Oracle® Solaris 10 から Oracle Solaris 11.2 への移行

印刷ビューの終了

更新: 2014 年 12 月
 
 

Oracle Solaris 11 システム上の非大域ゾーンへの Oracle Solaris 10 インスタンスの移行

Oracle Solaris 10 環境を Oracle Solaris 11 システム上の非大域ゾーンに移行するために、ゾーンアーカイブを作成し、そのゾーンアーカイブを Oracle Solaris 11 システムに移行できます。

手順を次に示します。

  1. Oracle Solaris 10 ゾーンのパッケージを Oracle Solaris 11 システムにインストールします。

    s11sysB# pkg install system/zones/brand/brand-solaris10
  2. zonep2vchk スクリプトを実行して、インスタンスが solaris10 ゾーンとして実行するのを妨げる可能性がある問題を識別します。

    s10sys# ./zonep2vchk
    --Executing Version: 1.0.5-11-15652
    
    - Source System: systema
    Solaris Version: Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
    Solaris Kernel:  5.10 Generic_147440-01
    Platform:        sun4u SUNW,Sun-Fire-V440
    
    - Target System:
    Solaris_Version: Solaris 10
    Zone Brand:      native (default)
    IP type:         shared
    
    --Executing basic checks
    .
    .
  3. 必要に応じて、Oracle Solaris 10 システムインスタンスのフラッシュアーカイブが収容される ZFS ファイルシステムを作成します。

    次に、Oracle Solaris 11 システム上に ZFS ファイルシステムの NFS 共有を作成します。

    s11sysB# zfs create pond/s10archive
    s11sysB# zfs set share.nfs.sec.default.root=s10sysA=on pond/s10archive
  4. Oracle Solaris 10 インスタンスを選択します (Oracle Solaris 10 システム上の仮想環境でも大域ゾーンでもかまいません)。Oracle Solaris 10 システムの hostid を書き留めてください。

    s10sysA# hostid
    8439b629
  5. Oracle Solaris 11 システム上の非大域ゾーンに移行しようとしている Oracle Solaris 10 インスタンスのアーカイブを作成します。

    s10sysA# flarcreate -S -n s10sysA -L cpio /net/s11sysB/pond/s10archive/s10.flar
  6. Oracle Solaris 10 ゾーン用の ZFS ファイルシステムを作成します。

    s11sysB# zfs create -o mountpoint=/zones pond/zones
    s11sysB# chmod 700 /zones
  7. Oracle Solaris 10 インスタンス用の非大域ゾーンを作成します。

    s11sysB# zonecfg -z s10zone
    s10zone: No such zone configured
    Use 'create' to begin configuring a new zone.
    zonecfg:s10zone> create -t SYSsolaris10
    zonecfg:s10zone> set zonepath=/zones/s10zone
    zonecfg:s10zone> set ip-type=exclusive
    zonecfg:s10zone> add anet
    zonecfg:s10zone:net> set lower-link=auto
    zonecfg:s10zone:net> end
    zonecfg:s10zone> set hostid=8439b629
    zonecfg:s10zone> verify
    zonecfg:s10zone> commit
    zonecfg:s10zone> exit
  8. Oracle Solaris 10 の非大域ゾーンをインストールします。

    s11sysB# zoneadm -z s10zone install -u -a /pond/s10archive/s10.flar
    A ZFS file system has been created for this zone.
    Progress being logged to /var/log/zones/zoneadm.20110921T135935Z.s10zone.install
    Installing: This may take several minutes...
    Postprocess: Updating the image to run within a zone
    Postprocess: Migrating data
    from: pond/zones/s10zone/rpool/ROOT/zbe-0
    to: pond/zones/s10zone/rpool/export
    .
    .
    .
  9. Oracle Solaris 10 ゾーンをブートします。

    # zoneadm -z s10zone boot
  10. Oracle Solaris 10 の非大域ゾーンを構成します。

    s11sysB# zlogin -C s10zone
    [Connected to zone 's10zone' console]
    .
    .
    .
    s10zone console login: root
    Password: xxxxxxxx
    # cat /etc/release
    Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
    Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
    Assembled 23 August 2011
    # uname -a
    SunOS supernova 5.10 Generic_Virtual sun4v sparc SUNW,Sun-Fire-T1000
    # zfs list
    NAME                USED  AVAIL  REFER  MOUNTPOINT
    rpool              4.53G  52.2G   106K  /rpool
    rpool/ROOT         4.53G  52.2G    31K  legacy
    rpool/ROOT/zbe-0   4.53G  52.2G  4.53G  /
    rpool/export         63K  52.2G    32K  /export
    rpool/export/home    31K  52.2G    31K  /export/home