LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to clone server A to server B? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-clone-server-a-to-server-b-4175589866/)

lq_win 09-21-2016 08:04 AM

how to clone server A to server B?
 
Hello All,

I have 2 CentOS 6.6 server .Server A is production server and server B is brand new server with basic server mode installed.

Server A and B has 2 harddisk (sda and sdb)

how to clone Server A to server B?

I tried to run rsync below.. but not all packages installed on server A being copied to server B.. (ie. Dovecot, Dansguardian, Squid ..)

rsync -ravz --delete --exclude-from=/root/hotclone_exclude / root@10.100.100.49:/

vi hotclone_exclude
/boot/
/lib/modules
/etc/modules
/etc/lilo.conf
/etc/fstab
/etc/mtab
/proc
/dev
lost+found/
/var/log
/etc/networking/
/etc/network-scripts/
/root
/home2

keefaz 09-21-2016 08:29 AM

Not sure about packages but why exclude the kernel modules tree (/lib/modules), /boot and /etc/fstab?

lq_win 09-21-2016 08:31 AM

I don't have reason why I exclude them.. I followed this: http://olivier.sessink.nl/publications/hotcloning/
and I only change the /etc/networking and /etc/network-scripts/

any idea?

keefaz 09-21-2016 08:40 AM

You shouldn't exclude /lib/modules, it comes from your Centos OS and your system won't start without it or it may start but won't work proprelly (eg missing network interface card driver...)

Edit: maybe I didn't follow though, is Centos OS installed on server B?

Is the target server disk different than disk from server A?

lq_win 09-21-2016 08:44 AM

in this trial, server A has 2 disks (sda and sdb) .. server B is only 1 (sda)
if I can do this successfully then I will add another 1 disk to server B to make it exactly the same with server A.

lq_win 09-21-2016 08:45 AM

now .. I already include:

/boot/
/lib/modules
/etc/modules
/etc/fstab

but I got:


rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_fifo_errors) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_errors) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-3/.uevent.dv7K1t" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_dropped) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-3/power/.wakeup.UPMBFU" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_compressed) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_carrier_errors) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-4/.name.DRjtjl" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_bytes) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/tx_aborted_errors) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-4/.uevent.mvylXL" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_packets) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-4/power/.wakeup.xVgeBc" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_over_errors) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_missed_errors) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_length_errors) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_frame_errors) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-5/.name.uwm8eD" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_fifo_errors) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_errors) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-5/.uevent.Xlp3S3" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_dropped) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-5/power/.wakeup.wSUYwu" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_crc_errors) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_compressed) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/rx_bytes) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/multicast) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics/collisions) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-6/.name.DuEWaV" failed: No such file or directory (2)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/statistics) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-6/.uevent.0I9UOl" failed: No such file or directory (2)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/tx-0/xps_cpus) failed: Operation not permitted (1)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-6/power/.wakeup.LL6TsM" failed: No such file or directory (2)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/tx-0
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/tx-0) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/rx-0/rps_flow_cnt) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/rx-0/rps_cpus) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/rx-0
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues/rx-0) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/queues) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/power/wakeup) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/power
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/power) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/uevent) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/type) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/tx_queue_len) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/subsystem) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/speed) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/phys_port_id) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/operstate) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/mtu) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/link_mode) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/iflink) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/ifindex) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/ifalias) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/flags) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/features) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/duplex) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/dormant) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/device) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/dev_id) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/carrier) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/broadcast) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/address) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/addr_len) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0/addr_assign_type) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/eth0) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/msi_irqs/37/mode) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/msi_irqs/37
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/msi_irqs/37) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/msi_irqs
rsync: delete_file: rmdir(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/msi_irqs) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/vpd) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/vendor) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/uevent) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/subsystem_vendor) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/subsystem_device) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/subsystem) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/resource4_wc) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/resource4) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/resource2) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/resource0) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/resource) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/reset) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/rescan) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/remove) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/numa_node) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/msi_bus) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/modalias) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/local_cpus) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/local_cpulist) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/irq) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/firmware_node) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/enable) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/driver) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/device) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/config) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/class) failed: Operation not permitted (1)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/broken_parity_status) failed: Operation not permitted (1)
cannot delete non-empty directory: sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0
sys/devices/pci0000:00/0000:00:1c.2/broken_parity_status
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/broken_parity_status": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/class
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/class": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/config
sys/devices/pci0000:00/0000:00:1c.2/device
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/device": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/enable
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/enable": No data available (61)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1c.2/firmware_node) failed: Operation not permitted (1)
could not make way for new symlink: sys/devices/pci0000:00/0000:00:1c.2/firmware_node
sys/devices/pci0000:00/0000:00:1c.2/irq
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/irq": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/local_cpulist
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/local_cpulist": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/local_cpus
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/local_cpus": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/modalias
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/modalias": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/msi_bus
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/msi_bus": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/numa_node
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/numa_node": No data available (61)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1c.2/remove", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1c.2/remove": Permission denied (13)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1c.2/rescan", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1c.2/rescan": Permission denied (13)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1c.2/reset", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1c.2/reset": Permission denied (13)
sys/devices/pci0000:00/0000:00:1c.2/resource
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/resource": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/subsystem_device
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/subsystem_device": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/subsystem_vendor
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/subsystem_vendor": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/uevent
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/uevent": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/vendor
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/vendor": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/cpuaffinity
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/cpuaffinity": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/cpulistaffinity
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/cpulistaffinity": No data available (61)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/rescan", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/rescan": Permission denied (13)
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/uevent
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/uevent": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/power/
sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/power/wakeup
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/pci_bus/0000:03/power/wakeup": No data available (61)
sys/devices/pci0000:00/0000:00:1c.2/power/
sys/devices/pci0000:00/0000:00:1c.2/power/wakeup
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1c.2/power/wakeup": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/
sys/devices/pci0000:00/0000:00:1d.0/broken_parity_status
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/broken_parity_status": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/class
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/class": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/companion
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/companion": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/config
sys/devices/pci0000:00/0000:00:1d.0/device
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/device": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/enable
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/enable": No data available (61)
rsync: delete_file: unlink(sys/devices/pci0000:00/0000:00:1d.0/firmware_node) failed: Operation not permitted (1)
could not make way for new symlink: sys/devices/pci0000:00/0000:00:1d.0/firmware_node
sys/devices/pci0000:00/0000:00:1d.0/irq
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/irq": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/local_cpulist
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/local_cpulist": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/local_cpus
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/local_cpus": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/modalias
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/modalias": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/msi_bus
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/msi_bus": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/numa_node
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/numa_node": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/pools
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/pools": No data available (61)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1d.0/remove", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1d.0/remove": Permission denied (13)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1d.0/rescan", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1d.0/rescan": Permission denied (13)
rsync: failed to open "/sys/devices/pci0000:00/0000:00:1d.0/reset", continuing: Permission denied (13)
rsync: send_files failed to open "/sys/devices/pci0000:00/0000:00:1d.0/reset": Permission denied (13)
sys/devices/pci0000:00/0000:00:1d.0/resource
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/resource": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/resource0
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/resource0": Input/output error (5)
sys/devices/pci0000:00/0000:00:1d.0/subsystem_device
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/subsystem_device": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/subsystem_vendor
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/subsystem_vendor": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/uevent
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/uevent": No data available (61)
sys/devices/pci0000:00/0000:00:1d.0/vendor
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/vendor": No data available (61)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-7/.name.0RVT6c" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-7/.uevent.vAsUKD" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-7/power/.wakeup.4OyVo4" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-8/.name.xGsX2u" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-8/.uevent.sk2ZGV" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-8/power/.wakeup.RHb3km" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-9/.name.wn86YM" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-9/.uevent.95ObDd" failed: No such file or directory (2)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-9/power/.wakeup.A2VghE" failed: No such file or directory (2)
sys/devices/pci0000:00/0000:00:1d.0/power/
sys/devices/pci0000:00/0000:00:1d.0/power/wakeup
rsync: read errors mapping "/sys/devices/pci0000:00/0000:00:1d.0/power/wakeup": No data available (61)
rsync: mkstemp "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/power/.wakeup.3nLwV4" failed: No such file or directory (2)
inflate returned -3 (0 bytes)
rsync error: error in rsync protocol data stream (code 12) at token.c(547) [receiver=3.0.6]
rsync: connection unexpectedly closed (1404194 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
[root@proxy ~]#

keefaz 09-21-2016 08:47 AM

In server A, the OS is spread on sda and sdb?
Maybe it would be easier to just clone server A system disk (sda?)

lq_win 09-21-2016 08:49 AM

yes.. in server A, OS is on sda and home2 is sdb
btw.. how to just clone the sda?

keefaz 09-21-2016 08:49 AM

To resume:

You installed an OS in server B, but want to clone server A?
You can't clone server A completely as there is already an OS in server B

What do you want to clone from server A, if an OS is already installed in server B?

lq_win 09-21-2016 08:51 AM

I want to clone entire CentOS 6.6 of Server A to Server B ..
my thought if the Server B does not have CentOS 6.6 then how do I rsync to server B?

keefaz 09-21-2016 08:52 AM

Quote:

Originally Posted by lq_win (Post 5608224)
yes.. in server A, OS is on sda and home2 is sdb
btw.. how to just clone the sda?

You connect the destination disk on a sata port in your hardware, boot from a live usb key/cd and issue a dd command after making sure you identified source and destination disk

lq_win 09-21-2016 08:54 AM

but I need to live copy from server A to server B..
I meant I will run the rsync every 11PM

keefaz 09-21-2016 09:02 AM

Ok so you know what to copy (or exclude) from server A, but server B won't be a true clone of server A

lq_win 09-21-2016 09:06 AM

let me explain more detail:

on Server A .. I have DHCPD, Squid, Dansguardian, DNS, Postfix, Dovecot running..
the Maildir is in /home2 (sdb)

I want to make backup of Server A to Server B .. so in case Server A crash then I can use Server B by just change its IP address to be Server A's IP address..

I plan to run rsync everyday on 11PM .. to save the config of server A (if any changes) and also the Mailboxes

keefaz 09-21-2016 09:20 AM

Ok, seems clear now

In this case, you want to backup /home2 from server A to server B
maybe /var/spool from server A also

You don't need to copy other files imo, or maybe some configuration files,make an explicit list, don't copy the whole /etc


All times are GMT -5. The time now is 09:16 PM.