Finding the space used by a PFS including snapshots
Zachary Crownover
zachary.crownover at gmail.com
Mon Apr 28 21:10:28 PDT 2014
Assuming you have a standard setup,
/var/hammer/$mountpoint/snap-YYYYMMDD-#### is the location of the
snapshots. I don't know what the last four numbers are or mean for sure,
but I assume it's HHMM. Either way, take whatever mount point, look for the
snapshots in that directory, and du -sh it, that will provide you your
answer. I don't know of a shorter way, but I suppose you could script
something that iterates through directories in /var/hammer and then for a
specific snapshot date and the takes a cumulative value of du from those
items.
On Mon, Apr 28, 2014 at 7:24 PM, Pierre Abbat <phma at leaf.dragonflybsd.org>wrote:
> On Monday, April 28, 2014 12:30:19 tuxillo at quantumachine.net wrote:
> > On 2014-04-28 07:00, Siju George wrote:
> > > Hi,
> > >
> > > Is there any way to find the space used by a PFS including snapshots
> > >
> > > Thanks
> > >
> > > Siju
> >
> > Siju,
> >
> > Unfortunately there isn't a way that I know of to do this.
> > I guess you'd have to play around with du.
>
> I think that would be a good feature to add (hammer df). du wouldn't give
> you
> an accurate count because multiple snapshots could point to the same inode,
> and there is some history that is taking up space, but is not linked
> anywhere
> because it is today's history and no snapshot has been made.
>
> Pierre
> --
> .i toljundi do .ibabo mi'afra tu'a do
> .ibabo damba do .ibabo do jinga
> .icu'u la ma'atman.
>
>
--
Sincerely,
Zachary Crownover
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20140428/a582caf6/attachment-0003.htm>
More information about the Users
mailing list