SUMMARY: mkdir I/O error

From: Sal Serafino <serafino_at_cshl.edu>
Date: Tue Feb 15 2005 - 12:23:48 EST
Thanks to Elvio, Casper, Frank, Darren, Mike, and Douglas for sharing their 
technical skills.  Most agreed that this is hardware related, rather than a 
filesystem issue because I got EIO and not EMLINK.  Many suggested to verify 
permissions and also to umount and fsck the partition.  Nobody could have 
guessed it was the carelessness factor at work.

On closer inspection, I noticed that this partition had a larger total size as 
reported by 'df -k' than other partitions of the same type.  All of these have 
identical VTOCs, with slice 7 reserved for a metadb.  When I did the original 
mkfs, I must have passed the wrong partition (s2?) as an argument.  I umount'd 
this disk, dumped the files, and re-mkfs'd it.  The output of 'df -k' shows the 
same size as the others, so I put the data back and remounted /app.  Now, I make 
all the directories I want, and my application is running like a charm.

It's always the little things....

Many thanks,
-Sal


-- SNIP of original post --

For some reason, I can't create a new directory to save my life.  I can make new 
files, so it's not a problem with no more inodes.  I have output from touch, df 
-k/-e, and also the output from truss for the mkdir command.  There are no 
special switches in vfstab for any mount, and /etc/mnttab shows this:

 # grep app /etc/mnttab 
/dev/dsk/c0t1d0s0       /app        ufs     
rw,intr,largefiles,onerror=panic,suid,dev=800008        1107991919

There is no problem creating directories on any other filesystem on this box.

Many thanks in advance,
-Sal


 # pwd
/app/dev/int
 # ls
 # foreach F ( 0 1 2 3 4 5 )
foreach? touch TEST$F
foreach? end
 # foreach F ( 0 1 2 3 4 5 )
foreach? mkdir TD$F
foreach? end
mkdir: Failed to make directory "TD0"; I/O error
mkdir: Failed to make directory "TD1"; I/O error
mkdir: Failed to make directory "TD2"; I/O error
mkdir: Failed to make directory "TD3"; I/O error
mkdir: Failed to make directory "TD4"; I/O error
mkdir: Failed to make directory "TD5"; I/O error
 # ls -l
total 0
-rw-r--r--   1 root     other          0 Feb 14 13:20 TEST0
-rw-r--r--   1 root     other          0 Feb 14 13:20 TEST1
-rw-r--r--   1 root     other          0 Feb 14 13:20 TEST2
-rw-r--r--   1 root     other          0 Feb 14 13:20 TEST3
-rw-r--r--   1 root     other          0 Feb 14 13:20 TEST4
-rw-r--r--   1 root     other          0 Feb 14 13:20 TEST5
 # 
 # df -k .
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t1d0s0    8703705 2514253 6102415    30%    /app
 # df -e .
Filesystem              ifree
/dev/dsk/c0t1d0s0     1007971
 # 

-- SNIP of original post --
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Feb 15 12:24:17 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:43 EST