I am able to successfully create an image of my Red Hat 4 install, which looks like this:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM
The image directory contains this:
-rw-r--r-- 1 nfsnobody nfsnobody 4 Oct 18 20:08 disk
-rw-r--r-- 1 nfsnobody nfsnobody 165 Oct 18 19:55 lvm_logv.list
-rw-r--r-- 1 nfsnobody nfsnobody 60 Oct 18 19:55 lvm_vg_dev.list
-rw-r--r-- 1 nfsnobody nfsnobody 10 Oct 18 20:08 parts
-rw------- 1 nfsnobody nfsnobody 5454425 Oct 18 19:55 sda1.aa
-rw-r--r-- 1 nfsnobody nfsnobody 36 Oct 18 19:55 sda-chs.sf
-rw-r--r-- 1 nfsnobody nfsnobody 512 Oct 18 19:55 sda-mbr
-rw-r--r-- 1 nfsnobody nfsnobody 259 Oct 18 19:55 sda-pt.sf
-rw-r--r-- 1 nfsnobody nfsnobody 53 Oct 18 20:08 swappt-VolGroup00-LogVol01.info
-rw------- 1 nfsnobody nfsnobody 2044245526 Oct 18 20:07 VolGroup00-LogVol00.aa
This is a gzipped image. I have also tried an uncompressed.
When I attempt to restore from this image to an identical hard disk, the restore only writes the boot partition contents, and ignores the LVM partition. Thus when I attempt to boot after the restore I get a kernel panic. After the restore, while still booted off the Live CD, an fdisk of /dev/sda shows that the partition table was written properly - that is, it looks the same as the table on the source disk.
I don't know if the fact that ocs calls the device /dev/sda as opposed to /dev/hda is a problem, since at least the boot partition gets written to...
Any ideas as to why the LVM portion of the image isn't coming across?
Thanks!
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What's interesting is that parted on a running system sees the SATA drive that I'm imaging as /dev/hda. However, under the live CD parted sees the same drive on the same hardware as /dev/sda. When I ran the conversion utility to convert the image from sda to hda, ocs quit with an error that it could not find the target /dev/hda. Of course, if parted is seeing /dev/sda then the hda image won't work.
I am going to try to rebuild the machine without an LVM partition and see if it works better.
By the way, I am attempting the restore from an nfs share, which is easily seen by the liveCD boot.
Thanks again for your response,
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am able to successfully create an image of my Red Hat 4 install, which looks like this:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM
The image directory contains this:
-rw-r--r-- 1 nfsnobody nfsnobody 4 Oct 18 20:08 disk
-rw-r--r-- 1 nfsnobody nfsnobody 165 Oct 18 19:55 lvm_logv.list
-rw-r--r-- 1 nfsnobody nfsnobody 60 Oct 18 19:55 lvm_vg_dev.list
-rw-r--r-- 1 nfsnobody nfsnobody 10 Oct 18 20:08 parts
-rw------- 1 nfsnobody nfsnobody 5454425 Oct 18 19:55 sda1.aa
-rw-r--r-- 1 nfsnobody nfsnobody 36 Oct 18 19:55 sda-chs.sf
-rw-r--r-- 1 nfsnobody nfsnobody 512 Oct 18 19:55 sda-mbr
-rw-r--r-- 1 nfsnobody nfsnobody 259 Oct 18 19:55 sda-pt.sf
-rw-r--r-- 1 nfsnobody nfsnobody 53 Oct 18 20:08 swappt-VolGroup00-LogVol01.info
-rw------- 1 nfsnobody nfsnobody 2044245526 Oct 18 20:07 VolGroup00-LogVol00.aa
This is a gzipped image. I have also tried an uncompressed.
When I attempt to restore from this image to an identical hard disk, the restore only writes the boot partition contents, and ignores the LVM partition. Thus when I attempt to boot after the restore I get a kernel panic. After the restore, while still booted off the Live CD, an fdisk of /dev/sda shows that the partition table was written properly - that is, it looks the same as the table on the source disk.
I don't know if the fact that ocs calls the device /dev/sda as opposed to /dev/hda is a problem, since at least the boot partition gets written to...
Any ideas as to why the LVM portion of the image isn't coming across?
Thanks!
Greg
The image is for sda, while the disk now you have in the Linux is hda ?
This will be a problem.
Maybe you can try to use this to convert it:
http://drbl.sourceforge.net/one4all/techrpt.php?c=cnvt-ocs-dev&t=To%20change%20the%20device%20name%20in%20saved%20clonezilla%20image
Thanks for your reply.
What's interesting is that parted on a running system sees the SATA drive that I'm imaging as /dev/hda. However, under the live CD parted sees the same drive on the same hardware as /dev/sda. When I ran the conversion utility to convert the image from sda to hda, ocs quit with an error that it could not find the target /dev/hda. Of course, if parted is seeing /dev/sda then the hda image won't work.
I am going to try to rebuild the machine without an LVM partition and see if it works better.
By the way, I am attempting the restore from an nfs share, which is easily seen by the liveCD boot.
Thanks again for your response,
Greg