SlideShare a Scribd company logo
Logical Volume Manager | XFS
Redhat Enterprise Linux 6.x
Presented by Sarwar Javaid
LVM Structure
LVM consists of the following components:
Physical Volumes: these are the “real” disk devices.
Volume Group: a physical volume group (or just volume group for short) is a group of physical disks
Logical Volume: the logical volume is the top of the LVM pyramid.
LVM Configuration
[root@lvm-test ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 18G 8.1G 8.3G 50% /
tempfs 940M 0 940M 0% /dev/shm
/dev/sda1 504M 44M 435M 10% /boot
/dev/sdb1 5G 2M 4.9G 1% /Data
Change Partition ID '8e'{ Linux LVM } on both Secoundry Hard Drives {'/dev/sdb'}
[root@lvm-test ~]# fdisk /dev/sdb
Command (m for help): p
Device Boot Start End Blocks Id System
/dev/sdb1 1 1448 5241740 83 Linux
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): p
/dev/sdb1 1 1448 5241740 8e Linux LVM
Physical Volume::Create
Syntax: pvcreate <physicaldeviceName>
[root@lvm-test ~]# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
Report information about physical volumes
Physical Volume::Report Information
[root@lvm-test ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sdb1 lvm2 a-- 5.00g 5.00g
Physical Volume::Display information Attribute
[root@lvm-test ~]# pvdisplay
"/dev/sdb1" is a new physical volume of "5.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 5.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID bvqsXU-NHcR-ARpa-U5RB-NM7b-4Pb5-1bX3ZS
Physical Volume::Group Creation
Syntax
vgcreate -s <blockSize> VOLUMEGROUPNAME PHYSICALVOLPATH [PHYSICALVOLPATH] …
[root@lvm-test ~]# vgcreate -s 4MB Primary_Group /dev/sdb1
Volume Group “Primary_Group” successfully created
Logical Volume::Creation
Syntax: lvcreate -l {extents “+LogicalExtentsNumber%SPACE”> -n VGNAME
[root@lvm-test ~]# lvcreate -l 100%FREE -n volgroup_01 Primary_Group
Logical volume "volgroup_01" created
Logical Volume::Display information Attribute
[root@lvm-test ~]# lvs
LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
volgroup_01 Primary_Group -wi-a---- 5.00g
Filesystem::Create [XFS]
Syntax: mkfs.xfs <device name>
[root@lvm-test ~]# mkfs.xfs /dev/primary_group/volgroup_01
meta-data=/dev/primary_group/volgroup_01 isize=256 agcount=4, agsize=654848 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=2619392, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Filesystem::Mount point Creation
A) Label
Syntax: xfs_admin -L <Labe name> <device name>
[root@lvm-test ~]# mkdir /Data && xfs_admin -L “/Data” /dev/primary_group/volgroup_01
writing all SBs
new label = "/Data"
B) UUID “Universally Unique Identifier”
Syntax: blkid | grep <filesystem>
[root@lvm-test ~]# blkid | grep xfs
/dev/mapper/Primary Group-volgroup_01: UUID="06ad9ff2-4cca-4b14-a336-f6bffc351db0" TYPE="xfs"
C) Bootable
[root@lvm-test ~]# vi /etc/fstab → {add following line in file}
UUID=06ad9ff2-4cca-4b14-a336-f6bffc351db0 /Data xfs defaults 1 2
[x: save and quit]
D) Test
[root@lvm-test ~]# mount /Data
[root@lvm-test ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 18G 8.2G 8.2G 50% /
tmpfs 940M 224K 940M 1% /dev/shm
/dev/sda1 504M 44M 435M 10% /boot
/dev/mapper/Primary_Group-volgroup_01
5.0G 33M 5.0G 1% /Data
Logical Volume::Extend Logical Volume Size [newDisk]
Power off the virtual machine. Edit the virtual machine settings and add new virtual disk [requiured size]. In this
scenario we choose 5GB
Partition::Create [Linux LVM]
Syntax: fdisk <device name>
[root@lvm-test ~]# fdisk /dev/sdc
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1018, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1018, default 1018):
Using default value 1018
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sdc: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c1964
Device Boot Start End Blocks Id System
/dev/sdc1 1 1018 5238597 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Physical Volume::Create
[root@lvm-test ~]# pvcreate /dev/sdc1
Physical volume "/dev/sdc1" successfully created
Physical Volume::Report information
[root@lvm-test ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sdb1 Primary_Group lvm2 a-- 5.00g 0
/dev/sdc1 lvm2 a-- 5.00g 5.00g
Physical Volume::Display information Attribute
[root@lvm-test ~]# pvdisplay
"/dev/sdb1" is a new physical volume of "5.00 GiB"
--- Physical volume ---
PV Name /dev/sdb1
VG Name Primary_Group
PV Size 5.00 GiB / not usable 2.89 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 1279
Free PE 0
Allocated PE 1279
PV UUID LmdgEl-a8Eh-9dt0-HqRw-v13R-gVAl-hgkwaX
"/dev/sdc1" is a new physical volume of "5.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sdc1
VG Name
PV Size 5.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID WiMTu0-Iuti-V1f0-e8KX-tri4-zLIX-gd4FWl
Volume Group ::Device add
Syntax: vgextend {VolumeGroup} <deviceName>
[root@lvm-test ~]# vgextend Primary_Group /dev/sdc1
Volume group "Primary_Group" successfully extended
Volume Volume::Size extend
Syntax: lvextend -l {extents “+LogicalExtentsNumber%SPACE”> <logicalVolumePath>
[root@lvm-test ~]# lvextend -l +100%FREE /dev/mapper/Primary_Group-volgroup_01
Extending logical volume volgroup_01 to 9.99 GiB
Logical volume volgroup_01 successfully resized
FileSystem::Grow
Syntax: xfs_growfs <logicalVolumePath>
[root@lvm-test ~]# xfs_growfs /dev/Primary_Group/volgroup_01
meta-data=/dev/mapper/Primary_Group-volgroup_01 isize=256 agcount=4, agsize=327424 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=1309696, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 1309696 to 2618368
Final
[root@lvm-test ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 18G 8.3G 8.1G 51% /
tempfs 940M 76K 940M 1% /dev/shm
/dev/sda1 504M 67M 412M 14% /boot
/dev/mapper/Primary_Group-volgroup_01
10G 34M 10G 1% /Data

More Related Content

What's hot

Linux LVM Logical Volume Management
Linux LVM Logical Volume ManagementLinux LVM Logical Volume Management
Linux LVM Logical Volume Management
Manolis Kartsonakis
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
Davide Ciambelli
 
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPFUSENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
Brendan Gregg
 
2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-i2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-iLogesh Kumar Anandhan
 
General commands for navisphere cli
General commands for navisphere cliGeneral commands for navisphere cli
General commands for navisphere cli
msaleh1234
 
Linux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware ManagementLinux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware Management
Kenny (netman)
 
1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster
OlinData
 
Hadoop Installation and basic configuration
Hadoop Installation and basic configurationHadoop Installation and basic configuration
Hadoop Installation and basic configurationGerrit van Vuuren
 
Linux Process & CF scheduling
Linux Process & CF schedulingLinux Process & CF scheduling
Linux Process & CF schedulingSangJung Woo
 
Linux fundamental - Chap 08 proc
Linux fundamental - Chap 08 procLinux fundamental - Chap 08 proc
Linux fundamental - Chap 08 proc
Kenny (netman)
 
Linux watchdog timer
Linux watchdog timerLinux watchdog timer
Linux watchdog timer
RajKumar Rampelli
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuilding
Marian Marinov
 
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
 
Fatkulin presentation
Fatkulin presentationFatkulin presentation
Fatkulin presentationEnkitec
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
Chanaka Lasantha
 
Introduction to eBPF and XDP
Introduction to eBPF and XDPIntroduction to eBPF and XDP
Introduction to eBPF and XDP
lcplcp1
 
Effective service and resource management with systemd
Effective service and resource management with systemdEffective service and resource management with systemd
Effective service and resource management with systemd
David Timothy Strauss
 
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in PragueDocker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
tomasbart
 

What's hot (20)

Linux LVM Logical Volume Management
Linux LVM Logical Volume ManagementLinux LVM Logical Volume Management
Linux LVM Logical Volume Management
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Upgrade & ndmp
Upgrade & ndmpUpgrade & ndmp
Upgrade & ndmp
 
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPFUSENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
 
2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-i2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-i
 
General commands for navisphere cli
General commands for navisphere cliGeneral commands for navisphere cli
General commands for navisphere cli
 
Linux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware ManagementLinux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware Management
 
1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster
 
Hadoop Installation and basic configuration
Hadoop Installation and basic configurationHadoop Installation and basic configuration
Hadoop Installation and basic configuration
 
Linux Process & CF scheduling
Linux Process & CF schedulingLinux Process & CF scheduling
Linux Process & CF scheduling
 
Linux fundamental - Chap 08 proc
Linux fundamental - Chap 08 procLinux fundamental - Chap 08 proc
Linux fundamental - Chap 08 proc
 
Linux watchdog timer
Linux watchdog timerLinux watchdog timer
Linux watchdog timer
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuilding
 
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
 
Fatkulin presentation
Fatkulin presentationFatkulin presentation
Fatkulin presentation
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
 
Kickstart
KickstartKickstart
Kickstart
 
Introduction to eBPF and XDP
Introduction to eBPF and XDPIntroduction to eBPF and XDP
Introduction to eBPF and XDP
 
Effective service and resource management with systemd
Effective service and resource management with systemdEffective service and resource management with systemd
Effective service and resource management with systemd
 
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in PragueDocker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
 

Similar to Logical volume manager xfs

3 - Disk Partitioning in Red Hat
3 - Disk Partitioning in Red Hat3 - Disk Partitioning in Red Hat
3 - Disk Partitioning in Red Hat
Shafaan Khaliq Bhatti
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layoutAcácio Oliveira
 
2.1 design hard disk layout v2
2.1 design hard disk layout v22.1 design hard disk layout v2
2.1 design hard disk layout v2
Acácio Oliveira
 
Linux lv ms step by step
Linux lv ms step by stepLinux lv ms step by step
Linux lv ms step by step
sudakarman
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2
Acácio Oliveira
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
Ata Rehman
 
[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10
Jo Hoon
 
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]
Vincent Batts
 
Rh202 q&amp;a-demo-cert magic
Rh202 q&amp;a-demo-cert magicRh202 q&amp;a-demo-cert magic
Rh202 q&amp;a-demo-cert magic
Ellina Beckman
 
Android Boot Time Optimization
Android Boot Time OptimizationAndroid Boot Time Optimization
Android Boot Time OptimizationKan-Ru Chen
 
Configuring+Disks+and+Filsystems-pdf.pdf
Configuring+Disks+and+Filsystems-pdf.pdfConfiguring+Disks+and+Filsystems-pdf.pdf
Configuring+Disks+and+Filsystems-pdf.pdf
VikrantSChohaan
 
Linux Common Command
Linux Common CommandLinux Common Command
Linux Common Command
Jeff Yang
 
Scaling IO-bound microservices
Scaling IO-bound microservicesScaling IO-bound microservices
Scaling IO-bound microservices
Salo Shp
 
S4 xen hypervisor_20080622
S4 xen hypervisor_20080622S4 xen hypervisor_20080622
S4 xen hypervisor_20080622Todd Deshane
 
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsLet Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Nicolas Collery
 
Ex200
Ex200Ex200
Kernel Recipes 2015 - Kernel dump analysis
Kernel Recipes 2015 - Kernel dump analysisKernel Recipes 2015 - Kernel dump analysis
Kernel Recipes 2015 - Kernel dump analysis
Anne Nicolas
 
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
Isabella789
 
Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4
uzzzle
 

Similar to Logical volume manager xfs (20)

3 - Disk Partitioning in Red Hat
3 - Disk Partitioning in Red Hat3 - Disk Partitioning in Red Hat
3 - Disk Partitioning in Red Hat
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layout
 
2.1 design hard disk layout v2
2.1 design hard disk layout v22.1 design hard disk layout v2
2.1 design hard disk layout v2
 
Linux lv ms step by step
Linux lv ms step by stepLinux lv ms step by step
Linux lv ms step by step
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2
 
Dev ops
Dev opsDev ops
Dev ops
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10
 
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]
 
Rh202 q&amp;a-demo-cert magic
Rh202 q&amp;a-demo-cert magicRh202 q&amp;a-demo-cert magic
Rh202 q&amp;a-demo-cert magic
 
Android Boot Time Optimization
Android Boot Time OptimizationAndroid Boot Time Optimization
Android Boot Time Optimization
 
Configuring+Disks+and+Filsystems-pdf.pdf
Configuring+Disks+and+Filsystems-pdf.pdfConfiguring+Disks+and+Filsystems-pdf.pdf
Configuring+Disks+and+Filsystems-pdf.pdf
 
Linux Common Command
Linux Common CommandLinux Common Command
Linux Common Command
 
Scaling IO-bound microservices
Scaling IO-bound microservicesScaling IO-bound microservices
Scaling IO-bound microservices
 
S4 xen hypervisor_20080622
S4 xen hypervisor_20080622S4 xen hypervisor_20080622
S4 xen hypervisor_20080622
 
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsLet Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
 
Ex200
Ex200Ex200
Ex200
 
Kernel Recipes 2015 - Kernel dump analysis
Kernel Recipes 2015 - Kernel dump analysisKernel Recipes 2015 - Kernel dump analysis
Kernel Recipes 2015 - Kernel dump analysis
 
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
 
Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 

Recently uploaded (20)

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 

Logical volume manager xfs

  • 1. Logical Volume Manager | XFS Redhat Enterprise Linux 6.x Presented by Sarwar Javaid
  • 2.
  • 3. LVM Structure LVM consists of the following components: Physical Volumes: these are the “real” disk devices. Volume Group: a physical volume group (or just volume group for short) is a group of physical disks Logical Volume: the logical volume is the top of the LVM pyramid. LVM Configuration [root@lvm-test ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 18G 8.1G 8.3G 50% / tempfs 940M 0 940M 0% /dev/shm /dev/sda1 504M 44M 435M 10% /boot /dev/sdb1 5G 2M 4.9G 1% /Data Change Partition ID '8e'{ Linux LVM } on both Secoundry Hard Drives {'/dev/sdb'} [root@lvm-test ~]# fdisk /dev/sdb Command (m for help): p Device Boot Start End Blocks Id System /dev/sdb1 1 1448 5241740 83 Linux
  • 4. Command (m for help): t Selected partition 1 Hex code (type L to list codes): 8e Changed system type of partition 1 to 8e (Linux LVM) Command (m for help): p /dev/sdb1 1 1448 5241740 8e Linux LVM Physical Volume::Create Syntax: pvcreate <physicaldeviceName> [root@lvm-test ~]# pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created Report information about physical volumes Physical Volume::Report Information [root@lvm-test ~]# pvs PV VG Fmt Attr PSize PFree /dev/sdb1 lvm2 a-- 5.00g 5.00g
  • 5. Physical Volume::Display information Attribute [root@lvm-test ~]# pvdisplay "/dev/sdb1" is a new physical volume of "5.00 GiB" --- NEW Physical volume --- PV Name /dev/sdb1 VG Name PV Size 5.00 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID bvqsXU-NHcR-ARpa-U5RB-NM7b-4Pb5-1bX3ZS Physical Volume::Group Creation Syntax vgcreate -s <blockSize> VOLUMEGROUPNAME PHYSICALVOLPATH [PHYSICALVOLPATH] … [root@lvm-test ~]# vgcreate -s 4MB Primary_Group /dev/sdb1 Volume Group “Primary_Group” successfully created
  • 6. Logical Volume::Creation Syntax: lvcreate -l {extents “+LogicalExtentsNumber%SPACE”> -n VGNAME [root@lvm-test ~]# lvcreate -l 100%FREE -n volgroup_01 Primary_Group Logical volume "volgroup_01" created Logical Volume::Display information Attribute [root@lvm-test ~]# lvs LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert volgroup_01 Primary_Group -wi-a---- 5.00g
  • 7. Filesystem::Create [XFS] Syntax: mkfs.xfs <device name> [root@lvm-test ~]# mkfs.xfs /dev/primary_group/volgroup_01 meta-data=/dev/primary_group/volgroup_01 isize=256 agcount=4, agsize=654848 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=2619392, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Filesystem::Mount point Creation A) Label Syntax: xfs_admin -L <Labe name> <device name> [root@lvm-test ~]# mkdir /Data && xfs_admin -L “/Data” /dev/primary_group/volgroup_01 writing all SBs new label = "/Data"
  • 8. B) UUID “Universally Unique Identifier” Syntax: blkid | grep <filesystem> [root@lvm-test ~]# blkid | grep xfs /dev/mapper/Primary Group-volgroup_01: UUID="06ad9ff2-4cca-4b14-a336-f6bffc351db0" TYPE="xfs" C) Bootable [root@lvm-test ~]# vi /etc/fstab → {add following line in file} UUID=06ad9ff2-4cca-4b14-a336-f6bffc351db0 /Data xfs defaults 1 2 [x: save and quit] D) Test [root@lvm-test ~]# mount /Data [root@lvm-test ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 18G 8.2G 8.2G 50% / tmpfs 940M 224K 940M 1% /dev/shm /dev/sda1 504M 44M 435M 10% /boot /dev/mapper/Primary_Group-volgroup_01 5.0G 33M 5.0G 1% /Data
  • 9. Logical Volume::Extend Logical Volume Size [newDisk] Power off the virtual machine. Edit the virtual machine settings and add new virtual disk [requiured size]. In this scenario we choose 5GB
  • 10. Partition::Create [Linux LVM] Syntax: fdisk <device name> [root@lvm-test ~]# fdisk /dev/sdc WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1018, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-1018, default 1018): Using default value 1018 Command (m for help): t Selected partition 1 Hex code (type L to list codes): 8e Changed system type of partition 1 to 8e (Linux LVM)
  • 11. Command (m for help): p Disk /dev/sdc: 5368 MB, 5368709120 bytes 166 heads, 62 sectors/track, 1018 cylinders Units = cylinders of 10292 * 512 = 5269504 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000c1964 Device Boot Start End Blocks Id System /dev/sdc1 1 1018 5238597 8e Linux LVM Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. Physical Volume::Create [root@lvm-test ~]# pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created Physical Volume::Report information [root@lvm-test ~]# pvs PV VG Fmt Attr PSize PFree /dev/sdb1 Primary_Group lvm2 a-- 5.00g 0 /dev/sdc1 lvm2 a-- 5.00g 5.00g
  • 12. Physical Volume::Display information Attribute [root@lvm-test ~]# pvdisplay "/dev/sdb1" is a new physical volume of "5.00 GiB" --- Physical volume --- PV Name /dev/sdb1 VG Name Primary_Group PV Size 5.00 GiB / not usable 2.89 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 1279 Free PE 0 Allocated PE 1279 PV UUID LmdgEl-a8Eh-9dt0-HqRw-v13R-gVAl-hgkwaX "/dev/sdc1" is a new physical volume of "5.00 GiB" --- NEW Physical volume --- PV Name /dev/sdc1 VG Name PV Size 5.00 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID WiMTu0-Iuti-V1f0-e8KX-tri4-zLIX-gd4FWl
  • 13. Volume Group ::Device add Syntax: vgextend {VolumeGroup} <deviceName> [root@lvm-test ~]# vgextend Primary_Group /dev/sdc1 Volume group "Primary_Group" successfully extended Volume Volume::Size extend Syntax: lvextend -l {extents “+LogicalExtentsNumber%SPACE”> <logicalVolumePath> [root@lvm-test ~]# lvextend -l +100%FREE /dev/mapper/Primary_Group-volgroup_01 Extending logical volume volgroup_01 to 9.99 GiB Logical volume volgroup_01 successfully resized
  • 14. FileSystem::Grow Syntax: xfs_growfs <logicalVolumePath> [root@lvm-test ~]# xfs_growfs /dev/Primary_Group/volgroup_01 meta-data=/dev/mapper/Primary_Group-volgroup_01 isize=256 agcount=4, agsize=327424 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=1309696, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 data blocks changed from 1309696 to 2618368 Final [root@lvm-test ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 18G 8.3G 8.1G 51% / tempfs 940M 76K 940M 1% /dev/shm /dev/sda1 504M 67M 412M 14% /boot /dev/mapper/Primary_Group-volgroup_01 10G 34M 10G 1% /Data

Editor's Notes

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14