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
Fake A Hollywood Hacker Screen in Linux Terminal linux FUN
Viewed 4917 times since Thu, Apr 18, 2019
10 Linux rsync Examples to Exclude Files/Directories
Viewed 10490 times since Wed, Oct 31, 2018
ZPOOL: Add a mirror to a concat zpool
Viewed 3236 times since Sun, Jun 3, 2018
How to Register and Enable Red Hat Subscription, Repositories and Updates for RHEL 7.0 Server
Viewed 11248 times since Mon, Oct 29, 2018
RHEL: Displaying system info (firmware, serial numbers... )
Viewed 11472 times since Sun, May 27, 2018
bash mistakes This page is a compilation of common mistakes made by bash users. Each example is flawed in some way.
Viewed 8754 times since Sun, Dec 6, 2020
How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 2916 times since Fri, Sep 28, 2018
Securing /tmp and shm partitions
Viewed 2899 times since Fri, May 15, 2020
ZPOOL: Remove an existing zpool
Viewed 1938 times since Sun, Jun 3, 2018
How log rotation works with logrotate
Viewed 4485 times since Fri, Nov 30, 2018