LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2021, 05:21 AM   #1
masavini
Member
 
Registered: Jun 2008
Posts: 285

Rep: Reputation: 6
Clone hard disk to RAID 1


Hi,
I wanted to upgrade my Dell laptop with a RAID 1 configuration.
So i removed the old SSD, installed 2 new disks in the notebook and then created the RAID using the Intel Rapid Storage Technology tool in the bios.

Is there a way to restore the old disk over the new RAID configuration?

I tried with Clonezilla (cloning the old disk over the 2 new disks), but no luck...
 
Old 11-10-2021, 02:32 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
"The recommended software RAID implementation in Linux* is the open
source MD RAID package. Intel has enhanced MD RAID to support RST
metadata and OROM and it is validated and supported by Intel for server
platforms. There is a growing interest at OEMs in having Intel extend the
validation and support for RST on mobile, desktop and workstation
platforms in a Windows and Linux dual-boot environment. "

https://www.intel.com/content/dam/ww...inux-paper.pdf

I assume from the above that you will have to use clonezilla or other software to mount the array then clone to it.

There may be some editing later and the way the machine might be able to use loader is another concern. Not sure which way I'd even go. Probably also look at just reloading the entire deal fresh on the array and then add in programs and data.

Last edited by jefro; 11-10-2021 at 02:34 PM.
 
Old 11-10-2021, 02:34 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,817
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
I would use rsync, then reinstall the bootloader. I seriously doubt "cloning" to RAID is possible, so I've never tried investigating.
 
Old 11-10-2021, 04:50 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I've cloned to hardware raid since it was just acting like a normal drive to the clone software. I assume that the same will go on with md arrays.
 
Old 11-10-2021, 05:08 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,817
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Literal cloning pays no attention to filesystems or files. It's just a process of copying a string of sectors. I can't imagine how any on-device RAID structures necessary to Linux MD RAID existence would not be eliminated by a literal disk clone from an ordinary SSD. OTOH, are there any RAID structures existing on the disks of a BIOS (DM) RAID? The OP's Clonezilla result suggests there could be.
 
Old 11-10-2021, 05:56 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Intel RST has been most kindly described as a hack. And not a very clever one.
It's a container, so yes it's likely there is a (hidden) translation going on. Best answer is to disable it and use mdadm.
 
Old 11-11-2021, 04:04 AM   #7
masavini
Member
 
Registered: Jun 2008
Posts: 285

Original Poster
Rep: Reputation: 6
thanks for all of your replies.

a little more digging and i found out that intel rapid storage technology is also known as 'fake raid' and its usage is pretty much discouraged...

mdadm could be useful, but converting a single disk to raid1 is quite difficult: i found a couple of tutorials, but each of them is something like 20 steps and may vary depending on uefi/non uefi configuration and partitions type and number.

by now, i guess the easiest solution is to use brfs builtin raid capability: i've never tested it before, but i'll give it a try...

thanks for your help!
 
Old 11-11-2021, 05:41 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by masavini View Post
mdadm could be useful, but converting a single disk to raid1 is quite difficult: i found a couple of tutorials, but each of them is something like 20 steps and may vary depending on uefi/non uefi configuration and partitions type and number.
This doesn't make a lot of sense to me. A single disk can be converted relatively simply (with mdadm), but it makes much more sense to set the RAID1 up in advance. This will present as a single device (say /dev/md0) that you copy/restore your data to. Saves significant synch time.

As for btrfs, your learning curve will be much steeper - it is several nice features, but is not a "drop-in replacement".
 
1 members found this post helpful.
  


Reply

Tags
clonezilla, raid1



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open-spec SBC is a clone of a clone of a clone of a Raspberry Pi 3 LXer Syndicated Linux News 0 04-25-2018 04:56 PM
Is there any software to do ddrescue job to Clone a hard disk to another disk ganjavi Linux - Newbie 1 09-24-2013 12:39 PM
How to clone 80GByte hard-disk to 40GByte hard-disk on Red-hat 9.0 ? johnnynet3828 Linux - Desktop 16 08-23-2011 10:34 PM
clone hard disk with: cat /dev/sda >/media/disk/backup deathalele Linux - Security 3 04-17-2009 12:29 AM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration