Xenserver 7 fatsb File Loss Recovery method detailed

Source: Internet
Author: User
Tags uuid

Just one of the problems I had before, today to demonstrate again to restore the problem, to see how to achieve recovery.

[Root@xenserver-ds-testserver04 ~]# Cat/etc/fstab
Uuid=6f29f0ba-a0ea-4799-bdf4-51570d8354c6/iso_storage EXT4 Defaults 0 0
[Root@xenserver-ds-testserver04 ~]# DF-HP
FileSystem Size Used Avail use% mounted on
/DEV/SDA1 18G 1.8G 16G 11%/
Devtmpfs 2.0G 8.0K 2.0G 1%/dev
Tmpfs 2.0G 592K 2.0G 1%/DEV/SHM
Tmpfs 2.0G 2.1M 2.0G 1%/run
Tmpfs 2.0G 0 2.0G 0%/sys/fs/cgroup
Xenstore 2.0G 0 2.0G 0%/var/lib/xenstored
/dev/loop0 55M 55M 0 100%/var/xen/xc-install
/dev/sda5 4.0G 260M 3.5G 7%/var/log
Tmpfs 394M 0 394M 0%/run/user/0
/dev/vg_xenstorage-e383cf7d-45b2-7afb-b4e0-43e4a190f55a/local_iso 20G 45M 19G 1%/iso_storage
[Root@xenserver-ds-testserver04 ~]#
First check the SDA disk partition information, using the Blkid command we can see the partition file system LABEL UUID and so on information, which is enough to restore

XenServer xenserver 7 fatsb File Loss Recovery method XenServer xenserver 7 fatsb File Loss recovery method


[Root@xenserver-ds-testserver04 ~]# blkid/dev/sda*
/dev/sda:pttype= "GPT"
/dev/sda1:label= "ROOT-QUBEMJ" uuid= "c8170070-eb33-4e3b-a816-a52e90b60a3f" type= "ext3" partuuid= " cfa2d968-58a9-4358-9884-8252f6ff6155 "
/dev/sda2:partuuid= "058b5bdd-076e-42dd-afbb-9de41b1ae0c5"
/dev/sda3:uuid= "ITEN8P-0CVA-YOF5-JYQD-AQMQ-YEIS-7V3VNB" type= "Lvm2_member" partuuid= " cce85972-1476-494f-8630-eee61aef0592 "
/dev/sda4:partuuid= "2b35a223-a191-41cf-a7fd-81b5750dd507"
/dev/sda5:label= "LOGS-QUBEMJ" uuid= "c270b219-06b7-4632-b902-ae37f8a2b887" type= "ext3" partuuid= " Ac1b8359-69b4-4d88-a2d2-1e58fd0b60ea "
/dev/sda6:label= "SWAP-QUBEMJ" uuid= "fdd4f987-8786-4960-a171-095fa3033405" type= "swap" partuuid= " C71e4c15-45f9-48ce-89b1-ad16d89516e3 "
[Root@xenserver-ds-testserver04 ~]#


Again to see the recovery after the content of the file, alas, it seems that the default XenServer automatic zoning scheme is very useful ah.

[Root@xenserver-ds-testserver04 ~]# Cat/etc/fstab
#/dev/sda1:label= "ROOT-QUBEMJ" uuid= "c8170070-eb33-4e3b-a816-a52e90b60a3f" type= "ext3" partuuid= " cfa2d968-58a9-4358-9884-8252f6ff6155 "
#/dev/sda2:partuuid= "058b5bdd-076e-42dd-afbb-9de41b1ae0c5"
#/dev/sda3:uuid= "ITEN8P-0CVA-YOF5-JYQD-AQMQ-YEIS-7V3VNB" type= "Lvm2_member" partuuid= " cce85972-1476-494f-8630-eee61aef0592 "
#/dev/sda4:partuuid= "2b35a223-a191-41cf-a7fd-81b5750dd507"
#/dev/sda5:label= "LOGS-QUBEMJ" uuid= "c270b219-06b7-4632-b902-ae37f8a2b887" type= "ext3" partuuid= " Ac1b8359-69b4-4d88-a2d2-1e58fd0b60ea "
#/dev/sda6:label= "SWAP-QUBEMJ" uuid= "fdd4f987-8786-4960-a171-095fa3033405" type= "swap" partuuid= " C71e4c15-45f9-48ce-89b1-ad16d89516e3 "


###### #上面是本机各个分区的详细信息

LABEL=ROOT-QUBEMJ/EXT3 Defaults 1 1
#LABEL =boot-qubemj/boot/efi vfat defaults 0 2 #如果有EFI启动的还需要加这一条
LABEL=SWAP-QUBEMJ Swap Defaults 0 0
Label=logs-qubemj/var/log ext3 Defaults 0 2
/opt/xensource/packages/iso/xencenter.iso/var/xen/xc-install iso9660 Loop,ro 0 0


Uuid=6f29f0ba-a0ea-4799-bdf4-51570d8354c6/iso_storage EXT4 Defaults 0 0
[Root@xenserver-ds-testserver04 ~]#

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.