The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Global zone name from local zone fugitive SUN Solaris 6 07-13-2009 12:26 PM
Solaris Zones - Running a Command From the Local Zone in the Global Zone iBot Solaris BigAdmin RSS 0 04-09-2009 08:45 PM
Not able to ping global zone from local zone kumarmani SUN Solaris 12 02-09-2009 03:26 AM
Solaris Zone : Non global Zone check failed jegaraman SUN Solaris 7 10-22-2008 03:31 AM
Bind zone transfer recategorises zone file? fulhamfcboy SUN Solaris 1 11-09-2007 01:28 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
dellxmax dellxmax is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 8
Some Question's about Zone

Hi all,
i am new learner in Zoning and virtualization Technology and i have some question's about it
i create zone using this step
zonecfg -z app-apache
create
set zonepath=/zone_adm/app-apache
add net
set address=192.168.1.250
set physical=bge0
end
set autoboot=true
verify
commit
exit
zoneadm -z app-apache install
zoneadm -z app-apache boot
zlogin -C app-apache


this is the path of the file created by zonecfg
/etc/zones/app-apache.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
    DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
-->
<zone name="app-apache" zonepath="/zone_adm/app-apache" autoboot="true">
  <inherited-pkg-dir directory="/lib"/>
  <inherited-pkg-dir directory="/platform"/>
  <inherited-pkg-dir directory="/sbin"/>
  <inherited-pkg-dir directory="/usr"/>
  <network address="192.168.1.250" physical="bge0"/>
</zone>
and i want to add some inherited directory
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
    DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
-->
<zone name="app-apache" zonepath="/zone_adm/app-apache" autoboot="true">
  <inherited-pkg-dir directory="/lib"/>
  <inherited-pkg-dir directory="/platform"/>
  <inherited-pkg-dir directory="/sbin"/>
  <inherited-pkg-dir directory="/usr"/>
  <inherited-pkg-dir directory="/etc"/>
  <inherited-pkg-dir directory="/export"/>
  <network address="192.168.1.250" physical="bge0"/>
</zone>
is there any problem about edit this file manually
is that correct to inherit all folder and file from global zone
how to edit zone already running
add inherited directory by command line
how to assign for example 25% from processor to this zone
how to assign for example 25% from memory to this zone



when i write this command when i enter the zone console
dladm show-link
to know the interface name
give me this error
Code:
insufficient privileges
why i see this error also i enter this zone as root user



if i use the zone for example app-apache and don't have privilleges to work in globale zone (how to know the globale machine name)


Network Question
when i configure the zone for the first time i set static IP
when i enter the zone and make vi /etc/hostname.bge0 to see my IP i didn't found this file where is the Static IP set for this zone

Note
thanks in advance and sorry for this too question but Zoning and virtualization is very interest topic to learn and also have a lot of advantage
  #2 (permalink)  
Old 2 Weeks Ago
freebsdjlu freebsdjlu is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 3
Some questions about zone

I am a newbie for solaris ,I just follow the doc to set up zone step by step
but at last ,I met some problems when I used zlogin to login ,although the zone seems be running.
1.
root@opensolaris-vm:~# zoneadm list -vc
ID NAME STATUS PATH BRAND IP
0 global running / native shared
5 mysql1 running /zone/mysql1 ipkg shared
- mysql2 configured /zone/mysql2 ipkg shared
2.
root@opensolaris-vm:~# zlogin -C mysql1
[Connected to zone 'mysql1' console] 69/69
Reading ZFS config: done.
Mounting ZFS filesystems: (1/5)cannot mount 'rpool/zone': Insufficient privileges
cannot mount 'rpool/zone/mysql1': Insufficient privileges (5/5)
svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: exit status 1
Nov 6 18:18:48 svc.startd[3996]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Nov 6 18:18:48 svc.startd[3996]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)

3.
root@opensolaris-vm:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 4.70G 2.62G 77.5K /rpool
rpool/ROOT 3.86G 2.62G 19K legacy
rpool/ROOT/opensolaris 3.86G 2.62G 3.72G /
rpool/dump 256M 2.62G 256M -
rpool/export 260M 2.62G 21K /export
rpool/export/home 260M 2.62G 243M /export/home
rpool/export/home/vmplanet 16.7M 2.62G 16.7M /export/home/vmplanet
rpool/zone 341M 2.62G 21K /zone
rpool/zone/mysql1 341M 2.62G 19K /zone/mysql1
rpool/zone/mysql1/ROOT 341M 2.62G 19K legacy
rpool/zone/mysql1/ROOT/zbe 341M 2.62G 341M legacy
rpool/zone/mysql2 19K 2.62G 19K /zone/mysql2

4.
root@opensolaris-vm:~# ls -l /zone/
total 2
drwx------ 4 root root 4 2009-11-07 10:17 mysql1

5.
root@opensolaris-vm:~# zonecfg -z mysql1 info
zonename: mysql1
zonepath: /zone/mysql1
brand: ipkg
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
net:
address: 192.168.89.125/24
physical: pcn1
defrouter not specified

And who can explain the add dataset step in zonecfg ?
I mean when should I use add dataset ,in my configuration ,no dataset was set,but it also works .
  #3 (permalink)  
Old 2 Weeks Ago
bartus11 bartus11 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 45
Give us link to doc you used to create mysql1 zone. As for adding datasets, it is used to delegate full control over added ZFS filesystem to zone, so within that zone new ZFS filesystems can be created, as well as snapshots etc.
  #4 (permalink)  
Old 2 Weeks Ago
freebsdjlu freebsdjlu is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 3
Quote:
Originally Posted by bartus11 View Post
Give us link to doc you used to create mysql1 zone. As for adding datasets, it is used to delegate full control over added ZFS filesystem to zone, so within that zone new ZFS filesystems can be created, as well as snapshots etc.
tks a lot ,but from the info I pasted ,could you give me some solution?
  #5 (permalink)  
Old 2 Weeks Ago
bartus11 bartus11 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 45
Well I've never seen that problem before so I don't know what might go wrong. So steps you used to create that zone would help very much. I can see you have another zone there. Is it working? No problems with mounting ZFS in mysql2?
  #6 (permalink)  
Old 2 Weeks Ago
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,387
Quote:
Originally Posted by dellxmax View Post
is that correct to inherit all folder and file from global zone
It is certainly a very bad idea to inherit /etc which contains configuration files that must be unique to each zone. It might even break the global zone.
  #7 (permalink)  
Old 2 Weeks Ago
dellxmax dellxmax is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 8
thanks sir for your effort
did you know how to reconfigure zone already exist?
vi command
please explain
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0