Solaris 10 Zones (global/local) /proc fs is 97% full

Hi Folks,
sorry in case of this thread has been discussed already but I couldn't find any info regardless.
I've a solaris 10 server on which have installed 3 zones and 2 of these zone giving me continuously alert regarding disk space.
I know when /proc fs is full is normal but in my case when I am looking into disk space of solaris zone:
-bash-3.00# df -ak
Filesystem 1024-blocks Used Available Capacity Mounted on
/ 70220321 67141358 2376760 97% /
/dev 70220321 67141358 2376760 97% /dev
proc 0 0 0 0% /proc
ctfs 0 0 0 0% /system/contract
mnttab 0 0 0 0% /etc/mnttab
objfs 0 0 0 0% /system/object
swap 18973688 224 18973464 1% /etc/svc/volatile
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
70220321 67141358 2376760 97% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
70220321 67141358 2376760 97% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 19074320 100856 18973464 1% /tmp
swap 18973488 24 18973464 1% /var/run
-hosts 0 0 0 0% /net
As my understanding this issue filling up / fs as well, which totally strange to me.
Could someone advise pls why this mess?
Thanks

ostendali wrote:
Thanks for reply.
I've already ran du command, sorry for haven't posted here:
-bash-3.00# du -ash /* |sort -nr |grep GA more useful command is:
du -kd / | sort -n | tail -30
Why is it better?
- The "/" argument tells it to look at /. Your command says "look at all the stuff that is in /*". Note that /* does not include files and/or directories that start with ".". It does include file systems that are mounted on subdirectories of /.
- The -k option makes it so all of the units are the same. Thus, sort works better and you have an easy visual of the difference in space by the number of digits in the size.
- The -d option makes it so that it doesn't look in other file systems. You are trying to figure out why / is full. /proc is a different file system that is a representation of a bunch of kernel data structures. /proc takes no space on disk.
As you can see the fs is filled up from processes /proc and vhost/proc is not filling up any disk-based file system. When you read a file that is in /proc, you are either reading a representation of kernel data structures that are stored in memory or you are being referred off to a file in a different file system.
Notice that between your posts, you show that the root file system is about 70 GB in total size and /vhosts seems to be using 51 GB. That means that you are looking for less than 20 GB. If the du command I give above shows that / is using a lot less than df says it is using, try this command:
# find /proc/*/fd -type f -links 0 | xargs du -k | sort -n
258     /proc/12328/fd/24
Each line represents a file that has been removed but something still has it open. Because it is removed (no longer "linked" into a directory) it is invisible to du when traversing the normal file system. /proc provides a special view into it. In my example pid 12328 has file descriptor 24 open to a removed file. It is 258 KB in size. When pid 12328 dies, the space used by that file will be freed.
You can typically see what is in such a file using a command like
# less /proc/12328/fd/24
Many times you will see that it is a log file that is being written to and will never be read (because it is removed, after all). In such cases, you can free the space immediately with:
# cp /dev/null /proc/12328/fd/24

