How do I share non-global zone filesystem?

I have a non-global zone that needs to have a UFS local filesystem. That file system also needs to be accessible (via NFS or whatever) to another non-global zone.
Can this be done?

I have a non-global zone that needs to have a UFS
local filesystem. That file system also needs tobe
accessible (via NFS or whatever) to another
non-global zone.
Can this be done?Not directly by the non-global zone. You can't
currently serve NFS from them.
However, could you host the filesystem in the global
zone, then have both of the non-global zones access
it as a loopback filesystem?
DarrenOne of the non-global zones needs to write memory mapped files to the filesystem.
All zones need read/wite access.
Is it legit to have multiple zones having read/write access to a loopback filesystem?

Similar Messages

  • Can I import one non-global zone from one machine to another?

    If create a non-global zone on one disk on machine A, is it possible to make a copy of that disk, and import the non-global zone to machine B? If yes, how to import the non-global zone?
    Thanks!

    It should be possible if your machines are installed at the same way, because you need the same environment (patches, packages,..).
    If this is true you should export your zone definition on machine A (zonecfg export) and import it on machine B (zonecfg -f ...).
    Then create the new zone on B. If finished get your zonepath with all data on A an copy it to B. That should be all.
    With this solution I hope it would be possible to have a shadow instance on B and the aktiv instance on A. If you have your whole zonepath on external disks like EMC, you only have to mount your disks on B and start your zone.
    harruh

  • How can 2 non-global zones share a singe ethernet?

    This may be a very basic question. I am new the this board and trying to learn more about the Solaris Zone.
    I am trying to find out whether sharing an ethernet card between two non-global zones is possible.
    Where can I get additional infor on this topic?
    Thanks,

    I just found the answer to my question. Thanks, Can you post a link to where you found the answer?
    Birdman >>I'm not exactly sure what he found, but you might try this link, to the zones documentation:
    http://docs.sun.com/db/doc/817-1592/6mhahuos1?a=view#z.admin.ov-12
    The answer to the question is "yes" you can do this, and in fact it is somewhat trivial. We've long had a feature in Solaris called "logical network interfaces". This allows multiple logical interfaces to be defined atop a single physical one. Zones uses this feature and creates logical interfaces atop a single virtual interface. You can even have multiple network interfaces assigned to the same zone, without any problem.
    -dp

  • How to install JDK6 and Netbeans 6 in a non-global zone?

    Hi,
    I have a Solaris system where I want to deploy separate containers for several developers.
    I'm having difficulty in installing JDK 6 and Netbeans 6, I get lots of missing package errors in non-global zone.
    What would be the best approach for installing jdk 6 + netbeans 6 seperately for each developer?
    Thanks in advance.

    Hi
    It depends how you have created your zone, what has been inherited from the global:
    inherit-pkg-dir:
    dir: /lib
    inherit-pkg-dir:
    dir: /platform
    inherit-pkg-dir:
    dir: /sbin
    inherit-pkg-dir:
    dir: /usr
    But if you only want a jdk and netbeans, there is no really dependencies the simplest approach si to download the not packaged version and put it in /opt which is not inherited
    You just have to put a jdk in /opt/jdk1.6.0... and netbeans in /opt/netbeans-6.0..
    Don't really understand why you want a separate zone, one zone, several accounts which share the same jdk and netbeans, that's the way unix work ;)

  • Why I "Cannot share fielsytems in non-global zones"?

    Dear all,
    I've succesfully configured a solaris zone (which for the pourpouse I've called "stefano" just as a test) perfeclty running.
    I've just a problem while I'm trying to export a directory as command
    share -F nfs -d "test" /export/home/stefano
    if run inside the zone gets me this error:
    share_nfs: Cannot share filesystems in non-global zones: /export/home/stefano
    why it isn't possible to export a filesystem within a non-global zones?
    Is there any trics to solve this issue?
    Thanks for your attention, ciao everybody!
    Stefano
    Milan, Italy

    buonstefano wrote:
    I don't want to mount an NFS filesystem exported from the global zone
    I want instead to share an NFS filesystem within a non-global zone in order to let it mount by some others machine.It simply can't be done today.
    NFS interacts very tightly with the kernel. So enabling an NFS server means giving certain kernel level permissions. The simple way to let a non-global zone do this would break the security model of zones. I'm sure folks are working on other ways to do this, but it's not available at this time.
    Non-global zones aren't allowed to do everything. This is one of the things they're not allowed to do.
    The global zone can share a non-global-zone's data to let other machines mount it. But you need global zone privileges to make that occur. The non-global zone's administrator couldn't do it directly.
    Darren

  • How to retrieve #  on-line procs in a non-global zone with resource pool

    Is there any way to retrieve the #of on line processors of the machine running in a non global zone with resource pool ?
    sysconf does not return this value. In fact this is an excerpt of the man:
    "If the caller is in a non-global zone and the pools facility is active, sysconf(_SC_NPROCESSORS_CONF) and sysconf_SC_NPROCESSORS_ONLN) return the number of processors in the processor set of the pool to which the zone is bound."

    So, from within a local zone that's in a pool (i.e. in a pool with 8 CPUs) , you want to query how many CPUs really exist in the global zone (i.e. the global zone may actually have 16 CPUs)? I don't think that's possible: in fact for security reasons it's probably intentionally disabled.
    A quick workaround would be a script/cron-job in the global zone that writes a small file in the filesystem of the local zone... then from within that zone you could read the CPU count.
    I'm interested though: what are you trying to set up?
    Regards,
    [email protected]

  • Non-Global Zones - how can I tell what the Global Zone is

    Hi,
    I have a host that I know is a non-global zone (ngz). I can ssh to the ngz as root or a non-privileged user.
    But once there how do I know what the host name for the global zone is?
    I could probably run a script from all global zones to report all running zones and so I'd know that way but I have a specific need to know from inside the ngz.
    Thanks!
    Brian

    bdunbar wrote:
    That's a built-in security feature; and I know of no way to circumvent this mechanism.
    I had some hope that there was a way to 'see' at least the global-zone information from the zone. From the shell the 'zone' commands are available ..
    :# zoneadm list -cv
    ID NAME             STATUS         PATH                         
    48 hostname_svn   running        /  So it's at least aware that it is a zone, even if it can't tell me anything else about itself. I can still go the long way around to get the information for my need, thanks.
    The global zone is the only thing that can see everything. The non-global zones can only see information specific to their zone.
    This is by design and it really is a security mechanism. You don't want the zones running outside of their boundaries and information about the global zone (or any other zone) is outside the boundaries of a non-global zone.
    Cheers,

  • How to enable GUI in a non global zone in solaris11?

    How to enable graphical logon in a non global zone in solaris11, so the zone can be login by Xmanager? Thanks!

    This guide will cover how to setup a basic VNC connection to a Solaris 11 machine. There is also an optional step to allow for persistent VNC connections.
    Step 1
    Configure GDM to include ‘[security] DisallowTCP=false’ and ‘[xdmcp] Enable=true’.
    $ sudo gedit /etc/gdm/custom.conf
    # GDM configuration storage
    [daemon]
    [security]
    DisallowTCP=false
    [xdmcp]
    Enable=true
    [greeter]
    [chooser]
    [debug]
    Step 2
    Configure X-Server to accept remote connections.
    # svccfg -s application/x11/x11-server
    svc:/application/x11/x11-server> setprop options/tcp_listen = boolean: true
    svc:/application/x11/x11-server> end
    Step 3
    Configure the VNC service (you could change the ‘-geometry 1280×720′ to whatever resolution you would like).
    # svccfg -s xvnc-inetd
    svc:/application/x11/xvnc-inetd> setprop inetd_start/exec = astring: "/usr/bin/Xvnc -desktop sol11:0 -geometry 1024x768 -inetd -query localhost -once securitytypes=none"
    svc:/application/x11/xvnc-inetd> setprop inetd/wait = boolean: true
    svc:/application/x11/xvnc-inetd> end
    ** The line highlighted red is optional – only do this if you want your VNC connection to persist (as well as any potential security issues)
    or
    # svccfg -s xvnc-inetd
    svc:/application/x11/xvnc-inetd> editprop
    search for # setprop inetd_start/exec = astring: "/usr/bin/Xvnc
    copy the line, uncomment the copy, makethe changes above, write the file out.
    svcadm refresh xvnc-inetd
    Step 4
    Disable and the re-enable the GDM and VNC-inetd services for the changes to take effect.
    $ su root
    Password:
    # svcadm disable gdm xvnc-inetd; svcadm enable gdm xvnc-inetd
    If still in maintenance, reboot (I had to, don't know why).
    Step 5
    Point your favourite VNC client at your Solaris server and test if it accepts your VNC connection – you should be presented with a Username/Password login screen.
    If you performed the optional step to make your connections persist – close your favourite VNC client and then reconnect – if you remained logged in you have a persistent connections.
    Greg on said:
    After a fresh text install of Solaris-11 (11/11) both xvnc-inetd and gdm are not present. After installing them (# pkg install xvnc-inetd gdm) I can’t get gdm to start:
    # svcadm enable gdm
    # svcs gdm
    offline 10:24:03 svc:/application/graphical-login/gdm:default
    Any thoughts?
    Ron on said:
    You are missing some X packages. Do the following:
    pkg install slim_install           # installs 400+ packages
    svcadm enable gdm && exit      # gdm now works
    pkg uninstall slim_install           # uninstalls the installer package only

  • How to know global zone in case non global zone is hung

    ....I have nongloabazone1,nongloabazone1,nongloabazone2,nongloabazone3...
    i am working on nongloabazone1 ..
    suppose i am giving remote support ...
    if my nongloabazone1 is hung ..i need to know the global zone on which this nongloabazone1 is installed and reboot from there ...if my nongloabazone1 is hung i cannot apply #arp -a and check it out by trial and error method and know the global zone....
    in this case how can i reboot the nongloabazone1 .....i have the same question in case of Ldoms also..............
    Thanks in Advance.......

    Hi.
    It's not clear what means "non global zone is hung".
    In case it realy hangs you can't do anythins in this zone.
    1) In case you have access to global zone. You can get list all zones running on this host:
    zoneadm list -cv
    For reboot local zone from global zone just need: zoneadm -z <zone_name> reboot
    2) Zones not support live migration. So after zone started it can not change global zone.
    Create script that put global zone name in file. When need - just read content of this file.
    This file can be created from global zone when start (or create/move) local zone.
    In case zone migration is not quickly operation, just create file (or database) for list what zone started on which host.
    For LDOM it look wery same.
    Regards.

  • How to know Global zone name within Non-Global zone?

    Hi everybody.
    My answer is very simple: How can I (command or file) to know Global zone name within Non-Global zone? zoneadm command with all its options don�t work fine to me for this information. Thanks a lot for any idea with my question. Regards.

    Hi. Global Zone�s name is unknow for me from Non-Global zone. I don�t know it, but "Global" isn�t name neither hostname, is just Solaris 10 OS in my machine. However, your link was useful for me.
    Thanks a lot.

  • How to add a second nic card to non global zone

    hi every one
    i have a issue like
    my non global zone has hme0 as the nic card
    i want to add a secondary nic card like pcn0 to the non global zone . how can i add to the nonglobal zone so that both the nic cards should exist in the nonglobal zone
    please tell me the command and procedure for that
    thanks in advance ....

    If your non-global zone is a shared IP zone, then you can add like
    zonecfg -z <zonename>
    add net
    set physical=pnc0
    set address=<IP Address>
    end
    verify
    commit
    exit
    If your non-global zone is an exclusive IP zone, then remember that the interface pnc0 you are adding will be in control of non-global zone exclusively.
    Steps to add it are same as above.

  • How to install a SUN cluster in a non-global zone?

    How do I install a SUN cluster in a non-global zone? If it is the same as installing SUN Cluster in the global zone, then how do I access the cdrom from a non-global zone to the global zone?
    Please point me to some docs or urls if there are any. Thanks in advance!

    You don't really install the cluster software on zones. You have to set up a zone cluster once you have configured the Global Zone cluster (or in other words, clustered the physical systems + OS).
    http://blogs.sun.com/SC/entry/zone_clusters

  • How to create a separate /var partition on solaris non-global zone

    Hi
    I found no simple way to create a separate /var partition in solaris non-global zone.
    I am using solaris 10 u9 and my root pool is zfs. My zone's zonepath is also separate zfs fs.
    But, I do not know how to make the /var as a mountpoint of another zfs dataset since /var is not empty.
    I also do not know if there is a way to install a zone with /var as a separate (outside '/') partition.
    That will be really useful.
    Any suggestion?
    Thanks
    Edited by: vadud3 on Sep 20, 2010 12:16 PM

    I meant a separate zfs fs with mountpoint '/var' in a non-global zone.
    I am insisting, because I do not want /var to fill up the '/' on non-global zone.
    With default non-global zone installation, you cannot avoid that.
    My zonepath itself is a zfs fs. I also have a zfs dataset provisioned to the non-global zone.
    I cannot create a zfs fs out of that dataset and mount it as '/var' becasue by then non-global zone
    already installed content on '/var'
    I want the '/var' as a separate dir or mountpoint, the same reason global zone gives you that option during install.
    Thanks

  • How to unlock Root Account in non-global zone on Solaris 10 Branded Zone

    Hello All,
    I have a phsical x86 server running Solaris 11. On top of that, I have 3 Solaris 10 branded zones configured. Due to security policy the root account has been locked by 5 failed login attempts.
    Is there a way by which I can unlock root account in non-global zone.
    I have the root access of global zone.
    Pls help as these are production servers.
    Regards

    Hey,
    It worked. Actually i forgot to save the file.
    I changed the /<zonepath>/root/etc/shadow
    Removed *LK* & then from global zone did zlogin -l root zonename
    Thanks  lot.

  • How to install Oracle 10g on Solaris 10 non-global zone.

    Hi,
    I want to install Oracle 10g on Solaris non global zone with ASM.
    I need complete doc for doing the same.
    REgards
    S.Ali

    Check Oracle® Database Installation Guide 10g Release 2 (10.2) for Solaris Operating System.

Maybe you are looking for

  • RAM upgrade for a Satellite A100-847

    I would like to upgrade the RAM for my A100-847 from my current 512 MB by adding another module for 512 MB but i face a compatibility problem because looking at the manual the only compatible modules are the following: 256 MB: PA3389U-1M25 512 MB: PA

  • Material not shown in the MCHB table

    Dear MM Gurus, I have created a batch managed material and posted stock. When I checked the stock in MMBE it shows the available stock for that material. My problem is, the material is not shown in MCHB table, but the material is available in the tab

  • Outlook 2011 for MAC Email problems

    Good Evening,  I have recently purchased microsoft office and have been keen to set up Microsoft Outlook 2011 - although all my emails download initially I have encountered three problems (despite following the guide to set up outlook on mac for BT M

  • Upgrade directly from 2004s SP07 to SP10

    Hi Guys, our XI 7.0 is currently on SP07. We want to upgrade to SP10 and my question is, can I apply directly SP10 or do I have to import SP 08 and SP09 before? Thanks for your help. Cornelius

  • Export Report to Excel - Advice Needed

    I'm currently trying to export a report from an Apex Application to an excel spreadsheet. My report has conditional formatting (background colour) that i want to apply to the spreadsheet. Does anyone have any ideas on how to achieve this, (Sylk, XML)