4. storage lvm

620 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
620
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

4. storage lvm

  1. 1. Windows AdminsK: човек, windows админите сакато сектантиK: разказват ни какво ново вexchange 2013 и споменават, чевече management consola-та eдоста oрязана, и всичко се правипрез PowerShell... и залатаизпадна в потрес
  2. 2. 4 – Storage LVM/SW RAIDMarian Marinov Borislav VaradinovCEO of 1H Ltd. System Administratormm@1h.com bobi [ at ] itp.bg
  3. 3. Lame Vertical Move – LVMLogical Volume Manager... and why to complicate things?
  4. 4. LVM Ицо Радо Лили Роси Митко СветльоИванПеткоТишо
  5. 5. LVM Ицо Лили Митко РосиИванПеткоТишо
  6. 6. LVM
  7. 7. LVM
  8. 8. LVM Structure➢ UUIDs➢ Physical Extent (PE)➢ Volume Groups (VG) ➢ max logical partitions ➢ max physical volumes ➢ PE size➢ Logical Volume (LV)
  9. 9. Logical Volume➢ Size (PEs or KB/MB/GB/TB)➢ Stripe (2 < PE size) N➢ Mirror (multiple copies)➢ Snapshot (typically around 15%-20% ofthe original) chunk size (64KB –1GB)➢ Thin Provisioning➢ RAID 1/4/5/6
  10. 10. LVM Commands➢ pvcreate/display/remove➢vgcreate/display/remove/change➢ lvcreate/display/remove➢ Activate the LVM partitions vgchange -a y
  11. 11. Linux Software RAID➢ MD device➢ Single command to rule themall -mdadm
  12. 12. Linux Software RAID[root@beast ~]# cat /proc/mdstatPersonalities : [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: <none>
  13. 13. Units Size HDD – Sectors 512Bytes HW RAID – Blocks 512B – 8MB Partitions – Sectors 512B (depending on the partition type) n SW RAID – Chunks 64KB – 1KB*2 PV – Physical Extents 8KB – 16GB VG – Physical Extents n * PE LV – Chunks 64KB – 1GB FS – Blocks 1KB, 2KB, 4KB (depending on the FS type)Only the HDD is with static size,everything else is with variable size.
  14. 14. Ext3 Ext4 Ext4 Ext4LV-boot LV-main LV-usr LV-home Volume 0 PV2 Volume 1 SW RAID PV0 PV1 PV3 sda1 sda2 sda3 sdb1 sdb2 HW RAID HDD HDD HDD
  15. 15. Ext4 Ext4 Ext3 Ext4 SW RAIDLV-boot LV-main LV-home0 LV-home1 Volume 0 Volume 1 PV0 PV1 PV2 PV3 PV4 sda1 sda2 sda3 sdb1 sdb2 HW RAID HDD HDD HDD
  16. 16. Recovery?➢ CGSecuritys TestDisk ➢ Download
  17. 17. DEMO
  18. 18. LinksLVM http://www.linux-mag.com/id/7454/SW RAID 0 vs LVM Striping http://www.linux-mag.com/id/7582/SW RAID HowTohttp://www.howtoforge.com/redundant-array-of-inexpeLVM HowTo http://www.howtoforge.com/linux_lvm
  19. 19. Storage – LVM/SW RAIDhttp://academy.telerik.com/student-courses/software-technologies/os-windows-linux/
  20. 20. Free Trainings @ Telerik Academy Operating Systems @ Telerik Academy http://telerikacademy.com/Courses/Courses/Details/35 Telerik Software Academy  academy.telerik.com Telerik Academy @ Facebook  facebook.com/TelerikAcademy Telerik Software Academy Forums  forums.academy.telerik.com

×