SlideShare a Scribd company logo
2
Most read
4
Most read
8
Most read
Logical Volume Manager An Introduction
Logical Volume Manager What is? LVM  (Logical Volume Manager) allows to manage disks in a different way: creates one or more virtual disks with virtual partitions, from physical partitions No limited by physical disk
Logical Volume Manager What is? LVM  (Logical Volume Manager) allows to manage disks in a different way: creates one or more virtual disks with virtual partitions, from physical partitions No limited by physical disk
Logical Volume Manager Concepts Physical Volume  (PV) : physical partition from real disk Volume Group  (VG) : like a virtual disk Logical Volume  (LV) : a partition in a Volume Group Physical Extent  (PE) : like a 'cluster' in PV Logical Extent  (LE) : like a 'cluster' in LV
Logical Volume Manager Concepts Create one or more VG from one or more PV, and then create LVs in each VG VG /dev/sda1 /dev/vg/lv1 /dev/sda2 /dev/vg/lv2 /dev/vg/lv3
Logical Volume Manager PVs pvcreate: creates a PV pvremove: removes a PV pvdisplay: shows information about a PV pvscan: scan all PVs in the system pvck: check a PV for errors (1) Create one or more partitions with fdisk, with type LVM (2)  pvcreate /dev/<partition>
Logical Volume Manager VGs vgcreate: creates a VG vgremove: removes a VG vgextend: extend a VG with more PVs vgreduce: drops PVs from a VG vgdisplay: shows info about VG vgscan: scan for all VGs in system vgchange: change VG properties vgck, vgexport, vgmerge, vgsplit, vgrename
Logical Volume Manager VGs (1) Create one or more partitions with fdisk, with type LVM (2)  pvcreate /dev/sda1 (3)  pvcreate /dev/hdb2 (4)  pvcreate /dev/hdc3 (5)  vgcreate myvg /dev/sda1 /dev/hdb2 /dev/hdc3
Logical Volume Manager LVs lvcreate: creates a LV lvremove: removes a LV lvscan: scan for all LVs in a system lvdisplay: shows info about a LV lvrename, lvresize, lvreduce, lvchange
Logical Volume Manager LVs (1) Create a VG (2)  lvcreate -L<size> -n <name> <vg> lvcreate -L10G -n mylv myvg It creates  /dev/myvg/mylv  (a link to  /dev/mapper/myvg-mylv ) mkfs.ext3 /dev/myvg/mylv
Logical Volume Manager Snapshots A snapshot is an image of a LV Created instantly Read-only / read-write (LVM2) lvcreate -s -L<size> -n <name> <lv> RW: lvcreate -s -L1G -n mylv-snapshot /dev/myvg/mylv RO: lvcreate -s -L1G -n mylv-snapshot -p r /dev/myvg/mylv
Logical Volume Manager Snapshots Snapshot is like a 'pointer' to the same data in original LV Each time data in original LV is modified (or in snapshot if it was created as RW), a copy is done previously in exception table When it becomes full it is automatically disabled
Logical Volume Manager Uses of Snapshots To test: create snapshots and then use them as the main partitions If you don't like something, revert to original and drop the snapshots To backup: use a snapshot to create backups This way, you can continue to work while backuping is done, without a problem of having an inconsistency lvcreate -s -L1G -n snaproot /dev/vg/lvroot run-backup.sh /dev/vg/snaproot lvremove -f /dev/vg/snaproot
Logical Volume Manager LVM and other technologies /dev/* /dev/mapper/* /dev/* /dev/* /dev/md0 LUKS RAID
Logical Volume Manager LVM and other technologies /dev/* /dev/mapper/* /dev/* /dev/vg/* /dev/* /dev/* /dev/vg/* LUKS LVM
Logical Volume Manager LVM and other technologies /dev/* /dev/vg/* /dev/vg/* LUKS LVM
Logical Volume Manager LVM and other technologies /dev/vg/* /dev/* /dev/mapper/* LUKS LVM
Logical Volume Manager LVM and other technologies /dev/vg/* /dev/vg/* /dev/* /dev/* LUKS LVM RAID
Logical Volume Manager LVM and other technologies /dev/* /dev/* /dev/* /dev/vg1/* /dev/* /dev/* /dev/* /dev/vg2/* /dev/vg3/* /dev/vg3/* LUKS LUKS LVM LVM LVM
Logical Volume Manager My Laptop /dev/sdaA tmp home swap sbox root var music /dev/sdaB /dev/sdaC LUKS VG-CRYPT VG-UNCRYPT
Logical Volume Manager The End That's all, folks!

More Related Content

PDF
Linux: LVM
PDF
Linux LVM Logical Volume Management
PPTX
Linux standard file system
PPTX
Linux basic commands
PPTX
Linux fundamentals
PPTX
Introduction to Linux
PDF
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
PPT
Chapter06 Managing Disks And Data Storage
Linux: LVM
Linux LVM Logical Volume Management
Linux standard file system
Linux basic commands
Linux fundamentals
Introduction to Linux
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Chapter06 Managing Disks And Data Storage

What's hot (20)

PPT
Basic 50 linus command
PPTX
Basic commands of linux
PPTX
File permissions
PPT
Basic command ppt
PPT
Linux file system
PPTX
Linux and DNS Server
PPT
PDF
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
ODP
Kubernetes Architecture
PPTX
Introduction 2 linux
PDF
Boosting I/O Performance with KVM io_uring
PPTX
IBM Spectrum Scale Authentication for Protocols
PPSX
User Administration in Linux
PDF
Linux Presentation
PPTX
Five common customer use cases for Virtual SAN - VMworld US / 2015
PPT
Linux command ppt
ODP
Squid Proxy Server
PDF
Linux directory structure by jitu mistry
PPTX
What you need to know about ceph
Basic 50 linus command
Basic commands of linux
File permissions
Basic command ppt
Linux file system
Linux and DNS Server
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
Kubernetes Architecture
Introduction 2 linux
Boosting I/O Performance with KVM io_uring
IBM Spectrum Scale Authentication for Protocols
User Administration in Linux
Linux Presentation
Five common customer use cases for Virtual SAN - VMworld US / 2015
Linux command ppt
Squid Proxy Server
Linux directory structure by jitu mistry
What you need to know about ceph
Ad

Viewers also liked (20)

PPT
Storage Management using LVM
PPTX
PPTX
Red Hat - LVM - Mazenet Solution
ODP
4. storage lvm
PDF
Lvm advanced topics
PDF
Sito Maas-Workshop: Marko Forsblom, LVM
PDF
EMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
PDF
Installing Linux: Partitioning and File System Considerations
PPTX
SQL Server vNext on Linux
PDF
7 linux fdisk command examples to manage hard disk partition
ODP
Using CloudStack With Clustered LVM
PDF
Course 102: Lecture 22: Package Management
PPTX
Ceph and OpenStack - Feb 2014
PPTX
Colour vision with lvm
PDF
Course 102: Lecture 26: FileSystems in Linux (Part 1)
PDF
Course 102: Lecture 14: Users and Permissions
PDF
Red hat lvm cheatsheet
PPT
Raid_intro.ppt
Storage Management using LVM
Red Hat - LVM - Mazenet Solution
4. storage lvm
Lvm advanced topics
Sito Maas-Workshop: Marko Forsblom, LVM
EMC: Business Continuity a Disaster Recovery pre virtuálne prostredia
Installing Linux: Partitioning and File System Considerations
SQL Server vNext on Linux
7 linux fdisk command examples to manage hard disk partition
Using CloudStack With Clustered LVM
Course 102: Lecture 22: Package Management
Ceph and OpenStack - Feb 2014
Colour vision with lvm
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 14: Users and Permissions
Red hat lvm cheatsheet
Raid_intro.ppt
Ad

Similar to Logical Volume Manager. An Introduction (20)

PPTX
lvm.pptx
DOCX
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
TXT
PDF
Putting some "logic" in LVM.
PDF
Inspection and maintenance tools (Linux / OpenStack)
PDF
Linuxcon Barcelon 2012: LXC Best Practices
PDF
Lightweight Virtualization: LXC Best Practices
PDF
Kubernetes laravel and kubernetes
PDF
Faq on SnapDrive for UNIX NetApp
PDF
Intro to Kernel Debugging - Just make the crashing stop!
PPT
Top ESXi command line v2.0
PDF
App container rkt
PPTX
Let’s talk virtualization
PDF
Techtalks: taking docker to production
PDF
JOSA TechTalk: Taking Docker to Production
PPTX
Opendj - A LDAP Server for dummies
PPTX
3 - Disk Partitioning in Red Hat
PDF
Deploying TYPO3 Neos websites using Surf
PDF
Develop QNAP NAS App by Docker
ODP
Subversionn Introduction at SuperMondays 2009-09-01
lvm.pptx
HP-UX 11iv3 How to Change Root Volume Group Name vg00 by Dusan Baljevic
Putting some "logic" in LVM.
Inspection and maintenance tools (Linux / OpenStack)
Linuxcon Barcelon 2012: LXC Best Practices
Lightweight Virtualization: LXC Best Practices
Kubernetes laravel and kubernetes
Faq on SnapDrive for UNIX NetApp
Intro to Kernel Debugging - Just make the crashing stop!
Top ESXi command line v2.0
App container rkt
Let’s talk virtualization
Techtalks: taking docker to production
JOSA TechTalk: Taking Docker to Production
Opendj - A LDAP Server for dummies
3 - Disk Partitioning in Red Hat
Deploying TYPO3 Neos websites using Surf
Develop QNAP NAS App by Docker
Subversionn Introduction at SuperMondays 2009-09-01

More from Juan A. Suárez Romero (16)

PDF
Graphics stack updates for Raspberry Pi devices (FOSDEM 2024)
PDF
On-going challenges in the Raspberry Pi driver stack: OpenGL 3, Vulkan and mo...
ODP
Writing multimedia applications with Grilo
PDF
Grilo: Easy Access to Online Multimedia Content
ODP
Grilo: present and future
ODP
PDF
MSL2008. Debugging
PDF
MSL2009. Valgrind
PDF
PPT
Una Arquitectura Multiagente Inteligente para la Detección de Intrusos
PPT
An add-on for managing behaviours with priority in JADE
PPT
Integrating a Priority-Based Scheduler of Behaviours in JADE
PPT
A New Learning Method for Single Layer Neural Networks Based on a Regularized...
PPT
A Tool for Agent Communication in Mozart/Oz
PPT
A Multi-Agent Architecture for Intrusion Detection
PPT
The KNITTER System: KQML for Erlang
Graphics stack updates for Raspberry Pi devices (FOSDEM 2024)
On-going challenges in the Raspberry Pi driver stack: OpenGL 3, Vulkan and mo...
Writing multimedia applications with Grilo
Grilo: Easy Access to Online Multimedia Content
Grilo: present and future
MSL2008. Debugging
MSL2009. Valgrind
Una Arquitectura Multiagente Inteligente para la Detección de Intrusos
An add-on for managing behaviours with priority in JADE
Integrating a Priority-Based Scheduler of Behaviours in JADE
A New Learning Method for Single Layer Neural Networks Based on a Regularized...
A Tool for Agent Communication in Mozart/Oz
A Multi-Agent Architecture for Intrusion Detection
The KNITTER System: KQML for Erlang

Recently uploaded (20)

PDF
Modernizing your data center with Dell and AMD
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Modernizing your data center with Dell and AMD
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Spectral efficient network and resource selection model in 5G networks
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Logical Volume Manager. An Introduction

  • 1. Logical Volume Manager An Introduction
  • 2. Logical Volume Manager What is? LVM (Logical Volume Manager) allows to manage disks in a different way: creates one or more virtual disks with virtual partitions, from physical partitions No limited by physical disk
  • 3. Logical Volume Manager What is? LVM (Logical Volume Manager) allows to manage disks in a different way: creates one or more virtual disks with virtual partitions, from physical partitions No limited by physical disk
  • 4. Logical Volume Manager Concepts Physical Volume (PV) : physical partition from real disk Volume Group (VG) : like a virtual disk Logical Volume (LV) : a partition in a Volume Group Physical Extent (PE) : like a 'cluster' in PV Logical Extent (LE) : like a 'cluster' in LV
  • 5. Logical Volume Manager Concepts Create one or more VG from one or more PV, and then create LVs in each VG VG /dev/sda1 /dev/vg/lv1 /dev/sda2 /dev/vg/lv2 /dev/vg/lv3
  • 6. Logical Volume Manager PVs pvcreate: creates a PV pvremove: removes a PV pvdisplay: shows information about a PV pvscan: scan all PVs in the system pvck: check a PV for errors (1) Create one or more partitions with fdisk, with type LVM (2) pvcreate /dev/<partition>
  • 7. Logical Volume Manager VGs vgcreate: creates a VG vgremove: removes a VG vgextend: extend a VG with more PVs vgreduce: drops PVs from a VG vgdisplay: shows info about VG vgscan: scan for all VGs in system vgchange: change VG properties vgck, vgexport, vgmerge, vgsplit, vgrename
  • 8. Logical Volume Manager VGs (1) Create one or more partitions with fdisk, with type LVM (2) pvcreate /dev/sda1 (3) pvcreate /dev/hdb2 (4) pvcreate /dev/hdc3 (5) vgcreate myvg /dev/sda1 /dev/hdb2 /dev/hdc3
  • 9. Logical Volume Manager LVs lvcreate: creates a LV lvremove: removes a LV lvscan: scan for all LVs in a system lvdisplay: shows info about a LV lvrename, lvresize, lvreduce, lvchange
  • 10. Logical Volume Manager LVs (1) Create a VG (2) lvcreate -L<size> -n <name> <vg> lvcreate -L10G -n mylv myvg It creates /dev/myvg/mylv (a link to /dev/mapper/myvg-mylv ) mkfs.ext3 /dev/myvg/mylv
  • 11. Logical Volume Manager Snapshots A snapshot is an image of a LV Created instantly Read-only / read-write (LVM2) lvcreate -s -L<size> -n <name> <lv> RW: lvcreate -s -L1G -n mylv-snapshot /dev/myvg/mylv RO: lvcreate -s -L1G -n mylv-snapshot -p r /dev/myvg/mylv
  • 12. Logical Volume Manager Snapshots Snapshot is like a 'pointer' to the same data in original LV Each time data in original LV is modified (or in snapshot if it was created as RW), a copy is done previously in exception table When it becomes full it is automatically disabled
  • 13. Logical Volume Manager Uses of Snapshots To test: create snapshots and then use them as the main partitions If you don't like something, revert to original and drop the snapshots To backup: use a snapshot to create backups This way, you can continue to work while backuping is done, without a problem of having an inconsistency lvcreate -s -L1G -n snaproot /dev/vg/lvroot run-backup.sh /dev/vg/snaproot lvremove -f /dev/vg/snaproot
  • 14. Logical Volume Manager LVM and other technologies /dev/* /dev/mapper/* /dev/* /dev/* /dev/md0 LUKS RAID
  • 15. Logical Volume Manager LVM and other technologies /dev/* /dev/mapper/* /dev/* /dev/vg/* /dev/* /dev/* /dev/vg/* LUKS LVM
  • 16. Logical Volume Manager LVM and other technologies /dev/* /dev/vg/* /dev/vg/* LUKS LVM
  • 17. Logical Volume Manager LVM and other technologies /dev/vg/* /dev/* /dev/mapper/* LUKS LVM
  • 18. Logical Volume Manager LVM and other technologies /dev/vg/* /dev/vg/* /dev/* /dev/* LUKS LVM RAID
  • 19. Logical Volume Manager LVM and other technologies /dev/* /dev/* /dev/* /dev/vg1/* /dev/* /dev/* /dev/* /dev/vg2/* /dev/vg3/* /dev/vg3/* LUKS LUKS LVM LVM LVM
  • 20. Logical Volume Manager My Laptop /dev/sdaA tmp home swap sbox root var music /dev/sdaB /dev/sdaC LUKS VG-CRYPT VG-UNCRYPT
  • 21. Logical Volume Manager The End That's all, folks!