Using dtrace to tap into local-zone console output?
Was wondering if anyone has experimented with dtrace to capture zlogin console output for local zones. (all in the global ofcourse)
(I don't want to run zlogin and capture its output to a file, since that would interfere with normal "zlogin" operation.)
The idea would be to try and use dtrace to attach to some sort of centralized "zlogin construct/object" and then capure ALL zlogin console-output for ALL local zones, with dtrace, and then having that parsed out to log-files for each local zone.
Might sound a little far-fetched, but until a standard interface for zone-console logging is created, this may be the base we can do?
If you can think of alternatives, please share them.
thanks,
-- MikeE
For the record: http://blogs.sun.com/roller/page/menno/20050525
Menno
Similar Messages
-
Telnet directly into local zone failed
Hi,
After reboot the local zone, I can't telnet into it any more... Couldn't find any problem with it and do not know how to make it work. All I can do is zlogin into local zone from global. Can someone help me please? Thanks a bunch!
HSPlease disregard the message. I found the answer.
Thanks,
HS -
Seeing zone console output without "zlogin -C zonename ?"
You can see any output written to a non-global zone's console while running command
zlogin -C <zonename>
What happens to my console output while NOT running zlogin?
Suppose output get dropped to the floor!?
Is there any way to configure some sort of zone-console-logging?
Let's say, we want to catch all output written to a non-global console while not running "zlogin -c ...", collected to some log file.
1. Yes, I certainly know about syslog and configuring syslog.conf. But that's not the point. There might be some output written to console which syslog never sees.
2. I've checked properties of "svc:/system/console-login". There is no log option of that sort.
3. And obviously using a serial console server would not help either, because we are not in the global zone.
I think it's not possible to catch non-global console output without "zlogin -C", right?Output which is displayed on your console are basicly messages whihc are usually send out by syslog (check /etc/syslog.conf). You'll notice that in some cases it will send out a message to just about everywhere (*, which only makes sense if someone is logged in) or the most important part here: /dev/sysmsg.
I suggest taking a look at 'sysmsg(7D)' and 'syslog.conf(4)' for more information on all this. Needless to say; the messages you refer to are not merely dropped into the bitbucket, unless you want them. -
How to mount NFS into a zone or how to use the same IP in every zone?
Hi,
we are using a NFS server in a different subnet (= different network interface; nxge1) than our 'normal' network (= nxge0).
Now I want to mount serveral NFS directories into our zones.
First I thought the follwoing is possible:
In the global zone I just mount the filesystem into its place:
mount 10.11.3.1:/vol/vol_nfs_zones/zoneNNN_mnt /zones/zoneNNN/root/mnt
When the zone is halted this mount works, but when I start the zone, I receive the error:
# zoneadm -z zoneNNN boot
zoneadm: zone 'zoneNNN': These file-systems are mounted on subdirectories of /zones/zoneNNN/root:
zoneadm: zone 'zoneNNN': /zones/zoneNNN/root/mnt
zoneadm: zone 'zoneNNN': call to zoneadmd failed
When zoneNNN is already running and I try to mount it, I receive
nfs mount: mount: /zones/zoneNNN/root/mnt: Device busy
So the question is: How do I mount something in the gloabl zone from a NFS server into a zone?
The only alternative I see is to make the interface nxge1 available in every zone and give each an own IP in our storage network... But sadly this isn't an alternative because we don't have so many free IPs in that net! (Or is there a trick to use the same IP in the global and non-global zones for only this interface??)
Does anyone have a solution for our problem? I cannot believe that SUN misses this!
Any hints are more than welcome!Mounting it by NFS in the global zone and trying to add this by the "add fs" and "type=lofs"-option yields to an error, when installing the zone:
cannot verify fs /data: NFS mounted file-system.
A local file-system must be used.
zoneadm: zone zoneNNN failed to verifyOur storage network is not accessable from other nets. (And I think it is a very bad idea to route storage network traffic...)
So I think we def. have to increase our storage network. :-( -
I am trying to download whatsapp on my iphone 4. It asks for my apple id and password and when I sign in , it gets me to a page that says redeem ...when I hit redeem it shows I have a $14 balance in my account and asks for a code - I tried entering the itunes card number...it says it has already been used. How do I tap into my account to pay for the app?
It says at the top under Redeem after I touched that:
$14.73
Account: [email protected] (my account name)
Enter your Gift Card or Download Coad -
Can I convert my VHS tapes into DVD using iMAC?
How can I convert my VHS tapes into DVD by using iMAC?
From VHS to DVD
http://www.macworld.com/article/1030972/fromvhstodvd.html <<< click here.
How to Convert a VHS to a DVD for Mac OS X
http://www.ehow.com/how_6515774_convert-dvd-mac-os-x.html <<< click here.
Roxio unveils VHS to DVD converter for Mac
http://www.macnn.com/articles/09/05/26/roxio.vhs.to.dvd/ <<< click here.
How to Convert VHS to DVD on Mac OS X
http://www.daniusoft.com/tutorial/burn-vhs-to-dvd-on-mac.html << click here. -
Local zone using IPMP in global zone
Hi all,
I've installed a zone and when I'm booting it, I receive the following error :
bge0:2: could not bring interface up: address in use by zone 'global': Cannot assign requested addres
The bge2 is used in my global zone (member of IPMP group of 2 interfaces : bge0 - ce0).
Is there a way to use the IPMP mecanism from my global zone to my local zone ?
Something like :
add net
set address = xxx.xxx.xxx.xxx
set physical = IPMP_group (instead of a physical interface)
OR must I unplumb the bge0 in the global zone in order to use it in local zone ?
Thanks for the help or the advices !
Quentin.I think I won the 10 duke stars that I was giving for this topic ...
I didn't see that the IP/interface I wanted to configure with my local-zone was already plumbed in global zone from a previous failed zone boot.
I've unplumbed the logical interface in global zone and I've booted successfully the zone. -
Using Voice Over in the ios5 music app, when tapped into an album there is no way to back out of it except by switching off voice over! Help. This is preventing me upgrading the iPad2 to iOS5 for a blind man I work with. Am I missing something or is it a bug?
here is a link to macosxhints.com that tells you how to output all of your feed URLs to a terminal window. from there you can cut and paste them into your new feed reader of choice...
http://www.macosxhints.com/article.php?story=20080319094830396
and if you are in the marked for a new reader may i suggest David Watanabe's excellent NewsFire. he had just recently made it totally free as a gift to the macintosh community.
best of luck. -
I was in the middle of installing the new update using the wifi at a local restaurant when I lost the wifi signal and my iPhone shut down, and now I can't get into the phone. I only get the iTunes logo with the cable pic. What are my options now?
Your only option is to connect your iPhone to your computer via USB (as the diagram indicates) and restore using iTunes.
-
Install NetConnect in Global Zone of Solaris 10 x86 with 5 local zone fail
Problem:
Install NetConnect in Global Zone of Solaris 10 x86 with 5 local zone failed
But I didn't have any issue with the same pkg in Solaris 9
Steps taken:
# groupadd netcon
# useradd -d /export/home/netcon -g netcon -m netcon
# vi /etc/shadow
change LK to NP
# ./UninstallNetConnect.003.002.001.sh
# ./InstallNetConnect.003.002.001.sh
Enter the user account to use: netcon
Enter group: netcon
Installing Sun(SM) Net Connect Proxy Core as <SUNWsrspx>
## Installing part 1 of 1.
/etc/opt/SUNWsrspx/CustomerCert.pem
/etc/opt/SUNWsrspx/SRSCACert.pem
/etc/opt/SUNWsrspx/binaries
/etc/opt/SUNWsrspx/srsproxyconfig.cfg
/opt/SUNWsrspx/bin/srsexec
/opt/SUNWsrspx/bin/srsinstall
/opt/SUNWsrspx/bin/srsinstallmode
/opt/SUNWsrspx/bin/srsproxy
/opt/SUNWsrspx/bin/srspxrun
/opt/SUNWsrspx/bin/srspxstat
/opt/SUNWsrspx/bin/srspxtrace
/opt/SUNWsrspx/bin/srsuser
/opt/SUNWsrspx/bin/srsxfer
/opt/SUNWsrspx/lib/srsimapi.jar
/usr/lib/libsrsimapi.so.1
[ verifying class <none> ]
## Executing postinstall script.
copying initial install customer cert into place
copying initial install srs cert into place
copying initial install proxy config file into place
removing any existing uninstallscript before copying the correct one
copying uninstall script into place
/var/sadm/pkg/SUNWsrspx/install/postinstall: /opt/SUNWsrspx/bin/srspxrun: cannot execute
proxy queue initialization failed
pkgadd: ERROR: postinstall script did not complete successfully
Installation of <SUNWsrspx> failed.
ERROR: pkgadd failed for: SUNWsrspx
Please correct this situation and rerun the installation.
Exiting installation.
# cat /var/adm/messages
Oct 7 00:00:01 planet root: [ID 702911 daemon.error] ERROR: proxy queue initialization failed
Any clue, or it will only possible in Global zone that didn't have any local zone
thanks in advanceProblem:
Install NetConnect in Global Zone of Solaris 10 x86
with 5 local zone failed
But I didn't have any issue with the same pkg in
Solaris 9
Steps taken:
# groupadd netcon
# useradd -d /export/home/netcon -g netcon -m netcon
# vi /etc/shadow
change LK to NP
# ./UninstallNetConnect.003.002.001.sh
# ./InstallNetConnect.003.002.001.sh
Enter the user account to use: netcon
Enter group: netcon
Installing Sun(SM) Net Connect Proxy Core as
<SUNWsrspx>
## Installing part 1 of 1.
/etc/opt/SUNWsrspx/CustomerCert.pem
/etc/opt/SUNWsrspx/SRSCACert.pem
/etc/opt/SUNWsrspx/binaries
/etc/opt/SUNWsrspx/srsproxyconfig.cfg
/opt/SUNWsrspx/bin/srsexec
/opt/SUNWsrspx/bin/srsinstall
/opt/SUNWsrspx/bin/srsinstallmode
/opt/SUNWsrspx/bin/srsproxy
/opt/SUNWsrspx/bin/srspxrun
/opt/SUNWsrspx/bin/srspxstat
/opt/SUNWsrspx/bin/srspxtrace
/opt/SUNWsrspx/bin/srsuser
/opt/SUNWsrspx/bin/srsxfer
/opt/SUNWsrspx/lib/srsimapi.jar
/usr/lib/libsrsimapi.so.1
[ verifying class <none> ]
## Executing postinstall script.
copying initial install customer cert into place
copying initial install srs cert into place
copying initial install proxy config file into place
removing any existing uninstallscript before copying
the correct one
copying uninstall script into place
/var/sadm/pkg/SUNWsrspx/install/postinstall:
/opt/SUNWsrspx/bin/srspxrun: cannot execute
proxy queue initialization failed
pkgadd: ERROR: postinstall script did not complete
successfully
Installation of <SUNWsrspx> failed.
ERROR: pkgadd failed for: SUNWsrspx
Please correct this situation and rerun the
installation.
Exiting installation.
# cat /var/adm/messages
Oct 7 00:00:01 planet root: [ID 702911 daemon.error]
ERROR: proxy queue initialization failed
Any clue, or it will only possible in Global zone
that didn't have any local zone
thanks in advance
[I believe that it does not work in x86, watches with pkginfo - l SUNWsrspx, in the platform.
Willy Suarez
Sopport UNIX
Colombia/code] -
Raw diskslices not visible in local zones
Hi,
I'm using sol X86-64 and created a local container. I want to run Oracle with ASM in this container. Because of that i need raw disks (of disk slices) in my container. I added them in the global container with the add device / set match command (see below).
I rebooted my zone (also tried to halt and boot), but i can't see the devices in the local zones.
Anyone ideas ????
Frank
zonecfg:zora1> info
zonename: zora1
zonepath: /zones/zora1
brand: native
autoboot: true
bootargs:
pool: pool_zora1
limitpriv:
scheduling-class:
ip-type: shared
fs:
dir: /usr/local
special: /opt/zora1/local
raw not specified
type: lofs
options: []
net:
address: 99.99.99.999
physical: e1000g0
device
match: /dev/rdsk/c1t8d0s3
device
match: /dev/dsk/c1t8d0s3
zonecfg:zora1>Hi,
It is "Solaris 10 8/07 s10x_u4wos_12b X86". So, i will look into this solution. It looks promising. I will let you know if it worked.
By the way, We're running sol x86-64 as a quick test. We will eventually be running Sol 10 SPARC.
Thanx,
Frank -
Hi,
Has anyone tried mount an NFS share into a zone?? I am unable to lofs or manually mount..
root@NFS_SERVER # share -F nfs -o rw /stage
root@LDOM1 # mount -F nfs -o rw NFS_SERVER:/stage /stage
Then try and mount /stage into the local zone - doesnt seem to work:
root@LDOM1 # zoneadm -z localzone boot
cannot verify fs /stage: NFS mounted file-system.
A local file-system must be used.
zoneadm: zone localzone failed to verify
root@LDOM1 #
Thanks.I'm not sure what you're trying to do. It sounds like you're trying to mount a NFS filesystem in the global zone and then reference it somehow via the zone configuration as though it was a local filesystem. If so, I can't comment on whether that will work or not because I've no experience with that approach. What I have done successfully is to mount NFS filesystems via /etc/vfstab or automount inside the zone. That works just fine and it is done using exactly the same procedures as you'd use to mount NFS filesystems in the global zone.
-
Solaris 10U1 needs to be to patched to SunUC 1.0.4 for local zones support
The version of Sun UC integrated into S10u1 does not support systems with local zones configured. This has since been fixed but you first need to patch the system to upgrade to Sun UC 1.0.4. This can be done on a SPARC system as follows:
$ smpatch download -i 121118-06
$ smpatch add -i 121118-06
For X86 the patch is 121119-06.This implies that ODP.NET does NOT need to be installed on a client. However, I cannot find OraOPs9.dll on a machine with Client Release 9.2 installed. Should OraOps?.dll automatically come with a Client installation of 9.2 or higher?
ODP.NET needs to be installed on the client. OraOps9.dll is part of ODP.NET, not the Oracle Client.
Also, if an application is built with the 10g ODP.NET, can it be run from a machine with OraOps9.dll?
If an application is built with 10g ODP.NET, it can be run with 9.2 ODP.NET as long as you do not use any 10g APIs. The new features in 10g ODP.NET are included in the doc and the ODP.NET FAQ for your reference. -
Limiting local-zone memory consuption...
Hey people...
from a "search" through the forums, it appears that this question has been asked before... (but I wasn't able to find an authoritative answer from a SUN person on this, so lets try again....)
Scenario:
- bunch of local-zones on a server.
- locked down disk-wise by using..... well, lets just say a really cool new file-system.
- locked down CPU-wise through FSS and share-assignment to each zone (FROM the global zone)
- plan to lock down total-processes through zone.lwp-max type deal with zoneadm. (haven't tried this yet)
- memory consumption is still a free-for-all however, and I'm somewhat stuck on this one...
so.. how do you recommend capping the total memory consumption for each zone?
* please set me straight if I'm overlooking something straight-forward, or point us to some docs.
The documentation suggests the possible use of rcapd or some such beast, but it appears that has to be run from WITHIN the local (non-trusted?) zone, which would somewhat defeat the purpose. Using pools to control memory may do the trick, but there is some sort of "one pool, one zone" statement I'm not clear on.
[ but again, that is probably just just me... ]
I don't want to "hard-partition" the box in such a way where I have to divide up the total memory into 20-pools, to then give each zone its own pool. I think what I'm after is some sort of "zone-A can use upto 2GB out of total mem, zone-B 1GB, zone-C 3GB and so on...... But without pre-allocating 2,1,3 GB of RAM exclusively to each zone.... Maybe you can do this with the multiple individual pools, but I'm not clear on it.
thanks for any assistance,
-- MikeE"Users will now be able to define how much memory and how many processors should be assigned to a particular application or container."
Memory limits could be a big deal. Anyone know if this is something more than the "pcap" daemon? Is it real memory limits?You mean 'rcap'? What's the limitation you have with that?
I'm assuming that the blurb is referring to this stuff...
http://opensolaris.org/os/community/zones/files/Zones_RM_Improvements.html
Darren -
Audit is enabled and working fine in Global zone.
root@MMS11:/var/audit# uname -a
SunOS MMS11 5.11 11.2 sun4v sparc sun4v
root@MMS11:/var/audit#
root@MMS11:/var/audit#
root@MMS11:/var/audit# pkg info entire
Name: entire
Summary: entire incorporation including Support Repository Update (Oracle Solaris 11.2.3.4.1).
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system. For
more information see
https://support.oracle.com/rs?type=doc&id=1672221.1.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11 (Oracle Solaris 11.2.3.4.1)
Build Release: 5.11
Branch: 0.175.2.3.0.4.1
Packaging Date: October 2, 2014 10:39:23 PM
Size: 5.46 kB
FMRI: pkg://solaris/[email protected],5.11-0.175.2.3.0.4.1:20141002T223923Z
root@MMS11:/var/audit#
root@MMS11:/var/audit# ls -lhtr
total 34343
-rw-r----- 1 root root 400K Apr 7 16:41 20150407134107.20150407134155.MMS11
-rw-r----- 1 root root 11M Apr 7 17:21 20150407134157.20150407142120.MMS11
-rw-r----- 1 root root 5.5M May 4 13:57 20150504103940.not_terminated.MMS11
root@MMS11:/var/audit#
root@MMS11:/var/audit# ls -lhtr /var/adm/auditlog
-rw-r----- 1 root root 1.0M May 4 13:57 /var/adm/auditlog
root@MMS11:/var/audit# audit -s
root@MMS11:/var/audit# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
5 MMS_NG running /zones/MMS_NG solaris shared
=======================================================
but I am unable to enable audit on local zone.
I have following
root@MMS11:/var/audit# zlogin MMS_NG
[Connected to zone 'MMS_NG' pts/14]
Oracle Corporation SunOS 5.11 11.2 September 2014
You have mail.
root@MMS_NG:~#
root@MMS_NG:~#
root@MMS_NG:~# audit -s
audit: Neither local nor remote auditing is configured in the non-global zone.
root@MMS_NG:~#
root@MMS_NG:~# audit -n
audit: Neither local nor remote auditing is configured in the non-global zone.
root@MMS_NG:~# cd /var/audit
root@MMS_NG:/var/audit# ls -lhtr
total 94399
-rw-r----- 1 root root 149M Apr 7 16:40 20150208124745.not_terminated.MMS_NG
How I can enable audit in NG zone, I want to enable audit logs with syslog service. as enabled and configured on Global Zone.I'm not sure why Ur looking for /etc/system in zones..
now in soalris 10u10 /soalrs 11..you can configure the kernel parameters as application/user specific
you can use projadd command to add the resources like shared memory
if you want add the parameters as global you can use
zonecfg
you can refer this doc what parameters u can add to zone with zonecfg
http://docs.oracle.com/cd/E19455-01/817-1592/z.config.ov-1/index.html
zone.cpu-shares (preferred: cpu-shares)
zone.max-locked-memory
zone.max-lwps (preferred: max-lwps)
zone.max-msg-ids (preferred: max-msg-ids)
zone.max-sem-ids (preferred: max-sem-ids)
zone.max-shm-ids (preferred: max-shm-ids)
zone.max-shm-memory (preferred: max-shm-memory)
Maybe you are looking for
-
Interactive VS. Classic Report
Hi all, I have created both interactive report and classic report on the same table just for testing. http://apex.oracle.com/pls/apex/f?p=53917:1 You can see that the interactive report has link to single row view. How can I make my classic report to
-
Error while using CURRENTMEMBER property in INSTR function
Hi, I am looking for SQL 'LIKE' operator equivalent solution in MDX and I tried the below query. SELECT FILTER([Company].Members, INSTR([Company].CURRENTMEMBER.NAME,"AA") >0) on columns from temp1.db The above query is not compiling due to CURRENTMEM
-
I have a windows 7 premium laptop, 64 bit driver, have tried to install itunes but recieve an error when trying to open. Error states "Apple Application Support is required to run itunes. uninstall and reinstall again, error 2 (windows error 2). have
-
I work in the graphic world and I receive lots of mails with heavy attachments. I would like to switch to Mail (from Entourage), but my problem is that Mail seems to display all attachments in the preview pane. Because of the size of the attachments,
-
BBM messenger conversation dissapear!
When I have several conversations in the BB messenger with contacts, and some conversations disappear after a couple of days. Why are they being erased? I never erased them. thanks