Solaris 10 non-global zone migration to Solaris 11 NGZ– V2V migration

Kindly find the below article showing how to migrate Solaris 10 non-global zone  to Solaris 11 non-global zone. This is v2v migration. We can also convert Solaris 10 physical server into Solaris 11 non-global zone(p2v migration). But if  Solaris 10 physical server is having non-global zones then we have to first migrate non-global zone from Solaris 10 to Solaris 11(v2v) then we can proceed with p2v conversion. Only one type of conversion can take place at single time.

Source Machine Solaris 10:

Step1 : Check the zones running on Solaris 10 server. We found that one non-global zone is running on that.

Solaris-10# zoneadm list -cv

  ID NAME             STATUS     PATH                           BRAND    IP

   0 global           running    /                              native   shared

   1 s10zonev2v       running    /pool2                         native   shared

Step 2: Before migration we have to halt and make it in ready state.

bash-3.2# zoneadm -z s10zonev2v halt

bash-3.2# zoneadm -z s10zonev2v ready

Step 3: copy the version release information from global zone to non-global zone.

bash-3.2# cp /var/sadm/system/admin/INST_RELEASE /pool2/root/var/sadm/system/admin/

Step 4: Make the archive copy of non-global zone.

bash-3.2# find root -print | cpio -ocP@ | gzip > /pool2/s10zonev2v.cpio.gz

6971471 blocks

Step 5: Copy that archive copy to destination Solaris 11 Server.

bash-3.2# scp /pool2/s10zonev2v.cpio.gz  root@192.168.120.159:/var/tmp/

Password:

s10zonev2v.cpio.gz   100% |*******************************************************|  1251 MB    03:53

bash-3.2# zoneadm list -cv

  ID NAME             STATUS     PATH                           BRAND    IP

   0 global           running    /                              native   shared

   2 s10zonev2v       ready      /pool2                         native   shared

Destination machine Solaris 11:

Step 1: Check the already present zones in that server.

root@Solaris11:~# zoneadm list -cv

  ID NAME             STATUS     PATH                           BRAND    IP

   0 global           running    /                              solaris  shared

   – s10-zone1        installed  /pool2/s10zone1/s10-zone1      solaris10 excl

   – s10-zone2        configured /pool2/s10zone1/s10-zone2      solaris10 excl

Step 2: Create configuration for new zone.

root@Solaris11:~# zonecfg -z s10zonev2v

Use ‘create’ to begin configuring a new zone.

zonecfg:s10zonev2v> create -t SYSsolaris10

zonecfg:s10zonev2v> set zonepath=/pool2/s10zone1/s10zonev2v

zonecfg:s10zonev2v> commit

zonecfg:s10zonev2v> verify

zonecfg:s10zonev2v> exit

Step 3: Start the installation of newly created zone with help of the file which we copied from Solaris 10 machine.

root@Solaris11:~# zoneadm -z s10zonev2v install -p -a /var/tmp/s10zonev2v.cpio.gz                                                                                       

The following ZFS file system(s) have been created:

    pool2/s10zone1/s10zonev2v

Progress being logged to /var/log/zones/zoneadm.20140401T185533Z.s10zonev2v.insta                                                                                       ll

    Installing: This may take several minutes…

Postprocessing: This may take a while…

   Postprocess: Updating the image to run within a zone

        Result: Installation completed successfully.

Log saved in non-global zone as /pool2/s10zone1/s10zonev2v/root/var/log/zones/zoneadm.20140401T185533Z.s10zonev2v.install

Step 4: After the successful installation we can see that new zone is in installed state.

root@Solaris11:~# zoneadm list -cv

  ID NAME             STATUS     PATH                           BRAND    IP

   0 global           running    /                              solaris  shared

   – s10-zone1        installed  /pool2/s10zone1/s10-zone1      solaris10 excl

   – s10-zone2        configured /pool2/s10zone1/s10-zone2      solaris10 excl

   – s10zonev2v       installed  /pool2/s10zone1/s10zonev2v     solaris10 excl

root@Solaris11:~# zoneadm -z s10zonev2v boot

root@Solaris11:~# zoneadm list -cv

  ID NAME             STATUS     PATH                           BRAND    IP

   0 global           running    /                              solaris  shared

   2 s10zonev2v       running    /pool2/s10zone1/s10zonev2v     solaris10 excl

   – s10-zone1        installed  /pool2/s10zone1/s10-zone1      solaris10 excl

   – s10-zone2        configured /pool2/s10zone1/s10-zone2      solaris10 excl

Step 5: Finally we can login into that zone.

root@Solaris11:~# zlogin s10zonev2v

[Connected to zone ‘s10zonev2v’ pts/1]

 Thanks for reading!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s