I am trying clone a Vm runing Redhat ES 3.
the vm is setup with the default scsi hdd.
The partitions on sda are as follows
/dev/sda1 /boot ext3
/dev/sda2 is LVM
i have 3 lv's on one vg
/dev/Volume00/LogVol00 is / ext3
/dev/Volume00/LogVol01 is /tmp ext3
/dev/Volume00/LogVol02 is swap
i am sending the clone to an NFS share
the /boot partition is saved OK but when clonezilla starts to work on the LVM i get these errors
Parsing LVM layout...
Parsing logical volumes...
/opt/drbl/sbin/ocs-functions: line 2348: /home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
/home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
/home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
Saving the VG config...
/home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
done!
then it halts and the ocs-help mesg is displayed.
if i setup a test VM with IDE HDD everything works fine...
is there a way to clone these machines ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 522 3992152+ 8e Linux LVM
-bash-3.1# lvscan
ACTIVE '/dev/VolGroup00/lvol0' [1.95 GB] inherit
ACTIVE '/dev/VolGroup00/lvol1' [300.00 MB] inherit
ACTIVE '/dev/VolGroup00/lvol2' [500.00 MB] inherit
-bash-3.1# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
-bash-3.1# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [3.80 GB / 1.07 GB free]
Total: 1 [3.80 GB] / in use: 1 [3.80 GB] / in no VG: 0 [0 ]
----------------------------------------
The messages in the screen when I saved them:
*******************************************
Try to turn on the harddisk "/dev/sda" DMA...
No HD DMA information, maybe this not a IDE device!
*******************************************
Shutting down the Logical Volume Manager
Shutting Down volume group: VolGroup00
Finished Shutting down the Logical Volume Manager
Reading the partition table for /dev/sda...RETVAL=0
done!
Saving the MBR and partition info for sda...
1+0 records in
1+0 records out
512 bytes (512 B) copied,0.00113373 秒,452 kB/s
*****************************************************.
*****************************************************.
Starting saving /dev/sda1 as /home/partimag/sdx-lvm-test2/sda1.XXX...
/dev/sda1 filesystem: ext3.
Checking file system integrity in /dev/sda1... done!
Use lzop to compress the image.
Split image file with size limit 2000 MB.
Volume size: 0 bytes (0 MiB)
partimage: status: initializing the operation.
partimage: status: Partimage: 0.6.1
partimage: status: Image type: NONE
partimage: status: Saving partition to the image file...
partimage: status: reading partition properties
partimage: status: writing header
partimage: status: copying used data blocks
File Name Size T:Elapsed/Estimated Rate/min Progress
stdout S: 137M T:00:00:22/00:00:00 R: 374M/min P:100%
partimage: status: commiting buffer cache to disk.
>>> Time elapsed: 22.63 secs (~ .377 mins)
*****************************************************.
Finished saving /dev/sda1 as /home/partimag/sdx-lvm-test2/sda1.XXX
*****************************************************.
Setting up the Logical Volume Manager
3 logical volume(s) in volume group "VolGroup00" now active
Parsing LVM layout...
VolGroup00 /dev/sda2 XK2sVi-GXG8-SvXc-S1yM-sGiQ-ZDZ0-zN6PTT
Parsing logical volumes...
/dev/VolGroup00/lvol0 Linux rev 1.0 ext3 filesystem data (large files)
/dev/VolGroup00/lvol1 Linux/i386 swap file (new style) 1 (4K pages) size 76799 pages
/dev/VolGroup00/lvol2 Linux rev 1.0 ext3 filesystem data
Saving the VG config...
Volume group "VolGroup00" successfully backed up.
done!
Saving /dev/VolGroup00/lvol0 as filename: VolGroup00-lvol0. Filesystem: Linux rev 1.0 ext3 filesystem data (large files)
*****************************************************.
*****************************************************.
Starting saving /dev/VolGroup00/lvol0 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol0.XXX...
/dev/VolGroup00/lvol0 filesystem: ext3.
Checking file system integrity in /dev/VolGroup00/lvol0... done!
Use lzop to compress the image.
Split image file with size limit 2000 MB.
Volume size: 0 bytes (0 MiB)
partimage: status: initializing the operation.
partimage: status: Partimage: 0.6.1
partimage: status: Image type: NONE
partimage: status: Saving partition to the image file...
partimage: status: reading partition properties
partimage: status: writing header
partimage: status: copying used data blocks
File Name Size T:Elapsed/Estimated Rate/min Progress
stdout S: 130M T:00:00:17/00:00:00 R: 460M/min P:100%
partimage: status: commiting buffer cache to disk.
>>> Time elapsed: 17.36 secs (~ .289 mins)
*****************************************************.
Finished saving /dev/VolGroup00/lvol0 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol0.XXX
*****************************************************.
*****************************************************.
Saving /dev/VolGroup00/lvol1 as filename: VolGroup00-lvol1. Filesystem: Linux/i386 swap file (new style) 1 (4K pages) size 76799 pages
*****************************************************.
Saving swap /dev/VolGroup00/lvol1 info in /home/partimag/sdx-lvm-test2/swappt-VolGroup00-lvol1.info...
Warning! UUID and LABLE of swap dev /dev/VolGroup00/lvol1 are nothing!
*****************************************************.
Saving /dev/VolGroup00/lvol2 as filename: VolGroup00-lvol2. Filesystem: Linux rev 1.0 ext3 filesystem data
*****************************************************.
*****************************************************.
Starting saving /dev/VolGroup00/lvol2 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol2.XXX...
/dev/VolGroup00/lvol2 filesystem: ext3.
Checking file system integrity in /dev/VolGroup00/lvol2... done!
Use lzop to compress the image.
Split image file with size limit 2000 MB.
Volume size: 0 bytes (0 MiB)
partimage: status: initializing the operation.
partimage: status: Partimage: 0.6.1
partimage: status: Image type: NONE
partimage: status: Saving partition to the image file...
partimage: status: reading partition properties
partimage: status: writing header
partimage: status: copying used data blocks
File Name Size T:Elapsed/Estimated Rate/min Progress
stdout S: 56M T:00:00:06/00:00:00 R: 562M/min P:100%
partimage: status: commiting buffer cache to disk.
>>> Time elapsed: 7.91 secs (~ .131 mins)
*****************************************************.
Finished saving /dev/VolGroup00/lvol2 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol2.XXX
****************************************************.
*****************************************************
*****************************************************
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Now syncing - flush filesystem buffers...
Now you can choose to:
(0) Poweroff
(1) Reboot
(2) Enter command line prompt
[0] 2
----------------------------------------
Maybe you can provide more messages as I did so that it's easier to know why it failed there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying clone a Vm runing Redhat ES 3.
the vm is setup with the default scsi hdd.
The partitions on sda are as follows
/dev/sda1 /boot ext3
/dev/sda2 is LVM
i have 3 lv's on one vg
/dev/Volume00/LogVol00 is / ext3
/dev/Volume00/LogVol01 is /tmp ext3
/dev/Volume00/LogVol02 is swap
i am sending the clone to an NFS share
the /boot partition is saved OK but when clonezilla starts to work on the LVM i get these errors
Parsing LVM layout...
Parsing logical volumes...
/opt/drbl/sbin/ocs-functions: line 2348: /home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
/home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
/home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
Saving the VG config...
/home/partimag/redhat_test/lvm_vg_dev.list: no such file or directory
done!
then it halts and the ocs-help mesg is displayed.
if i setup a test VM with IDE HDD everything works fine...
is there a way to clone these machines ?
I can not reproduce this problem here. Here is some info I tried here:
----------------------------------------
-bash-3.1# fdisk -l /dev/sda
Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 522 3992152+ 8e Linux LVM
-bash-3.1# lvscan
ACTIVE '/dev/VolGroup00/lvol0' [1.95 GB] inherit
ACTIVE '/dev/VolGroup00/lvol1' [300.00 MB] inherit
ACTIVE '/dev/VolGroup00/lvol2' [500.00 MB] inherit
-bash-3.1# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
-bash-3.1# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [3.80 GB / 1.07 GB free]
Total: 1 [3.80 GB] / in use: 1 [3.80 GB] / in no VG: 0 [0 ]
----------------------------------------
The messages in the screen when I saved them:
*******************************************
Try to turn on the harddisk "/dev/sda" DMA...
No HD DMA information, maybe this not a IDE device!
*******************************************
Shutting down the Logical Volume Manager
Shutting Down volume group: VolGroup00
Finished Shutting down the Logical Volume Manager
Reading the partition table for /dev/sda...RETVAL=0
done!
Saving the MBR and partition info for sda...
1+0 records in
1+0 records out
512 bytes (512 B) copied,0.00113373 秒,452 kB/s
*****************************************************.
*****************************************************.
Starting saving /dev/sda1 as /home/partimag/sdx-lvm-test2/sda1.XXX...
/dev/sda1 filesystem: ext3.
Checking file system integrity in /dev/sda1... done!
Use lzop to compress the image.
Split image file with size limit 2000 MB.
Volume size: 0 bytes (0 MiB)
partimage: status: initializing the operation.
partimage: status: Partimage: 0.6.1
partimage: status: Image type: NONE
partimage: status: Saving partition to the image file...
partimage: status: reading partition properties
partimage: status: writing header
partimage: status: copying used data blocks
File Name Size T:Elapsed/Estimated Rate/min Progress
stdout S: 137M T:00:00:22/00:00:00 R: 374M/min P:100%
partimage: status: commiting buffer cache to disk.
>>> Time elapsed: 22.63 secs (~ .377 mins)
*****************************************************.
Finished saving /dev/sda1 as /home/partimag/sdx-lvm-test2/sda1.XXX
*****************************************************.
Setting up the Logical Volume Manager
3 logical volume(s) in volume group "VolGroup00" now active
Parsing LVM layout...
VolGroup00 /dev/sda2 XK2sVi-GXG8-SvXc-S1yM-sGiQ-ZDZ0-zN6PTT
Parsing logical volumes...
/dev/VolGroup00/lvol0 Linux rev 1.0 ext3 filesystem data (large files)
/dev/VolGroup00/lvol1 Linux/i386 swap file (new style) 1 (4K pages) size 76799 pages
/dev/VolGroup00/lvol2 Linux rev 1.0 ext3 filesystem data
Saving the VG config...
Volume group "VolGroup00" successfully backed up.
done!
Saving /dev/VolGroup00/lvol0 as filename: VolGroup00-lvol0. Filesystem: Linux rev 1.0 ext3 filesystem data (large files)
*****************************************************.
*****************************************************.
Starting saving /dev/VolGroup00/lvol0 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol0.XXX...
/dev/VolGroup00/lvol0 filesystem: ext3.
Checking file system integrity in /dev/VolGroup00/lvol0... done!
Use lzop to compress the image.
Split image file with size limit 2000 MB.
Volume size: 0 bytes (0 MiB)
partimage: status: initializing the operation.
partimage: status: Partimage: 0.6.1
partimage: status: Image type: NONE
partimage: status: Saving partition to the image file...
partimage: status: reading partition properties
partimage: status: writing header
partimage: status: copying used data blocks
File Name Size T:Elapsed/Estimated Rate/min Progress
stdout S: 130M T:00:00:17/00:00:00 R: 460M/min P:100%
partimage: status: commiting buffer cache to disk.
>>> Time elapsed: 17.36 secs (~ .289 mins)
*****************************************************.
Finished saving /dev/VolGroup00/lvol0 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol0.XXX
*****************************************************.
*****************************************************.
Saving /dev/VolGroup00/lvol1 as filename: VolGroup00-lvol1. Filesystem: Linux/i386 swap file (new style) 1 (4K pages) size 76799 pages
*****************************************************.
Saving swap /dev/VolGroup00/lvol1 info in /home/partimag/sdx-lvm-test2/swappt-VolGroup00-lvol1.info...
Warning! UUID and LABLE of swap dev /dev/VolGroup00/lvol1 are nothing!
*****************************************************.
Saving /dev/VolGroup00/lvol2 as filename: VolGroup00-lvol2. Filesystem: Linux rev 1.0 ext3 filesystem data
*****************************************************.
*****************************************************.
Starting saving /dev/VolGroup00/lvol2 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol2.XXX...
/dev/VolGroup00/lvol2 filesystem: ext3.
Checking file system integrity in /dev/VolGroup00/lvol2... done!
Use lzop to compress the image.
Split image file with size limit 2000 MB.
Volume size: 0 bytes (0 MiB)
partimage: status: initializing the operation.
partimage: status: Partimage: 0.6.1
partimage: status: Image type: NONE
partimage: status: Saving partition to the image file...
partimage: status: reading partition properties
partimage: status: writing header
partimage: status: copying used data blocks
File Name Size T:Elapsed/Estimated Rate/min Progress
stdout S: 56M T:00:00:06/00:00:00 R: 562M/min P:100%
partimage: status: commiting buffer cache to disk.
>>> Time elapsed: 7.91 secs (~ .131 mins)
*****************************************************.
Finished saving /dev/VolGroup00/lvol2 as /home/partimag/sdx-lvm-test2/VolGroup00-lvol2.XXX
****************************************************.
*****************************************************
*****************************************************
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Now syncing - flush filesystem buffers...
Now you can choose to:
(0) Poweroff
(1) Reboot
(2) Enter command line prompt
[0] 2
----------------------------------------
Maybe you can provide more messages as I did so that it's easier to know why it failed there.
I think this could be the trouble...
vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm1
i converted to lvm2 metadata and all went OK
i still would like to be able backup lvm1 though :)
Well, for the past 2 years, you are the first one to mention this. We will think about that.