Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

patches fail to install in non-global zone: /dev/null: cannot create -> sort: insufficient available file descriptors

352 views
Skip to first unread message

Michael Schmarck

unread,
Sep 17, 2008, 5:47:11 AM9/17/08
to
Hello.

I'm currently bringing my systems up-to-date wrt. the installed patches.
To do so, I first create a new Boot Environment (BE) using lucreate.
And now I'm using pca to do the actual patching, by doing:

# pca --root=/.alt.S10U5_20080917 --install

The new BE is obviously named "S10U5_20080917" and is mounted through
lumount at /.alt.S10U5_20080917. On the system, there are non-global
zones:

--($ ~)-- zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
4 rb running /export/zones/rb native shared
9 rp running /export/zones/rp native shared
- rt installed /export/zones/rt native shared

But the patch installation fails (Failed (exit code 1)).

Probably reason:

Checking installed patches...
/usr/lib/patch/patchadd[4]: /dev/null: cannot create
/usr/lib/patch/patchadd[6]: /dev/null: cannot create
sort: insufficient available file descriptors

Has anyone seen this before?

Here's the output of PCA for one patch. Patch installation doesn't
always fail at the same zone, though.

------------------------------------------------------------------------------
119213 16 < 17 -S- 196 NSS_NSPR_JSS 3.11.9: NSPR 4.7 / NSS 3.11.9 / JSS 4.2.6

Downloading 119213-17 (13/173)
Skipped (file exists)

Installing 119213-17 (13/173)
Unzipping patch
Running patchadd

Validating patches...

Loading patches installed on the system...

Done!

Loading patches requested to install.

Done!

Checking patches that you specified for installation.

Done!


Approved patches will be installed in this order:

119213-17


Preparing checklist for non-global zone check...

Checking non-global zones...


This patch passes the non-global zone check.
119213-17


Summary for zones:

Zone race-performance

Rejected patches:
None.

Patches that passed the dependency check:
119213-17

Zone race-trac

Rejected patches:
None.

Patches that passed the dependency check:
119213-17

Zone race-beta

Rejected patches:
None.

Patches that passed the dependency check:
119213-17

Patching global zone
Adding patches...

Checking installed patches...
Executing prepatch script...
Verifying sufficient filesystem capacity (dry run method)...
Installing patch packages...

Patch 119213-17 has been successfully installed.
See /.alt.S10U5_20080917/var/sadm/patch/119213-17/log for details

Patch packages installed:
SUNWjss
SUNWpr
SUNWprd
SUNWtls
SUNWtlsd
SUNWtlsu

Done!
Patching non-global zones...


Patching zone rp
Adding patches...

Checking installed patches...
Executing prepatch script...
Verifying sufficient filesystem capacity (dry run method)...
Installing patch packages...

Patch 119213-17 has been successfully installed.
See /a/var/sadm/patch/119213-17/log for details

Patch packages installed:
SUNWjss
SUNWpr
SUNWprd
SUNWtls
SUNWtlsd
SUNWtlsu

Done!

Patching zone rt
Adding patches...

Checking installed patches...
/usr/lib/patch/patchadd[4]: /dev/null: cannot create
/usr/lib/patch/patchadd[6]: /dev/null: cannot create
sort: insufficient available file descriptors

Patchadd is terminating.
Done!

Patching zone rb
Adding patches...

Checking installed patches...
Executing prepatch script...
Verifying sufficient filesystem capacity (dry run method)...
Installing patch packages...

Patch 119213-17 has been successfully installed.
See /a/var/sadm/patch/119213-17/log for details

Patch packages installed:
SUNWjss
SUNWpr
SUNWprd
SUNWtls
SUNWtlsd
SUNWtlsu

Done!

Failed (exit code 1)


Thanks a lot,
Michael

Michael Schmarck

unread,
Sep 18, 2008, 12:56:48 AM9/18/08
to
I wrote:

> But the patch installation fails (Failed (exit code 1)).
>
> Probably reason:
>
> Checking installed patches...
> /usr/lib/patch/patchadd[4]: /dev/null: cannot create
> /usr/lib/patch/patchadd[6]: /dev/null: cannot create
> sort: insufficient available file descriptors
>
> Has anyone seen this before?

I redid the pca run, but this time, I set "ulimit -n 5120" prior to
calling pca. This solved the issue. By default, I have:

--($ ~)-- ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited

Ie. ulimit -n 256.

Michael

0 new messages