kernel: HAMMER: WARNING: Missing inode for dirent

Matthew Dillon dillon at apollo.backplane.com
Tue Jul 21 09:43:22 PDT 2009


:I have these messages on the console.
:Why is this? Is this related with mirroring?
:Are they serious??
:
:Thanks
:
:Siju

    Were you accessing a snapshot or the live filesystem at the time of
    the warning?

    The snapshots have an occassional issue in that the snapshot can be
    taken inbetween the creation of an inode and the related directory
    entry.  From the snapshot's point of view the directory entry exists
    but the inode does not.

    The simplest solution to this issue to do a few 'sync' commands with
    sleeps before taking a snapshot.  I've been trying to fix it in the
    HAMMER utility itself but I really need to fix it in the snapshot ioctl
    code.

    --

    Another possible issue is if you were to prune out a snapshot but
    continue to try to access it.  If you do a hammer prune-everything it
    wipes the snapshots but doesn't rm the snapshot softlinks (a deficiency
    in the hammer utility).

    Finally, accessing the snapshots directory on the slave that was
    mirrored from the master can create a little confusion.  The HAMMER
    utility does not set up a snapshots directory for the slave because
    it doesn't really know where to put the directory.  The slave is a
    mirror but pruning operations done on the master are not reflected
    on the slave.  Actually this is a problem.  I should probably set
    the snapshots directory on the slave the same as on the master so
    when snapshots are pruned from the master they also get pruned on
    the slave.  You might have to set up a snapshots directory for
    the slave, and you would do so by creating the directory on a live
    filesystem somewhere other then on the slave (which is read-only
    because its a slave).  Using hammer pfs-update.  The snapshots on
    the slave can be managed independantly of the snapshots on the master.

    These are all things that the utility does not address well and so can
    be a bit confusing to the user.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>

:Jul 21 17:06:46 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
:dirent "Repository"
:Jul 21 17:06:46 dfly-bkpsrv kernel: obj_id = 0000000100b3b22e
:Jul 21 17:06:48 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
:dirent "Root"
:Jul 21 17:06:48 dfly-bkpsrv kernel: obj_id = 0000000100c4376a
:Jul 21 17:06:49 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
:dirent "CVS"
:Jul 21 17:06:49 dfly-bkpsrv kernel: obj_id = 000000010163e8af
:Jul 21 17:06:49 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
:dirent "Repository"
:...






More information about the Users mailing list