[CentOS] Moving from mdadm raid 0 to single disk

Wed Jan 12 01:50:11 UTC 2022
Alexandre Leonenko <alex at esecuredata.com>

Thanks,

That's what I'll probably be doing then.

Alex
________________________________
From: CentOS <centos-bounces at centos.org> on behalf of Valeri Galtsev <galtsev at kicp.uchicago.edu>
Sent: Tuesday, January 11, 2022 5:21 PM
To: centos at centos.org <centos at centos.org>
Subject: Re: [CentOS] Moving from mdadm raid 0 to single disk



On 1/11/22 8:11 PM, Alexandre Leonenko wrote:
> Hey all,
>
> Hopefully a quick question. I'm going to move the filesystem of a raid 0 mdadm to a single disk.
> The filesystem is just a data drive, can I just dd if=/dev/md0 of=/dev/sdc ?
> Or should I rather rsync the files directly?

I would [partition disk; make new filesystem, mount, then] use rsync.
You avoid copying nuisances if there are any on old filesystem. You
avoid the need to resize partition on new disk, and expand filesystem.
You avoid waste of time copying empty space. You can have different
disklabel (it old was MSDOS and you want GPT). And few other things.

I hope, thins helps.

Valeri

>
> Regards,
> Alex
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
_______________________________________________
CentOS mailing list
CentOS at centos.org
https://lists.centos.org/mailman/listinfo/centos