Zones

This entry was posted in Uncategorized and tagged on June 17, 2012, by

Following are the steps to create a zone on Solaris 10.

1. To list the zones currently running on the system

# zoneadm list -vc

ID    NAME            STATUS      PATH   BRAND     IP

0     global            running      /         native      shared

We can see that there is no non global zone existing.

2. We will now create a zone named ORACLE

# zonecfg -z ORACLE

zonecfg:ORACLE> create

zonecfg:ORACLE> set zonepath=/zone/ORACLE ( this is the path of

the zone)

zonecfg:ORACLE>set autoboot=true

zonecfg:ORACLE> add net (this is use to configure network on zone)

zonecfg:ORACLE> set address=192.XXX.X.XXX

zonecfg:ORACLE> set physical=eth0 (this is the interface, type

ifconfig -a and note down the interface)

zonecfg:ORACLE> end

zonecfg:ORACLE>commit

zonecfg:ORACLE>verify

zonecfg:ORACLE>exit

3. To display the  zone information from command line we type the following command

# zonecfg -z ORACLE info

4. Next we need to install the zone

# zoneadm -z ORACLE install

The installation log will be copied to /zone/ORACLE/root/var/sadm/systems/logs/install-logs

5. Now check the status of zone.

# zoneadm list -vc

ID  NAME    STATUS    PATH               BRAND     IP

0    global   running    /                      native      shared

–     oracle   installed  /zone/ORACLE    native      shared

6. Next we have to boot the zone

# zoneadm -z ORACLE boot

This command will boot the ORACLE zone

7. Now check the status again

# zoneadm list -vc

ID   NAME      STATUS      PATH                    BRAND    IP

0     global     running      /                          native     shared

1     ORACLE   running    /zone/ORACLE         native     shared

8. Now login to the newly created ORACLE zone

#zlogin -C ORACLE

Complete all the procedure , give hostname and password and login to the ORACLE zone

9. Check the status of the zone

# zoneadm list -vc

ID NAME      STATUS         PATH                    BRAND      IP

1   ORACLE  running     /zone/ORACLE            native      shared

So now your zone is up and running.

10. To log out of the zone type ~.

 Steps to Delete a Zone

# zoneadm -z ORACLE halt

# zoneadm -z ORACLE uninstall -F

Zone must be uninstalled before deleting it.

# zonecfg -z ORACLE delete -F

With the help of this command the zone and its configuration will be deleted from the system

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.