Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Can anyone tell me why this image failed to create?

nick
2014-06-17
2014-06-21
  • nick
    nick
    2014-06-17

    I'm new to clonezilla. I'm currently using clonezilla-live-20140518-trusty-amd64 booted from PXE. Yesterday I created an image, and when I went to restore the image on another machine I never could get the restore options to show up on the menu, even though it was successfully mounting the NFS location where the image was. Looking at the image folder I noticed a file called "saving-error-201406162041" which appears to be a log of the imaging process, at the end of which it says "Failed to save partition /dev/vg_lrender1/lv_root." I don't understand it though, because looking at the rest of the file, it looks like each partition was successfully imaged. There's no indication of anything failing that I can see. Below is the entire log:

    Starting /usr/sbin/ocs-sr at 2014-06-16 18:51:55 UTC...
    *****************************************************.
    Clonezilla image dir: /home/partimag
    Shutting down the Logical Volume Manager
    Found udevd rule causes block devices with LVM signatures to be automatically added to their volume group.
    Temporarily disable it otherwise the partition tool won't be able to inform the kernel the changes of partition table...
    â/lib/udev/rules.d/85-lvm2.rulesâ -> â/lib/udev/rules.d/85-lvm2.rules.drblsaveâ
      Shutting Down logical volume: /dev/vg_lrender1/lv_root
      Shutting Down logical volume: /dev/vg_lrender1/lv_swap
      Shutting Down volume group: vg_lrender1
    Finished Shutting down the Logical Volume Manager
    The selected devices: cciss/c0d0
    PS. Next time you can run this command directly:
    /usr/sbin/ocs-sr -q2 -c -j2 -z0 -i 20000 -sc -p true savedisk lrender-2014-6-16 cciss/c0d0
    *****************************************************.
    The selected devices: cciss/c0d0
    Searching for data partition(s)...
    Searching for swap partition(s)...
    The data partition to be saved:   cciss/c0d0p1 cciss/c0d0p2
    The swap partition to be saved:
    The selected devices: cciss/c0d0p1 cciss/c0d0p2
    The following step is to save the hard disk/partition(s) on this machine as an image:
    *****************************************************.
    Machine: ProLiant BL460c G1
    cciss/c0d0 (147GB_LOGICAL_VOLUME__3600508b1001039333220202020200004)
    cciss/c0d0p1 (500M_ext4(In_LOGICAL_VOLUME_)_3600508b1001039333220202020200004)
    cciss/c0d0p2 (136.2G_LVM2_member(In_LOGICAL_VOLUME_)_3600508b1001039333220202020200004)
    *****************************************************.
    -> "/home/partimag/lrender-2014-6-16".
    Shutting down the Logical Volume Manager
      Shutting Down volume group: vg_lrender1
    Finished Shutting down the Logical Volume Manager
    Saving block devices info in /home/partimag/lrender-2014-6-16/blkdev.list...
    Saving block devices attributes in /home/partimag/lrender-2014-6-16/blkid.list...
    Checking the integrity of partition table in the disk /dev/cciss/c0d0...
    Reading the partition table for /dev/cciss/c0d0...RETVAL=0
    *****************************************************.
    The first partition of disk /dev/cciss/c0d0 starts at 2048.
    Saving 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=/dev/cciss/c0d0 of=/home/partimag/lrender-2014-6-16/cciss-c0d0-hidden-data-after-mbr skip=1 bs=512 count=2047
    2047+0 records in
    2047+0 records out
    1048064 bytes (1.0 MB) copied, 0.0239606 s, 43.7 MB/s
    *****************************************************.
    Saving the MBR data for cciss/c0d0...
    1+0 records in
    1+0 records out
    512 bytes (512 B) copied, 0.00253519 s, 202 kB/s
    Starting saving /dev/cciss/c0d0p1 as /home/partimag/lrender-2014-6-16/cciss/c0d0p1.XXX...
    /dev/cciss/c0d0p1 filesystem: ext4.
    *****************************************************.
    *****************************************************.
    Use partclone with cat to save the image.
    Image file will be split with size limit 20000 MB.
    *****************************************************.
    If this action fails or hangs, check:
    * Is the disk full ?
    *****************************************************.
    Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/cciss/c0d0p1 --output - | cat | split -b 20000m - /home/partimag/lrender-2014-6-16/cciss-c0d0p1.ext4-ptcl-img.uncomp. 2> /tmp/split_error.8FdCcy
    Partclone v0.2.70 http://partclone.org
    Starting to clone device (/dev/cciss/c0d0p1) to image (-)
    Reading Super Block
    we need memory: 69188 bytes
    image head 4160, bitmap 64000, crc 1028 bytes
    Calculating bitmap... Please wait... done!
    File system:  EXTFS
    Device size:  524.3 MB = 512000 Blocks
    Space in use:  55.2 MB = 53929 Blocks
    Free Space:   469.1 MB = 458071 Blocks
    Block size:   1024 Byte
    Total block 512000
    Syncing... OK!
    Partclone successfully cloned the device (/dev/cciss/c0d0p1) to the image (-)
    >>> Time elapsed: 14.64 secs (~ .244 mins)
    *****************************************************.
    Finished saving /dev/cciss/c0d0p1 as /home/partimag/lrender-2014-6-16/cciss-c0d0p1.ext4-ptcl-img.uncomp
    *****************************************************.
    Parsing LVM layout...
    vg_lrender1 /dev/cciss/c0d0p2 ms7SzT-2G5l-ahRE-qsFx-vdHK-L1Ea-fmBH4u
    Parsing logical volumes...
    Saving the VG config...
      Volume group "vg_lrender1" successfully backed up.
    done.
    Checking if the VG config was saved correctly...
    done.
    Saving /dev/vg_lrender1/lv_root as filename: vg_lrender1-lv_root. /dev/vg_lrender1/lv_root info: Linux rev 1.0 ext4 filesystem data, UUID=f344cb9c-dad2-4cb4-a889-5bcd72f3309c (extents) (large files) (huge files)
    Starting saving /dev/vg_lrender1/lv_root as /home/partimag/lrender-2014-6-16/vg_lrender1-lv_root.XXX...
    /dev/vg_lrender1/lv_root filesystem: ext4.
    *****************************************************.
    *****************************************************.
    Use partclone with cat to save the image.
    Image file will be split with size limit 20000 MB.
    *****************************************************.
    If this action fails or hangs, check:
    * Is the disk full ?
    *****************************************************.
    Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/vg_lrender1/lv_root --output - | cat | split -b 20000m - /home/partimag/lrender-2014-6-16/vg_lrender1-lv_root.ext4-ptcl-img.uncomp. 2> /tmp/split_error.tFnFD8
    Partclone v0.2.70 http://partclone.org
    Starting to clone device (/dev/vg_lrender1/lv_root) to image (-)
    Reading Super Block
    we need memory: 3891396 bytes
    image head 4160, bitmap 3883136, crc 4100 bytes
    Calculating bitmap... Please wait... done!
    File system:  EXTFS
    Device size:  127.2 GB = 31065088 Blocks
    Space in use:  17.5 GB = 4262737 Blocks
    Free Space:   109.8 GB = 26802351 Blocks
    Block size:   4096 Byte
    Total block 31065088
    Syncing... OK!
    Partclone successfully cloned the device (/dev/vg_lrender1/lv_root) to the image (-)
    *****************************************************.
    Failed to save partition /dev/vg_lrender1/lv_root.
    
     
    • nick
      nick
      2014-06-17

      Nevermind, I think I got it. I think I terminated the process too early when I made the image. It said cloned successfully and then just sat there for a long time. I thought it was done so I rebooted, but apparently it was still doing stuff in the background. I ran it again and waited longer and this time it finished for real. It would be nice if it said something other than "completed successfully" during that long pause so we would know it wasn't finished yet.

       
  • Steven Shiau
    Steven Shiau
    2014-06-21

    Did you mean you terminated the process when "Syncing..." is running?

    Steven.