• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

vgcreate Command Examples in Linux

by Deepika

The “vgcreate” command is a Linux system administration utility that is used to create volume groups (VGs) on a Linux system. Volume groups are a logical collection of one or more physical volumes (PVs), such as hard disks, partitions or RAID arrays. By grouping physical volumes into a volume group, you can create a single virtual pool of storage that can be used to create logical volumes (LVs) which can be used to store data.

vgcreate Command Examples

1. Create a new volume group called vg1 using the `/dev/sda1` device:

# vgcreate vg1 /dev/sda1

2. Create a new volume group called vg1 using multiple devices:

# vgcreate vg1 /dev/sda1 /dev/sdb1 /dev/sdc1

Summary

After the volume group has been created, you can create logical volumes within it using the “lvcreate” command. You can also resize, rename, and remove volume groups using the “vgresize”, “vgrename”, and “vgremove” commands, respectively.

Overall, the “vgcreate” command is a powerful tool for managing storage on Linux systems. It allows you to create a single virtual pool of storage that can be used to create logical volumes, which can be used to store data for a wide range of applications and use cases.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How To Disable Weak Cipher And Insecure HMAC Algorithms In SSH Services In CentOS/RHEL 8
  2. Ubuntu Linux – yED(Graph Editor) Alternate of Microsoft Office Visio
  3. “az login” Command Examples (Log in to Azure)
  4. Repairing filesystem issues at Boot in CentOS/RHEL 7 and 8
  5. btrfs subvolume Command Examples in Linux
  6. How to create snapshot of LVM thin volumes using snapper command
  7. “az group” Command Examples (Manage resource groups and template deployments)
  8. taskset: command not found
  9. check-language-support: command not found
  10. wajig Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • gml2gv Command Examples
  • glow Command Examples
  • glib-compile-resources Command Examples
  • glances Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright