LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-03-2018, 02:35 PM   #1
Starman11
LQ Newbie
 
Registered: Nov 2018
Location: Texas
Distribution: all
Posts: 3

Rep: Reputation: Disabled
Question /var/sadm/pkg gone, cannot patch


The /var/sadm/pkg dir was cleaned out by someone looking for space and now the systems will not accept a patch bundle.
Since this is Solaris 10 it is fairly critical to get these boxes to patch to at least kernel 55.

The rest of the Live Upgrade parts are working fine - lucreate, etc..

Any way to force a patch bundle, or an undocumented "ignore" switch ?
 
Old 12-04-2018, 10:47 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,744

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
Have you reached out to Oracle?
(And I'm curious about what happened to the "someone" who "cleaned out" a system directory...)
 
Old 12-04-2018, 11:49 AM   #3
Starman11
LQ Newbie
 
Registered: Nov 2018
Location: Texas
Distribution: all
Posts: 3

Original Poster
Rep: Reputation: Disabled
/var/sadm/pkg gone, cannot patch

"Someone" is long gone, before I got here, for other reasons too. These boxes have not been patched since kernel 17. I tried Live Upgrade from a -26 ISO and the boot failure flashes by too quick to catch, my usual tricks at capturing console output are either failing miserable or I can't find them after a boot from ISO/mini-root/snapshot.
I have no idea where the body is. I pray he is not at your workplace.
We do not have a support contract, hence the hiring of a burnt-out 35 year sysadmin BOFH (me).

Last edited by Starman11; 12-04-2018 at 11:54 AM. Reason: Adding UI
 
Old 12-07-2018, 03:39 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There is no way for patchadd to work without a clue about what is assumed to be already installed (packages and patches).

Your options to get the missing directory contents are:

1. restore /var/sadm/pkg from backup (I'm afraid this is not an option in your case)

2. copy /var/sadm/pkg from an existing similarly configured machine (risky)

3. rebuild a /var/sadm/pkg from scratch: install Solaris from an ISO on another machine, install the same patches. (lengthy and risky)
You should be able to retrieve the list of:
- the initial installation in /var/sadm/system/logs/install_log
- installed packages from /var/sadm/install/contents
- installed patches from /var/sadm/patch/* files
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] get var value when var name is part of another var bilyboy65 Linux - Newbie 9 10-21-2012 09:32 AM
[SOLVED] /var/db/pkg and /var/db/ports skoinga *BSD 1 06-12-2010 06:24 PM
Is there a way to rebuild /var/pkg/* directories? crisostomo_enrico Solaris / OpenSolaris 3 08-04-2008 08:28 AM
pkg manager wants my lost and gone cd disk acummings Debian 3 01-29-2008 10:45 PM
Starting from 0 - pkg by pkg Lopes Linux - Newbie 2 07-02-2005 01:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration