Pvcreate

From wikieduonline
Revision as of 12:46, 15 December 2019 by Welcome (talk | contribs)
Jump to navigation Jump to search

pvcreate[1] initialize a disk for use by LVM. Also partition, meta device, or loopback file are supported.


pvcreate

pvcreate /dev/sdb
WARNING: ext4 signature detected on /dev/sdb at offset 1080. Wipe it? [y/n]:
pvcreate /dev/mapper/3600a09803831417a5a244f5665797a47
  Can't open /dev/mapper/3600a09803831417a5a244f5665797a47 exclusively.  Mounted filesystem?


pvcreate /dev/mapper/3600a09803831417a5a244f5665797a47
  Physical volume "/dev/mapper/3600a09803831417a5a244f5665797a47" successfully created.
pvcreate /dev/dm-24
  Physical volume "/dev/dm-24" successfully created.


pvcreate --uuid "FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk" --restorefile /etc/lvm/archive/VG_00050.vg /dev/sdh1
  Physical volume "/dev/sdh1" successfully created


Activities

Basic:

  1. Initialize a new disk to be used by Linux LVM with pvcreate command.
  2. Initialize a new multipath disk and make user lvm.conf if properly configured.[2]

Related:

  1. Multipath: remove multipath device unpresented to host

See also

Advertising: