<br><br><div class="gmail_quote">On Sat, May 31, 2008 at 7:42 PM, Gene Czarcinski <<a href="mailto:gene@czarc.net">gene@czarc.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In the past, I have always assumed that I would simply re-install if I lost my<br>
root partition and only did backups for data partitions and home.  My systems<br>
are configured to have a boot partition, a root ("/") partition, a /home<br>
partition, and other "my data" partitions.   While I use LVM for my data<br>
partitons, I have been using a regular disk partition for root.  In the past<br>
I have used partimage (and now partimage-ng) to backup disk partitions but<br>
these programs do not work with LVM logical volumes.<br>
<br>
Before I commit to putting my root partition on an LVM logical volume, I<br>
thought I would like to try backing it up ... I have tried using dump/restore<br>
and tar ... oh, backup/save seems to work just fine (no error message) but<br>
restore/tar -x is NOT working.<br>
<br>
Using restore, I get some selinux errors but not with tar -x.  However, in<br>
both cases, when I try to boot the system, I am getting errors such as not<br>
finding /dev/root, /proc, etc.<br>
<br>
Has anyone ever done a backup of the root partition?  What program did you<br>
use?  Have you tried to restore and did it work? [or did you just trust that<br>
it would?]<br>
<br>
I did my testing using vmware virtuals but that should not matter.  I<br>
installed a"default" F9 installation with /boot and swap on the first scsi<br>
virtual disk and "/" on a second scsi virtual disk in an LVM logical volume.<br>
This system boots and runs just fine.<br>
<br>
I first tried running from the built system by running dump against an LVM<br>
snapshot of the root partition.  In another virtual, bootup the F9 install in<br>
Rescue mode, restore the /boot and swap partitions to the first disk, create<br>
an LVM partition on the second disk and use pvcreate and vgcfgrestore to<br>
setup to system to match the original one.  Use restore (lots of selinux<br>
errors) and try booting ... fails as describe above.<br>
<br>
Next, I booted the F9 install cd in Rescue Mode and did the<br>
dump "standalone" ... the repeated as above with the same result.<br>
<br>
Next, use tar --xattrs -vpzcf to create my backup and try again .. save result<br>
but the tar restore has only a few warning ... but the system does not boot.<br>
<br>
Help!  I have not lost anything yet but it sure would be nice to know that a<br>
root partition can be backed up with something better that just using "dd" to<br>
create a bit-by-bit image.<br>
<br>
BTW, I am interested in an open source solution only ... I am not considering<br>
commercial products.<br>
<br><font color="#888888"><a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank"></a></font></blockquote><div><br><br>Once I successfully restored the / partition using tar.<br>But it was not mounted. I booted from a second disk.<br>
If I remember well, the problem with the exclude clause in tar<br>is that it suppresses any path containing the string. For instance,<br>if one excludes tmp, /var/tmp will not be backed up also, <br>not only /tmp.<br><br>
After restoring, I just created by hand the directories I excluded (proc and mnt)<br>Again, without the partition being mounted.<br><br><br>tar cvpzf /home/temp/backup.tgz \<br>    --exclude=proc \<br>    --exclude=lost+found \<br>
    --exclude=mnt \<br>    ./*<br><br><br clear="all"></div></div><br>-- <br>Paulo Roma Cavalcanti<br>LCG - UFRJ