[CentOS] Raising ftp priority?
John R Pierce
pierce at hogranch.com
Mon Jan 11 07:05:17 UTC 2010
hadi motamedi wrote:
> Thank you for your reply . So the only way is cloning his hard disk .
> Am I right?
I'd consider using dump to dump each ext3fs file system, then use
'restore' to restore each of these dumps to appropriately sized file
systems for the new target system. the source system should be shut
down to single user mode, and all file systems umounted except / when
you do this. you can pipe the output of the dump to a ssh command
to write the dump to drive on a remote system. for instance...
# dump -0uv /dev/sda2 | ssh root at target -c "restore -rf - /mnt/var"
where /dev/sda2 is the /var file system on the local system, and
/mnt/var is the temporary home of the new disk, freshly formatted, with
the new /usr mounted as /mnt/usr
of course, you repeat this for each file system on the source system.
See the man pages for dump and restore. Don't forget to install the
grub boot loader on this new disk, then move it to the target hardware,
which presumably is near identical to the original system.
More information about the CentOS
mailing list