Example of XenServer data recovery and restoration under Linux

Source: Internet
Author: User
Tags uuid

Last night encountered a very depressing problem, XenServer machine XAPI can not start, all XE commands can not be executed, the only way to access only SSH, the problem is that there are many virtual machines on this machine is running, try a lot of methods have no effect, The only solution is to rebuild the environment without affecting the production after daybreak.
Idea: Considering the use of local storage, the host should be able to recognize the original storage after the extra disc reload and then put the store on the newly installed machine. Finally, in the new virtual machine, the corresponding VDI hang up again.


[Root@xenserver-ds-testserver04 ~]# Pvscan
PV/DEV/SDB3 VG vg_xenstorage-9e3c293e-4608-2950-2090-4ab6d8fe9ea8 lvm2 [2.69 tib/2.65 TiB Free]
Pv/dev/sda3 VG vg_xenstorage-e383cf7d-45b2-7afb-b4e0-43e4a190f55a lvm2 [10.87 tib/7.68 TiB Free]
Total:2 [13.56 TiB]/in Use:2 [13.56 TiB]/in no vg:0 [0]
[Root@xenserver-ds-testserver04 ~]# Xe Host-list
UUID (RO): 1b8ae4de-2694-4d4b-9f3e-156a1a1d04e6
Name-label (RW): xenserver-ds-testserver04
Name-description (RW): Default Install

[Root@xenserver-ds-testserver04 ~]# Xe sr-introduce uuid=e383cf7d-45b2-7afb-b4e0-43e4a190f55a TYPE=LVM name-label= " Local Storage2 "Content-type=user
e383cf7d-45b2-7afb-b4e0-43e4a190f55a
[Root@xenserver-ds-testserver04 ~]# XE pbd-create sr-uuid=e383cf7d-45b2-7afb-b4e0-43e4a190f55a device-config:device =/dev/disk/by-id/scsi-3600605b000b394d01f248fd03fb580e9-part3 Host-uuid=1b8ae4de-2694-4d4b-9f3e-156a1a1d04e6
f86f3144-c40c-7295-27ab-40ca1e74e548
[Root@xenserver-ds-testserver04 ~]# XE Pbd-plug uuid=f86f3144-c40c-7295-27ab-40ca1e74e548
[Root@xenserver-ds-testserver04 ~]# Xe Sr-list
UUID (RO): ac1701d9-ed6f-0a8e-62ad-7e5182a3adfe
Name-label (RW): XenServer Tools
Name-description (RW): XenServer Tools ISOs
Host (RO): xenserver-ds-testserver04
Type (RO): ISO
Content-type (RO): ISO

UUID (RO): 687e837f-136f-7ac9-daef-aa80e9ea699b
Name-label (RW): Removable Storage
Name-description (RW):
Host (RO): xenserver-ds-testserver04
Type (RO): Udev
Content-type (RO): Disk

UUID (RO): B797161a-5482-3a25-2ef7-8dc64b5f91de
Name-label (RW): DVD drives
Name-description (RW): Physical DVD Drives
Host (RO): xenserver-ds-testserver04
Type (RO): Udev
Content-type (RO): ISO

UUID (RO): e383cf7d-45b2-7afb-b4e0-43e4a190f55a
Name-label (RW): local storage2
Name-description (RW):
Host (RO): xenserver-ds-testserver04
Type (RO): LVM
Content-type (RO): User

UUID (RO): 9e3c293e-4608-2950-2090-4ab6d8fe9ea8
Name-label (RW): local Storage
Name-description (RW):
Host (RO): xenserver-ds-testserver04
Type (RO): LVM
Content-type (RO): User

[Root@xenserver-ds-testserver04 ~]#

When I did this, I was excited, because it was 7 o ' hour in the morning,

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.