If you want to add a virtual interface to a zone, you do it with the zonecfg command. If you also want the interface to be set without waiting for a zone reboot, use the ifconfig command that way:
Hi All
There is one folder in global zone I just want to share the same folder innon global zone. How can i do it?
pls send me script for this. (2 Replies)
Hi Guys,
My requirement is I have file called /opt/orahome/.profile in non global zone.
PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:.
export PATH
PS1="\${ORACLE_SID}:`hostname`:\$PWD$ "
export PS1
EDITOR=vi
export EDITOR
ENV=/opt/orahome/.kshrc
export ENV... (1 Reply)
Hi Guys
I have one Global Zone and 2 non-global zones.
root@solar109
# zoneadm list -icv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
20 solar109b running ... (1 Reply)
Hi Al,
In course of understanding networking in Solaris, I have these doubts on Interfaces. Please clarify me. I have done fair research in this site and others but could not be clarified.
1. In the "ifconfig -a" command, I see many interfaces and their configurations. But I see many... (1 Reply)
can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT.
System in running with solaris 10 (3 Replies)
So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones.
if I were to do this manually here's what I would do:
zonecfg -z zone1
select... (2 Replies)
hi all,
Just a simple question but i cant get the answers in the book -
In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone
Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Hi,
If I change date and time in global zone, then it will affect in non global zones.
During this process what files will get affect in non global zones and which mechanism it's using to change.
gloabl zone:Solaris 11.3 X86
TIA (1 Reply)
Hope that everyone is doing well today. Happy Friday.
I am running an illumos (opensolaris) based system which is like SmartOS, OmniOS, and OpenIndiana
I have been searching all over the Internet into various documents and forms that have to do with Solaris, Opensolaris, Illumos, and SmartOS... (3 Replies)
Discussion started by: LonnieTC
3 Replies
LEARN ABOUT OPENSOLARIS
scha_cluster_getzone
scha_cluster_getzone(3HA) Sun Cluster HA and Data Services scha_cluster_getzone(3HA)NAME
scha_cluster_getzone - zone name access function
SYNOPSIS
cc [flags...] -I /usr/cluster/include file -L /usr/cluster/lib -l scha
#include <scha.h>
scha_err_t scha_cluster_getzone(char **zonename);
DESCRIPTION
The scha_cluster_getzone() function returns a string that identifies the zone from which the function is called. If you call this function
in a non-global zone, the zone name and the node name are returned, in the format nodename:zonename. If you call this function in the
global zone, only the node name is returned. The node name is not necessarily the same as the Solaris system name. The function returns an
error status. If successful, the function also returns a string that contains the node name and the zone name in the location that is
pointed to by the zonename argument.
If the call fails, the zonename argument is set to NULL. The caller of scha_cluster_getzone() is responsible for freeing the memory that is
allocated for the returned string by using the standard C library function free(3C). Freeing the memory is required only if the function
succeeds.
RETURN VALUES
The scha_cluster_getzone() function returns the following values:
0 The function succeeded.
nonzero The function failed.
ERRORS
SCHA_ERR_NOERR The function succeeded.
See scha_calls(3HA) for a description of other error codes.
EXAMPLES
Example 1 Using the scha_cluster_getzone() Function
scha_err_t err_code;
char *zonename;
err_code = scha_cluster_getzone(&zonename);
...
if (zonename != NULL) free(zonename);
FILES
/usr/cluster/include/scha.h Include file
/usr/cluster/lib/libscha.so Library
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscdev |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO free(3C), scha_calls(3HA), scha_cluster_get(3HA), scha_cluster_getnodename(3HA), scha_strerror(3HA), attributes(5)Sun Cluster 3.2 7 Sep 2007 scha_cluster_getzone(3HA)