vi /etc/yum.repos.d/CentOS-Base.repo
comment enabled=0
install parted with
yum install parted
1. Unplug existing PBD
xe pbd-list
uuid ( RO) : 08f83ac4-f79e-1ff5-8ed4-a9f7ee585af7
host-uuid ( RO): b44e871f-72ec-44cc-bb63-3f318bdf3ca3
sr-uuid ( RO): 27b57e69-7751-fbd1-be11-caf4bf9b2c66
device-config (MRO): device: /dev/disk/by-id/scsi-1AMCC_5QD15WEM38A6BB001F8E-part3
currently-attached ( RO): true
xe pbd-unplug uuid=08f83ac4-f79e-1ff5-8ed4-a9f7ee585af7
2. Remove the existing Loacal Storage.
xe sr-list
uuid ( RO) : 27b57e69-7751-fbd1-be11-caf4bf9b2c66
name-label ( RW): Local storage
name-description ( RW):
host ( RO): 172.30.30.148
type ( RO): lvm
content-type ( RO): user
xe sr-forget uuid=27b57e69-7751-fbd1-be11-caf4bf9b2c66
3. Determine the ID of the disk by running:
ls -la /dev/disk/by-id/ | grep sdb
What you need to look for is the ID of the disk, for example:
scsi-1AMCC_5QJ0T2ZG0F948300B00A-part1
4. Determine the UUID of your host by running:
xe host-list
5. Create the storage repository by running:
xe sr-create host-uuid=edb98322-38aa-4874-be73-6ce11632e051 name-label="Local Disk" device-config:device=/dev/disk/by-id/scsi-1AMCC_5QJ0TXWTD1D3560013B4-part1 shared=true type=lvm
comment enabled=0
install parted with
yum install parted
1. Unplug existing PBD
xe pbd-list
uuid ( RO) : 08f83ac4-f79e-1ff5-8ed4-a9f7ee585af7
host-uuid ( RO): b44e871f-72ec-44cc-bb63-3f318bdf3ca3
sr-uuid ( RO): 27b57e69-7751-fbd1-be11-caf4bf9b2c66
device-config (MRO): device: /dev/disk/by-id/scsi-1AMCC_5QD15WEM38A6BB001F8E-part3
currently-attached ( RO): true
xe pbd-unplug uuid=08f83ac4-f79e-1ff5-8ed4-a9f7ee585af7
2. Remove the existing Loacal Storage.
xe sr-list
uuid ( RO) : 27b57e69-7751-fbd1-be11-caf4bf9b2c66
name-label ( RW): Local storage
name-description ( RW):
host ( RO): 172.30.30.148
type ( RO): lvm
content-type ( RO): user
xe sr-forget uuid=27b57e69-7751-fbd1-be11-caf4bf9b2c66
3. Determine the ID of the disk by running:
ls -la /dev/disk/by-id/ | grep sdb
What you need to look for is the ID of the disk, for example:
scsi-1AMCC_5QJ0T2ZG0F948300B00A-part1
4. Determine the UUID of your host by running:
xe host-list
5. Create the storage repository by running:
xe sr-create host-uuid=edb98322-38aa-4874-be73-6ce11632e051 name-label="Local Disk" device-config:device=/dev/disk/by-id/scsi-1AMCC_5QJ0TXWTD1D3560013B4-part1 shared=true type=lvm
Comments