[Gllug] Which files link to an inode?

Simon Morris simon.morris at penguinit.com
Wed Apr 23 13:52:41 UTC 2003


Rich and Tethys,

I'll reply to the last few posts in one shot:

<Rich>
>Oh dear. Corrupt nlinks field. Take the disk offline & run fsck!

The filesystem is XFS. I ran fsck a while ago, and it told me it wouldn't
need it because it is using XFS!! There are some utilities: xfs_check etc,
but running these didn't appear to help much. It certainly didn't repair
anything.

<Tethys>
>Somewhere that isn't below /psd1, by the looks of it. Is a separate
>filesystem mounted on /psd1, or is it part of the root fs? If it's
>the latter (and the evidence presented so far impies it is), then
>you need to run......

/psd1 is a mount point for a physical disk set (see below)

server 29# mount

/dev/root on / type xfs (rw)
/hw on /hw type hwgfs (rw)
/proc on /proc type proc (rw)
/dev/fd on /dev/fd type fd (rw)
/dev/dsk/dks0d5s7 on /disks/disk5/ type xfs (rw)
/dev/dsk/dks0d6s7 on /disks/disk6 type xfs (rw,raw=/dev/dsk/dks0d6s7)
/dev/xlv/xlv0 on /psd3/ type xfs (rw)
/dev/dsk/dks2d1s7 on /psd1 type xfs (rw,raw=/dev/rdsk/dks2d2s7)
/dev/dsk/dks2d0s7 on /psd type xfs (rw,raw=/dev/rdsk/dks2d0s7)

<Tethys>
>Ahhh. I hadn't spotted that it was a directory. If you check, you'll
>probably find you have subdirectories under BAT.2723.1. Remember,
>each directory has a ".." which is a link to the parent directory:
>
>        cd /psd1
>        ls -ldi BAT.2723.1 BAT.2723.1/*/..
>
>They don't show up because find ignores . and ..

[Simon scratches head] Hmm. I understand the concept... are you saying the
offending inode belongs to a file somewhere inside BAT.2723.1/ ? If so it
might take a while to find the problem!!!

Here is the output of the command you suggested.

server 30# pwd
/psd1/server/archive

server 31# ls -ldi BAT.2723.1 BAT.2723.1/*/..
352655799 drwxrwxrwx    5 root     sys           78 Apr 15 15:47 BAT.2723.1
352655799 drwxrwxrwx    5 root     sys           78 Apr 15 15:47
BAT.2723.1/graphics/..
352655799 drwxrwxrwx    5 root     sys           78 Apr 15 15:47
BAT.2723.1/incoming/..
352655799 drwxrwxrwx    5 root     sys           78 Apr 15 15:47
BAT.2723.1/media/..

server 32#
<sorry the output is a little mangled there>

Cheers
-- 
Simon Morris
simon.morris at penguinit.com


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list