Mount cdrom in a local zone

Hello,
how can I mount a cdrom in a local zone. It works
fine in the global zone, but in a local zone I got
an error no device
Thanks
Mark

To access the cdrom in a local zone you woul use zonecfg from the Global Zone
"myzone" being the name of our zone..
zonecfg -z myzone
zonecfg:myzone>add fs
zonecfg:myzone:fs>set dir=/cdrom
zonecfg:myzone:fs>set special=/cdrom
zonecfg:myzone:fs>set type=lofs
zonecfg:myzone:fs>set options=[nodevices]
zonecfg:myzone:fs>end
zonecfg:myzone>verify
zonecfg:myzone>commit
zonecfg:myzone>exit
There is more detail on this in http://developers.sun.com/solaris/articles/application_in_zone.html

Similar Messages

  • NFS in local zone

    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.

  • Df error for lofs file system in local zone.

    I 've a zone which is running oracle db instance. We have exported the SAN file system from the global zone as following
    fs:
    dir: /oradb
    special: /oradb
    raw not specified
    type: lofs
    options: []
    from global zone
    #df -h | grep oradb
    /dev/dsk/emcpower174c 17G 5.1G 11G 31% /oradb/archa
    /dev/dsk/emcpower177c 58G 3.3G 54G 6% /oradb/index1
    /dev/dsk/emcpower172c 9.9G 610M 9.2G 7% /oradb/redob
    /dev/dsk/emcpower176c 58G 30G 27G 53% /oradb/index2
    /dev/dsk/emcpower180c 58G 35G 23G 61% /oradb/data1
    Problem is from local zone if i do cd to /oradb/data1 and then df -h . , i get following error Is there anyway i get the usage or df o/p of lofs file system from the local zone itself
    local_zone# df -h .
    df: Could not find mount point for .
    local_zone # pwd
    /orad/data1
    local_zone# df -h /oradbdb/data1
    df: Could not find mount point for /oradbdb/data1
    local_zone#

    Do you have amount point within the zone path for these oradb mounts?
    You have to add a directory entry for /oradb in the zone's root directory, i.e. ``zone_path''/root/oradb

  • Priocntl in local-Zones

    Hi -
    I have an application process, running in root, trying to sent priorities of other application processes on demand and load of data. Works fine in global zone, but not so when these are in local-zones. Uses priocntl to set and reset priorities. Understand that priocntl does not work due to priviledge issues in a local-zone. Is there any workaround for this. Very critical.
    Thanks in advance
    With Regards

    If I understand correctly then absolutely!
    If you need to access them as file systems, simply run zonecfg -z <zonename> then enter this:
    add fs
    set dir=<mountpoint>               (eg. /dba00 (relative to zoneroot))
    set special=<block volume device>     (eg. the /dev/vx/dsk/ device)
    set raw=<char volume device>          (eg. the /dev/vx/rdsk/ device)
    set type=<fs type, ufs or vxfs>
    set options=<mount options, eg largefiles,nosuid>
    end
    commit
    exitIf you need access to them as raw volumes, use the "add device" then use "set match=/dev/vx/...." (we don't do this, so I don't have a cut-and-paste example to stick in...)

  • SAP/ORACLE File Systems Disappeared in Local Zone

    I created some 20-30 files systems as meta devices for a SAP/Oracle installation on my 6320 SAN for a local zone.
    I did a newfs on all of them and then mounted them in the global zone with their appropriate mount points.
    I then did a zonecfg with the following input.
    zonepath: /export/zones/zsap21
    autoboot: true
    pool:
    inherit-pkg-dir:
    dir: /lib
    inherit-pkg-dir:
    dir: /platform
    inherit-pkg-dir:
    dir: /sbin
    inherit-pkg-dir:
    dir: /opt/sfw
    inherit-pkg-dir:
    dir: /usr
    fs:
    dir: /oracle
    special: /oracle_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/stage/920_64
    special: /oracle/stage/920_64_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /temp
    special: /temp_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /usr/local
    special: /usr/local_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /usr/sap
    special: /usr/sap_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /usr/sap/install
    special: /usr/sap/install_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /usr/sap/trans
    special: /usr/sap/trans_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /export/home/zsap21
    special: /export/home_zsap21
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1
    special: /oracle/FS1
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/920_64
    special: /oracle/FS1/920_64
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/mirrlogA
    special: /oracle/FS1/mirrlogA
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/oraarch
    special: /oracle/FS1/oraarch
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/origlogA
    special: /oracle/FS1/origlogA
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/origlogB
    special: /oracle/FS1/origlogB
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/saparch
    special: /oracle/FS1/saparch
    raw not specified
    type: lofs
    options: []
    fs:
    dir: /oracle/FS1/sapdata1
    special: /oracle/FS1/sapdata1
    raw not specified
    type: lofs
    options: []
    ***********more available but I truncated it here**********************
    I successfully installed and configured the zone.
    I then logged into the local zone and installed a new version of Oracle and a working SAP instance. I know that it worked because I was able to log into it.
    Upon rebooting the server and the local zone I have lost access to all of my file systems in the Oracle/SAP zone.
    It's almost as if the global zone has not mounted its file systems over the local zones mount points. In the local zone I can see no files in the directories where I would expect Oracle or SAP files.
    I either mis-configured the zonecfg or missed a step somewhere.
    I suspect that my file system contents are still around somewhere waiting to be hooked up with a zone's mount point.
    In the local zone a df -k shows all of the file systems (like the local zone knows about what file systems belong) but they all have the same size and free space (probably from the root zone).
    Any thoughts appreciated.
    Atis

    Do you have amount point within the zone path for these oradb mounts?
    You have to add a directory entry for /oradb in the zone's root directory, i.e. ``zone_path''/root/oradb

  • Audit is enable in local zone

    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)

  • [SOLVED]mounting cdrom and usb devices doesn't work

    Hello,
    i have trouble mounting my usb devices. automount doesn't work and i can't mount them manually even as a superuser. here's the output of mount command:
    mount: wrong fs type, bad option, bad superblock on /dev/sdc,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    i can mount cdrom manually but i can't do the same for my usb stick and external hard drives. it always complains about the above regardless of the filesystem. my devices are working under windows and other linuxes so i know hardware is not the problem.
    i'm using lxde with pcmanfm.
    if you need any other files just ask.
    thanks
    Last edited by the gray (2009-03-16 20:15:18)

    above was the error when i tried to mount any usb device with "mount -t <type> /dev/sdc /media/mountpoint". and i couldn't mount any usb device as root from console. when i tried to mount devices using pcmanfm it just popped some empty dialogs and i couldn't find any mention of "IsCallerPriviliged failed" error so i (wrongly) presumed it wasn't that. i did try some of the other fixes mentioned in the forum with no success. but adding exec ck-launch-session startkde to my .xinitrc fixed the issue
    thanks again
    Last edited by the gray (2009-03-16 20:17:53)

  • How to create raw partition in a local zone?

    I tried to search for an answer for my question, but I spent a week and still no luck.
    What I am trying to do is to create raw partitions for Sybase in a local zone. I tried to add device and set match to the block and raw device.
    However, when I tried to do "format", I got core dumped. When I did zpool create, I got permission denied. Any advice?
    zonecfg:z001> info
    zonename: z001
    zonepath: /export/ZONE/z001
    autoboot: true
    pool:
    limitpriv:
    fs:
    dir: /shared/tmp
    special: /tmp
    raw not specified
    type: lofs
    options: []
    net:
    address: 10.110.1.2
    physical: e1000g1
    device
    match: /dev/rdsk/c6t60060160DF2413003E2F0C2DF945DC11d0
    device
    match: /dev/dsk/c6t60060160DF2413003E2F0C2DF945DC11d0

    You can't manipulate pools directly in a non-global zone. I'm not sure if you can run 'format'. You can use at least a limited amount of globbing. You might want to put a '*' at the end of your matched device name.
    You can hand off a raw partition via 'match' and put it under UFS control, or with recent versions of Solaris Express, you can delegate a portion of a ZFS filesystem to the zone.
    See the ZFS administration guide:
    http://www.opensolaris.org/os/community/zfs/docs/zfsadmin.pdf
    Especially the section on using ZFS in a zone (page 171). Note the guide is for the most recent version of ZFS in OpenSolaris. Versions available in Solaris 10 may not have all the same features.
    Darren

  • How do you create a local zone that's not "stripped down"?

    Hi all,
    I've been exploring Solaris 11 Express a bit more after work, and I can't figure out how to create a new local zone that doesn't have a minimized package set. The ISV guide mentions that new local zones default to "minimal system software":
    http://www.oracle.com/technetwork/articles/systems-hardware-architecture/o10-015-s11-isv-adoption-198348.pdf (page 6)
    ...but that I can specify additional packages with the "-e" flag during the zone install. I don't want to list dozens of supplemental packages by hand... there must be a way to make a new local zone that has an almost identical package loadout as a standard global zone. (i.e. ftp, smtp, telnet services exist in the global zone, but are not installed in a local zone).
    Do I need to use ips commands to first make an image (of a global zone) then update my local zones to that image?
    Thanks!
    Mike

    Thanks Russell, this sounds exactly like what I was looking for! I'm "zoneadm install"'ing a new zone right now to kick the tires. One note for everyone else:
    pkg install -r slim_installI got an error that "-r" isn't a valid flag for pkg, but it seems to be working without it (i.e. "pkg install slim_install")
    Regards,
    [email protected]

  • First boot of local zone - how to determine when sysidtool has finished

    Hello,
    we use a /etc/sysidcfg in order to do the solaris base configuration automatically. After the first boot of a local zone I recognized that some tools are started by solaris (sysidtool, etc.) which apply the settings mentioned in /etc/sysconfig.
    Since we want to script some post-install set-ups I need to know, when the first boot including all "first-boot-scripts" has completely finished. Is it possible to query this information, maybe by calliing a special tool or by looking up some string within an logfile?
    I would be grateful for any hints,
    Thomas

    I haven't checked, but I assume they have normal dependencies in the SMF tree so that other services don't start until they complete.
    I would probably look at the milestone/multi-user-server service and see if it's online yet. If it is, they're probably done.
    Darren

  • How to dynamically set max-rss size for a local zone?

    Running solaris 10 05/08.
    Following situation: Three local zones in a Veritas cluster. The zones
    can fail over but normally not all three are on the same physical box.
    I want to be able to restrict physical memory usage for the zones in
    situations where certain combinations of them end up on the same
    physical box. So, I need to be able to dynamically change memory
    resources. I know how to do this with, for example locked memory:
    prctl -n zone.max-locked-memory -r -v <mem> `pgrep -z <zone name>
    init`
    but i need to do this for physical memory and I can't see that there
    is a zone resource for this? I thought this was added in 05/08?

    Hi
    You can do this by using rcapd from the global zone
    - start rcapd from the global zone:
    svcadm enable svc:/system/rcap:default
    - set a physical memory caping value for each zone
    rcapadm -z your_zone -m max_rss_value
    - check the memory use for all the zone capped
    rcapstat -gz
    You can set the rss capping value in the zone configuration:
    # zonecfg -z your_zone
    zonecfg:busi-app-prod> add capped-memory
    zonecfg:busi-app-prod:capped-memory> set physical=900m
    zonecfg:busi-app-prod:capped-memory> end
    zonecfg:busi-app-prod> verify
    zonecfg:busi-app-prod> commit
    zonecfg:busi-app-prod> exit
    This will be take in account at the next reboot of this zone.
    Have a also a look to rcapadm to tune rcapd
    Bye
    Fred

  • Mounting Cdrom Drive In Guest Domain running 1.0.3

    Folks,
    I have followed the Admin guide on how to export Cdrom/Dvd drive from Service Domain to Guest Domain, however once allocated to the guest domain we are unable to mount the device. Any help is appreciated.
    Here are my bindings
    ldm list-bindings primary
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    primary active -n-cv SP 4 2G 0.8% ; 7d 18h 56m
    MAC
    00:14:4f:02:ca:6a
    VCPU
    VID PID UTIL STRAND
    0 0 1.0% ; 100%
    1 1 0.5% ; 100%
    2 2 0.7% ; 100%
    3 3 0.8% ; 100%
    MAU
    CPUSET
    (0, 1, 2, 3)
    MEMORY
    RA PA SIZE
    0x8000000 0x8000000 2G
    VARIABLES
    boot-device=/pci@780/pci@0/pci@9/scsi@0/disk@1,0:a /pci@780/pci@0/pci@9/scsi@0/disk@0,0:a
    IO
    DEVICE PSEUDONYM OPTIONS
    pci@780 bus_a
    pci@7c0 bus_b
    VCC
    NAME PORT-RANGE
    primary-vcc0 5000-5031
    CLIENT PORT
    ldom3@ldom3 5002
    VDS
    NAME VOLUME OPTIONS DEVICE
    primary-vds0 cdrom /dev/dsk/c1t0d0s2
    vol1 /ldom1/bootfile1
    vol11 /dev/rdsk/c6t60060480000287750594534653353445d0s2
    vol2 /ldom2/bootfile2
    vol3 /bootpool/bootfile3
    CLIENT VOLUME
    vdisk0@ldom3 vol3
    vdisk11@ldom3 vol11
    cdrom@ldom3 cdrom
    VSW
    NAME MAC NET-DEV DEVICE MODE
    primary-vsw0 00:14:4f:fa:c6:14 e1000g0 switch@0 prog,promisc
    PEER MAC
    vnet1@ldom3 00:14:4f:f9:c8:15
    VCONS
    NAME SERVICE PORT
    SP
    ldm list-bindings ldom3
    root@host# ldm list-bindings ldom3
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    ldom3 active -n--- 5002 4 1900M 0.1% ; 15m
    MAC
    00:14:4f:f8:6c:1d
    VCPU
    VID PID UTIL STRAND
    0 4 0.3% ; 100%
    1 5 0.0% ; 100%
    2 6 0.0% ; 100%
    3 7 0.0% ; 100%
    MEMORY
    RA PA SIZE
    0x8000000 0x88000000 1900M
    VARIABLES
    keyboard-layout=UK-English
    NETWORK
    NAME SERVICE DEVICE MAC
    vnet1 primary-vsw0@primary network@0 00:14:4f:f9:c8:15
    PEER MAC
    primary-vsw0@primary 00:14:4f:fa:c6:14
    DISK
    NAME VOLUME TOUT DEVICE SERVER
    vdisk0 vol3@primary-vds0 disk@0 primary
    vdisk11 vol11@primary-vds0 disk@1 primary
    cdrom cdrom@primary-vds0 disk@2 primary
    VCONS
    NAME SERVICE PORT
    ldom3 primary-vcc0@primary 5002
    We can see the exported cdrom volume in /dev/dsk as a new device and also at the ok prompt after running devalias.
    However, we need to mount this device so that we can install software in our domain. All our attempts at mounting just hang and I end up having to stop/start the whole domain. ?
    Is there an easy way to mount cdroms/dvd drives in a guest domain ?
    TIA

    There is an recently filed bug where DVDs (and ISO images) which do not have a VTOC in their disk label
    fail to be mountable in the guest domain (e.g. application software DVDs as opposed to OS installation images).
    6708257 DVD-ROM (not OS installation disk) can not mount from guest domain of LDOM 1.0.2
    # mount -F hsfs /dev/dsk/c0d1s0 /mnt
    mount: I/O error
    mount: cannot mount /dev/dsk/c0d1s0
    It's strange that you are getting a hang though (the reported error is an I/O error).
    Are there any messages in /var/adm/message of the control domain?
    What OS/patches are running on the guest and control domains (i.e is 127127-11 installed on both) ?
    I've just had a thought though, exporting the DVD device as a slice instead may work
    (it works for me on an ISO image but my machine is 1000s of miles away so I can't stick DVD in it
    to try out)
    e.g. ldm add-vdsdev options=slice /dev/dsk/c1t0d0s2 cdrom@primary-vds0

  • Solaris 10 local zone setup requirement/steps for am/ps 7.0 installation

    Hi,
    Is there any document available on solaris 10 local zone creation/requirement for am server/ portal server 7.0 install? Any help/pointer is appreciated.
    Thanks,

    I don't believe there is any specific documentation am/portal in a zone. And as far as I know there are no specific requirements either. I have successfully installed portal in a solaris zone.
    A good starter tutorial on zones is here: http://partneradvantage.sun.com/protected/solaris10/adoptionkit/tech/zones/tutorial.html
    Hi,
    Is there any document available on solaris 10 local
    zone creation/requirement for am server/ portal
    server 7.0 install? Any help/pointer is
    appreciated.
    Thanks,

  • Solaris 10, java, local zone and priority

    Hi,
    I have asked this on the Solaris 10/Zone forum 4 days ago but didn't
    get any response. Maybe I get better luck here?
    I have a jboss container running like a dog. It's running on a niceness
    of 10 (by default - why?); renice fails with
    $ renice -n 0 1635
    renice: 1635:setpriority: Not owner
    How do I fix that, and how can I get jboss to run with a niceness of
    0 or 1 at startup?
    I did manage to up the niceness manually from the global zone, but that's
    not really an option once the system goes production. How/where do
    I set java tasks to run with a sensible priority by default?
    It appears that anything java (even within the global zone) runs on a
    niceness of 20 (10 is what we see inside a local zone, the global will
    report 20 in prstat).
    Cheers

    I removed this file,/usr/lib/libmlib/libmlib_sse.so.2, but I can't still use java desktop...
    is there any other solution?

  • Solaris 10, local zone & vcs

    Hi,
    Anybody tried running vcs from within a solaris 10 sparse local zone?
    We currently have two T2000' s each running Solaris 10 6/06. I've installed Veritas Foundation Suite 4.1 on each and configured vcs. The cluster is functioning with failover enabled & tested. (I have a test service group running consisting of a 'hello world' program sitting on a VRTS volume/diskgroup on a SAN). This is all running fine in the Global Zone.
    As part of our requirement we want to be able to run vcs from within a local zone, hence my creation of a sparse zone. I would like full clustering functionality running from within a zone on one server with failover/switching to an equvialent zone on the the second server.
    I have played with the 'zone' option when setting up service groups but not surprisingly this is for switching the whole zone. Not what I want to do.
    Am I failing to grasp this whole sparse zone idea? or am I missing something obvious, trying something that cant be done? Any help, particularly from somebody else thats tried this would be appreciated.
    Thansk in advance,
    Mark

    Hello,
    I can't help you a lot, but i have found that there is a lot of things that a local zone can't do when it comes to "kernel" things. As of today i found that you do NFS from a zone, for example.
    As your problem seems to be related to filesystem it is probable that you can't do it from a zone. Again, i'm not sure.

Maybe you are looking for