Re: mkdir error message -- what does this mean?

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Fri, 30 Sep 2022 21:47:12 UTC
On Fri, Sep 30, 2022 at 02:35:14PM -0400, Aryeh Friedman wrote:
 > What does the following mean?
 >
 > dnixon@sft:/tmp % sudo mkdir
 > /fsvc/clients/specMed/LIVE/master/h11a9fpp-mkknhbci-2hjvbpc
 > mkdir: /fsvc/clients/specMed/LIVE/master/h11a9fpp-mkknhbci-2hjvbpc:
 > Too many links


On 9/30/22 11:48, Paul Procacci wrote:
 >       31 EMLINK Too many links. Maximum allowable hard links to a
 >               single file has been exceeded (limit of 32767 hard links
 >               per file).


On 9/30/22 13:28, David Christensen wrote:
 > What file or command contains or produced the above?


On 9/30/22 13:59, Paul Procacci wrote:
> man errno


Thank you.


On Fri, Sep 30, 2022 at 4:19 PM David Christensen wrote:

 > Why '%' in the shell prompt?


On 9/30/22 13:41, Aryeh Friedman wrote:
 > Cut and paste error see below for full prompt ;-)

 > dnixon@sft:~ % echo $SHELL
 > /bin/tcsh

 > dnixon@sft:~ % sudo echo $SHELL
 > /bin/tcsh


Okay -- you and root both use tcsh(1).


 > dnixon@sft:~ % alias sudo
 > dnixon@sft:~ % type -t sudo
 > sudo is /usr/local/bin/sudo
 > -t: not found
 > dnixon@sft:~ %  which sudo
 > /usr/local/bin/sudo


Okay -- sudo(8) looks good.


 > dnixon@sft:~ %  sudo alias mkdir
 > alias: mkdir: not found
 > dnixon@sft:~ %  sudo type -t mkdir
 > mkdir is /bin/mkdir
 > -t: not found
 > dnixon@sft:~ % sudo which mkdir
 > /bin/mkdir


Okay -- mkdir(1) looks good.


 > dnixon@sft:~ %  mount | egrep "fsvc|clients|specMed|LIVE|master"


Okay -- the directory /fsvc/clients/specMed/LIVE/master is on the root 
filesystem.


 > dnixon@sft:~ % df -k
 > Filesystem  1024-blocks      Used     Avail Capacity  Mounted on
 > /dev/da0s1a   690629108 402119372 233259408    63%    /
 > devfs                 1         1         0   100%    /dev
 > /dev/da2p1     16233620    672392  14262540     5%    /db
 > fdescfs               1         1         0   100%    /dev/fd
 > procfs                4         4         0   100%    /proc
 > dnixon@sft:~ %


Okay -- the root filesystem is not full.


I think Paul found the problem -- the directory 
/fsvc/clients/specMed/LIVE/master is full.  Try these commands:

% ls -ld /fsvc

% ls -ld /fsvc/clients

% ls -ld /fsvc/clients/specMed

% ls -ld /fsvc/clients/specMed/LIVE

% ls -ld /fsvc/clients/specMed/LIVE/master


David