Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 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, 62 guest(s) and 0 member(s) that are online.

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




       pvcreate [-d|--debug] [-f[f]|--force [--force]] [-y|--yes]
       [-h|--help] [-v|--verbose]  [-V|--version]  PhysicalVolume


       pvcreate  initializes  PhysicalVolume for later use by the
       Logical Volume Manager (LVM).  Each PhysicalVolume can  be
       a  disk  partition,  whole  disk, meta device, or loopback
       file.  For DOS disk partitions, the partition id  must  be
       set  to  0x8e  using fdisk(8), cfdisk(8), or a equivalent.
       For whole disk devices only the partition  table  must  be
       erased,  which  will  effectively destroy all data on that
       disk.  This can be done by zeroing the first sector with:

       dd if=/dev/zero of=PhysicalVolume bs=512 count=1

       Continue with vgcreate(8) to create a new volume group  on
       PhysicalVolume, or vgextend(8) to add PhysicalVolume to an
       existing volume group.

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

       -f, --force
              Force  the  creation without any confirmation.  You
              can not recreate (reinitialize) a  physical  volume
              belonging to an existing volume group.  In an emer­
              gency you can override this behaviour with -ff.  In
              no  case case can you initialize an active physical
              volume with this command.

       -s, --size
              Overrides the size of the physical volume which  is
              normally retrieved.  Useful in rare case where this
              value is wrong. More useful to fake large  physical
              volumes of up to 2 Terabyes - 1 Kilobyte on smaller
              devices for testing purposes  only  where  no  real
              access  to  data  in  created  logical  volumes  is
              needed.  If you wish to create the supported  maxi­
              mum,  use  "pvcreate  -s 2147483647k PhysicalVolume
              [PhysicalVolume ...]".  All other  LVM  tools  will
              use this size with the exception of lvmdiskscan(8)

       -y, --yes
              Answer yes to all questions.

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


       pvcreate  returns an exit code of 0 for success or > 0 for

       1  no physical volume on command line
       2  error removing existing lvmtab entry for new physical volume
       3  error setting up physical volume structure
       4  error writing physical volume structure to disk
       5  wrong partition type identifier
       6  error physical volume name
       7  error getting size of physical volume

       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


       lvm(8), vgcreate(8), vgextend(8), lvcreate(8),  cfdisk(8),
       fdisk(8), losetup(8), mdadd(8)


       Heinz Mauelshagen <Linux-LVM@Sistina.com>

Heinz Mauelshagen           LVM TOOLS                 PVCREATE(8)
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



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?
The Linux Tutorial welcomes your suggestions and ideas.


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