It doesn't seem possible to reinstall the node and get an identical config
Cumbersome
The system doesn't have PXE enabled
Current attempt to disk cloning may work:
Cloning
[Source Disk]
Before cloning
Change root password to something you know (in case network/NIS does not work, required for local login)
Disable NFS mounting (e.g. by commenting out in etc/fstab)
Remove network interface card entries in /etc/udev/rules.d/70-persistent-net
The entries records the id to mac address mapping, delete the entries for NIC change when moving disk from one machine to another
Remove ssh host keys /etc/ssh/ssh_host*
Command for cloning
Check which is source and which is dest, in case of doubt, mount for inspection: lsblkmount
Clone the disk: dd if=/dev/SOURCE of=/dev/DEST bs=1G where SOURCE and DEST denote device label, e.g. if=/dev/sdb
Careful 1: I was adviced NOT to clone from disk where the OS is running
Careful 2: Be very certain which disk is source and which is dest, disk label can change after reboot
After cloning
restore modified configs
After Cloned Machine Boot Up
Check domain name
Change hostname
Modify eth0 and ib0 ip
Enable NFS
(All nodes)
Update changed lines in /etc/ssh/ssh_known_hosts and copy to all nodes
Reinstall attempt: #15
Related nodes: #15 #17
An image ready for use as if, with all preparation procedures done, can be found in /home/root/computing-node.img
Current attempt to disk cloning may work:
Cloning [Source Disk] Before cloning
etc/fstab
)/etc/udev/rules.d/70-persistent-net
The entries records the id to mac address mapping, delete the entries for NIC change when moving disk from one machine to another/etc/ssh/ssh_host*
Command for cloning
lsblk
mount
dd if=/dev/SOURCE of=/dev/DEST bs=1G
where SOURCE and DEST denote device label, e.g.if=/dev/sdb
After cloning
After Cloned Machine Boot Up
(All nodes)
/etc/ssh/ssh_known_hosts
and copy to all nodesReinstall attempt: #15 Related nodes: #15 #17
An image ready for use as
if
, with all preparation procedures done, can be found in/home/root/computing-node.img