Solaris Repo Update


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris Repo Update
# 1  
Old 04-18-2018
Solaris Repo Update

Hi Folks,

Just a quick question on this, I've tried to run this a couple of times now - first time it failed I increased the swap. I'm not sure that increasing the physical memory will do any good, but will try later today - has anyone seen this or anything similar?

Code:
SunOS fvssphsun01 5.11 11.3 sun4v sparc sun4v
root@fvssphsun01:~# pkgrepo refresh -s /export/s11repo
Initiating repository refresh.
Apr 18 10:59:06 fvssphsun01 su: 'su root' succeeded for e415243 on /dev/pts/2


pkgrepo: There is not enough memory to complete the requested operation.  At least
3GB of virtual memory was in use by this command before it ran out of memory.
You must add more memory (swap or physical) or allow the system to access more
existing memory, or quit other programs that may be consuming memory, and try
the operation again.
root@fvssphsun01:~#
root@fvssphsun01:~# ldm ls
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  NORM  UPTIME
primary          active     -n-cv-  UART    16    32G      0.2%  0.1%  7d 21h 17m
fbasphnhhp01     active     -n----  5001    16    32G      0.0%  0.0%  6d 4h 4m
fdbsphnhhp01     active     -n----  5000    48    96G      0.1%  0.1%  6d 3h 57m
root@fvssphsun01:~# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 303,1        16  8388592  8388592
/dev/zvol/dsk/rpool/swap2 303,3        16 25165808 25165808
/dev/zvol/dsk/rpool/swap 303,1   8388624 25165808 25165808
root@fvssphsun01:~#

Regards

Gull04
# 2  
Old 04-18-2018
Hmmmm.......no, I haven't come across that problem before.

My first thought would be to check user/process resource limits. There seems to be quite enough swap available to avoid it falling over at 3GB virtual memory (unless the system is otherwise very heavily loaded). We all know that on Solaris, by default, root user is unlimited in resources but some clown might have imposed some limit. I assume that this is not a system installed and configured by you so you don't know the history??

Like you, at this stage of investigation, I wouldn't believe it is an actual memory shortage causing it.
# 3  
Old 04-18-2018
Hi Dennis,

I built the system, I used the text installer and then pulled down the initial repo from the Oracle site - all good and well so far.

I then ran the pkgrecv as follows;

Code:
root@fvssphsun01:~# http_proxy=http://proxyspw.corp.XXXXXXXXX.com:8080 
root@fvssphsun01:~# export  http_proxy 
root@fvssphsun01:~#  pkgrecv --key /var/pkg/ssl/pkg.oracle.com.key.pem --cert /var/pkg/ssl/pkg.oracle.com.certificate.pem -s https://pkg.oracle.com/solaris/support/ -d /export/s11repo '*'

Again all good and well although it took 3days and 18hours down loading almost 140Gb, this was followed by;

Code:
pkgrepo verify -s /export/s11repo

This also ran just dandy, can't remember how long it took and was followed by;

Code:
root@fvssphsun01:~# pkgrepo refresh -s /export/s11repo                           
Initiating repository refresh. 
pkgrepo: There is not enough memory to complete the requested operation.  At least 
4GB of virtual memory was in use by this command before it ran out of memory. 
You must add more memory (swap or physical) or allow the system to access more 
existing memory, or quit other programs that may be consuming memory, and try 
the operation again.

You'll notice that we had a 4Gb error which I thought was suspicious, so I increased the swap - no change. I added another 32G memory - no change. I changed the ZFS ARC Cache setting and the 4Gb error became a 3Gb error even with the additional swap and the additional physical memory.

Regards

Gull04
# 4  
Old 04-23-2018
Hi Everyone,

Here is a quick update on this, still not entirely sure what I did to fix this - the only thing that I can think may have resolved the problem was a package index. After that was going to run the upgrade again and an explorer in an other shell to get the required data for Oracle - however the unexpected happened and the repo update worked.

Code:
root@fvssphsun01:/var/tmp/p27353277_9621a# pkg search -Hlo value info.cve:
pkg: Search performance is degraded.
Run 'pkg rebuild-index' to improve search speed.
root@fvssphsun01:/var/tmp/p27353277_9621a# pkg rebuild-index
Building new search index                    582/582
root@fvssphsun01:/var/tmp/p27353277_9621a# pkg search -Hlo value info.cve:
root@fvssphsun01:/var/tmp/p27353277_9621a#  pkgrepo refresh --key /var/pkg/ssl/pkg.oracle.com.key.pem --cert /var/pkg/ssl/pkg.oracle.com.certificate.pem -s https://pkg.oracle.com/solaris/support/ -s /export/s11repo
Initiating repository refresh.

root@fvssphsun01:/var/tmp/p27353277_9621a#

Still not entirely sure what happened, but it all seems to work now.

Just thought I would update everyone.

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
# 5  
Old 04-23-2018
A little late but just wanting to point out that "swap -l" wasn't the right command to figure out what the virtual memory usage was like on that server.

With non overcommiting OSes like Solaris, you can reach an out of (virtual) memory state despite still having plenty of unused swap and RAM.

The proper command would have be "swap -s".
# 6  
Old 04-24-2018
You are probably hitting bugs or features of 11.3 new KOM -> kernel object manager.
Ever since 11.3, i leave couple of GB not to be used by zfs (kernel, user_reserve_hint)

Otherwise, once you reach memory pressure, stuff pauses and timeouts badly, effecting entire operating system and services on it.

This is probably related unfortunately and it just doesn't work properly in my opinion.

Regards
Peasant.
# 7  
Old 04-24-2018
Hi Peasant,

I'd already been through that loop, had doubled the memory to 64Gb and set the value as follows;

Code:
echo "user_reserve_hint_pct/W0t50" | mdb -kw
echo ::memstat | mdb -k
echo ::memstat | mdb -k
echo ::memstat | mdb -k
echo user_reserve_hint_pct/D | mdb -k
echo ::memstat | mdb -k

Which should have meant that there was at least 32Gb available, instead of failing at 4Gb - it failed at 3Gb. At that point I decided to call it quits for a little while.
When I had to go back to the problem, the only thing that I'd done with the index was to re-index it this time the command ran and I'm still not certain what I did.

Regards

Gull04
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to update Solaris 10 Update 3 to Update 11?

Hi friends, We have a Solaris machine running 10 update 3 -bash-3.2# cat /etc/release Solaris 10 11/06 s10s_u3wos_10 SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. ... (6 Replies)
Discussion started by: prvnrk
6 Replies

2. UNIX for Advanced & Expert Users

RPM Repo Cleanup

Greetings all, I have inherited this offline Red Hat YUM repo that contains over 42000 packages. You read that right. There are 71 kernels alone. The process that I've inherited has us reposync on an Internet-connected-server then sneaker-net the delta to our offline repo where we do a yum... (2 Replies)
Discussion started by: geoeldsul
2 Replies

3. UNIX for Dummies Questions & Answers

Configuring EPEL repo and setting it as default repo.

I am using RHEL 6, but with no RHN subscription. I tried installing the EPEL repo, it is enabled under yum repolist but when I try a sample search such as yum search nginx , there's a string of errno 14 PYCURL error 6 . When I tried yum list installed, it didn't work because it defaults to the... (0 Replies)
Discussion started by: Hijanoqu
0 Replies

4. Red Hat

Error connecting to repo server

Hi guys, I will really appreciate your help on this issue I am having. I built a repository on one of my servers using a red hat dvd . It is working fine on that server. When I create a repo file in a client server and try to connect to the server repository, I get this error ... (2 Replies)
Discussion started by: cjashu
2 Replies

5. UNIX and Linux Applications

SVN repo issues

We have about 5 different SVN repositories running on SVN 1.6.11 on top of CentOS Linux 6.3. I was asked to migrate our SVN server to a new server last week. We have a cron job that does a Full backup of each repo once a week, and every other night we do an incremental backup via svnadmin dump... (1 Reply)
Discussion started by: glev2005
1 Replies

6. Solaris

solaris 11 - creating a second IPS repo

I need some help getting a IPS repo setup for custom internal packages. we already have an IPS for the oracle solaris package. what I want is a repo called BOB that can be used for packages internal to company BOB. I think I have created a repo called BOB, but it's not setup in the network... (1 Reply)
Discussion started by: robsonde
1 Replies

7. Solaris

Install update 6 on solaris with update 3

I want to update my solaris 10 server which is currently on update 3 stage. A new application require it to be on update 6. What is the best way to make it update 6. should i just install the patch or should i go for the liveupgrade?? thanks for you help in advance (3 Replies)
Discussion started by: uxravi
3 Replies

8. Red Hat

How to Create local YUM repo?

Hi friends, I am using RHEL5 . I have tried to create the local repo using createrepo rpm.But i have been facing a lot of errors and it is not working well. Can somebody tell me how to create the local repo? Thank you in advance. Regards, Prakashkumar.S (2 Replies)
Discussion started by: prakashkumar41
2 Replies

9. Solaris

Undo the Veritas mirroring and update from Solaris 8 to Solaris 10

Hi all I wish to undo the mirroring for root and update the Solaris version from 8 to 10. Since i am lack of knowledge and experience on this, hope you all can help me double check the step and correct me. Existing disk groups details root@leo # vxdg list NAME STATE ID... (3 Replies)
Discussion started by: SmartAntz
3 Replies
Login or Register to Ask a Question