Difference between revisions of "Pvcreate"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
 
Basic:
 
Basic:
 
# Initialize a new disk to be used by Linux [[LVM]] with <code>pvcreate</code> command.
 
# Initialize a new disk to be used by Linux [[LVM]] with <code>pvcreate</code> command.
 
+
# Initialize a new [[multipath]] disk and make user [[lvm.conf]] if properly configured.<ref>https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/DM_Multipath/multipath_logical_volumes.html</ref>
  
 
Related:
 
Related:

Revision as of 15:46, 9 December 2019

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/dm-24
  Physical volume "/dev/dm-24" 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

scan: pvscan vgscan
LVM: lvs lvmscan lvm fullreport lvmreport lvmconfig lvmdump lvmcheck lvm dumpconfig
Scan: pvs vgs lvs pvscan vgscan
PV: pvcreate pvremove pvscan pvremove pvscan pvs pvchange pvck pvdisplay pvresize
LV: lvdisplay lvcreate lvremove, lvresize, lvextend, lvreduce, lvrename
VG: vgdisplay,vgcreate,vgremove, vgextend, vgreduce, vgscan, vgchange, vgrename, vgcfgbackup, vgcfgrestore, vgimportclone, vgck
Check commands: pvck vgck
  • http://man7.org/linux/man-pages/man8/pvcreate.8.html
  • https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/DM_Multipath/multipath_logical_volumes.html
  • Advertising: