mkdir /export/home/aa fails with mkdir: Failed to make directory ""; Invalid argument

From: george.done@orangemail.nl
Date: Fri Jul 04 2003 - 08:33:14 EDT


Hi !

I encounter a strange problem on one system where, in one local UFS
filesystem (/export/home) I cannot create any directory or subdirectory even
when I'm root:

# mkdir /export/home/xx

mkdir: Failed to make directory "/export/home/xx"; Invalid argument

 

The system is an E10K domain running Solaris 8 (with latest cluster patches)

The filesystem is UFS build on top of a Disksuite mirrored metadevice.

I can create files there - no problem

 

# df -e .

Filesystem ifree

/dev/md/dsk/d70 487636

# df -k .

Filesystem kbytes used avail capacity Mounted on

/dev/md/dsk/d70 1986439 11919 1914927 1% /export/home

As you can see there is plenty of inodes and disk space free there.

Automounter is not running

I checked the /usr/bin/mkdir against the Solaris Fingerprint database and
found it O.K. (not trojaned or anything)

(and the additional libraries)

# ldd /usr/bin/mkdir

        libgen.so.1 => /usr/lib/libgen.so.1

        libc.so.1 => /usr/lib/libc.so.1

        libdl.so.1 => /usr/lib/libdl.so.1

        /usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1

#

I found on archives a summary from someone who had the same problem and
solved by copying the mkdir binary from another system, but in my case the
problem appeared out of the blue, no patching occurred since the moment was
working and the moment was not.

What can be ?

 

# truss -f -wall -rall /usr/bin/mkdir xx

23187: execve("/usr/bin/mkdir", 0xFFBEFD94, 0xFFBEFDA0) argc = 2

23187: mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000

23187: resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16

23187: open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT

23187: open("/usr/lib/libgen.so.1", O_RDONLY) = 3

23187: fstat(3, 0xFFBEF4CC) = 0

23187: mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF390000

23187: mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF370000

23187: mmap(0xFF386000, 2335, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 24576) = 0xFF386000

23187: munmap(0xFF376000, 65536) = 0

23187: memcntl(0xFF370000, 6932, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0

23187: close(3) = 0

23187: open("/usr/lib/libc.so.1", O_RDONLY) = 3

23187: fstat(3, 0xFFBEF4CC) = 0

23187: mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
3, 0) = 0xFF390000

23187: mmap(0x00000000, 794624, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF280000

23187: mmap(0xFF33A000, 24668, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 696320) = 0xFF33A000

23187: munmap(0xFF32A000, 65536) = 0

23187: memcntl(0xFF280000, 113332, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0

23187: close(3) = 0

23187: open("/usr/lib/libdl.so.1", O_RDONLY) = 3

23187: fstat(3, 0xFFBEF4CC) = 0

23187: mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
3, 0) = 0xFF390000

23187: close(3) = 0

23187: open("/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1",
O_RDONLY) = 3

23187: fstat(3, 0xFFBEF35C) = 0

23187: mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF360000

23187: mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF350000

23187: close(3) = 0

23187: munmap(0xFF360000, 8192) = 0

23187: brk(0x000245B8) = 0

23187: brk(0x000265B8) = 0

23187: umask(0) = 027

23187: umask(027) = 0

23187: mkdir("xx", 0777) Err#22 EINVAL

mkdir: 23187: write(2, " m k d i r : ", 7) = 7

Failed to make directory "23187: write(2, 0x00011D9C, 26)
= 26

23187: F a i l e d t o m a k e d i r e c t o r y "

xx23187: write(2, " x x", 2) = 2

"; 23187: write(2, " " ; ", 3) = 3

Invalid argument23187: write(2, 0xFF3232C1, 16) = 16

23187: I n v a l i d a r g u m e n t

 

23187: write(2, "\n", 1) = 1

23187: llseek(0, 0, SEEK_CUR) = 17857

23187: _exit(2)

 

 

Met vriendelijke groeten / Kind regards,

Orange Nederland N.V.

 

George Done

Unix System Administrator

 

Tel: +31(0)628026216

Fax: +31(0)648997173

E-mail: <mailto:george.done@orangemail.nl> george.done@orangemail.nl

 

 

===========================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen
bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt,
wordt u verzocht de inhoud niet te gebruiken en de afzender direct te
informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft
genomen om virussen in deze email of attachments te voorkomen, dient u ook
zelf na te gaan of virussen aanwezig zijn aangezien Orange niet
aansprakelijk is voor computervirussen die veroorzaakt zijn door deze
email..

The information contained in this message may be confidential and is
intended to be only for the addressee. Should you receive this message
unintentionally, please do not use the contents herein and notify the sender
immediately by return e-mail. Although Orange has taken steps to ensure that
this email and attachments are free from any virus, you do need to verify
the possibility of their existence as Orange can take no responsibility for
any computer virus which might be transferred by way of this email.
===========================================================
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:43 EDT