LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-23-2021, 11:19 AM   #1
sqrfolkdnc
LQ Newbie
 
Registered: Mar 2021
Posts: 1

Rep: Reputation: Disabled
mirror ssd and hdd


Please no knee-jerk reactions "that is dumb". I come from a mainframe and unix server background (although that was 20 years ago) and have thought this through carefully.

Yes this is for backup. I know wear leveling has improved ssd reliability, maybe just moving swap to a dedicated ssd is adequate and I should just hardware mirror to a second ssd. I will listen to arguments for this, especially if there are tools to read out the status and warn me that my ssd may fail within the next 6 months. I fear that being mirrored, both ssds would fail at the same time.

In mainframes and solaris servers we could schedule jobs to image backup the os to an instantly bootable alternate disk and/or build a backup image for the previous version of software. Read to the bottom for a question on this possibility, which I suspect is also a VERY hard question.

I will accept that a carefully crafted scheme of backups may be best. But experience has shown that I will get lazy over time and fail to keep up with backups, or fail to notice that the scheduling has failed, or I will notice, but put off fixing until I forget, and I will be left with nothing.

I want to set up a new system, for running a virtual machines (will be new to me in PCs).

Note that ONLY the operating syhstems will be in an ssd/hdd mirror set. swap will be a dedicated, non mirrored ssd, and user data will be a separate mirrored hdd set. I don't serve up web pages or have massive databases, so I can wait while my spreadsheet loads off hdd. Loading programs, especially with massive bloat is where I want the benefits of ssd.

Since only the os is being mirrored in the ssd/hdd set, there is not much writing. If it helps, I could put /tmp and /etc elsewhere too. Doing OS updates will be slowed to hdd speed, but I can start that up when I go to bed if it is a big update.

What *IS* critical, though, is will either software raid and/or a raid card dynamically (or by configuration) detect that reads come faster from /dev/sda1 than from /dev/sdb1 and route all reads there? In mainframes this WOULD happen as a feature of the operating system, dynamically. If a raid card will split all reads equally, then it there is no point in my configuraiion, or I might as well use two hdds.

A reasonably priced raid card is preferred, but if it takes a $2000 card, then I won't do it. If only software raid will do what I want, then that is what I will do.

Note that in mainframes, I could just regularly image copy the system, then at any time boot from the backup and it would work. In Solaris servers, I had to edit the copied root partition switching fstab entries between /dev/sdaxx and /dev/sdbxx and I could boot either image. With UUIDs, this is not obvious how to do. Per someone's suggestion, I once tried putting in the /dev/sdaxx format, and it did not work (but may have made some other error, I suppose). I don't think I tried to put the other parttion in my running system so I could just swap them.
 
Old 03-24-2021, 03:23 AM   #2
Gad
Member
 
Registered: May 2013
Distribution: Debian, FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Welcome to LQ!

I have not personally been in a situation where 2 HDD's failed at the exact same time. It was always a priority to get the HDD replaced as soon as possible as most times we would be running Raid 5 on the data and Raid 1 on the OS drive. Its not perfect but there have been other systems in a cluster to take over the heavy lifting if things were to go south. If you are planning to use Virtual machines you could always setup a Raid array with frequent backups and at the same time use the snapshot feature on a regular basis. Although snapshot is not and should not be considered as a backup solution it is another tool in the box that can be used.
 
Old 03-24-2021, 10:22 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Quote:
Loading programs, especially with massive bloat is where I want the benefits of ssd.
Must be very unusual setup if these programs get unloaded and reloaded all the time. Normally once the system is up and programs are loaded into RAM they stay there and run from there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mirror hdd to ssd - Linux 6.6 ikoro Linux - Newbie 3 11-09-2017 04:20 PM
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
How to mirror one hdd to another hdd in linux dkalsaria Red Hat 5 12-21-2008 01:05 PM
how to make mirror image of one hdd to 2 hdd raj_1 General 1 12-02-2004 06:19 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:16 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