--------------------------------------------------------------------------------------------------------------------------------------------------------
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
[1;33m该分区的镜像是可还原的: sda1
[0;39m [1;33m该分区的镜像是可还原的: nangle-test-vg-root
[0;39m [1;33m该镜像中所有分区或LV设备的镜像已经检查过也确实是可还原的: 2017-07-05-06-img
[0;39mRunning: 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:
* Is the saved image /home/partimag/2017-07-05-06-img/sda1.ext2-ptcl-img.gz.* corrupted ?
*****************************************************.
( for img in /home/partimag/2017-07-05-06-img/sda1.ext2-ptcl-img.gz.*; do
cat
done
) | gunzip -c 2> /tmp/unzip_stdin_cmd_error.z1hLF8 | LC_ALL=C partclone.ext2 -z 10485760 -N -L /var/log/partclone.log -s - -r -o /dev/sda1
Starting to restore image (-) to device (/dev/sda1)
we need memory: 67524 bytes
image head 4160, bitmap 62336, crc 1028 bytes
Calculating bitmap... Please wait... get device size 510656512 by ioctl BLKGETSIZE64,
done!
File system: EXTFS
Device size: 510.7 MB = 498688 Blocks
Space in use: 76.4 MB = 74633 Blocks
Free Space: 434.2 MB = 424055 Blocks
Block size: 1024 Byte
Image Version: 0001
Syncing... OK!
Partclone successfully restored the image (-) to the device (/dev/sda1)
>>> Time elapsed: 10.58 secs (~ .176 mins)
Finished unicast restoring image 2017-07-05-06-img to /dev/sda1.
Informing the OS of partition table changes.... done!
*****************************************************.
Finding swap partition(s) in MBR table /home/partimag/2017-07-05-06-img/sda-pt.sf...
Probing sda with blockdev before restoring EBR...
Finding extended partition(s) in parted table /home/partimag/2017-07-05-06-img/sda-pt.parted...
Restoring extended boot record (EBR) in extended partition /dev/sda2...
Found the EBR data for /dev/sda2 in the image dir, restore it by:
Running: ocs-restore-ebr --ocsroot /home/partimag 2017-07-05-06-img sda2
Setting the TERM as jfbterm
Restoring the first 446 bytes of EBR data for extended partition sda2... done.
*****************************************************.
*****************************************************.
LVM exists, restoring PV/VG/LV.
Preparing the LVM (PV/VG/LV)...
Creating the PV...
done.
Restoring the VG config...
Couldn't find device with uuid 0icIA3-KXmB-TQVJ-BWPx-wD6d-nUer-f11iWG.
Cannot restore Volume Group nangle-test-vg with 1 PVs marked as missing.
Restore failed.
done.
程序停止!.