Installing and Configuring LVM on Debian, Ubuntu, Linux Mint
Step1 :- su
Step2 :- apt-get update && apt-get install lvm2
Step3 :- dpkg-query -s lvm2
Step4 :- dpkg-query -l lvm2
Step5 :- pvcreate /dev/md0 --- prepare the disks
Step6 :- vgcreate storage /dev/md0 --- added to a Volume Group
Step7 :- vgcreate storage /dev/md0
Step8 :- vgdisplay --- greater detail about the Volume Group.
Step9 :- vgs --- confirm that the Volume Group is in existence
Step10 :- lvcreate -L 100G -n Music storage --- To create the Logical Volumes
Step11 :- lvcreate -L 50G -n Documents storage
Step12 :- lvdisplay --- Detailed output of the Logical Volumes.
Step13 :- lvs --- Less detailed output of the Logical Volumes.
Step14 :- mkfs.ext4 -L Music /dev/mapper/storage-Music
Step15 :- mkfs.ext4 -L Documents /dev/mapper/storage-Documents
Step16 :- mkdir /mnt/Music
Step17 :- mkdir /mnt/Documents
Step18 :- mount /dev/mapper/storage-Music /mnt/Music
Step19 :- mount /dev/mapper/storage-Documents /mnt/Documents
Step20 :- blkid /dev/mapper/*
Step21 :- blkid /dev/mapper/* >> /etc/fstab
Step22 :- nano /etc/fstab
Step23 :- mount -a
Step24 :- lsblk
That's it
----------------------------------------------------------------------------------------------------------------------
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
For The Latest Technology & Topics...
Redhat Linux | Linux Howtos | Ubuntu | Linux News | Centos | Linux Mint | Fedora | Linux Commands | Interview Question & Answers | Lintu Tricks | Linux Commands | Debian | Cinnamon | Apache | MySQL | Databases | Oracle-db | Java | SQL | pgAdmin | DevOps | Scripting | Python | Jenkins | Amazon AWS | Programming | Videos for Developers | Security & Hacking | VMware | Desktop | Laptops | Servers | Networking | Cloud | Installation | Operating System | MS Office | Switches | Routers | Firewall | Open Source | Outlook,Thunderbird, Gmail Emails | Monitoring Tools | JavaScript | YouTube | Android | Smartphone | Facebook | WhatsApp | Snapchat | Instagram | WordPress | Virtualbox | Browsers | Software | Hardware | Internet | Maintenance & Optimization | Antivirus | News | Google Play Store Apps | Prices | SEO | PC Games | Mobile Games | iPhone | Microsoft Windows 7 | Windows 10 | Windows Server 2012/2016/2019 | Windows Tips & Tricks | Tutorials | Training | Troubleshooting | Guides | Tips and Tricks | Reviews | Technology | IT Support | IT News | Advice for Technology | Features | Cloud | Cloud Computing | Privacy & Security| Banks
Follow Cloud Network on Twitter, Facebook and Subscribe to our YouTube channel.