Header Shadow Image


XCP-ng: Creating PV’s, VG’s and LV’s under XCP-ng.

Creating PV's, VG's and LV's under XCP-ng.
 

[06:47 xcpng02 ~]#
[06:47 xcpng02 ~]# pvremove /dev/sdb
  pvremove /dev/sdb: Command not permitted while global/metadata_read_only is set.
[06:47 xcpng02 ~]# pvremove /dev/sdb –config global{metadata_read_only=0}
  Labels on physical volume "/dev/sdb" successfully wiped.
[06:47 xcpng02 ~]# pvcreate /dev/sdb –config global{metadata_read_only=0}
  Physical volume "/dev/sdb" successfully created.
[06:47 xcpng02 ~]# vgcreate vmsrvg /dev/sdb
  vgcreate vmsrvg /dev/sdb: Command not permitted while global/metadata_read_only is set.
[06:48 xcpng02 ~]# vgcreate vmsrvg /dev/sdb –config global{metadata_read_only=0}
  Volume group "vmsrvg" successfully created
[06:48 xcpng02 ~]# lvcreate -L 128G -n vmsrlv vmsrvg –config global{metadata_read_only=0}
  Logical volume "vmsrlv" created.
[06:52 xcpng02 ~]#

Rest of the commands don't need special handling:

   40  pvremove /dev/sdb
   41  pvremove /dev/sdb –config global{metadata_read_only=0}
   42  pvcreate /dev/sdb –config global{metadata_read_only=0}
   43  vgcreate vmsrvg /dev/sdb
   44  vgcreate vmsrvg /dev/sdb –config global{metadata_read_only=0}
   45  lvcreate -L 128G -n vmsrlv vmsrvg –config global{metadata_read_only=0}
   46  mkfs.ext4
   47  yum install xfs
   48  yum search xfs
   49  yum install xfsprogs.x86_64 xfsprogs-devel.x86_64
   50  mkfs.xfs
   51  mkfs.xfs /dev/mapper/vmsrvg-vmsrlv

 

Cheers,
TK


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License