Hammer clean up doesn't actually remove snapshots?
Siju George
sgeorge.ml at gmail.com
Mon Apr 26 01:26:03 PDT 2010
Hi,
I am a bit confused here.
I thought this happened only on my slave pfs.
But I tested it on my Master pfs as well.
I had 3 days worth of 5 mins snapshots on my pfs.
I ran
dfly-bkpsrv# pwd
/Backup1/www-5mbak
dfly-bkpsrv# hammer config /Backup1/www-5mbak/www-hot
snapshots 0d 2d
prune 1d 5m
rebalance 1d 5m
reblock 1d 5m
recopy 1d 1h
dfly-bkpsrv# hammer cleanup /Backup1/www-5mbak/www-hot
cleanup /Backup1/www-5mbak/www-hot - handle PFS #5 using
/var/hammer/Backup1/www-5mbak/www-hot
snapshots - only removing old snapshots
prune - skip
rebalance - skip
reblock - skip
recopy - run..^Cdfly-bkpsrv#
Pruning didn't take place this time because I ran hammer cleanup in the morning.
Now the snapshots that remain according to snapls are
dfly-bkpsrv# hammer snapls /Backup1/www-5mbak/www-hot
Snapshots on /Backup1/www-5mbak/www-hot PFS #5
Transaction ID Timestamp Note
0x00000001d45fe0f0 2010-04-26 09:01:06 IST -
0x00000001d5b79500 2010-04-26 09:05:21 IST -
0x00000001d5db1c40 2010-04-26 11:45:36 IST -
0x00000001d5dc1e40 2010-04-26 11:50:08 IST -
0x00000001d5dc9fd0 2010-04-26 11:55:19 IST -
dfly-bkpsrv#
but if I access the removed snapshots with their old softlinks I still
get them :-(
dfly-bkpsrv# ls -l snap-20100421-11*
lrwxr-xr-x 1 root wheel 47 Apr 21 11:03 snap-20100421-1103 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb1fad0
lrwxr-xr-x 1 root wheel 47 Apr 21 11:10 snap-20100421-1110 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb1fcb0
lrwxr-xr-x 1 root wheel 47 Apr 21 11:15 snap-20100421-1115 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb1fe70
lrwxr-xr-x 1 root wheel 47 Apr 21 11:20 snap-20100421-1120 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb1ff70
lrwxr-xr-x 1 root wheel 47 Apr 21 11:25 snap-20100421-1125 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20070
lrwxr-xr-x 1 root wheel 47 Apr 21 11:30 snap-20100421-1130 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20170
lrwxr-xr-x 1 root wheel 47 Apr 21 11:35 snap-20100421-1135 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20270
lrwxr-xr-x 1 root wheel 47 Apr 21 11:40 snap-20100421-1140 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20370
lrwxr-xr-x 1 root wheel 47 Apr 21 11:45 snap-20100421-1145 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20470
lrwxr-xr-x 1 root wheel 47 Apr 21 11:50 snap-20100421-1150 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20570
lrwxr-xr-x 1 root wheel 47 Apr 21 11:55 snap-20100421-1155 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20690
You have new mail.
dfly-bkpsrv# cd snap-20100421-1103
dfly-bkpsrv# pwd
/Backup1/www-5mbak/www-hot/@@0x00000001cfb1fad0
dfly-bkpsrv# ls
2.0
dfly-bkpsrv# cd 2.0/
dfly-bkpsrv# pwd
/Backup1/www-5mbak/www-hot/@@0x00000001cfb1fad0/2.0
dfly-bkpsrv# cd ../../../snap-20100421-1155
dfly-bkpsrv# pwd
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20690
dfly-bkpsrv# ls
2.0
dfly-bkpsrv# cd 2.0/
dfly-bkpsrv# pwd
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20690/2.0
dfly-bkpsrv#
Now I just entered the next synctid of a snapshot simply.
dfly-bkpsrv# pwd
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20691
dfly-bkpsrv# ls
2.0
dfly-bkpsrv# cd 2.0/
dfly-bkpsrv# pwd
/Backup1/www-5mbak/www-hot/@@0x00000001cfb20691/2.0
dfly-bkpsrv#
I could access it also just like I access a snapshot.
But the next snapshot is actually
dfly-bkpsrv# cd /Backup1/www-5mbak/
dfly-bkpsrv# ls -l snap-20100421-1200
lrwxr-xr-x 1 root wheel 47 Apr 21 12:00 snap-20100421-1200 ->
/Backup1/www-5mbak/www-hot/@@0x00000001cfb207b0
So does it mean pruning also didn't work?
I am just confused please somebody help and clarify :-)
Thanks
--Siju
More information about the Users
mailing list