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

Re: Able to access a snapshot removed using hammer cleanup using an old snapshot softlink on unmounted slave pfs


From: Siju George <sgeorge.ml@xxxxxxxxx>
Date: Fri, 23 Apr 2010 17:06:53 +0530

Hi,

I tried updating prune-min=0 but still the snapshot remains!

dfly-bkpsrv# hammer pfs-status /Backup2/www-5mbak/www-hot/
/Backup2/www-5mbak/www-hot/     PFS #4 {
    sync-beg-tid=0x0000000000000001
    sync-end-tid=0x00000001d3b64750
    shared-uuid=c0a2f130-4c66-11df-999d-011617202aa6
    unique-uuid=9d75ad72-4eb5-11df-90f3-011617202aa6
    slave
    label=""
    snapshots="/Backup2/pfs/www-5mbak"
    prune-min=00:00:00
    operating as a SLAVE
}
dfly-bkpsrv# hammer config /Backup2/www-5mbak/www-hot/
snapshots 0d 0d
prune     1m 5m
rebalance 1d 5m
reblock   1d 5m
recopy    3d 10m
dfly-bkpsrv# hammer cleanup /Backup2/www-5mbak/www-hot/
cleanup /Backup2/www-5mbak/www-hot/ - handle PFS #4 using /Backup2/pfs/www-5mbak
           snapshots - disabled
               prune - run
           rebalance - skip
             reblock - skip
              recopy - skip
dfly-bkpsrv# hammer snapls /Backup2/www-5mbak/www-hot/
Snapshots on (null)     PFS #4
Transaction ID          Timestamp               Note
dfly-bkpsrv# ls -l /Backup2/www-5mbak/snap-20100423-1600
lrwxr-xr-x  1 root  wheel  48 Apr 23 16:00
/Backup2/www-5mbak/snap-20100423-1600 ->
/Backup2/www-5mbak/www-hot//@@0x00000001d1b81290
dfly-bkpsrv# cd /Backup2/www-5mbak/snap-20100423-1600
dfly-bkpsrv# pwd
/Backup2/pfs/www-5mbak/@@0x00000001d3b647f0:00004/@@0x00000001d1b81290
dfly-bkpsrv# ls
2.0
dfly-bkpsrv# cd 2.0/
dfly-bkpsrv# pwd
/Backup2/pfs/www-5mbak/@@0x00000001d3b647f0:00004/@@0x00000001d1b81290/2.0
dfly-bkpsrv#

Thanks

--Siju

Previous mail below since Matt's dmail doesnot support threading :-)

thanks

Siju

On Fri, Apr 23, 2010 at 4:32 PM, Siju George <sgeorge.ml@gmail.com> wrote:
> Hi,
>
> I am able to access a snapshot removed
>
> dfly-bkpsrv# date
> Fri Apr 23 16:14:31 IST 2010
> dfly-bkpsrv# ls -l /Backup2/www-5mbak/www-hot
> lrwxr-xr-x  1 root  wheel  31 Apr 23 14:28 /Backup2/www-5mbak/www-hot
> -> /Backup2/pfs/www-5mbak/www-hot/
> dfly-bkpsrv# hammer snapls /Backup2/www-5mbak/www-hot/
> Snapshots on (null)     PFS #4
> Transaction ID          Timestamp               Note
> dfly-bkpsrv# ls -l /Backup2/www-5mbak/snap-20100423-1600
> lrwxr-xr-x  1 root  wheel  48 Apr 23 16:00
> /Backup2/www-5mbak/snap-20100423-1600 ->
> /Backup2/www-5mbak/www-hot//@@0x00000001d1b81290
> dfly-bkpsrv# cd /Backup2/www-5mbak/snap-20100423-1600
> dfly-bkpsrv# ls
> 2.0
> dfly-bkpsrv# pwd
> /Backup2/pfs/www-5mbak/@@0x00000001d3b63b50:00004/@@0x00000001d1b81290
> dfly-bkpsrv# cd 2.0
> dfly-bkpsrv# pwd
> /Backup2/pfs/www-5mbak/@@0x00000001d3b63b50:00004/@@0x00000001d1b81290/2.0
> dfly-bkpsrv# date
> Fri Apr 23 16:16:37 IST 2010
> dfly-bkpsrv#
>
> Why is this possible?
>
> thanks
>
> -Siju
>




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