Valeri Galtsev wrote:> On 2019-09-25 11:31, Xinhuan Zheng wrote: >> >> I guess it is very common for administrative purpose, to dump and >> restore a CentOS 7 system. > > Though I can not answer OP's question, I have question of my own. > > Is this really routine (often) task for Linux sysadmins? I used > something like that to replicate cluster nodes in the past, but kickstart > would be routine task for me. dump/restore sounds like routine from MS > Windows world (I hear they "re-image" system if something goes > wrong ;-) > > Am I wrong? Do we in Linux world do this routinely? > >> I usually use dump/restore commands. However, I?m having trouble to >> handle installing bootloader and creating initramfs for C7 system. Does >> anyone know a good document source that details those procedure? Thank >> you, >>I have never used dump/restore. Someone mentioned commercial software - I've cloned systems, esp. compute nodes in a cluster - with rsync. mark
On Wed, Sep 25, 2019, 10:20 AM mark <m.roth at 5-cent.us> wrote:> > Someone mentioned commercial software - I've cloned systems, esp. compute > nodes in a cluster - with rsync.Problem with rsync clones, they are asynchronous each file is copied separately so if the system is live and making changes, for instance a database server, the copy is not coherent. the ZFS file system is perfect for this stuff, you can snap shot and then ZFS send the snapshot or a delta between that snapshot and a previous snapshot and that creates a totally coherent copy made at a single point in time atomically.
--On Wednesday, September 25, 2019 12:03 PM -0700 John Pierce <jhn.pierce at gmail.com> wrote:> Problem with rsync clones, they are asynchronous each file is copied > separately so if the system is live and making changes, for instance a > database server, the copy is not coherent.If you use LVM (CentOS default), you can use its snapshot feature.