Similar Threads:
1./var/sadm/pkg is very huge
Hello.
I noticed that my /var/sadm/pkg is rather big. It's currently about 1.7g.
Can I deleted no longer required "save" directories from there (like
/var/sadm/pkg/SUNWzfsu/save)?
Thanks,
Alexander Skwar
2.Solaris Live upgrade: questions about /var/sadm/patch
According to the solaris FAQ:--------8<-----------------|3.40) Why does
installing patches take so much space in /var/sadm? All the files that
are replaced by a patch are stored under /var/sadm/patch/<patch-id>/save
so the patch can be safely backed out. Newer patches will save the old
files under /var/sadm/pkg/<pkg>/save/<patch-id>/undo.Z, for each package
patches. You can remove the <patchdir>/save directory provided you also
remove the <patchdir>/.oldfilessaved file. Newer patches will not
install a .oldfilessaved file. Alternatively, you can install a patch w/o
saving the old files by using the "-d" flag to installpatch.|3.41) Do I
need to back out previous versions of a patch? No, unless otherwise
stated in the patch README. If the previous patch installation saved the
old files, you may want to reclaim that space. Patches can be backed
out with (Solaris 2.6+): patchrm <patch-id> or in earlier releases:
/var/sadm/patch/<patch-id>/backoutpatch <patch-id> Backoutpatch can take
an awful long time, especially when the patch contained a lot of files.
This is fixed in later versions of
backoutpatch.---------------->8---------------------------Prior to doing the
live upgrade, I would like to minimize the size of my root partition
(containing /var in my case) Can I safely remove all patches (not just the
save directories)from /var/sadm/patches or will live upgrade do it
automatically ? I presume that after a solaris upgrade, the liste of
installed patches on the system will be NULL ?Another last point, does "back
out patch" mean to go back to the state BEFORE the patch was applied ? I
don't understand the 3.41 paragraph. What does it mean ? It seems to mean
that whenever you apply a newpatch, you should go back to the previous
version before installing ?Ex: Original package = blabla-01Apply patch
blabla-02 (BlaBla-01 saved)You now want to apply patch blabla-03.Does
question 3.41 ask: "if you need to install patch blabla-03 you should first
back ou to blabla-01 ?" If so, what do you do if the README tells you that
you have to, but you REMOVED the save directory ?Thanks !
3.default permission in /var/sadm/patch
Hi all,
does anybody know what the reason is that all directories
in /var/sadm/patch have the permission 0754. Like this
it is impossible to grep for the Synopsis of the patches
in the README files as a normal user. Like this you can
only look at the patchids, which give a user who wants
to hack a system enough information about missing
patches that might offer opportunities to attack.
So what is the point not setting the default permission
to either 0750 (including the directory /var/sadm/patch)
or to 0755 and give users the oportunity to read the
README files of the installed patches?
TIA,
Tom
4.ld: not enough room for program headers
Hi,
Please let me know if this is off-topic; I'm new to the group.
My problem is linker behavior. The error message is:
Not enough room for program headers (allocated 7, need 8)
The project is a port of a large number of legacy Fortran. There is nothing
very exotic in the source or build except I am trying to use the linker
option:
--section-start .bss=0x080ee000
I find that if I tweek the value, the message goes away (so far!). I have
tried the option -Tbss with the same or worse result.
Is this a bug in ld? The compilers are Absoft Fortran 95. The OS is Suse
8.2.
I am doing this because I need to align uninitialized data objects common to
several of my programs. Objects don't need to occupy the same user address
from program to program, but they do need to appear at the same relative
page offset.
Thanks,
Neil Ferguson
5.Test Case : __attribute__ ((aligned (16384)))==>Not enough room for program headers
On Linux, I was unable to compile the below test case with cc, gcc, or
g++! Does anyone know how I can if it's possible?
/* test.c */
#include <stdio.h>
struct
{
int t1;
int t2;
float tx;
} shared_memory __attribute__ ((aligned (16384)));
int main ()
{
printf ("hello\n");
}
%g++ test.c
/usr/bin/ld: a.out Not enough room for program headers (allocated 7,
need 8)
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
Thank you,
Christopher Lusardi
Note: On SGI, I can use "pragma align_symbol (shared_memory, 16384)"
after the definition of the struct without the error. If I use the
pragma on Linux it does not align properly.
6. (patch for Bash) ${var|.strip0}, ${var|.strip}, ${var|.lrstrip}, ${var|.lstrip}, ${var|.rstrip}
7. frequency alphabet for files in /var/sadm/install/contents
8. /var/sadm/pkg