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
Extending Linux LVM partitions script
Viewed 5715 times since Wed, Feb 6, 2019
10 Linux rsync Examples to Exclude Files/Directories
Viewed 10090 times since Wed, Oct 31, 2018
SSH: Execute Remote Command or Script – Linux
Viewed 1655 times since Mon, Feb 18, 2019
LOGROTATE – ARCHIWIAZACJA LOGÓW
Viewed 1333 times since Fri, Nov 30, 2018
LVM: Create a new Logical Volume / Filesystem
Viewed 1529 times since Sat, Jun 2, 2018
OpenSSL – sprawdzanie czy klucz pasuje do certyfikatu
Viewed 1934 times since Thu, May 24, 2018
RHEL: Reinstalling Boot Loader on the Master Boot Record (MBR)
Viewed 2502 times since Sun, May 27, 2018
HowTo: Retrieve Email from a POP3 Server using the Command Line
Viewed 7396 times since Mon, Feb 18, 2019
RHEL: udev rules basics
Viewed 6155 times since Sat, Jun 2, 2018
ZPOOL: Detach a submirror from a mirrored zpool
Viewed 2018 times since Sun, Jun 3, 2018