clonezilla "osc-live-geberal" finished with error

594 views
Skip to first unread message

刘国新

unread,
Jul 6, 2017, 12:53:04 AM7/6/17
to 再生龍clonezilla
我成功的备份了我的ubuntu-server 16.04.2 我想在另一台服务器上还原这个镜像,但是在还原的过程中在最最后一步时出现了错误。
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
[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
Partclone v0.2.91 http://partclone.org
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.
程序停止!.

--------------------------------------------------------------------------------------------------------------------------------------------------------
希望大神给予指点,先谢过了

Steven Shiau

unread,
Jul 6, 2017, 4:39:25 AM7/6/17
to ocs-clo...@googlegroups.com

有測試過先用Clonezilla live 2.5.2-17試看看? 是否能重複這個問題?

Steven

--
這是 Google 網上論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 ocs-clonezill...@googlegroups.com
如要在這個群組張貼留言,請傳送電子郵件到 ocs-clo...@googlegroups.com
請前往以下網址造訪這個群組:https://groups.google.com/group/ocs-clonezilla
如需更多選項,請前往:https://groups.google.com/d/optout

-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C

刘国新

unread,
Jul 6, 2017, 5:04:20 AM7/6/17
to 再生龍clonezilla
这是我现在使用的版本 clonezilla-live-20170626-zesty-amd64.iso

我现在下载一个Clonezilla live 2.5.2-17版本的试一下

在 2017年7月6日星期四 UTC+8下午4:39:25,Steven Shiau写道:

刘国新

unread,
Jul 10, 2017, 12:30:29 AM7/10/17
to 再生龍clonezilla
我恢复了系统后,我能修改什么来弥补这个问题吗


在 2017年7月6日星期四 UTC+8下午4:39:25,Steven Shiau写道:

有測試過先用Clonezilla live 2.5.2-17試看看? 是否能重複這個問題?

刘国新

unread,
Jul 10, 2017, 12:30:50 AM7/10/17
to 再生龍clonezilla
我使用了clonezilla-live-2.5.2-17-amd64.iso还是有这个问题,下面是截图证明^ - ^





在 2017年7月6日星期四 UTC+8下午4:39:25,Steven Shiau写道:

有測試過先用Clonezilla live 2.5.2-17試看看? 是否能重複這個問題?

Message has been deleted

刘国新

unread,
Jul 11, 2017, 4:47:23 AM7/11/17
to 再生龍clonezilla
您好 Steven 我感觉我好想找到了问题的原因 

这个是我想要备份的服务器的磁盘UUID
nangle@nangle-test:~$ sudo blkid
/dev/sda1: UUID="33b63de7-cbf8-409f-ab09-ac5ebacf3d7a" TYPE="ext2" PARTUUID="067bdbae-01"
/dev/sda5: UUID="0icIA3-KXmB-TQVJ-BWPx-wD6d-nUer-f11iWG" TYPE="LVM2_member" PARTUUID="067bdbae-05"
/dev/sdb4: LABEL="CLONEZILLA" UUID="B4FE-5315" TYPE="vfat" PARTUUID="cad4ebea-04"
/dev/mapper/nangle--test--vg-root: UUID="5531bacb-0d15-455d-ac48-fce5ce80d5a7" TYPE="ext4"
/dev/mapper/nangle--test--vg-swap_1: UUID="f5cb2f8f-b292-44e4-a545-605181c1bbf1" TYPE="swap"

这个是错误信息
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.
在恢复到 /dev/sda5 时中断了是不是我哪里设置的有问题
这个是还原失败后在clonezilla的shell模式中查看的

 /dev/sda1 是可以挂载的



在 2017年7月6日星期四 UTC+8下午4:39:25,Steven Shiau写道:

有測試過先用Clonezilla live 2.5.2-17試看看? 是否能重複這個問題?

Steven Shiau

unread,
Jul 19, 2017, 8:47:16 AM7/19/17
to ocs-clo...@googlegroups.com
"Cannot restore Volume Group nangle-test-vg with 1 PVs marked as
missing." -> 所以是否是真的少了某個PV?
有pvlist, pvdisplay 列出比對看看嗎? 確認所有的PV都存在?
若是,就真的是Clonezilla的bug。不過這邊還原LVM確認是沒問題的,也許是配置不同。

Steven
> <https://lh3.googleusercontent.com/-zvSUySg6v3Y/WWSOIWbgY7I/AAAAAAAAACs/2F1ZohF0ZP0-1ppI66AILBY5bPilusLqgCLcBGAs/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20170711163640.jpg>
>> ocs-clonezill...@googlegroups.com <javascript:>。
>> 如要在這個群組張貼留言,請傳送電子郵件到 ocs-clo...@googlegroups.com
>> <javascript:>。
>> 請前往以下網址造訪這個群組:https://groups.google.com/group/ocs-clonezilla
>> <https://groups.google.com/group/ocs-clonezilla>。
>> 如需更多選項,請前往:https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>。
>
> --
> Steven Shiau <steven _at_ stevenshiau org>
> Public Key Server PGP Key ID: 4096R/47CF935C
> Fingerprint: 0240 1FEB 695D 7112 62F0 8796 11C1 12DA 47CF 935C
>
> --
> 這是 Google 網上論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> <mailto:ocs-clonezill...@googlegroups.com>。
> 如要在這個群組張貼留言,請傳送電子郵件到 ocs-clo...@googlegroups.com
> <mailto:ocs-clo...@googlegroups.com>。

GQ Su

unread,
Oct 19, 2023, 1:16:11 AM10/19/23
to 再生龍clonezilla
这个最后是如何解决的呀,碰到了同样的问题。

Steven Shiau

unread,
Oct 22, 2023, 1:15:48 AM10/22/23
to ocs-clo...@googlegroups.com

原因可能很多種,最好看一下/var/log/clonezilla.log中的資訊,比較好判斷。

Steven

--
這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 ocs-clonezill...@googlegroups.com
如要在網路上查看這項討論,請造訪 https://groups.google.com/d/msgid/ocs-clonezilla/c97cffd3-e2eb-4c3e-8737-868c2945e93fn%40googlegroups.com
-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0
Reply all
Reply to author
Forward
0 new messages