[100690] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Sybase for Linux installation.

daemon@ATHENA.MIT.EDU (Jan Carlson)
Sun Nov 22 23:17:47 1998

Date: Sun, 22 Nov 1998 23:16:07 -0500
From: Jan Carlson <janc@iname.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Rich Shepard wrote:

>   Does anyone know if I can move the installed Sybase ASE for Linux from the
> /opt directory to another one?

Uncertain.

Sybase on unix would fail if you restored its data files from
tape, even if the copy was perfect and preserved all names and attributes.
Sybase used to bypass the filesystem, going to disk block
offsets instead, to try to get a little more speed.

I don't know if they do that in the current Linux version.
If they do, you might be able to get away with mv'ing a directory
within the same filesystem, but not to a different one.

>
>
>   Alternatively, is there a way to install the .rpm into a directory other
> than /opt?

Yes, with a symlink to keep the names the same.

>
>
>   I ask because /opt is in the root filesystem on my smallest hard drive.
> I'd like to install Sybase in /usr1 which is on the largest hard drive and
> has much more room available.

It will be easier and possibly let sleeping bugs lie, if you install
Sybase under the directory names it likes.    Just symlink /opt to point to
/usr1/opt, so that the Sybase install will go into /opt on your large disk.

# mkdir /usr1/opt
# mv /opt /opt.orig
# ln -s /usr1/opt /opt

This assumes /opt exists but is empty.  If it contains other
packages, transplant them

# cd /opt.orig
# tar -c . | tar -C /opt -xvp
( Or,    # find . -print | cpio -pdmuv /opt
either will preserve permissions)

Test everything that WAS in opt to be sure it works
with the new setup, then

# rm -rf /opt.orig

But, Sybase used to have strange data files that
could not be used after moving them as above.
So you may need to remove Sybase and install it
fresh, if it is already installed.

--

Jan Carlson
janc@iname.com   Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.2




-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post