Operating System - OpenVMS
1748279 Members
4099 Online
108761 Solutions
New Discussion

Unable to create new files .

 
SOLVED
Go to solution
allin-in-one
Frequent Advisor

Unable to create new files .

I have followed below steps.

 

1. $ CREATE/DIRECTORY/ALLOCATION=16 [.JUNK]


2. $ dir/size=all junk.dir

Directory DKA0:[SYS0.XXXXX.XXXXX]

JUNK.DIR;1                 0/0

Total of 1 file, 0/0 blocks.

 

here XXXXX is not the actual dirrectory path. I have changed it to hide actual path.

 

3. $ set def [.junk]
$ dir
%DIRECT-E-OPENIN, error opening DKA0:[SYS0.XXXXX.XXXXX.JUNK]*.*;* as input
-RMS-E-FND, ACP file or directory lookup failed
-SYSTEM-W-BADIRECTORY, bad directory file format

 

 

4. %CREATE-E-OPENOUT, error opening DKA0:[SYS0.XXXXX.XXXXX.JUNK]ABC.TXT; as output
-RMS-E-CRE, ACP file create failed
-SYSTEM-W-BADIRECTORY, bad directory file format

 

5. $ dump /header /block junk.DIR
%DUMP-E-OPENIN, error opening DKA0:[SYS0.XXXXX.XXXXX.JUNK]junk.DIR; as input
-RMS-E-FND, ACP file or directory lookup failed
-SYSTEM-W-BADIRECTORY, bad directory file format

 

6. $ Analyze/Disk_Structure dka0:

 

%ANALDISK-W-BADDIRATTR, directory [SYS0.XXXXX.XXXXX.JUNK] has invalid attributes
-ANALDISK-I-BAD_DIREFBLK, EFBLK indicates zero length directory file

 

Please advise me how to over come this problem.

 

Thanks

8 REPLIES 8
Volker Halle
Honored Contributor

Re: Unable to create new files .

The directory file has a length of ZERO blocks. That's most likely the problem

 

Did you get an error message when creating that directory file ?

 

Please delete that bad directory file and re-create the directory file. Please use /LOG and cut & paste the command and the resulting messages.

 

Volker.

 

 

allin-in-one
Frequent Advisor

Re: Unable to create new files .

Thank you.

 

Yes, I agree directory file has a length of ZERO blocks.I think this is the actual problem.

I don't know the reason for why always directory file has a length of ZERO blocks.

If I create any new directory it is created with ZERO blocks.

This may be due to some global variable / root directory property is set.

I couldn't find the reason.

 

Kondly advise me how to resolve this issue.

 

$ CREATE/DIRECTORY/ALLOCATION=16/log [.JUNK1]
%CREATE-I-CREATED, DKA0:[SYS0.XXXXX.XXXXX.JUNK1] created
$ dir dka0:[SYS0.XXXXX.XXXXX]JUNK1.dir;1/size=all

Directory DKA0:[SYS0.XXXXX.XXXXX]

JUNK1.DIR;1                0/0

Total of 1 file, 0/0 blocks.

Volker Halle
Honored Contributor

Re: Unable to create new files .

Is there any free space left on the disk ? SHOW DEV/FULL DKA0:

 

Did you turn off error messages ? If so, try $ SET MESS/FAC/SEV/TEXT/ID before CRE/DIR

 

Try CRE/DIR without /ALLOC=16

 

Do you have another disk, on which you can successfully create directories ?

 

OpenVMS version and architecture ?

 

Volker.

 

allin-in-one
Frequent Advisor

Re: Unable to create new files .

Thank you.

 

We don't have any other disk on this system.

OpenVMS V8.4 COMPAQ AlphaServer DS20E .

 

$ SET MESS/FAC/SEV/TEXT/ID

 

$  CREATE/DIRECTORY/log [.junk4]
%CREATE-E-DIRNOTCRE, [.junk4] directory file not created
-SYSTEM-W-BADIRECTORY, bad directory file format

 

$ dir DKA0:[SYS0.XXXXX.XXXXX]JUNK4.dir;1/size=all
%DIRECT-W-NOFILES, no files found

 

 $  SHOW DEV/FULL DKA0:

Disk DKA0:, device type COMPAQ BD0366459B, is online, mounted, file-oriented
    device, shareable, available to cluster, error logging is enabled.

    Error count                    0    Operations completed             111468
    Owner process                 ""    Owner UIC                      [SYSTEM]
    Owner process ID        00000000    Dev Prot            S:RWPL,O:RWPL,G:R,W
    Reference count              243    Default buffer size                 512
    Total blocks            71132000    Sectors per track                   254
    Total cylinders            14003    Tracks per cylinder                  20
    Logical Volume Size     71132000    Expansion Size Limit         4261348350

    Volume label          "ALPHASYS"    Relative volume number                0
    Cluster size                  16    Transaction count                   374
    Free blocks             26818496    Maximum files allowed          16711679
    Extend quantity                5    Mount count                           1
    Mount status              System    Cache name             "_DKA0:XQPCACHE"
    Extent cache size             64    Max blocks in extent cache      2681849
    File ID cache size            64    Blocks in extent cache                0
    Quota cache size               0    Maximum buffers in FCP cache       2570
    Volume owner UIC           [1,1]    Vol Prot    S:RWCD,O:RWCD,G:RWCD,W:RWCD

  Volume Status:  ODS-5, subject to mount verification, protected subsystems
      enabled, file high-water marking, write-through XFC caching enabled,
      write-through XQP caching enabled, hard links enabled, special files
      enabled.

 

Volker Halle
Honored Contributor

Re: Unable to create new files .

This means you cannot create any file ? Try $ CREATE x.x

 

Is the default directory you're in a valid directory file ?

 

I can reproduce this behaviour if trying to create a subdirectory in an invalid directory file:

 

CHAALP $ cre/dir <.x>
CHAALP $ set file/nodir x.dir
CHAALP $ cre/dir <.x.y>
%CREATE-E-DIRNOTCRE, <.X.Y> directory file not created
-SYSTEM-W-BADIRECTORY, bad directory file format

 

Boot from CD and re-try this operation on DKA0:

 

Did it ever work before on this V8.4 system disk ? Is this a new installation ?

 

Issue a SET WATCH FILE/CLASS=MAJOR before CRE/DIR (turn off XQP logging afterwards with /CLASS=NOMAJOR).

 

Volker.

allin-in-one
Frequent Advisor

Re: Unable to create new files .

$ CREATE x.x this command hangs.

 

But if I open another session and

 

$ dir a.c/full

Directory DKA0:[SYS0.XXXXX.XXXXX]

A.C;1                         File ID:  (18983,3,0)
Size:            0/0          Owner:    [1,1]
Created:    16-MAR-2014 22:46:12.73
Revised:    16-MAR-2014 22:46:12.73 (0)
Expires:    <None specified>
Backup:     <No backup recorded>
Effective:  <None specified>
Recording:  <None specified>
Accessed:   16-MAR-2014 22:46:12.73
Attributes: 16-MAR-2014 22:46:12.73
Modified:   16-MAR-2014 22:46:12.73
Linkcount:  1
File organization:  Sequential
Shelved state:      Online
Caching attribute:  Writethrough
File attributes:    Allocation: 0, Extend: 0, Global buffer count: 0, No version limit
Record format:      Variable length, maximum 0 bytes, longest 0 bytes
Record attributes:  Carriage return carriage control
RMS attributes:     None
Journaling enabled: None
File protection:    System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List:  None
Client attributes:  None

Total of 1 file, 0/0 blocks.

 

This file is locked by earlier session.

 


$ create/dir [.x]
%XQP, Thread #0, Access CREATE.EXE;1 (2990,1,0) Status: 00000001
%XQP, Thread #0, Access LIBRTL.EXE;1 (15029,1,0) Status: 00000001
%XQP, Thread #0, Control function  (15029,1,0) Status: 00000001
%XQP, Thread #0, Deaccess (2990,1,0) Reads: 3, Writes: 0, Status: 00000001
%XQP, Thread #0, Deaccess (15029,1,0) Reads: 6, Writes: 0, Status: 00000001
%XQP, Thread #0, Access CREATE.EXE;1 (2990,1,0) Status: 00000001
%XQP, Thread #0, Access LIBRTL.EXE;1 (15029,1,0) Status: 00000001
%XQP, Thread #0, Control function  (15029,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (11,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (14370,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (14371,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (14371,1,0) Status: 00000910
%XQP, Thread #0, Lookup ETRACKS.DIR;1 (14371,1,0) Status: 00000001
%XQP, Thread #0, Create/Access X.DIR;1 (18988,6,0) Status: 00000001
%XQP, Thread #0, Deaccess (18988,6,0) Reads: 0, Writes: 0, Status: 00000001
%XQP, Thread #0, Lookup X.DIR;1 (18988,6,0) Status: 00000001
%XQP, Thread #0, Deaccess (2990,1,0) Reads: 6, Writes: 0, Status: 00000001
%XQP, Thread #0, Deaccess (15029,1,0) Reads: 15, Writes: 0, Status: 00000001

 

 $ set file/nodir x.dir
%XQP, Thread #0, Lookup  (18988,6,0) Status: 00000001
%XQP, Thread #0, Access X.DIR;1 (18988,6,0) Status: 00000001
%XQP, Thread #0, Modify X.DIR;1 (18988,6,0) Status: 00000001
%XQP, Thread #0, Deaccess (18988,6,0) Reads: 0, Writes: 1, Status: 00000001


$ create/dir [.x.z]

%XQP, Thread #0, Access CREATE.EXE;1 (2990,1,0) Status: 00000001
%XQP, Thread #0, Lookup SYS0.DIR;1 (11,1,0) Status: 00000001
%XQP, Thread #0, Lookup PRABHAKAR.DIR;1 (14370,1,0) Status: 00000001
%XQP, Thread #0, Lookup VMSLIBS.DIR;1 (15024,1,0) Status: 00000001
%XQP, Thread #0, Lookup RESTORE.DIR;1 (15026,1,0) Status: 00000001
%XQP, Thread #0, Access LIBRTL.EXE;1 (15029,1,0) Status: 00000001
%XQP, Thread #0, Control function  (15029,1,0) Status: 00000001
%XQP, Thread #0, Deaccess (2990,1,0) Reads: 3, Writes: 0, Status: 00000001
%XQP, Thread #0, Deaccess (15029,1,0) Reads: 6, Writes: 0, Status: 00000001
%XQP, Thread #0, Access CREATE.EXE;1 (2990,1,0) Status: 00000001
%XQP, Thread #0, Access LIBRTL.EXE;1 (15029,1,0) Status: 00000001
%XQP, Thread #0, Control function  (15029,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (11,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (14370,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (14371,1,0) Status: 00000001
%XQP, Thread #0, Lookup  (18988,6,0) Status: 00000001
%XQP, Thread #0, Lookup X.DIR;1 (18988,6,0) Status: 00000828
%CREATE-E-DIRNOTCRE, [.X.Z] directory file not created
-SYSTEM-W-BADIRECTORY, bad directory file format
%XQP, Thread #0, Deaccess (2990,1,0) Reads: 6, Writes: 0, Status: 00000001
%XQP, Thread #0, Deaccess (15029,1,0) Reads: 15, Writes: 0, Status: 00000001 

 

>>  Boot from CD and re-try this operation on DKA0:

 

I will try this.

 

>> Did it ever work before on this V8.4 system disk ? Is this a new installation ?

This is old installation. It used work with out any issues. I am facing this problem now only.

 

Thank you.

 

allin-in-one
Frequent Advisor
Solution

Re: Unable to create new files .

Thanks for all your help.

 

The problem has been resolved. Wrong logical for LIBRTL caused the problem.

Sorry for inconvenience.

 

Thank you.

John Gillings
Honored Contributor

Re: Unable to create new files .

>> $ CREATE x.x this command hangs.

 

Most likely because it's waiting for input to the newly created file. Try ^Z

 

(still catches me from time to time ;-)

A crucible of informative mistakes