stevenshiau / clonezilla

Clonezilla is a partition or disk clone tool similar to Norton Ghost®. It saves and restores only used blocks in hard drive. Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (Server Edition).
GNU General Public License v2.0
607 stars 94 forks source link

osc-live-general finished with error #28

Open GuoxinL opened 7 years ago

GuoxinL commented 7 years ago

我使用clonezilla备份了我的服务器,我的服务器是ubuntu-server 1604 ,在备份的过程中没有出现问题,然后,在windows环境下我使用了VMware还原备份的ubuntu-server 1604的镜像但是在最后一步的时候出现了这个错误,很难过。 clonezilla.log `Starting /usr/sbin/ocs-sr at 2017-07-06 00:59:38 UTC... . Clonezilla image dir: /home/partimag Shutting down the Logical Volume Manager Finished Shutting down the Logical Volume Manager PS. 下次您可以直接下这样的指令: /usr/sbin/ocs-sr -g auto -e1 auto -e2 -c -r -icds -j2 -p choose restoredisk 2017-07-05-06-img sda . Partition table file for disk was found: sda MBR file for this disk was found: sda 该分区的镜像是可还原的: sda1 该分区的镜像是可还原的: nangle-test-vg-root 该镜像中所有分区或LV设备的镜像已经检查过也确实是可还原的: 2017-07-05-06-img Running: task_restoreparts "2017-07-05-06-img" "sda1 sda5" "" . 下个步骤将把镜像文件还原到这台机器的硬盘/分区: "/home/partimag/2017-07-05-06-img" -> "sda sda1 sda5" 该镜像产生时间: 2017-0705-0716 警告. 在这个硬盘/分区的资料将会被完全盖掉! 所有现存的资料将会遗失: . Machine: VMware Virtual Platform sda (96.6GB_VMware_Virtual_I_VMware_Virtual_IDE_Hard_Drive_00000000000000000001) sda1 (487M_ext2(In_VMware_Virtual_I)_VMware_Virtual_IDE_Hard_Drive_00000000000000000001) sda5 (89.5G_lvm(In_VMware_Virtual_I)_VMware_Virtual_IDE_Hard_Drive_00000000000000000001) . This program is not started by clonezilla server. . 容我再问您一次. 下个步骤将把镜像文件还原到这台机器的硬盘/分区: "/home/partimag/2017-07-05-06-img" -> "sda sda1 sda5" 该镜像产生时间: 2017-0705-0716 警告. 在这个硬盘/分区的资料将会被完全盖掉! 所有现存的资料将会遗失: . Machine: VMware Virtual Platform sda (96.6GB_VMware_Virtual_I_VMware_Virtual_IDE_Hard_Drive_00000000000000000001) sda1 (487M_ext2(In_VMware_Virtual_I)_VMware_Virtual_IDE_Hard_Drive_00000000000000000001) sda5 (89.5G_lvm(In_VMware_Virtual_I)_VMware_Virtual_IDE_Hard_Drive_00000000000000000001) . Shutting down the Logical Volume Manager Finished Shutting down the Logical Volume Manager Creating partition in /dev/sda... Trying to clean the MBR and GPT partition table on the destination disk first: /dev/sda Informing the OS of partition table changes... done! *****. Thu Jul 6 01:03:36 UTC 2017 Writing the partition table... No partition table exists in target disk /dev/sda, try to initialize one so that we can get the disk size by parted... Running: parted -s /dev/sda mklabel msdos done! Running: LC_ALL=C sfdisk --force /dev/sda < /home/partimag/2017-07-05-06-img/sda-pt.sf 2>&1 | tee -a /var/log/clonezilla.log Checking that no-one is using this disk right now ... OK

Disk /dev/sda: 90 GiB, 96636764160 bytes, 188743680 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc4d6d693

Old situation:

Script header accepted. Script header accepted. Script header accepted. Script header accepted. Created a new DOS disklabel with disk identifier 0x067bdbae. /dev/sda1: Created a new partition 1 of type 'Linux' and of size 487 MiB. /dev/sda2: Created a new partition 2 of type 'Extended' and of size 89.5 GiB. /dev/sda3: Created a new partition 5 of type 'Linux LVM' and of size 89.5 GiB. /dev/sda6: Done.

New situation:

Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 999423 997376 487M 83 Linux /dev/sda2 1001470 188743679 187742210 89.5G 5 Extended /dev/sda5 1001472 188743679 187742208 89.5G 8e Linux LVM

The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Checking that no-one is using this disk right now ... OK

Disk /dev/sda: 90 GiB, 96636764160 bytes, 188743680 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc4d6d693

Old situation:

Script header accepted. Script header accepted. Script header accepted. Script header accepted. Created a new DOS disklabel with disk identifier 0x067bdbae. /dev/sda1: Created a new partition 1 of type 'Linux' and of size 487 MiB. /dev/sda2: Created a new partition 2 of type 'Extended' and of size 89.5 GiB. /dev/sda3: Created a new partition 5 of type 'Linux LVM' and of size 89.5 GiB. /dev/sda6: Done.

New situation:

Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 999423 997376 487M 83 Linux /dev/sda2 1001470 188743679 187742210 89.5G 5 Extended /dev/sda5 1001472 188743679 187742208 89.5G 8e Linux LVM

The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. This was done by: LC_ALL=C sfdisk --force /dev/sda < /home/partimag/2017-07-05-06-img/sda-pt.sf 2>&1 | tee -a /var/log/clonezilla.log Checking the integrity of partition table in the disk /dev/sda... Informing the OS of partition table changes.... done! . The first partition of disk /dev/sda starts at 2048. Restoring the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by: dd if=/home/partimag/2017-07-05-06-img/sda-hidden-data-after-mbr of=/dev/sda seek=1 bs=512 count=2047 2047+0 records in 2047+0 records out 1048064 bytes (1.0 MB, 1.0 MiB) copied, 0.344201 s, 3.0 MB/s . . Restoring partition /dev/sda1... . Starting unicast restoring image 2017-07-05-06-img to /dev/sda1... If this action fails or hangs, check:

GuoxinL commented 7 years ago

I use cloned zilla backup server, my server is ubuntu - server 1604, in the process of backup without problems, then, I use under Windows environment VMware restore backup ubuntu - server 1604 mirror but when the last step to the mistake

stevenshiau commented 7 years ago

Please give testing Clonezilla live 2.5.2-20 or 20170724-* a try: http://clonezilla.org/downloads.php It has some improvements about LVM. Please let us know the results.

Steven