Create volume group in Linux

1. If creating the volume group from scratch, verify which disk to use to create the volume group. (note: Assuming that disk has already been added)

# fdisk -l

Disk /dev/sdb doesn’t contain a valid partition table.

2. Create the partition inside the added disk and verify.

# cfdisk /dev/sdb
# fdisk -l

3. Create the physical volume with pvcreate and verify using pvdisplay

# pvcreate /dev/sdb1
# pvdisplay /dev/sdb1

4. Create the volume group using vgcreate and verify with vgdisplay.

# vgcreate new_vg /dev/sdb1
# vgdisplay

If adding disk with more than one partition

# vgcreate new_vg /dev/sdb1 /dev/sdb2
# vgdisplay

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s