Xenserverdefault installation to local disk, which is based on local diskLinuxof theLVMmanaged, inXenServercreated asLVM Typerthe localSR,XenServerin theLVMnot supported onThin Provisioningdisk thin prep feature, suppose we want to useThin Provisioningfunction requires that the disk be formatted asEXT3format. CreateEXT3 Typerthe localSR. Assuming that there is only one hard disk/DEV/SDA installed, the default is 3 partitions,/dev/sda1 the primary partition. The/dev/sda2 is a backup partition, both of which are 4G. The rest of the space was divided into/dev/sda3. The partition defaults to the LVM format, which is treated as a logical volume. At the same time, because XenServer uses a GPT partitioned table, it should be managed using Gdisk or PARTX commands.
EXT3 Typer 's local SR creation method is available in two ways:
1. when installing xenserver , check the Enable thin provisioning, then the local disk will be formatted after the default load. EXT3 format.
2. assuming that the Enable thin provisioning option is not checked when installing xenserver , the default installation of the local disk will be LVM format. At this point we need to use the CLI to change the reset to EXT3 format.
(1) Delete the current default SR
- Xe sr-list name-label= "Local storage"
List the UUID of the local SR , we can see the typer as LVM at this time
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvd3h5exhjmtk5mg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
List Local SRcorrespondingPDBof theUUID
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvd3h5exhjmtk5mg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
Pull out the PDBObject
Delete PBDObject
ForgetLocalSRObject
(2) Remove the LVM characteristics of the current/DEV/SDA partition .
Use the lvremove,vgremove,pvremove command to delete the current LVM volume, VG volume Group with PV Physical volume. Assume that this step is not carried out. Despite the same ability to create an SR, unpredictable errors occur when you import a virtual machine or create a virtual machine.
(3) Format /dev/sad partition to 0700 format.
(4) Create a new partition in ext format.
Xe Host-list
Xe sr-create host-uuid=xxxx content-type=user name-label= "Local storage" Shared=false Device-config:device=/dev/sda3 Type=ext
Create a local SR object in EXT3 format
At this point you can see that the local storage is already in the Ext3 format, successfully xencenter.
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvd3h5exhjmtk5mg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
XenServer resetting storage Management SR to Ext3