LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03: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, 11:47 AM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.5
Posts: 2,166

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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, 12:49 PM   #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 12:54 PM. Reason: Adding UI
 
Old 12-07-2018, 04:39 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,755

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:32 AM
[SOLVED] /var/db/pkg and /var/db/ports skoinga *BSD 1 06-12-2010 07:24 PM
Is there a way to rebuild /var/pkg/* directories? crisostomo_enrico Solaris / OpenSolaris 3 08-04-2008 09:28 AM
pkg manager wants my lost and gone cd disk acummings Debian 3 01-29-2008 11:45 PM
Starting from 0 - pkg by pkg Lopes Linux - Newbie 2 07-02-2005 02:42 AM

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

All times are GMT -5. The time now is 12:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration