Unix administration - Patch installation

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > March 2007 > Patch installation





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Patch installation
tlswodus@gmail.com

2007-03-13, 7:17 pm

Hello, I'm new to Unix so this could be very basic thing.
I'm trying to install the DST patch to the server running Solaris 9.
I saved 113225-08 in /var/tmp and ran patchadd but I got a patchadd
failed message.
So I went to log file under /var/sadm/patch/113225-08 and the log was


"/usr file system is not writable. Patch 113225-08 can not be
installed until /usr is made writable."

Though usr directory has permission "rwxr-xr-x".
Is there something I have to check before?
Thanks.

Michael Tosch

2007-03-13, 7:17 pm

tlswodus@gmail.com wrote:
> Hello, I'm new to Unix so this could be very basic thing.
> I'm trying to install the DST patch to the server running Solaris 9.
> I saved 113225-08 in /var/tmp and ran patchadd but I got a patchadd
> failed message.
> So I went to log file under /var/sadm/patch/113225-08 and the log was
>
>
> "/usr file system is not writable. Patch 113225-08 can not be
> installed until /usr is made writable."
>
> Though usr directory has permission "rwxr-xr-x".
> Is there something I have to check before?
> Thanks.
>


The entire /usr file system is not writable, i.e. mounted read-only.

You can see this with

/bin/test -w /usr || echo not-writable

Try
mount -o remount,rw /usr

or, if in single-user mode, exit to multi-user.


--
Michael Tosch @ hp : com
Dave Hinz

2007-03-14, 1:19 am

On 13 Mar 2007 14:46:09 -0700, tlswodus@gmail.com <tlswodus@gmail.com> wrote:
> Hello, I'm new to Unix so this could be very basic thing.
> I'm trying to install the DST patch to the server running Solaris 9.


Good timing ;)

> I saved 113225-08 in /var/tmp and ran patchadd but I got a patchadd
> failed message.


Which patchadd failed message? Return code 8, 5, something else?

> So I went to log file under /var/sadm/patch/113225-08 and the log was


> "/usr file system is not writable. Patch 113225-08 can not be
> installed until /usr is made writable."


Sounds like /usr isn't mounted read-write. Do that.

> Though usr directory has permission "rwxr-xr-x".
> Is there something I have to check before?


Ah. You're confusing mount read/write with file read/write, which is
certainly understandable. You'll want to re-mount /usr as a read-write
filesystem rather than readonly.

tlswodus@gmail.com

2007-03-14, 1:24 pm

Thanks!
I got the patch installed.
But how can I change /usr back to read only?
I used
#mount -o remount,ro /usr

then I got
/dev/dsk/c0t0d0s6 is not this fstype.

Thanks.

Doug Freyburger

2007-03-14, 7:20 pm

Michael Tosch <eed...@NO.eed.SPAM.ericsson.PLS.se> wrote:
> tlswo...@gmail.com wrote:
>
>
> Why r/o? This is absolutely none-standard.


My half-joke half-serious claim is that /usr stands for "Unix
System Read-only". It is the wrong history but files in it
should normally be considered read-only by anyone but
root applying patches and newly installed packages.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com