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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

vgcreate: command not found

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.

If you encounter the below error while running the command vgcreate:

vgcreate: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install lvm2
Ubuntu apt-get install lvm2
Alpine apk add lvm2
Arch Linux pacman -S lvm2
Kali Linux apt-get install lvm2
CentOS yum install lvm2
Fedora dnf install lvm2
Raspbian apt-get install lvm2

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. rsyslogd Command Examples in Linux
  2. conky: command not found
  3. named-checkconf: command not found
  4. How to disable auto deletion of the files in /tmp and /var/tmp directories in CentOS / RHEL 5,6
  5. rdesktop: command not found
  6. modprobe Command Options
  7. How to Reduce an LVM volume on Ubuntu
  8. atop Command Examples in Linux
  9. Downgrading an rpm package to a lower version (using “rpm” command)
  10. Linux OS Service ‘vncserver’

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright