Re: clone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Am 18.02.2013 22:53, schrieb Patrick Dupre:
> I would like to clone with updating a machine.
> I get the list of installed package (yum list installed)
> Then I can make a minimum installation followed by an upgrade the packages.
> How would you recommend me to do this step?

no need for touch anaconda or yum

* boot both froma live cd
* enable sshd at the new machine
* dd if=/dev/sda bs=16M | ssh root@newmachine "dd of=/dev/sda bs=16M"

and you have the whole first disk inclduing partition tables
bitwise on the new one
________________________________

as said i have done this with a 4x2 TB amchine with software-RAID
the machine i am sitting in front is the clone an din the meantime
the 4 disks are moved to a newer HP 8300 Elite Minitower while
it was originally cloned to a HP 8200 without any change

disks swapped and done

/dev/md1       ext4   29G    6,4G   23G   23% /
/dev/md0       ext4  485M     38M  447M    8% /boot
/dev/md2       ext4  3,6T    1,7T  2,0T   46% /mnt/data

[root@localhost ~]# cat /clone.sh
date
dd if=/dev/sda | ssh root@192.168.196.129 "dd of=/dev/sda bs=16M"
dd if=/dev/sdb | ssh root@192.168.196.129 "dd of=/dev/sdb bs=16M"
dd if=/dev/sdc | ssh root@192.168.196.129 "dd of=/dev/sdc bs=16M"
dd if=/dev/sdd | ssh root@192.168.196.129 "dd of=/dev/sdd bs=16M"
date

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux