On Sat, Apr 24, 2010 at 11:16 PM, Matthew Dillon <dil...@apollo.backplane.com> wrote: > So, here's an example. Lets say you have: > > /samba_export Your samba export hierarchy > /hammer Your hammer filesystem > /hammer/pfs/blah Some PFS in the hammer filesystem > > And now lets asy you want to make snapshots from PFS(s) in the hammer > filesystem available to the export. This would work: > > mkdir /samba_export/fubar > mount_null /hammer/pfs /samba_export/fubar >
If I do this then all the pfses under /hammer/pfs will be exported using samba I guess you meant mount_null /hammer/pfs/blah /samba_export/fubar ? That is what I did for the Master pfs /Backup1 - Hammer File System /Backup1/www-5mbak - Samba export Directory and mount /Backup1/pfs/www-hot /Backup1/www-5mbak/www-hot null rw 0 0 But the problem is that a slave PFs cannot be mounted. So My problem is what I do with the slave PFS :-( > > You may have other issues... tracking the snapshots could present > a problem since hammer cleanup only allows one snapshot directory > to be specified. So you might have to come up with a little script > to maintain a second set of snapsoft softlinks with the proper samba > path which mirrors the master set which hammer cleanup maintains. > Otherwise you will wind up with a lot of stale snapshot softlinks. > > I Initially planned to take the 5 mins snapshots on the Master andDaily snapshots on the slave. So I can export by Samba 2 shares. One having the links to the 5 mins backup( for 2 days ) and other having the links to the Daily backup ( 2000 days or old ) All I need is to figure out how to remove the 5mins snapshots that gets mirrored on the slave older than two days with out removing the daily snapshots. But I am a bit confused now since I dont see snapshots actually removed after a hammer cleanup. I will send the details with a new subject thanks --Siju