<br><br>
<div class="gmail_quote">On Mon, Jan 11, 2010 at 7:05 AM, John R Pierce <span dir="ltr"><<a href="mailto:pierce@hogranch.com">pierce@hogranch.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">hadi motamedi wrote:<br>> Thank you for your reply . So the only way is cloning his hard disk .<br>> Am I right?<br><br></div>I'd consider using dump to dump each ext3fs file system, then use<br>
'restore' to restore each of these dumps to appropriately sized file<br>systems for the new target system.   the source system should be shut<br>down to single user mode, and all file systems umounted except / when<br>
you do this.      you can pipe the output of the dump to a ssh command<br>to write the dump to drive on a remote system. for instance...<br><br>   # dump -0uv /dev/sda2 | ssh root@target -c "restore -rf -  /mnt/var"<br>
<br>where /dev/sda2 is the /var file system on the local system, and<br>/mnt/var is the temporary home of the new disk, freshly formatted, with<br>the new /usr mounted as /mnt/usr<br><br>of course, you repeat this for each file system on the source system.<br>
See the man pages for dump and restore.  Don't forget to install the<br>grub boot loader on this new disk, then move it to the target hardware,<br>which presumably is near identical to the original system.<br>
<div>
<div></div>
<div class="h5"><br><br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div>
<div><br> </div>
<div>Thank you for your reply . Can you please help me on the real scenario , as the followings?</div>
<div>My local(source) CentOS server @<a href="http://192.168.0.2">192.168.0.2</a></div>
<div>My remote CentOS client @<a href="http://192.168.0.70">192.168.0.70</a></div>
<div>On the local system :</div>
<div>#df -m</div>
<div>Filesystem              Mounted on</div>
<div>/dev/hda3                 /</div>
<div>/dev/hda1                 /boot</div>
<div>tmpfs                      /dev/shm</div>
<div>On the local system , issue the followings to make client and server as identical :</div>
<div>#dump -0uvf - /dev/hda3 | ssh <a href="mailto:root@192.168.0.70">root@192.168.0.70</a> -c "restore -rf - /"</div>
<div>#dump -0uvf - /dev/hda1 | ssh <a href="mailto:root@192.168.0.70">root@192.168.0.70</a> -c "restore -rf - /boot"</div>
<div>#dump -0uvf - /dev/shm | ssh <a href="mailto:root@192.168.0.70">root@192.168.0.70</a> -c "restore -rf - /tmpfs"</div>
<div>Can you please confirm if my understanding is right?</div>
<div> </div>