DragonFly BSD
DragonFly users List (threaded) for 2010-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

snapshots 0d 0d but cleanup does not prune everything on pfs - neither does 'prune-everything'


From: Siju George <sgeorge.ml@xxxxxxxxx>
Date: Tue, 18 May 2010 14:15:19 +0530

Hi,

The man page says

" If the snapshots directive has a period of 0 and a retention time
  of 0 then snapshot generation is disabled, removal of old snap-
  shots are disabled, and prunes will use prune-everything."

This is what i observer so far but today I just observer this

 > hammer pfs-status /home/sgeorge
/home/sgeorge   PFS #8 {
    sync-beg-tid=0x0000000000000001
    sync-end-tid=0x0000000109b12860
    shared-uuid=16d09899-6173-11df-a5b3-01138fad54f5
    unique-uuid=16d098c0-6173-11df-a5b3-01138fad54f5
    label=""
    prune-min=00:00:00
    operating as a MASTER
    snapshots directory defaults to /var/hammer/<pfs>
}
> hammer config /home/sgeorge
# No configuration present, here are some defaults
# you can uncomment.  Also remove these instructions
#
snapshots 0d 0d
prune     1m 5m
rebalance 1d 5m
reblock   1d 5m
recopy    30d 10m
> date
Tue May 18 08:37:25 IST 2010
> uname -a
DragonFly dfly-x86.hifxnx.local 2.7-DEVELOPMENT DragonFly
v2.7.3.42.gc0a279-DEVELOPMENT #22: Mon May 17 03:34:43 UTC 2010
root@avalon.theshell.com:/usr/obj/usr/src/sys/GENERIC  i386
> sudo hammer cleanup /home/sgeorge
cleanup /home/sgeorge        - handle PFS #8 using /var/hammer/home/sgeorge
           snapshots - disabled
               prune - run
           rebalance - skip
             reblock - skip
              recopy - skip
> undo -i /home/sgeorge
/home/sgeorge: ITERATE ENTIRE HISTORY
        0x000000010522d7b0 17-May-2010 11:04:21 file-deleted
        0x0000000105a17220 17-May-2010 11:40:37
        0x000000010727b1a0 17-May-2010 11:52:31
        0x000000010727b1c0 17-May-2010 11:52:31
        0x0000000107771c20 18-May-2010 04:55:35
        0x0000000107994610 18-May-2010 05:23:18
        0x0000000109a333d0 18-May-2010 07:32:39
>
> sudo hammer prune-everything /home/sgeorge
Prune /home/sgeorge/: EVERYTHING
Prune /home/sgeorge/: objspace 8000000000000000:0000
7fffffffffffffff:ffff pfs_id 8
Prune /home/sgeorge/: prune_min is 0d/00:00:00
Prune /home/sgeorge/ succeeded
Pruned 100/12544 records (29 directory entries) and 0 bytes
> undo -i /home/sgeorge
/home/sgeorge: ITERATE ENTIRE HISTORY
        0x000000010522d7b0 17-May-2010 11:04:21 file-deleted
        0x0000000105a17220 17-May-2010 11:40:37
        0x000000010727b1a0 17-May-2010 11:52:31
        0x000000010727b1c0 17-May-2010 11:52:31
        0x0000000107771c20 18-May-2010 04:55:35
        0x0000000107994610 18-May-2010 05:23:18
        0x0000000109a333d0 18-May-2010 07:32:39

Why is this?

Thanks :-)

--Siju



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]