LVM: Extend an existing Volume Group by adding a new disk

LVM: Extend an existing Volume Group by adding a new disk

# Tested on RHEL 5, 6 & 7

# First, verify the disk/partition to use on the new VG with "fdisk" or any other similar
# tool

DISK=/dev/sdd1
VG=vgdatabase


# Initialize disk under LVM

pvcreate $DISK


# Add disk to VG

vgextend $VG $DISK


# Check

vgdisplay -v $VG
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Check a Website Availability from the Linux Command Line
Viewed 7683 times since Mon, Feb 18, 2019
20 Practical Examples of RPM Commands in Linux rpm
Viewed 8925 times since Mon, Feb 18, 2019
stunnel basics and pki standards
Viewed 10287 times since Fri, Sep 28, 2018
LVM: Reduce root PV/VG
Viewed 6031 times since Sat, Jun 2, 2018
15 Linux Yum Command Examples – Install, Uninstall, Update Packages
Viewed 4351 times since Thu, Oct 25, 2018
Jak ustawić LVM, jak robić snapshoty oraz automatycznie powiększać LV, czyli małe howto
Viewed 5573 times since Sun, May 20, 2018
Linux ssh Hide OpenSSH Version Banner
Viewed 56648 times since Wed, Apr 22, 2020
A tcpdump Tutorial and Primer with Examples
Viewed 6703 times since Sun, Jun 17, 2018
Linux - Cannot login from remote console but can access via ssh
Viewed 6118 times since Fri, Jun 8, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 4857 times since Sat, Jun 2, 2018