Similar Messages

  • Global swap is not reflected in branded solaris 8 zone

    I have 32 GB in my global zone
    root@Z21-AP-02 # swap -s
    total: 5753912k bytes allocated + 511136k reserved = 6265048k used, 32257984k available
    when I look in my branded solaris 8 zone I see a much smaller value
    root@txpwrsrv07-2:/ # swap -s
    total: 3202696k bytes allocated + 0k reserved = 3202696k used, 2040184k available
    Tried
    zonecfg -z txpwrsrv07-2
    select capped-memory
    set swap=32g
    end
    exit
    no difference.
    Any help would be appreciated.

    Thanks for the reply
    did the following
    prctl -n project.max-shm-memory $$
    project.max-shm-memory
    privileged 7.71GB - deny -
    system 16.0EB max deny
    prctl -n project.max-shm-memory -r -v 32G -i project 3
    prctl -n project.max-shm-memory $$
    project.max-shm-memory
    privileged 7.71GB - deny -
    system 16.0EB max deny
    no change. Is there something else restricting this?

  • Oracle 9i Database and Solaris 10 Zones

    Can an existing oracle 9i database be moved into a new zone? The database resides on it's own filesystem. The server is runnign Solaris 10, and the zones are not set up yet, but Oracle is installed, and the 2 databases are up and running.
    Basically there are 2 existing oracle 9i databases, and I want to setup 2 zones, where none other than the default global exist right now, and have each database in a zone.
    Thanks in advance.

    You need to do the following -
    Configure loopback mount points from the global zone into the local zone through zonecfg (one for Oracle binary, other for Oracle data). I am assuming that you want to share the same Oracle binary location between all the zones. The Oracle database mounts must be separate & make sure that you put them in the respective zone's config only.
    Create an oracle user with dba group in both the zones. It's best if the user IDs & group IDs across all the zones & global zone match.
    Stop both the database instances in the global zone.
    zlogin to a zone, su as oracle and startup the instances.
    Hope that works!

  • Recommendations - Oracle RAC 10g on Solaris 10 Containers Logical/Local..

    Dear Oracle Experts et all
    I have a couple of questions for Oracle 10g RAC implementation on Solaris and seek your advice. we are attempting to implement oracle 10g RAC on Solaris OS and SPARC Platform.
    1 We are wondering if Oracle 10g RAC could be implemented on Solaris Local/Logical Containers? I was assuming that Oracle will always link it self with OS binaries and Libraries while S/W installation and hence will need an OS image/Root Disk over which it could go. However, in containers, I assume we have a single solaris installation and configuration which will thus be shared to the containers which will be further configured in it. In such situations how does Oracle instalation proceed? Do I need to look at a scenario where, the global Container/Zone will have Oracle install and this image be shared across to zones/containers accordingly? If it is so, what all filesystems from OS will need to be shared across to these zones/containers?
    Additionally, even if this approach is supported, is it a recommended approach? I am unsure about the stability and functionality of Oracle in such cases and am not able to completly conceptualize. However, I assume there could be certain items which needs to be approprietly taken care off. It will help if you could share observations from your experiences.
    2 The idea of RAC we are looking at is to have multiple Oracle Installations on top of native clustering solution say veritas clusters/Sun Clusters. Do we still need to have Oracle Cluster solution Clusterware (ORACRS) on top of this to achieve Oracle Clustering? Will I be able to install Oracle as a standalone installation on top of native clustering solution say veritas clusters/Sun Clusters?
    Our requirement is to have the above mentioned multiple Oracle installations spread across two (2) seperate H/W platforms,say Node A and Node B, and configure our Cluster Solution to behave as active-passive across Node A and Node B. In other words, I will configure Clustering Solution like VRTS/SunCluster in Active-Passive, then have 3 Oracle installations on Node A, another 3 on Node B. I will configure one database each for each of these Oracle S/W installation (with an idea not to have Clusterware between clustering solution VRTS/SunCluster and Oracle installation, if it works). Now I will run 3 databases thus on each of these nodes. If any downtime happens on any one of the nodes, say Node A, I will fail all oracle databases and S/W accordingly to the alternate available node, Node B in this case, using native clustering solution and I will want the database to behave as it was behaving earlier, on Node A. I am not sure though if I will be able to bring the database up on Node B when resources in OS perspective are failed over.
    we want to use Oracle 10g RAC Release 2 EE on Solaris 10 OS latest/one before the latest release.
    Please share your thoughts.
    Regards!
    Sarat

    Sarat Chandra C wrote:
    Dear Oracle Experts et all
    I have a couple of questions for Oracle 10g RAC implementation on Solaris and seek your advice. we are attempting to implement oracle 10g RAC on Solaris OS and SPARC Platform.
    1 We are wondering if Oracle 10g RAC could be implemented on Solaris Local/Logical Containers? My understanding is that RAC in a Zone (Container) is not supported by Oracle, and will not work anyway. Regardless of installation, RAC needs to do cluster level stuff about the cluster configuration, changing network addresses dynamically, and sending guaranteed messages over the cluster interconnect. None of this stuff can be done in a Local Zone in Solaris, because Local Zones have fewer permissions that the Global Zone. This is part of the design of Solaris Zones, and nothing to do with how Oracle RAC itself works on them.
    This is all down to the security model of Zones, and Local Zones lack the ability to do certain things, to stop them reconfiguring themselves and impacting other Zones. Hence RAC cannot do dynamic cluster reconfiguration in a Local Zone, such as changing virtual network addresses when a node fails.
    My understanding is that RAC just cannot work in a Local Zone. This was certainly true 5 years ago (mid 2005), and was a result of the inherent design and implementation of Zones in Solaris. Things may have changed, so check the Solaris documentation, and check if Oracle RAC is supported in Local Zones. However, as I said, this limitation was inherent in the design of Zones, so I do not see how Sun could possibly have changed it so that RAC would work in a Local Zone.
    To me, your only option is the Global Zone. Which pretty much destroys the argument for having Zones on a Solaris system, unless you can host other non-Oracle application on the other Zones.
    2 The idea of RAC we are looking at is to have multiple Oracle Installations on top of native clustering solution say veritas clusters/Sun Clusters. Do we still need to have Oracle Cluster solution Clusterware (ORACRS) on top of this to achieve Oracle Clustering? Will I be able to install Oracle as a standalone installation on top of native clustering solution say veritas clusters/Sun Clusters?I am not sure the term 'native' is correct. All 'Cluster' software is low level, and has components that run within the operating system. Whether this is Sun Cluster, Veritas Cluster Server, or Oracle Clusterware. They are all as 'native' to Solaris as each other. They all perform the same function for Oracle RAC around Cluster management - which nodes are members of the cluster, heartbeats between nodes, reliable fast message delivery, etc.
    You only need one piece of Cluster software. So pick one and use it. If you use the Sun or Veritas cluster products, then you do not need the Oracle Clusterware software. But I would use it, because it is free (included with RAC), is from Oracle themselves and so guaranteed to work, is fully supported, and is one less third party product to deal with. Having an all Oracle software stack makes things simpler and more reliable, as far as I am concerned. You can be sure that Oracle will have fully tested RAC on their own Clusterware, and be able to replicate any issues in their own support environments.
    Officially the Sun and Veritas products will work and are supported. But when you get a problem with your Cluster environment, who are you going to call? You really want to avoid "finger pointing" when you have a problem, with each vendor blaming the cause of the problem on another vendor. Using an all Oracle stack is simpler, and ensures Oracle will "own" all your support problems.
    Also future upgrades between versions will be simpler, as Oracle will release all their software together, and have tested it together. When using third party Cluster software, you have to wait for all vendors to release new versions of their own software, and then wait again while it is tested against all the different third party software that runs on it. I have heard of customers stuck on old versions of certain cluster products, who cannot upgrade because there are no compatible combinations in the support matrices between the cluster product and Oracle database versions.
    I will configure Clustering Solution like VRTS/SunCluster in Active-Passive, then have 3 Oracle installations on Node A, another 3 on Node B. As I said before, these 3 Oracle installations will actually all be on the same Global Zone, because RAC will not go into Local Zones.
    John

  • Ports management in Solaris 10 Zones

    Hi,
    I am new in this area. We have a software vendor who stated that their applications should be able to:
    - open TCP connections to ports in the ranges 21400-21404 and 50000-50199 on the server
    - telnet port 23 for Galaxy 2000, http port 80 for Viewpoint (Server); etc.
    - IngresNet is on listen address I3 (port 21400).
    We have a Server & Storage infrastructure policy of implementing all Unix based applications on Solaris 10 Zones clustered on two nodes.
    Will there be a problem with the vendor requests?. To me, it is about independent port management within Solaris 10 zones
    Thanks in advance.

    Does this imply there are no ports which are common/shared between the Global and local zones.
    If there are, does it mean that opening one in that group of ports in the local zone will automatically implied its equivalent in the global is also opened?

  • Route add problem in solaris 10 zone

    hi all
    when i add route in one of my solaris 10 zone.. i get the following error. any workaround?
    # route add xxx.xxx.255/24 10.xxx.xxx.1
    add net xxx.xxx.255/24: gateway 10.xxx.xxx.1: insufficient privileges
    thanks
    peter

    it means i can only add route in globle zone? but
    global zone and sub-zones are using diff IP and
    interface cards. so how?But they're children of the same kernel. There can only be one routing table (at the moment, anyway). So make your route adds from global and watch them appear in the netstat output of your non-global zones.
    I agree that this is a confusing and poorly documented aspect of zones, however. I will admit to you that I barely understand it myself. However, there is a good answer to a question I had about this in comp.unix.solaris. Search that newsgroup for "Viewing non-global routes from global zone". A similar question fell on deaf ears here.
    Also, I would recommend searching this forum for "zone routes" or "zone routing" as this is a frequently hit topic.
    --gc1973                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with Java in solaris 10 zone

    HI ,
    i get this error message in my solaris 10 zone :
    #./java version
    Exception java.lang.OutOfMemoryError: requested -4 bytes for size_t in /BUILD_AREA/jdk1.5.0_11/hotspot/src/os/solaris/vm/os_solaris.cpp. Out of swap space?
    in global zone , java works fine !
    uname -a
    SunOS Server 5.10 Generic_141414-07 sun4u sparc SUNW,SPARC-Enterprise
    best regards

    I see mention of a similar problem, but only with early development releases of solaris10 branded zones running on Solaris 11 development bits. It seems as though this is not what you are running.
    Since there are no swap caps nor brand emulation in place, the next thing I would suspect would be that you somehow have inconsistencies between key libraries (e.g. libc) and the kernel. This could happen if you have a full-root zone that has been force attached (zoneadm -z <zone> attach -F). In the past, I've seen products that do this under the covers (e.g. Veritas Cluster) so it may have happened without your knowledge. If it is a sparse root zone, you may want to run "zoneadm -z <zone> detach; zoneadm -z <zone> attach -u". Prior to doing so, take whatever precautions you would normally take when patching a system.
    If you open a support call about this I bet the first advice you are going to get is to patch, as you seem to be 2+ years behind. Also, newer releases of Java 5 are available at http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html.

  • Solaris 10 zone config for JES

    Setup a zone to install JES - Web servers, but when I launch the installer I get the following:
    WARNING: Unsupported non-global zone
    EntSysResources:zoneCheckPanel-Gui-LocalZoneSupported
    Something in the zone setup is incorrect, but not sure what.
    Anyone else out running JES in Solaris 10 zones?
    Thanks!
    Steve
    [email protected]

    From docs.sun.com -
    The following Java ES and zones scenarios are supported in this release of Java ES:
    * Installing Java ES in a non-global zone that uses the whole root file system (Using the default sparse root file system is not supported.)
    * Installing Java ES in the global zone with no non-global zones
    Zone can be 2 type - sparse root and whole root . sparse root model has following folders inherited - /lib, /platform, /sbin and /usr.
    If a non-global zone doesn't have any inherit-pkg-dir resources, such a zone is said to be a whole root one
    If you want to create a whole root zone but default shared file systems resources have been added by using inherit-pkg-dir, you must remove these default inherit-pkg-dir resources using zonecfg before you install the zone:
    zonecfg:my-zone> remove inherit-pkg-dir dir=/lib
    zonecfg:my-zone> remove inherit-pkg-dir dir=/platform
    zonecfg:my-zone> remove inherit-pkg-dir dir=/sbin
    zonecfg:my-zone> remove inherit-pkg-dir dir=/usr

  • Installation of Oracle 10g in Solaris 10 zones

    Hi Everybody,
    Is there any Documentation for Installation of Oracle 10g in Solaris 10 Zones.
    I am having multiple zones shared by one common SAN Storage.
    I want to install oracle 10g in one of the particular local zone.
    Regards,
    Prosenjit Mukherjee.

    Last time I looked at metalink the documentation said zones and containers were not supported. That may no longer be true so you should check there first.

  • Solaris Branded Zones, Unable to reboot/Halt

    Hi People,
    Hoping someone can help. Im running Solaris 10 on a Sun Workstation Ultra 45. I have two disks. One disk has the default install of solaris 10 all updated to the latest patches.The second disk is mounted as /zones and holds each of the zones on ZFS. I have then downloaded and installed successfully Solaris 8 and Solaris 9 and Solaris 10 zones. So I have 3 zones.
    The problem I am facing is I can boot up all 3 zones fine and they work great, however when I halt or reboot either Solaris 8 or solaris 9, they never come back up. I try and zlogin to them and telnet and ssh and they are totally unresponsive and quite literally dont boot. I have tried to pkill -9 -z zonename ; umount /zonesfilesystem; zpool clear and even rebooted the Global zone. Still will not come up. The only way they will boot after being shutdown is if i shutdown the global zones and turn the server off and back on.
    Solaris 10 Zone boots up and down fine with no isses. I have tried this on both UFS and ZFS thinking it might be a file lock issue. Still unable to reboot or halt a zone and bring it back up.
    Any help please :)
    Thanks in advance.

    When they are unable to come back up, what does 'zoneadm list -cv' say? If the state of the zone is "down" or "shutting_down", you can probably benefit from the fix for:
    7038404 outstanding zone references should not cause zone_destroy(2) to hang
    This is available in 147440-05 (sparc) / 147441-05 (x86) or later.

  • Veritas Netbackup Client Installed on Solaris 10 Zone Unable to Work

    Hi
    I am having problems with Veritas Netbackup client which had been installed on a Solaris 10 zone only. We are using Veritas Netbackup server which is installed on a Windows 2000 server and the NBU server is unable to add the new client for backup.
    The way I installed the NBU client was using the manual method where I installed directly on the zone. The zone I've created is a full root zone and the installation seems to be successful.
    Somehow the NBU server just can't see the new client. Do I need to install the client in the global zone to make it work? Is there any checks I can do to make sure I have installed the client correctly and that the services are running in the solaris 10 zone side? Any kind of help would be much appreciated.
    Thanks
    Xavier

    Hi mcbrune1
    I've check on the services in the client and all 4 services were up and running. Than I realized that this client was hardened a few weeks back. So I checked on the /etc/hosts.allow file and added an entry to allow the Master server to communicate using bpcd.
    Now the Master server is able to see the client and everything seems to be working. Thanks for your help.
    Cheers

  • Set rlim_fd_cur=8192 for Solaris 10 Zone?

    Hi!
    I would like to install SAP Solution Manager 7.0 on Solaris 10 Zone (Sparc 64 Bit).
    Unfortunately I could find the file etc/system. Instead I added the project file acording to SAP note 724713.
    When I run SAP prerequisite Checker SAPINST tells me that the following will be missed:
    set rlim_fd_cur=8192 in etc/system.
    Question:
    Do I need to add the file etc/system and add them the following commando:
    set rlim_fd_cur=8192?
    Or does this commando not apply for Solaris 10?
    Thank you very much!
    regards
    Thom

    > In solaris 9 and below, it was needed to add the parameter in /etc/system. With solaris 10 no need.
    This is not completely true.
    The number of maximum open files must be set in the global zone, otherwise you will run into problems once the total number of processes in all zones will be > 1024 - hence you need to also set this in Solaris 10.
    A zone has no /etc/system thus that error can be ignored.
    Markus

  • RAC on solaris 10 zones

    Hi
    Can I setup RAC on solaris 10 zones?
    Thanks!

    According to certify they suppored only in global containers. Metalink note 317257.1 may be of some help...

  • Migrate Solaris 10 Physical Server to Solaris 10 Zone

    Hi All,
    I am trying to migrate a physical solaris 10 server to a solaris 10 zone. I have used the flar create archive tool to make the image.
    On the target system i have created but not installed a solaris 10 zone. According to suns documentation you should be able to run zoneadm -z <zonename> install -a <flash file path
    But when i do this it keeps wanting the -x option after the install but no where does it say in the documentation.
    Has anybody come across this at all?
    Thanks
    D

    It's not too bad. I have been doing this for a couple of years before the latest update came out.
    0. Ensure the two systems are at the same release and patch levels.
    1. Create AND install the solaris non global zone (ngz)
    2. Once complete, from the global zone, remove the root directory of the ngz.
    cd <zoneroot>/root (i.e. cd /zones/myhost/root && rm -rf /zones/myhost/root/.)
    3. split the flar of the source system .. 'flar split sourceflar.flar' ( you ar interested in the archive file from the split)
    4. from the global zone, extract the archive file into the ngz root.
    cd <zoneroot>/root
    cat archive | uncompress -c | cpio -ivdmu
    5. boot the zone
    6. when the zone comes up, you will have some cleaning up to do of the non needed services
    fmd,picl,fc-fabric,sysevent .. there will be others.. but just stepping through them with svcs -x
    7. that should do it.
    good luck

  • Unclear on branded solaris 9 zones and ipfilter

    I just managed to install my first solaris 9 zone on a solaris 10 system (v490). It has gone fairly well so far but I
    am definitely "unclear on the concept" with respect to ipfilter and the zone. This is a shared ip zone.
    On solaris 9 we use ipfilter 3.4.32.
    I used a flar from one of these systems to install the zone. On boot, I see that our ipfboot file in /etc/rc2.d fails with
    modload failures etc
    You must be superuser to load a module
    open device: No such file or directory
    open device: No such file or directory
    constructing minimal name resolution rules...
    open device: No such file or directory
    open device: No such file or directory
    open device: No such file or directory
    open device: No such file or directory
    /etc/rc2.d/S65ipfboot: load of /etc/opt/ipf/ipf.conf into alternate set failed
    Not switching config due to load error.
    /dev/ipf: open: No such file or directory
    This makes sense but as I said what do I do instead. I found this in the solaris container system admin manual
    "Solaris IP Filter can be enabled in non-global zones by turning on loopback filtering as described in Chapter 26, Solaris IP Filter (Tasks), in System Administration Guide: IP Services. "
    Yes, but that doesn't help me much since the IP Filter tasks simply tell me to do this in ipf.conf in the global zone.
    set intercept_loopback true;
    Isn't there more to it than this? A real example some place would be most helpful. And how can I make sure it is working?
    Not a real ipf guru :-(

    First thing to check is if your zone can access the global zone (try pinging). If this isn't the case you probably need to setup a routing entry allowing the non-global zone some access.
    For example, say the global is 10.0.0.1 and the non-global 192.168.0.1 on eri0 you'd use something like:
    route add 10.0.0.1 192.168.0.1 -iface
    This tells your non-global zone that it can reach the global zone through the eri0 interface. Ofcourse you can also expand this to networks and such.
    Another very important factor to keep in mind when dealing with internet is trying to access it from the non-global zone (as a test). Your ipnat.conf entry should be enough, my guess for to the reason for not routing the data is a non-static arp entry of your internet gateway. Now, this is a mere guess but if you have a default route in your routing table setup for Internet access (netstat -rn) make sure that the host to which the default route is pointing also has a static arp entry (man arp). If this is indeed the case you may also need to setup a routing entry as mentioned above to allow your zone access to this remote gateway.
    After that things should work as usual. Hope this helps.

Maybe you are looking for