4. storage lvm

Embed Size (px)

Citation preview

Hardware - OS course @ Telerik Software Academy

Windows Admins

K: , windows
K: exchange 2013 , management consola- e o, PowerShell...

4 Storage
LVM/SW RAID

Marian MarinovCEO of 1H [email protected]

Borislav VaradinovSystem Administratorbobi [ at ] itp.bg

Lame Vertical Move LVM

Logical Volume Manager... and why to complicate things?

LVM



LVM



LVM

LVM

LVM Structure

UUIDs

Physical Extent (PE)

Volume Groups (VG) max logical partitions

max physical volumes

PE size

Logical Volume (LV)

Logical Volume

Size (PEs or KB/MB/GB/TB)

Stripe (2N < PE size)

Mirror (multiple copies)

Snapshot (typically around 15%-20% of the original) chunk size (64KB 1GB)

Thin Provisioning

RAID 1/4/5/6

LVM Commands

pvcreate/display/remove

vgcreate/display/remove/change

lvcreate/display/remove

Activate the LVM partitions
vgchange -a y

Linux Software RAID

MD device

Single command to rule them all - mdadm

Linux Software RAID

[root@beast ~]# cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sdc3[1] sda3[0] 58605056 blocks [2/2] [UU] md0 : active raid1 sde1[1] 976759936 blocks [2/1] [U_] unused devices:

UnitsSizeHDD Sectors512BytesHW RAID Blocks512B 8MBPartitions Sectors512B (depending on the partition type)SW RAID Chunks64KB 1KB*2nPV Physical Extents 8KB 16GBVG Physical Extentsn * PELV Chunks64KB 1GBFS Blocks1KB, 2KB, 4KB(depending on the FS type)

Only the HDD is with static size, everything else is with variable size.

HDDHDDHW RAID

sda1sda2sda3HDD

sdb1sdb2

SW RAID

HW RAIDPV2PV0PV1PV3

Volume 0Volume 1

LV-homeLV-bootLV-mainLV-usr

Ext3Ext4Ext4Ext4

HDDHDDHW RAID

sda1sda2sda3HDD

sdb1sdb2

HW RAIDPV0PV1PV4

Volume 0Volume 1

LV-home1LV-bootLV-mainLV-home0

Ext3Ext4Ext4Ext4

SW RAIDPV2PV3

Recovery?

CGSecurity's TestDisk Download

DEMO

Links

LVMhttp://www.linux-mag.com/id/7454/

SW RAID 0 vs LVM Stripinghttp://www.linux-mag.com/id/7582/

SW RAID HowTohttp://www.howtoforge.com/redundant-array-of-inexpensive-disks-raid-technical-paper

LVM HowTohttp://www.howtoforge.com/linux_lvm

Storage LVM/SW RAID

http://academy.telerik.com/student-courses/software-technologies/os-windows-linux/

Free Trainings @ Telerik Academy

Operating Systems @ Telerik Academy

http://telerikacademy.com/Courses/Courses/Details/35

Telerik Software Academyacademy.telerik.com

Telerik Academy @ Facebookfacebook.com/TelerikAcademy

Telerik Software Academy Forumsforums.academy.telerik.com

Click to edit the title text formatPresentation Title

Click to edit the outline text formatSecond Outline me

Click to edit the outline text formatSecond Outline LevelThird Outline LevelFourth Outline LevelFifth Outline LevelSixth Outline Level

Seventh Outline LevelInsert a Picture Here

Click to edit the title text formatSlide Title

Click to edit the outline text formatSecond Outline LevelThird Outline LevelFourth Outline LevelFifth Outline LevelSixth Outline Level

Seventh Outline LevelFirst Level

Second level

Third level

Fourth level

Fifth level

Click to edit the title text formatSlide Title

Click to edit the outline text formatSecond Outline LevelThird Outline LevelFourth Outline LevelFifth Outline LevelSixth Outline Level

Seventh Outline LevelFirst Level

, , SEO - , HTML, CSS, JavaScript, Photoshop ASP.NET MVC HTML, SQL, C#, .NET, ASP.NET MVC " cloud "BG Coder - - online judge , " " , ASP.NET - , , C#, .NET, ASP.NET iPhone, Android, WP7, PhoneGapfree C# book, C#, Java, C# - - C# , , Click to edit the title text formatPresentation Title

??????????????????Questions?Click to edit the outline text format

?

Click to edit the title text formatSlide Title

Click to edit the outline text formatSecond Outline LevelThird Outline LevelFourth Outline LevelFifth Outline LevelSixth Outline LevelSeventh Outline LevelEighth Outline Level

Ninth Outline LevelFirst Level

Second level

Third level

Fourth level

Fifth level