XenServer resetting storage Management SR to Ext3

Source: Internet
Author: User

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 ">

    • Xe Pbd-list sr-uuid=xxxx
List Local SRcorrespondingPDBof theUUID

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvd3h5exhjmtk5mg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">

    • Xe Pbd-unplug uuid=xxxx
Pull out the PDBObject

    • Xe Pbd-destroy uuid=xxxx
Delete PBDObject

    • Xe Sr-forget uuid=xxxx
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.