create and playback images - kraut-computing/siegfried GitHub Wiki
- fill disc with zeros (for compression):
dd if=/dev/zero of=/null bs=1G count=<free space on disc / 1 GB>
rm /null
- reboot with live CD
- mount destination eg:
mkdir /mnt/iso
mount -t nsf <ip>:export/iso /mnt/iso
- backup:
dd conv=sparse if=/dev/md126 of=/mnt/iso/$HOSTNAME_backup.iso
- boot from live cd
- mount remote image location
mkdir /mnt/iso
mount -t nfs <ip>:/export/iso /mnt/iso/
- copy image
dd if=/mnt/iso/<name>.iso of=/dev/md126
- mount new system
mkdir /mnt/host
mount /dev/md126 /mnt/host
- Edit node specific files: hostname and ip's
vi /mnt/host/etc/conf.d/hostnames
vi /etc/conf.d/net
From live cd on target node
ssh root@<source ip> -o CompressionLevel=0 "dd if=/dev/md126 bs=10M" | dd of=/dev/md126