Trouble adding chunk to linked location
Trouble adding chunk to linked location
(OP)
I am trying to add a chunk to a location that is symlinked. The phyiscal location of the chunk is in /var/opt/informix/mounts/c0d1p1/inst0/data. The link resides in /var/opt/informix/inst0/data. When attempting to add the chunk using onspaces i am getting the following:
The file /var/opt/informix/inst0/data/chunk06 does not exist.
Here's the link in said directory:
lrwxrwxrwx 1 root root 50 Mar 25 10:20 chunk06 -> /var/opt/informix/mounts/c0d1p1/inst0/data/chunk06
There already is a chunk05 in existence that is symlinked the same. Here's the syntax for adding the chunk:
onspaces -a datadbs01 -o 0 -s 2000000 -p /var/opt/informix/inst0/data/chunk06
Can someone tell me what i'm doing wrong?
The file /var/opt/informix/inst0/data/chunk06 does not exist.
Here's the link in said directory:
lrwxrwxrwx 1 root root 50 Mar 25 10:20 chunk06 -> /var/opt/informix/mounts/c0d1p1/inst0/data/chunk06
There already is a chunk05 in existence that is symlinked the same. Here's the syntax for adding the chunk:
onspaces -a datadbs01 -o 0 -s 2000000 -p /var/opt/informix/inst0/data/chunk06
Can someone tell me what i'm doing wrong?
RE: Trouble adding chunk to linked location
RE: Trouble adding chunk to linked location
I'm logged in as informix to run the ln command that creates the symbolic link.
RE: Trouble adding chunk to linked location
Why didn't you symlinked /var/opt/informix/inst0/data -> /var/opt/informix/mounts/c0d1p1/inst0/data ?
Hope This Helps, PH.
FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?
RE: Trouble adding chunk to linked location
First: you have to sure the file exists.
please, verify to this is file exist.
use:
ls -l /var/opt/informix/inst0/data/chunk06
Second:
if you file exist. You have to create symbolic link.
Example:
phyiscal location of file: /var/opt/informix/inst0/data/chunk06
Directory of links:
Example: /ifmxdata
I am going to create a symbolic link in /ifmxdata the name chunk06 to link the physical location /var/opt/informix/inst0/data/chunk06
cd /ifmxdata
ln -s /var/opt/informix/inst0/data/chunk06 chunk06
RE: Trouble adding chunk to linked location
Here's the existing chunk04 and 05 that are residing in /var/opt/informix/mounts/c0d1p1/inst0/data:
-rw-rw---- 1 informix informix 2048000000 Mar 26 12:59 chunk04
-rw-rw---- 1 informix informix 2048000000 Mar 26 02:50 chunk05
and the links in /var/opt/informix/inst0/data:
lrwxrwxrwx 1 root root 50 Jun 14 2005 chunk04 -> /var/opt/informix/mounts/c0d1p1/inst0/data/chunk04
lrwxrwxrwx 1 root root 50 Mar 12 16:28 chunk05 -> /var/opt/informix/mounts/c0d1p1/inst0/data/chunk05
svelasco:
ls -l /var/opt/informix/inst0/data/chunk06
lrwxrwxrwx 1 root root 50 Mar 25 10:20 /var/opt/informix/inst0/data/chunk06 -> /var/opt/informix/mounts/c0d1p1/inst0/data/chunk06
which appears to be linked the same as existing chunk04 and 05:
ls -l /var/opt/informix/inst0/data/chunk04
lrwxrwxrwx 1 root root 50 Jun 14 2005 /var/opt/informix/inst0/data/chunk04 -> /var/opt/informix/mounts/c0d1p1/inst0/data/chunk04
Thanks for the replies. Still not able to add a chunk. Would it be ok for me to just add the chunk to the mounted directory using this syntax? Or does the chunk need to be symlinked from the /var/opt/informix/inst0/data directory?
onspaces -a datadbs01 -o 0 -s 2000000 -p /var/opt/informix/mounts/c0d1p1/inst0/data/chunk06
RE: Trouble adding chunk to linked location
The above should be OK.
Hope This Helps, PH.
FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?
RE: Trouble adding chunk to linked location
RE: Trouble adding chunk to linked location
1. /var/opt/informix/mounts/c0d1p1/inst0/data was not accessible to the informix user. So it's not that the chunk didn't exist. Informix just couldn't get to it. A "permission denied" error would have been helpful. Anyway, I set perms to 755 and created the chunk06 file.
2. After creating the file I created the symlink in the /var/opt/informix/inst0/data directory
After doing the above steps I was able to add the chunk using the onspaces command without issue.
I appreciate the responses here and it appears I didn't look at things at the most basic level before asking for help here. Lesson learned.