Can't add chunk to dbspace (Grrr!)
Posted in 1997
ODS 7.22, Unixware 2.1.1, Compaq Proliant 1500
Can someone tell me if I'm doing something wrong?
I am adding a chunk to an existing dbspace. I have a 4GB drive I've
divided into 1GB slices. I'm trying to add a 1GB slice to a dbspace,
but `onspaces` won't let me do it, telling me that the slice is too
small for the chunk size indicated. I can only do this if I reduce the
chunk size request from 1GB to 600MB.
Here's my link to the raw device:
lrwxrwxrwx 1 informix informix 20 Aug 14 01:13
allcards_dbs_3_cnk_2 ->
/dev/rdsk/c0b0t4d0s1
Here's the VTOC info, showing the slice to be 1024MB in size:
(1024 cyls = 1024MB = 1GB)
# prtvtoc /dev/rdsk/c0b0t4d0s0
[snip]
slice 1: USER permissions: VALID UNMOUNTABLE
starting sector: 2048 (cyl 1) length: 2097152 (1024.00
cyls)
Here are my attempts at running `onspaces`:
$ onspaces -a allcards_dbs_3 -p
/home/informix/chunks/allcards_dbs_3_cnk_2
-o 0 -s 1024000Verifying physical disk space, please wait ...
The chunk '/home/informix/chunks/allcards_dbs_3_cnk_2' will not fit in
the space
specified.
$ onspaces -a allcards_dbs_3 -p
/home/informix/chunks/allcards_dbs_3_cnk_2 -o 0 -s 900000Verifying physical disk space, please wait ...
The chunk '/home/informix/chunks/allcards_dbs_3_cnk_2' will not fit in
the space
specified.
$ onspaces -a allcards_dbs_3 -p
/home/informix/chunks/allcards_dbs_3_cnk_2 -o 0 -s 800000Verifying physical disk space, please wait ...
The chunk '/home/informix/chunks/allcards_dbs_3_cnk_2' will not fit in
the space
specified.
$ onspaces -a allcards_dbs_3 -p
/home/informix/chunks/allcards_dbs_3_cnk_2 -o 0 -s 700000Verifying physical disk space, please wait ...
The chunk '/home/informix/chunks/allcards_dbs_3_cnk_2' will not fit in
the space
specified.
It finally works when I only request 600MB of the 1GB slice(!):
$ onspaces -a allcards_dbs_3 -p
/home/informix/chunks/allcards_dbs_3_cnk_2 -o 0 -s 600000Verifying physical disk space, please wait ...
Chunk successfully added.
Any clues? Am I doing something wrong here???
Thanks in advance.
--
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
ADDRESS ALTERED TO FOIL SPAMMERS: Remove "*NO-SPAM*" to reply.
Cosmo Lee Multi-User Computer Systems Brooklyn, NY
"JUST SAY 'NO' TO SPAM"
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *