Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 67 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       vgcreate  [-A|--autobackup {y|n}] [-d|--debug] [-h|--help]
       [-l|--maxlogicalvolumes MaxLogicalVolumes] [-p|--maxphysi­
       calvolumes   MaxPhysicalVolumes]  [-s|--physicalextentsize
       PhysicalExtentSize[kKmMgGtT]]  [-v|--verbose]  [--version]
       VolumeGroupName PhysicalVolumePath [PhysicalVolumePath...]


       vgcreate creates a new volume group called VolumeGroupName
       using  the  block special device PhysicalVolumePath previ­
       ously configured for LVM with pvcreate(8).

       -A, --autobackup {y|n}
              Controls automatic backup of VG metadata after  the
              change (see vgcfgbackup(8)).  Default is yes.

       -d, --debug
              Enables  additional  debugging  output (if compiled
              with DEBUG).

       -h, --help
              Print a usage message on standard output  and  exit

       -l, --maxlogicalvolumes MaxLogicalVolumes
              Sets  the  maximum  possible  logical volume count.
              More logical volumes can't be created in this  vol­
              ume group.  Absolute maximum is 256.

       -p, --maxphysicalvolumes MaxPhysicalVolumes
              Sets  the  maximum  possible physical volume count.
              More physical volumes can't  be  included  in  this
              volume group.  Absolute maximum is 256.

       -s, --physicalextentsize PhysicalExtentSize[kKmMgGtT]
              Sets  the  physical extent size on physical volumes
              of this volume group.  A size suffix (k  for  kilo­
              bytes up to t for terabytes) is optional, megabytes
              is the default if no suffix is present.  Values can
              be  from  8 KB to 16 GB in powers of 2. The default
              of 32 MB allows LV sizes of ~2TB because as many as
              ~64k  extents  are supported per LV. Linux 2.4 does
              not support block devices of 2TB or larger so  this
              should  not  be  a  problem.  It is not possible to
              change the PE size of a volume group after  it  has
              been created.

       -v, --verbose
              Display  verbose  runtime  information about vgcre­
              ate's activities.

            vgcreate test_vg /dev/scsi/host1/bus0/target[1-3]/lun0/part1

       To  limit  kernel  memory usage, there is a limit of 65536
       physical extents (PE) per logical volume, so the  PE  size
       determines  the  maximum logical volume size.  The default
       PE size of 4MB limits a single  logical  volume  to  256GB
       (see  the  -s  option to raise that limit).  There is also
       (as of Linux 2.4) a kernel limitation  of  2TB  per  block


       vgcreate returns an exit code of 0 for success and > 0 for

       1  no volume group and physical volume names on command line
       2  no physical volume names on command line
       3  invalid volume group name
       4  error checking existence of volume group
       5  maximum number of volume groups exceeded
       6  error reading physical volume(s)
       7  invalid physical volume name
       8  error getting physical volume size
       9  no new physical volume
       10 physical volume occurs multiple times on command line
       11 memory reallocation error
       12 no valid physical volumes on command line
       13 some invalid physical volumes on command line
       14 physical volume is too small
       15 error setting up VGDA
       16 error writing VGDA to physical volumes
       17 error creating VGDA in kernel
       18 error inserting volume group into lvmtab
       19 error doing backup of VGDA
       20 error writing VGDA to lvmtab
       21 volume group directory already exists in /dev

       95 driver/module not in kernel
       96 invalid I/O protocol version
       97 error locking logical volume manager
       98 invalid lvmtab (run vgscan(8))
       99 invalid command line


              If this variable is set to "no" then the  automatic
              backup of VG metadata is turned off.

              This  variable  determines the backup history depth
              of kept VGDA copy files in /etc/lvmconf.  It can be
              set  to  a  positive number between 0 and 999.  The

Heinz Mauelshagen           LVM TOOLS                 VGCREATE(8)
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds