Adding multiple virtual interfaces on a non global zone.


 
Thread Tools Search this Thread
Operating Systems Solaris Adding multiple virtual interfaces on a non global zone.
# 8  
Old 09-01-2009
Quote:
Originally Posted by mahive
Hello,
Ok, so I intend to do the following:

# zonecfg -z <zonenname>
then add net; insert the ip addresses;verify and commit.

I would then manuall copy the /etc/zones/zones.xml file to the other node to have the same copy of the zone.

Now my question is, once I make these changes, will the newly added ip addresses be plumbed on my local zones? Does giving an "ifconfig -a" on the global zone will show the newly added ip addresses as wel? Also in an event, that the cluster failovers (global zone), will the newly added ip addresses be shown as up in the other node?


Thanks for showing patience with me Smilie


Thanks&Regards,
Mahive.
provided that they are of the same h/w architecture with same network drivers etc, technically it should work.
# 9  
Old 09-02-2009
Hi,

Firstly, your question isnt too clear here, so not 100% sure what your asking, so will take a guess.

Zones - You have two types of Network configurations, shared / exclusive. During the configuration of shared NIC, you will defined card / ip / netmask via zonecfg, so once the zone is up, the card / network nic will be up and running. Exclusive is different and all you do is define the NIC that will be `exclusively` used within the zone. Once up, you will then need to configure the card like any other normal environment, i.e. /etc/hosts, /etc/hostname.nxge1, /etc/defaultrouter etc etc etc. Then this will be automatic on every reboot on the zone.

Exclusive IP
dladm to see what devices are there
zonecfg:myzone> set ip-type=exclusive
zonecfg:myzone> add net
zonecfg:myzone:net> set physical=e1000g1
zonecfg:myzone:net> end

Shared IP

add net
set address=XX.30.188.XX/24
set physical=nxge4
end

Next point, copying of the /etz/zones/index file. Ok, yes Ive done this, but you are not really meant to do this due to the uid given to the zone. ALso, its the zonename.xml which is also important. Ive copied zones, mainly for DR purposes. I tend to build / define a zone, get it up and running and in a state that its working / configured. I then shut it down, detach it, dump the configuration to a file, and copy over the file / dump of the environment to the target DR server. I then copy the dump into the desired location, create the new zone usin g the zonecfg dump configuration file, but renaming it accordingly, then attach the zone.

The attach part gets over the zoneadm -z xxxxx install part, where the new zone is built. By attaching it, it tells the zoneadm that there's already an environment there, to attach to.

Here, command wise, is what I would do.

1) Backup zone you want to copy, detach zone first
global# zoneadm -z zfszone1 detach / remember to attach afterwards
]2) create copy
global# tar / cpio the directory of the source zone to target location
The source zone is just a directory with all the files in, so just get it copied over to the new location, whether on the same host under a new name, or a dfifferent hot
3) attach zone / create new zone
zonecfg -z zfszone2
zonecfg:zfszone2> create -a /zone_roots/zfszone2
zonecfg:zfszone2> exit
4) attach and boot zone
global# zoneadm -z zfszone2 attach
If on a different host, then the attach part will check versions / patches etc. You will need to alter the ip / hostname as it’s a copy


Hope the above helps.
# 10  
Old 09-02-2009
you just need to modify your /etc/zones/zonename.xml file.

zonecfg -z zonename
add net
set physical=ce0
set address=x.x.x.x

or you can just vi the file in /etc/zones and you should be fine as well.
# 11  
Old 09-21-2009
Hello Friends,
Today I got the downtime to check whether on a switchover the newly added interfaces would be available on the other VCS node as well. My tests failed. I will try to sum up what exactly had I done:

==================================================================
1) On local zone (primary cluster node), I added the interfaces using "zonecfg -z zonename"
2) I then plumbed each interfaces using the commands:
ifconfig <interface:name> plumb
ifconfig <interface:name> zone <zone name> inet <ip addr> netmask <netmask> up

3) Copied the zone xml file to the secondary cluster node. Also ensured that the permissions, ownership and size of the xml file are same on both the nodes.

4) Did the switchover
hagrp -switch <zone name/package> -to <other node>

5) "Ifconfig -a" did not show the newly added interfaces.
==================================================================

Any help to let me know where I went wrong would be highly appreciated.

Thanks&Regards,
Mahive.
# 12  
Old 09-28-2009
Hi

With cluster, all network interfaces will have to be exculsive, i.e. the global zones should present the underlying NICs to the zone, which will not be shared with any other zones, and be exclusive to that one.

So, for each cluster zone, you should be setting set ip-type=exclusive Then, with in the zone, you do the usual /etc/hosts / etc/hostname.nxge1 etc etc.

In the global zone, go into /etx/zones, and ensure both of the zonename.xml files for the cluster zones, have the network address lines, mine look like :-

<zone name="svx-nemesis-dr" zonepath="/zones/roots/svx-xcxxxx-dr" autoboot="true" brand="solaris8"bootargs="-m verbose" scheduling-class="FSS" ip-type="exclusive">
<network address="" physical="nxge1"/>
<network address="" physical="nxge2"/>

I think you need to step out of the thinking of zones, and see each zone as a separate server. Once you have presented each environment with its own NIC, then put they are zones to one side, and configure the environments like you would do for a clustered pair.

I would imagine a private network address, or etc etc.

Do a google aswell.

SBK
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Virtual Terminal (Console) showing non-global zone?

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

2. Solaris

Date and time change in global and non global zone

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)
Discussion started by: Sumanthsv
1 Replies

3. Solaris

Global and non-global zone resource sharing - tricky

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)
Discussion started by: javanoob
6 Replies

4. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

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)
Discussion started by: os2mac
2 Replies

5. Solaris

showing 2 different time zones in global zone and nonglobal zone

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)
Discussion started by: ravijanjanam12
3 Replies

6. Solaris

Interfaces and Virtual-interfaces queries

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)
Discussion started by: satish51392111
1 Replies

7. Solaris

ZFS adding new filesystems to a non-global zone

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)
Discussion started by: fryzh
1 Replies

8. Solaris

How to access ENV variables of non global zones in global zone???

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)
Discussion started by: vijaysachin
1 Replies

9. Solaris

[b]How to mount a folder from global zone to non global zone??

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)
Discussion started by: vijaysachin
2 Replies
Login or Register to Ask a Question