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

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

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

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

 

0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.