Skip to content

Instantly share code, notes, and snippets.

@major0
Created April 14, 2017 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major0/48caeae9896ac5682f42b756cdc9530a to your computer and use it in GitHub Desktop.
Save major0/48caeae9896ac5682f42b756cdc9530a to your computer and use it in GitHub Desktop.
Glusterfs snapshots on ZFS
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: volume create: testvol: success: please start the volume to access data
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: volume start: testvol: success
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: snapshot create: success: Snap testsnap_GMT-2017.04.14-21.13.38 created successfully
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Snapshot activate: testsnap_GMT-2017.04.14-21.13.38: Snap activated successfully
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: snapshot clone: success: Clone testclone created successfully
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: volume start: testclone: success
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Status of volume: testvol
==> gluster-zfs: ------------------------------------------------------------------------------
==> gluster-zfs: Brick : Brick gluster-zfs:/gluster/testvol/brick
==> gluster-zfs: TCP Port : 49152
==> gluster-zfs: RDMA Port : 0
==> gluster-zfs: Online : Y
==> gluster-zfs: Pid : 12426
==> gluster-zfs: File System : zfs
==> gluster-zfs: Device : gluster/testvol
==> gluster-zfs: Mount Options : rw,relatime,xattr,noacl
==> gluster-zfs: Inode Size : N/A
==> gluster-zfs: Disk Space Free : 9.6GB
==> gluster-zfs: Total Disk Space : 9.6GB
==> gluster-zfs: Inode Count : 20188832
==> gluster-zfs: Free Inodes : 20188804
==> gluster-zfs:
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Status of volume: testclone
==> gluster-zfs: ------------------------------------------------------------------------------
==> gluster-zfs: Brick : Brick gluster-zfs:/run/gluster/snaps/272340c8d452464db5968890c178d01a/brick1/brick
==> gluster-zfs: TCP Port : 49154
==> gluster-zfs: RDMA Port : 0
==> gluster-zfs: Online : Y
==> gluster-zfs: Pid : 12632
==> gluster-zfs: File System : zfs
==> gluster-zfs: Device : gluster/testvol/35fb90ae594a4ff99ac10637b2222e5c_0/272340c8d452464db5968890c178d01a_0
==> gluster-zfs: Mount Options : rw,relatime,xattr,noacl
==> gluster-zfs: Inode Size : N/A
==> gluster-zfs: Disk Space Free : 9.6GB
==> gluster-zfs: Total Disk Space : 9.6GB
==> gluster-zfs: Inode Count : 20188832
==> gluster-zfs: Free Inodes : 20188804
==> gluster-zfs:
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: Snapshot : testsnap_GMT-2017.04.14-21.13.38
==> gluster-zfs: Snap UUID : 669d7aca-b48c-4bff-9651-357bb2ac87a0
==> gluster-zfs: Created : 2017-04-14 21:13:38
==> gluster-zfs: Snap Volumes:
==> gluster-zfs:
==> gluster-zfs: Snap Volume Name : 35fb90ae594a4ff99ac10637b2222e5c
==> gluster-zfs: Origin Volume name : testvol
==> gluster-zfs: Snaps taken for testvol : 1
==> gluster-zfs: Snaps available for testvol : 255
==> gluster-zfs: Status : Started
==> gluster-zfs:
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs:
==> gluster-zfs: Snap Name : testsnap_GMT-2017.04.14-21.13.38
==> gluster-zfs: Snap UUID : 669d7aca-b48c-4bff-9651-357bb2ac87a0
==> gluster-zfs:
==> gluster-zfs: Brick Path : gluster-zfs:/run/gluster/snaps/35fb90ae594a4ff99ac10637b2222e5c/brick1/brick
==> gluster-zfs: Volume Group : gluster/testvol@35fb90ae594a4ff99ac10637b2222e5c_0
==> gluster-zfs: Brick Running : Yes
==> gluster-zfs: Brick PID : 12540
==> gluster-zfs: Data Percentage : N/A
==> gluster-zfs: LV Size : 12K
==> gluster-zfs: Running provisioner: shell...
gluster-zfs: Running: inline script
==> gluster-zfs: System contains 1 snapshot(s).
==> gluster-zfs: Do you still want to continue and delete them? (y/n) snapshot delete: testsnap_GMT-2017.04.14-21.13.38: snap removed successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment