I created a CentOS 7 Minimal VM in Oracle VirtualBox.
Added an additional virtual disk and partitioned with software raid. Mounted this software device to my /mnt
partition.
After that I tried an rsync command to copy over data from my existing /
partition in to /mnt
mounted partition. But nothing happens. No files copied over and no error displayed, no incremental files listed.
I am not sure what's wrong with the existing configuration.
Existing System information
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 16G 992M 14G 7% /
devtmpfs 494M 0 494M 0% /dev
tmpfs 502M 0 502M 0% /dev/shm
tmpfs 502M 6.7M 496M 2% /run
tmpfs 502M 0 502M 0% /sys/fs/cgroup
/dev/sda1 2.0G 92M 1.8G 5% /boot
tmpfs 101M 0 101M 0% /run/user/0
[root@localhost ~]#
[root@localhost ~]# fdisk -l
Disk /dev/sdb: 22.2 GB, 22232760320 bytes, 43423360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 4196351 2097152 fd Linux raid autodetect
/dev/sdb2 4196352 37750783 16777216 fd Linux raid autodetect
/dev/sdb3 37750784 43421695 2835456 fd Linux raid autodetect
Disk /dev/sda: 22.2 GB, 22232760320 bytes, 43423360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0004c318
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 4196351 2097152 83 Linux
/dev/sda2 4196352 37750783 16777216 83 Linux
/dev/sda3 37750784 43421695 2835456 82 Linux swap / Solaris
Disk /dev/md2: 2901 MB, 2901409792 bytes, 5666816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md1: 17.2 GB, 17163091968 bytes, 33521664 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md0: 2145 MB, 2145386496 bytes, 4190208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@localhost ~]#
[root@localhost ~]# mount /dev/md1 /mnt/
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 16G 992M 14G 7% /
devtmpfs 494M 0 494M 0% /dev
tmpfs 502M 0 502M 0% /dev/shm
tmpfs 502M 6.7M 496M 2% /run
tmpfs 502M 0 502M 0% /sys/fs/cgroup
/dev/sda1 2.0G 92M 1.8G 5% /boot
tmpfs 101M 0 101M 0% /run/user/0
/dev/md1 16G 45M 15G 1% /mnt
[root@localhost ~]#
[root@localhost ~]# rsync -auxHAXSv --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* \
--exclude=/tmp/* --exclude=/mnt/* /* /mnt
[root@localhost ~]#
In the above rsync command you can see nothing happens. Also there is no data in the /mnt
folder after rsync.
[root@localhost ~]# cd /mnt/
[root@localhost mnt]# ls
lost+found
[root@localhost mnt]# cd /
[root@localhost /]# ls
bin boot dev etc home lib lost+found media mnt opt proc root run sbin srv sys tmp usr var
[root@localhost /]#
User contributions licensed under CC BY-SA 3.0