I have a CentOS 7.7 server which has a vhd
/dev/sdc mounted (format-type= btrfs); it contains data.
I attached a empty vhd to the VM,
/dev/sdd (I didn't partition this disk using
lsblk command lists the attached disk but no mount point.
mdadm --create /dev/md0 --level 0 --raid-devices=2 --name=/data-disk /dev/sdc /dev/sdd
mdadm: cannot open /dev/sdc: Device or resource busy
Will the data from the disk
/dev/sdcget wiped out when I try to create a RAID0 array?
I can issue
umount /dev/sdcand issue the
mdadm --createcommand, but is that a proper approach to do this.
=== in case of successful RAID0 creation ===
Below command would be executed:
Editing the /etc/fstab, with the uuid info
Trying to add two disks to RAID0, one is already setup as backup, which has data. The new one is attached, could see the disk using
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdc 8:32 0 100G 0 disk /cass_backup sdd 8:48 0 100G 0 disk
/dev/sdc 100G 82G 20G 20% /data_disk
How does the distribution of data between mounted and unmounted disk done? Do I need to mount the new one (/dev/sdd) first?