Pkginfo of /var/sadm/pkg/SUNWcsr missing

Dear All,
we have experienced following problem. On Sun Enterprise 450 machine running Solaris 8 we have installed latest Recommened patch cluster. After that we have found out that "pkginfo" file is missing inside the /var/sadm/pkg/SUNWcsr. Unfortunately this system is not backed-up at all. Is there any way how to renew this file? (roll back some patch, copy some template?). Thank you for your responses.

Backup anything you care about.
Reinstall the server from scratch.
Restore your backups..

Similar Messages

  • Package question - what are the uses for  /var/sadm/pkg ?

    I'm writing packages and noticed once a packages is installed using pkgadd, that files and dirs are created in the /var/sadm/pkg directory. I'm specificly intereseted in the pkginfo file - it contains all the variables from my request script and their values. My question is what are all the uses for this file?
    I've noticed that pkginfo reads from it but would there be any problem deleting certain lines from that file (lines not used by pkginfo - just variables used in the request script that I'd really rather not have floating around in a publicly accessable file).
    thanks!
    Bob

    I'm refering specificly to the file "/var/sadm/pkg/<pkgName>/pkginfo" - it's created during pkgadd and contains all the variable-value pairs from the packages pkginfo file as well as any variables used in the request script and copied to it's temporary response file. I'm not refering to the pkginfo file that you create as a package infofile component.
    I want to remove, from the /var/sadm/pkg/<pkgName>/pkginfo file, certain var-value pairs that were used in my request scripts (not part of the InfoFile/pkginfo component). Otherwise, any user can look at this file or run 'pkgparam <pkgName>' and get that sensative info.
    To the best of my knowledge, this file is only used by the commands pkgparam and pkginfo. Are there other uses?
    My worries are:
    -is it OK to remove lines manually during the postinstall script?
    -will doing this cause problems with any admin or package maintenance functions?
    Thanks-
    Bob

  • Cannot provision agent - Cannot open /var/sadm/pkg/SUNWesado

    Hi All,
    I have discovered a system. When I go to the unmanaged asset tab, highlight the host and select manage asset the job fails provisioning the agent. The error is can't open /var/sadm/pkg/SUNWesado.
    If I cd to the above directory all I see is an install and a save directory. Both of these directories are empty. I have removed the agent manually and deleted the asset in opscenter. I then tryied the process again and receive the same error.
    Any suggestions how to correct this?

    Sounds like some of the packages (maybe not just this one) are corrupt? Do you have access to the Solaris media where this pkg came from? If so can you re-install the package and see if that helps?
    What does "pkginfo -p" show?

  • I carelessly remove the contents of /var/sadm/pkg

    I carelessly remove the contents of /var/sadm/pkg. I do not have any backup of the folder. What can I do ? Thanks a lot.

    Backup anything you care about.
    Reinstall the server from scratch.
    Restore your backups..

  • /var/sadm/pkg

    Is there a way to migrate the '/var/sadm/pkg' directory safely so that the related 'pkg*' commands are still reporting proper information?
    For example, if i have a bigger partition/filesystem created for it as a new destination, and the '/var/sadm/pkg' is just running out of space,
    - can i simply 'tar/cpio' the '/var/sadm/pkg' directory, and move it to the new partition, and create a symbolic link from '/var/sadm/'? and, can i do it online?
    Thanks, and any help will be appreciated.

    user5534036 wrote:
    - can i simply 'tar/cpio' the '/var/sadm/pkg' directory, and move it to the new partition, and create a symbolic link from '/var/sadm/'? and, can i do it online?Yes, you can move the contents of /var/sadm to another directory or filesystem, but you must not use a symbolic link to point at it: The next pkgadd/pkgrm or patchadd/patchrm command will remove the link and re-create a (then empty) /var/sadm/ directory.
    Use a loopback mount (man lofs, mount -F lofs ...) instead to mount e.g. /new/sadm to /var/sadm.
    Newer versions of Solaris run a "pkgserv" service (svcs -l pkgserv). Maybe it's safer to stop this before the move and restart it afterwards.
    Martin.

  • Patch Manager 2.0 vs. /var/sadm installation problem.

    Hello -
    uname -a (minus the host name):
    SunOS 5.8 Generic_117350-34 sun4u sparc SUNW,Ultra-5_10
    Due to space restrictions, /var/sadm has been moved to another drive and a
    soft link in /var created so that /var/sadm --> /void/sadm
    Here starts the fun:
    ================== <-- More text at the matching string of equal-signs.
    # ./pmsetup
    Installing Patch Manager 2.0 ...
    Processing package instance <SUNWppror> from
    </void/home/mbecker/Patches/Patch_Manager_2.0/2.8/packages/sparc>
    PatchPro core functionality (Root)
    (sparc) 5.0,REV=2004.06.10.04.44
    Copyright 2001 Sun Microsystems, Inc. All rights reserved.
    Using <> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    3 package pathnames are already properly installed.
    ## Verifying package dependencies.
    Installing PatchPro core functionality (Root) as <SUNWppror>
    ## Installing part 1 of 1.
    pkgadd: ERROR: unable to create lock file </var/sadm/install/.pkg.lock>.
    pkgadd: ERROR: Database lock failed.
    Installation of <SUNWppror> failed (internal error) - package
    partially installed.
    There are 2 more packages to be installed.
    Do you want to continue with installation [y,n,?] n
    2 packages were not processed!
    ==================
    And now /var contains a partially-populated /sadm directory. The soft-link to
    the second drive has been removed. So I remove /var/sadm, recreate the soft
    link, and <whew> everything is back to ..normal.
    Must the install remove the soft link to /var/sadm --> /void/sadm ?
    Must everything be shifted around to put /void/sadm back into /var/sadm? There
    have been a lot of patches installed.. and there's a lot of stuff in those
    folders.
    Your time is appreciated.
    Mark

    Hello -
    I ..found your response while searching for the solution to another problem.
    The problem was ..fixed.. by moving the contents of /var/sadm to a free partition on a second drive then mounting that partition to /var/sadm.
    By "free" ... I spent an evening backing up the second disk then doing a repartition. Brute force.. but it worked.
    Regards,
    Mark

  • Solaris10 install logs are not found at /var/sadm/install/logs -Kindly help

    I installed Solaris 10 on a sparc machine using custom jumpstart.... i wanted to check the install logs which i am unable to find at /var/sadm/install/logs.
    Which script is generating this log or why its missing ?
    Thanks in advance
    Harish

    How about under the */var/sadm/system/logs/* directory? There should be install_log in that directory.
    --gibb                                                                                                                                                                                                                               

  • /private/var/tmp has gone missing!  ***?!?!?!?

    Please, I need help on this one. I had an iBook G4 crash on me, then get as far as the white Apple screen with pinwheel before freezing. I tried running Disk Utility off of an OS X install disk, and it found no volume structure errors. However, when I tried repairing permissions on it, Disk Utility was reporting that the directory /private/var/tmp has gone missing, and it could not repair permissions.
    What gives? How can the whole directory get fried? How can I replace it? I've already tried doing an archive and install, but the OS X installed won't let me do an archive and install, probably because this folder is missing.
    Can anyone help?

    Get Prosoft Data Rescue to recover the data to an external hard disk. Shut down the computer, disconnect the drive any other third party peripherals and then next after that do an erase and install of the operating system. You will probably want to use a CD burner to burn off less frequently used data on occasion at least a couple times so that your hard drive does not fill up with unessential stuff. Some more tips on backing up are on this page:
    http://www.macmaps.com/backup.html
    Disclaimer: Reference to links I make to my Macmaps.com website are a for your information only type reference. I do not get any profit from this page, and it is open to the public.

  • /src/core/pkg is missing

    Im trying to install Arch Linux,
    In the installation process, during step one i am selecting the source.
    it says 'package directory /src/core/pkg is missing´.
    what does that mean?
    the installation then fails.
    what´s the problem?

    I like that link:
    http://support.acer.com/acerpanam/noteb … 5sp2.shtml
    Altitude Operational/Non-Operational: 10,000 ft  /  40,000 ft
    But whether it can run 64-bit software - not a word.
    Sigh.
    http://ark.intel.com/Product.aspx?id=33100
    http://ark.intel.com/Product.aspx?id=30774
    http://ark.intel.com/Product.aspx?id=31727
    All these should be able to run 64-bit.
    Edit: I think Inxsible meant you could run 'uname -a'. On my computer it shows
    [karol@black ~]$ uname -a
    Linux black 2.6.39-ARCH #1 SMP PREEMPT Tue Jun 7 05:49:02 UTC 2011 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz GenuineIntel GNU/Linux
    It means i686 version is currently installed (this processor can't run 64-bit anyway).
    Last edited by karol (2011-06-22 17:23:26)

  • Solaris 9, /var/sadm/install/contents and fix-modes issues

    I'm in the middle of patching a bunch of systems right now using Martin Paul's PCA and Casper Dik's fix-modes and I'm getting some rather odd error messages from fix-modes after installing the Recommended and Security patches from 06 August 2007.
    I'm seeing this on better than a dozen machines right now, and it doesn't seem to be consistent on which entries have the problems.
    Here's a snippet of the fix-modes output:
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:107
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:1238
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:2348
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:2359
    secure-modes: WARNING: Incomplete entry at /var/sadm/install/contents:2377
    secure-modes: WARNING: Incomplete entry at /var/sadm/install/contents:2380
    And here's the lines referenced in the snippet above:
    107: /etc/VRTSvcs/conf/config d none ? ? ? VRTSweb
    1238: /etc/opt/SUNWsrspx d none ? ? ? SUNWsrspx
    2348: /kernel/drv/vxapm d none ? ? ? VRTSvxvm
    2359: /kernel/drv/vxapm/sparcv9 d none ? ? ? VRTSvxvm
    2377: /kernel/drv/vxdmp.conf ? none VRTSvxvm
    2380: /kernel/drv/vxio.conf ? none VRTSvxvm
    Has anyone seen this behavior before? Does anyone have any suggestions on how to remedy this?
    fpsm

    IMHO the only thing that should modify the contents of /var/sadm/install/contents is a system utility. There is work currently underway to update the way that this file is modified.
    http://mail.opensolaris.org/pipermail/opensolaris-arc/2009-March/014675.html
    alan

  • Smpatch does not add 108993-49 to /var/sadm/spool/disallowed_patch_list

    Dear Patch folks,
    we use smpatch to analyze and patch Solaris 8/SPARC systems. While running 'smpatch update' in MultiUser-mode a list of prohibited patches is generated in file /var/sadm/spool/disallowed_patch_list. We then use 'smpatch add -x idlist=/var/sadm/spool/disallowed_patch_list' to install these remaining patches in SingleUser-mode. However, Patch 108993-49 is disallowed with 'smpatch update' but also not added to /var/sadm/spool/disallowed_patch_list. We then have to do a 'smpatch add -i 108993-49' by hand/script.
    My question:
    Is this behaviour by design or is something going wrong with 108993-49 ?
    greetings
    Martin

    Dear Martin,
    This forum doesnt actually support the patches and is instead for support of the Sun Update Connection software which is only for use with Solaris 10 at present. As such I believe that you are more likely to get a response to your question if you contact the appropriate patch teams or perhaps try posting your query in one of the other forums.

  • Differential flars for install & Population of /var/sadm/install/contents

    We are using differential flars to speed up installation, and have noticed that the /var/sadm/install/contents file is not being updated with the files coming from the packages in the differential flars on installation. Is this something that should be done automatically? Or is there something that we must do at flar create time or installation time to enable this? Thanks.
    Kevin

    IMHO the only thing that should modify the contents of /var/sadm/install/contents is a system utility. There is work currently underway to update the way that this file is modified.
    http://mail.opensolaris.org/pipermail/opensolaris-arc/2009-March/014675.html
    alan

  • "Package directory /src/core/pkg is missing!" [solved]

    I'm installing archlinux on a virtual machine running off of Sun VirtualBox.  I'm using the core installation image mounted on a virtual drive (drive G:).
    I am in the the ArchLinux Installation Main Menu (Select Source, Set clock, etc.).  I got through the first 3 steps, selecting the source, setting the timezone, preparing the hard drive.  Now, at step 4, Select Packages, it says I have to go back and redo the Select Source step.  Now when I go back to Select Source I get the following message: Package Directory /src/cor/pkg is missing!" and then sends me back to the main menu.
    I apologize for noobiness, any help at all is severely appreciated.  Thanks.
    Edit/Update:  I chose to do the net/ftp source and it seems to be working.  I'll probably be back if it screws me up again.
    Last edited by Ruleroftheblind (2010-03-27 15:42:49)

    Try FTP as source of your packages. That way you'll get the latest ones for sure

  • Luupgrade to install new OS uses corrupted /var/sadm/install/contents file

    The /var/sadm/install/contents file on a system got corrupted, big time. I figure my best course of action is to reinstall the OS, because the server is currently out of service, waiting to be deployed to a new application.
    Because I'm still learning about luupgrade, I decided to use that route to re-install Soloris9. I have done the following:
    metadetach d0 d20
    metadetach d3 d23
    metaclear d20 d23
    lucreate -A 'Solaris9' -n 'Solaris9' -m /:/dev/dsk/c1t1d0s0:ufs,preserve -m /var:/dev/dsk/c1t1d0s3:ufs,preserve
    then,
    luupgrade -u -n Solaris9 -s /cdrom/cdrom0/s0
    This ran fine, almost... Output from luupgrade included a notice that 19 packages failed to install properly. I found the list of the 19 packages, and the output from their pkgadd. These messages indicated that there were problems with the /var/sadm/install/contents file, preventing these from being added.
    Is it possible to run luupgrade to install a brand new OS, without using the current/active BE's 'contents' file, but still using other system configuration info like vfstab, dfstab, passwd, shadow, ...
    Thanks in advance for help.

    Your friend with a Mac first downloads it onto his Mac using your Apple ID. Then for Mavericks, see the following for creating a bootable installer on a flash drive.
    http://www.macworld.com/article/2056561/how-to-make-a-bootable-mavericks-install -drive.html
    Scroll down to the section  Create the Mavericks install drive: The options
    For Yosemite, 10.10, I don't know if anyone knows yet how to make a bootable flash installer for that. When it's released I'm sure there will be ways of doing that published in the usual places.
    And if you want to get 10.10, I would strongly suggest not getting it right away. You should wait for at least several point updates until most of the very well known bugs are gone.

  • "/var/spool/postfix/maildrop" Missing After Time Machine Restore

    Hello,
    After performing a full restore via Time Machine, the following error message appears constantly in my console:
    3/8/08 9:48:00 PM com.apple.launchd[1] (org.postfix.master) Failed to count the number of files in "/var/spool/postfix/maildrop": No such file or directory
    After performing a Google search and reading the Apple discussions, it appears that Time Machine excludes the /postfix/maildrop directory from its backups. While this seems to be the problem, I can't find a solution as to how to fix it. I suppose I could create the directory but I don;t want to do this before I am certain as to what its purpose is.
    Any help or point in the right direction will be appreciated.
    Cheers

    After doing some more digging on the Internet, I believe I have found the solution. Here's a link to the original post by carbonite19: http://www.insanelymac.com/lofiversion/index.php/t87650.html
    Use these instructions at your own risk.
    CONSOLE ERROR MESSAGE:
    com.apple.launchd[1] (org.postfix.master) Failed to count the number of files in "/var/spool/postfix/maildrop": No such file or directory</code>
    THE FIX:
    Open terminal make sure you are at root directory and type:
    sudo mkdir /var/spool/postfix [enter]
    <password> [enter]
    postfix stop [enter]
    postfix start [enter]
    The postfix folder is created and the directories are rebuilt.
    This seemed to work for me. Be sure to read the original post for more information.
    Cheers

Maybe you are looking for