HAMMER2 snapshots and other help
George
g.lister at nodeunit.com
Wed Mar 6 04:08:51 PST 2019
Hi Daniel,
On Wed, 6 Mar 2019 08:57:35 +0100
Daniel Bilik <ddb at neosystem.org> wrote:
> Hi, George.
>
> On Tue, 5 Mar 2019 21:16:50 -0500
> George <g.lister at nodeunit.com> wrote:
>
> > I am currently struggling to figure out how to make and use
> > snapshots. I saw the command:
> > hammer2 snapshot /home/mydir /snaps/mydir.s01
> > which I thought would create a snapshot under /snaps/mydir.01 but
> > that's not what happens...
>
> No, first parameter to "snapshot" command is a path to filesystem you
> want to snapshot, but second parameter is just a label you want to
> assign it. See hammer2(8) for details.
>
> So you create a snapshot for example like this:
>
> hammer2 snapshot /home/mydir mydir_test_snapshot
>
> > how does one view the contents of a snapshot? How can I list them?
>
> Find a snapshot of your interest with "hammer2 pfs-list" and then just
> mount it somewhere using the label:
>
> mount_hammer2 <hammer2-block-device>@<label> /somewhere
So the block device is the one for the original PFS I created the
snapshot from, say I have my disk at /dev/serno/GFSA.s1a I would just
add the snapshot with the above syntax and mount it anywhere in the
tree:
mount_hammer2 /dev/serno/GFSA.s1a@<label> /snap01_usr_lib
Will give it a shot.
Thanks very much!
George
>
> --
> Daniel Bilik
More information about the Users
mailing list