kernel: HAMMER: WARNING: Missing inode for dirent

2009-07-21 Thread Siju George
I have these messages on the console.
Why is this? Is this related with mirroring?
Are they serious??

Thanks

Siju

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 = 000100b3b22e
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 = 000100c4376a
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 = 00010163e8af
Jul 21 17:06:49 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Repository"
Jul 21 17:06:49 dfly-bkpsrv kernel: obj_id = 00010090273f
Jul 21 17:06:49 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "nsBMPDecoder.h"
Jul 21 17:06:49 dfly-bkpsrv kernel: obj_id = 000100fe46e5
Jul 21 17:06:50 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "key0"
Jul 21 17:06:50 dfly-bkpsrv kernel: obj_id = 00010142de73
Jul 21 17:06:50 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Root"
Jul 21 17:06:50 dfly-bkpsrv kernel: obj_id = 00010160e800
Jul 21 17:06:51 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "content"
Jul 21 17:06:51 dfly-bkpsrv kernel: obj_id = 00010199f400
Jul 21 17:06:51 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "CVS"
Jul 21 17:06:51 dfly-bkpsrv kernel: obj_id = 000100f2c0ba
Jul 21 17:06:51 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Root"
Jul 21 17:06:51 dfly-bkpsrv kernel: obj_id = 0001015d6a3f
Jul 21 17:06:51 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Repository"
Jul 21 17:06:51 dfly-bkpsrv kernel: obj_id = 0001029f9d8c
Jul 21 17:06:51 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Makefile.PL"
Jul 21 17:06:51 dfly-bkpsrv kernel: obj_id = 000101ff0889
Jul 21 17:06:52 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Repository"
Jul 21 17:06:52 dfly-bkpsrv kernel: obj_id = 000102150f2c
Jul 21 17:06:52 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Entries"
Jul 21 17:06:52 dfly-bkpsrv kernel: obj_id = 00010247f7aa
Jul 21 17:06:54 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "Makefile"
Jul 21 17:06:54 dfly-bkpsrv kernel: obj_id = 00010184700f
Jul 21 17:06:55 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "pkg"
Jul 21 17:06:55 dfly-bkpsrv kernel: obj_id = 000101a67400
Jul 21 17:06:55 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "distinfo"
Jul 21 17:06:55 dfly-bkpsrv kernel: obj_id = 000102366e51
Jul 21 17:06:55 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "pkg"
Jul 21 17:06:55 dfly-bkpsrv kernel: obj_id = 000101aaf400
Jul 21 17:06:55 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "List9.prt"
Jul 21 17:06:55 dfly-bkpsrv kernel: obj_id = 000100329400
Jul 21 17:06:55 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
dirent "BBoardDia.dat"
Jul 21 17:06:55 dfly-bkpsrv kernel: obj_id = 0001014ce000


Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-21 Thread Siju George
On Thu, Jun 25, 2009 at 8:55 PM, Matthew
Dillon wrote:
>
>    mirror-stream only exits if the connection is lost so it is still a
>    good idea to check-start it with cron.  I usually use lockf for that
>    and a simple script.  Also make sure it isn't being verbose when run
>    from cron or poor cron will be collecting a very large temporary mail
>    file.
>
>    10 1 * * *      (cd ~/adm; /usr/bin/lockf -k -t 0 .lockmirror ./do_mirror 
> 1)
>

After reading the man page for 'lockf' I did not get how to implement
it actually. Are '.lockmirror'  and 'do_mirror' scripts? If so Please
can I get to see them?

thanks

--Siju


Re: kernel: HAMMER: WARNING: Missing inode for dirent

2009-07-21 Thread Matthew Dillon

: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 


: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 = 000100b3b22e
: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 = 000100c4376a
: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 = 00010163e8af
:Jul 21 17:06:49 dfly-bkpsrv kernel: HAMMER: WARNING: Missing inode for
:dirent "Repository"
:...



Re: dragonfly- UFS + HAMMER + mirroring setup designed instead of RAID - Is this OK?

2009-07-21 Thread Matthew Dillon
:After reading the man page for 'lockf' I did not get how to implement
:it actually. Are '.lockmirror'  and 'do_mirror' scripts? If so Please
:can I get to see them?
:
:thanks
:
:--Siju

lockf gets an exclusive lock on the specified lock file and runs
the specified program while holding the lock.  So if you run lockf
wieth the same lock file 50 times in parallel, the programs you run
via that lockf are run sequentially, one at a time, and not in parallel.

I use -k because there's no point deleting the lock file, and I use
-t 0 to cause lockf to abort (exit) if the lock cannot immediately
be acquired, to avoid building up lockf commands from cron if something
takes extra long to run (or in the case of a mirror-stream, that the
previous mirror-stream is still running).

.lockmirror is just the lock file created by lockf.  It's empty.  It
is only used for locking.

My little do_mirror script does my batch mirroring operation... my
cpdup/rdist/whatever.  That is the script that my lockf command runs
while holding the lock on the lock file.

-Matt
Matthew Dillon 



Grub boot-loading HAMMER

2009-07-21 Thread rektide
Hello,

I'm trying to use Grub to dual boot into DragonflyBSD running on a
HAMMER slice.  The install wouldnt let me install boot blocks onto
ad0s3 where my HAMMER lives, so I logged in as root from the LiveCD
and boot0cfg -B ad0s3'd: I'm not sure if this was necessary or
advisable.  I'm also not sure if this utility is what the installer
would have used to install boot blocks, or whether Dragonfly has a
different utility.  The installer also didnt change the FS type of the
partition: its still listed as FAT16, even though it was formatted
over.

After these install procedures, I tried using grub to load the slice.
I tried chainloader'ing it, as well as specifying a kernel
/boot/loader.  The first gave me an Error 13: invalid or unsupported
execution format" and the second an Error 17: unable to mount
partition error.

Does anyone have suggestions for getting Grub to dual-boot a HAMMER
DragonflyBSD?  If this is hopeless, what can I do to place the
absolute minimum amount of code on a bootable non-HAMMER area, and the
dominant part of DBSD in Hammer?

I'll be on IRC.  Ping rektide.  Or respond here.  Thank you for your time.


Re: Grub boot-loading HAMMER

2009-07-21 Thread Simon 'corecode' Schubert

rektide wrote:

After these install procedures, I tried using grub to load the slice.
I tried chainloader'ing it, as well as specifying a kernel
/boot/loader.  The first gave me an Error 13: invalid or unsupported
execution format" and the second an Error 17: unable to mount
partition error.

Does anyone have suggestions for getting Grub to dual-boot a HAMMER
DragonflyBSD?  If this is hopeless, what can I do to place the
absolute minimum amount of code on a bootable non-HAMMER area, and the
dominant part of DBSD in Hammer?


Hopeless.  You'll at least need a /boot UFS partition.  Also you'll 
probably have to modify grub to read DragonFly disklabels (although I 
have a setup here booting with grub, so I don't know how I managed that 
:).  Oh yes, you'd need a disklabel32, not a disklabel64 to have the 
slightest chance of making grub work.


Or try a /boot in ext2, then also grub should be able to read it :D

Alternatively you could try using a chainloader in grub.

cheers
  simon

--
  <3 the future  +++  RENT this banner advert  +++   ASCII Ribbon   /"\
  rock the past  +++  space for low CHF NOW!1  +++ Campaign \ /
Party Enjoy Relax   |   http://dragonflybsd.org  Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz   Mail + News   / \