Snapshots In Red Hat Storage Server Overview & Quickstart

29
SNAPSHOTS IN RED HAT STORAGE SERVER/GlusterFS Anand Subramanian Senior Principal Engineer, Red Hat Rajesh Joseph Principal Engineer, Red Hat

description

"The snapshots feature in Red Hat Storage Server provides an integrated solution for point-in-time recovery of GlusterFS volumes. Join us to check it out. And while you’ll be exposed to architectural details of how snapshots are implemented,this session won’t be a deep dive into snapshot internals. In this session, you’ll learn: How to configure and use snapshots in Red Hat Storage Server. How to do point-in-time recovery using snapshots. The architectural overview of snapshots in Red Hat Storage Server. The key features and offerings in Red Hat Storage Server snapshots. Best practice recommendations for configuring Red Hat Storage Server volumes for optimal use with snapshots. The limitations in the snapshots feature release. Some important issues to consider when migrating from older Red Hat Storage Server releases to a snapshot-supported one. The product roadmap and extensions to snapshots. "

Transcript of Snapshots In Red Hat Storage Server Overview & Quickstart

Page 1: Snapshots In Red Hat Storage Server Overview & Quickstart

SNAPSHOTS IN RED HAT STORAGE SERVER/GlusterFS

Anand SubramanianSenior Principal Engineer, Red Hat

Rajesh JosephPrincipal Engineer, Red Hat

Page 2: Snapshots In Red Hat Storage Server Overview & Quickstart

AGENDA

•Introduction

•Snapshot CLI commands

•Snapshot features : user-serviceable snaps

•Snapshot recommendations

•Roadmap, Future Directions

•Q&A

Page 3: Snapshots In Red Hat Storage Server Overview & Quickstart

RHS Overview

• Open software-defined storage solution

• Based on GlusterFS : scale-out, distributed file-system

•No external metadata servers•Scale-out with Elasticity•Extensible and modular

• RHS volume : unified namespace for the distributed file-system

• Access using GlusterFS native/FUSE, NFS, SMB and HTTP protocols

Page 4: Snapshots In Red Hat Storage Server Overview & Quickstart

RHS Bricks

• A brick is the combination of a node and an export directory – for e.g. hostname:/dir

• Each brick inherits limits of the underlying filesystem

• No limit on the number bricks per node

Storage Node Storage Node Storage Node

Two Bricks One BrickThree Bricks

Page 5: Snapshots In Red Hat Storage Server Overview & Quickstart

RHS Volume

• A volume is a logical collection of bricks.

• Volume is identified by an administrator provided name.

• Volume is a mountable entity and the volume name is provided at the time of mounting.

•mount -t glusterfs server1:/<volname> /my/mnt/point

• Bricks from the same node can be part of different volumes

Page 6: Snapshots In Red Hat Storage Server Overview & Quickstart

Red Hat Storage Volume

RHS Volume

Storage Node Storage Node Storage Node

Brick Brick Brick Brick

Page 7: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshots in RHS

•Volume level snapshots

•LVM2 based

•Operates only on thin-provisioned volumes

•Snapshots themselves are thin-provisioned snapshot volumes

•A GlusterFS volume snapshot consists of snapshots of the individual bricks making up the volume

•Snapshot of a GlusterFS volume is also a GlusterFS volume

•Crash consistent

Page 8: Snapshots In Red Hat Storage Server Overview & Quickstart

Logical Volume Manager (LVM) 2

•Creates a layer of abstraction over physical storage (PVs)

•Volume Groups •One or more physical disks

•Logical Volumes•Thinly provisioned

Page 9: Snapshots In Red Hat Storage Server Overview & Quickstart

Thinly Provisioned LVM2 Volume & Snapshot

Storage devices

Thin LV SnapshotThin LV Thin LV

Thin Pool Thin Pool

Volume Group

Page 10: Snapshots In Red Hat Storage Server Overview & Quickstart

Red Hat Storage Snapshot

RHS Volume

Storage Node Storage Node

Brick1 Brick2 Brick3 Brick4

Brick1_s1 Brick2_s1Brick4_s1Brick3_s1

Snapshot volume

Page 11: Snapshots In Red Hat Storage Server Overview & Quickstart

AGENDA

•Introduction

•Snapshot CLI commands

•Snapshot features : user-serviceable snaps

•Snapshot recommendations

•Roadmap, Future Directions

•Q&A

Page 12: Snapshots In Red Hat Storage Server Overview & Quickstart

SNAPSHOT CLI COMMANDS

•Create

•Restore

•Delete

•List

•Info

•Status

•Config

Page 13: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot Create

gluster snapshot create <snap­name> <vol­name(s)> [description <description>] [force]

•Create snapshot of an active snapshot volume

•Snapshot is allowed if brick quorum is met

•Snapshot volume is started by default

Page 14: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot Restore

gluster snapshot restore <snap­name>

•Volume should be stopped

•Brick paths will be changed after restore

•Once the snapshot is restored it will be deleted

Page 15: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot Delete

gluster snapshot delete <snap­name>

•Snapshot including the backend lvm will be removed

•Snapshot volume will be stopped before deleting it.

Page 16: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot List

gluster snapshot list [vol­name]

•List will display only snap names

Page 17: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot Info

gluster snapshot info [(<snap­name> | volume <vol­name>)]

•Info will provide details about the snap

Page 18: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot Status

gluster snapshot status [(<snap­name> | volume <vol­name>)]

•Status will provide brick details and backend data (LVM)

Page 19: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot config

gluster snapshot config [vol­name]

gluster snapshot config [vol­name] [<snap­max­hard­limit> <count>] [<snap­max­

soft­limit> <percentage>] [force]

•Configure maximum allowed snapshot for a volume

•Configure maximum allowed snapshot for the entire cluster

•Display the current configuration

Page 20: Snapshots In Red Hat Storage Server Overview & Quickstart

AGENDA

•Introduction

•Snapshot CLI commands

•Snapshot features : user-serviceable snaps

•Snapshot recommendations

•Roadmap, Future Directions

•Q&A

Page 21: Snapshots In Red Hat Storage Server Overview & Quickstart

User Serviceable Snapshots in RHS

•Users can access snapshots of a volume without admin intervention ; ease of access

•“Wormhole” into the past – into any snapshot volume

•Read-only snapshot volumes

•cd to “.snaps” virtual directory anywhere in the filesystem to access your data

Page 22: Snapshots In Red Hat Storage Server Overview & Quickstart

User Serviceable Snapshots in RHS

• cd  $HOME (say, /home/john)

• ls 

dir1/  dir2/  file1

• cd dir2

• ls 

file10 file15 

• cd .snaps

• ls 

nightly.0/  nightly.1/  weekly.0/  weekly.1/

• cd weekly.0/ 

Page 23: Snapshots In Red Hat Storage Server Overview & Quickstart

User Serviceable Snapshots in RHS

• pwd 

/home/john/dir2/.snaps/weekly.0/

•ls

file10 file20 file30 file40

• cp ­p file30 $HOME/dir2/

Page 24: Snapshots In Red Hat Storage Server Overview & Quickstart

AGENDA

•Introduction

•Snapshot CLI commands

•Snapshot features : user-serviceable snaps

•Snapshot recommendations

•Roadmap, Future Directions

•Q&A

Page 25: Snapshots In Red Hat Storage Server Overview & Quickstart

Recommendations

•Each volume brick should be on an independent thinly provisioned volume.

•Brick LVM should not be used for any other purpose.

•All the snapshot of the brick will be created on same thin pool.

•Thin pool should have sufficient free space.

Page 26: Snapshots In Red Hat Storage Server Overview & Quickstart

Older Gluster Volume Configuration

Storage devices

LV

Volume Group

Brick1

Brick2

LV

mount

Page 27: Snapshots In Red Hat Storage Server Overview & Quickstart

New Volume Configuration for Snapshot

Storage devices

Thin LV

Volume GroupBrick1 Brick2

Thin LV

mount

Thin Pool

mount

Page 28: Snapshots In Red Hat Storage Server Overview & Quickstart

Snapshot Future

•Snapshot of multiple volume

•Snapshot scheduling

•Geo-replication with snapshot

•Pluggable snapshot support : Btrfs

•Writable snapshots

•Support for snap aware applications

Page 29: Snapshots In Red Hat Storage Server Overview & Quickstart

Check Out Other Red Hat Storage Activities at The Summit

•Enter the raffle to win tickets for a $500 gift card or trip to LegoLand!• Entry cards available in all storage sessions - the more you attend, the more chances you have to

win!

•Talk to Storage Experts:

• Red Hat Booth (# 211)

• Infrastructure • Infrastructure-as-a-Service

•Storage Partner Solutions Booth (# 605)

•Upstream Gluster projects

• Developer Lounge

Follow us on Twitter, Facebook: @RedHatStorage