storage best practices

28
1 Storage Best Practices Maor Lipchuk March 2015 Senior Software Engineer @ RHEV Red Hat [email protected] Irc.oftc.net server on #ovirt channel

Upload: maor-lipchuk

Post on 15-Jul-2015

172 views

Category:

Engineering


5 download

TRANSCRIPT

Page 1: Storage best practices

1

Storage Best Practices

Maor LipchukMarch 2015Senior Software Engineer @ RHEVRed [email protected]

Irc.oftc.net server on #ovirt channel

Page 2: Storage best practices

2

Agenda

● oVirt Storage Domains Overview

● Manual Tiering

● Volume Types

● Single Disk Snapshot

Page 3: Storage best practices

3

Storage Domains Types

File Storage Domains

● NFS

● Gluster

● POSIX-Compliant FS

● Local

Block Storage Domains

● Fibre Channel

● ISCSI

● Ceph (oVirt 3.6)

Page 4: Storage best practices

4

Manual Tiering

Page 5: Storage best practices

5

Manual Tiering

● Introduced in oVirt 3.4

● Maintain different types of Storage Domains in a Data Center

● Feature page: http://www.ovirt.org/Features/Mixed_Types_Data_Center

Page 6: Storage best practices

6

Manual Tiering

NFS

iSCSI

FCP

Page 7: Storage best practices

7

Manual Tiering

oVirt setup - Manual Tiering

Page 8: Storage best practices

8

Manual Tiering - iSCSI

Page 9: Storage best practices

9

Manual Tiering - Fibre Channel

Page 10: Storage best practices

10

Manual Tiering - NFS

Page 11: Storage best practices

11

Manual Tiering

Page 12: Storage best practices

12

Manual Tiering - Choose The best Storage

Page 13: Storage best practices

13

Manual Tiering

Page 14: Storage best practices

14

Volume Types

Page 15: Storage best practices

15

Volume Types

● Allocation policy – How should VDSM allocate the storage

● Preallocated - VDSM will try to allocate the space right away

● Sparse/thin provision - Space will be allocated for the volume as needed

● Volume format - How the bits are written to the underlying volume

● RAW - simple raw access

● QCOW2 - file format for disk image files used by QEMU

Page 16: Storage best practices

16

Volume Types – Allocation Policy

● Preallocation● improve performance for I/O operations● Wasteful regarding disk space

● Sparse/Thin provisioning● Saving on disk space,● storage is allocated as data is being written to

the file.● Might cause defragmentation ● performance implications

Page 17: Storage best practices

17

Volume Types – Volume Format

● QCOW3 (oVirt 3.6)

● QCOW2 - QEMU Copy On Write● File format for disk image files used by QEMU

● The image only represents changes made to an underlying disk image

● Image can contain multiple snapshots of the images history

● Only QCOW2 volumes can be snapshots themselves.

● RAW - Simple raw access

● Has better performance then QCOW2

Page 18: Storage best practices

18

Volume Types – Snapshot With QCOW2

SnapshotLV

Base VolumeLV

Page 19: Storage best practices

19

Volume Types – Storage Domains

● File Storage Domains● Files thinly provisioned by design● "Preallocation" is achieved by writing zeros

● Block Storage Domains● Thin provisioning - (Transparent to Vdsm) requires defining

the LUNs as sparse on the storage array● Preallocated volumes are simply LVs created with the same

size as the virtual disk

Page 20: Storage best practices

20

Volume Types

Page 21: Storage best practices

21

Single Disk Snapshot

Page 22: Storage best practices

22

Single Disk Snapshot

● Introduced in oVirt 3.4

● Capacity planning & sizing

● Customization of snapshots with regarding to

VM configuration

Disks

Page 23: Storage best practices

23

Single Disk Snapshot - LVM

● LVM - logical volume manager for the Linux kernel

● Simple block-level schema for creating virtual block devices

● Manages disk drives and similar mass-storage devices

● Supports up to 500 LVs

● Every disk and a snapshot is a LV

Page 24: Storage best practices

24

Single Disk Snapshot – LVM Architecture

Page 25: Storage best practices

25

Single Disk Snapshot – oVirt

Page 26: Storage best practices

26

Single Disk Snapshot – oVirt

Page 27: Storage best practices

27

Questions?

Page 28: Storage best practices

28

THANK YOU !

http://www.ovirt.orghttp://lists.ovirt.org/mailman/listinfo

#ovirt irc.oftc.net

[email protected]