LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-09-2022, 10:14 AM   #1
echoR1
LQ Newbie
 
Registered: Sep 2022
Posts: 6

Rep: Reputation: 0
Create a block of many SSD


Hi, I'm not sure how to do the question and for this I will give you an example:

I received a PC with ubuntu-server which has 3 HDDs with 8Tb each one. When I type "lsblk" I see them as one (22Tb, sdb), and then I mount them as one "sudo mount /dev/sdb /mnt/HDD".

I need to do the same with 4 SSD with 1.9Tb each one. With "lsblk" I see them as sdb, sdc, sdd, sde. I do not want to mount them in 4 different places or mount them 4 times under the same mount point. Is like to have 4 SSD and see them the system as 1.

I hope this is clear.

Best
 
Old 09-09-2022, 12:46 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,771

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Welcome to LinuxQuestions.

I would assume the drives are connected to a hardware RAID controller as RAID 0. Without knowing anything about the hardware you can easily do the same thing with software using either LVM or as a software RAID 0 using mdadm.
 
1 members found this post helpful.
Old 09-09-2022, 01:28 PM   #3
echoR1
LQ Newbie
 
Registered: Sep 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Hi, thanks! I will start with software RAID-0 using mdadm. Best
 
Old 09-09-2022, 01:34 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,771

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Just remember that RAID is not a backup and with RAID 0 a loss of a single drive will cause all the data to be no longer accessible.
 
1 members found this post helpful.
Old 09-10-2022, 12:21 PM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
As mickaelk said, raid 0 is striped and has no redundancy. One drive failure would lose all data.
Raid 5 would be more reliable while allowing for 1 drive failure and no data loss. 4 drives of 1.9TB each in raid 5 would give a 5.7TB array while having a safety net in case of one drive failure.

On my systems I run either raid 5 or raid 6 simply to allow for the risk of drive failure.

Raid is not a substitute for backups, but does provide a little more safety for failures.
 
1 members found this post helpful.
Old 09-11-2022, 10:07 PM   #6
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
Here is a case where LVM (Logical Volume Management) I think is a solution. It is not a RAID, but allows you to join disks together as one. personally I don't use it (no need, as I just size my disk(s) accordingly), but I 'think' that is what it was designed for. Anyway, something for you to look at.

https://linuxhandbook.com/lvm-guide/

Last edited by rclark; 09-11-2022 at 10:10 PM.
 
Old 09-12-2022, 09:52 AM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by rclark View Post
Here is a case where LVM (Logical Volume Management) I think is a solution. It is not a RAID, but allows you to join disks together as one. personally I don't use it (no need, as I just size my disk(s) accordingly), but I 'think' that is what it was designed for. Anyway, something for you to look at.

https://linuxhandbook.com/lvm-guide/
LVM certainly was designed for similar function to RAID0 but without needing to use all the device space at one time. Once again, if you apply LVM on a JBOD [(J)ust a (B)unch (O)f (D)isks] array it gives you the larger space but no redundancy in case of failure and complete loss of data should a device fail.

The advantage to LVM is that it can allow seamless adjustment of a file system space without the need for repartitioning or array rebuilding when adding an additional physical disk to the array.

I use LVM on a large RAID6 array so I get the best of both worlds. I have redundancy (allowing for simultaneous failure of 2 drives with no data loss) in case of drive failure and I also have the flexibility of adjusting LV size as needed when my storage space requirements change, and can plan for expansion or reserve space as needed and live versus by the disk, offline, and partitioning while relocating data.

I built my 6TB RAID6 array (using 4 3TB drives) 7 years ago that I use with LVM as /home. Over time the LV I use as /home has grown from ~1TB to ~4TB and I have never needed to change the physical devices or partitioning -- only growing the LV as needed while the system is running. I did have one drive fail when it was ~3 months old, but the only downtime was long enough to remove the failed drive and plug in the replacement. No data loss and the array rebuilt while the system was operating. If that was a JBOD array even with LVM it would have killed my entire /home data space.

Last edited by computersavvy; 09-12-2022 at 10:07 AM.
 
Old 09-12-2022, 05:29 PM   #8
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
Makes sense .
Downtime at my house (just the wife and I) is no biggie here with multiple computers around to get to what we want/need. But I do keep good backups (also some offsite -- NOT cloud) of all data and home folders -- so not worried if something breaks. If an OS drive dies, that would be just an excuse to reload a fresh, maybe newer version . Therefore I don't use RAID or LVM for any of my systems. Even the home server is just a set of single SSD drives (one 1TB for OS, one 2TB for entertainment, and one 2TB for home files and software development). The server is only managing 1.8 TBs of actual data, so expansion is not a problem (if I'll ever need to). To 'expand' it is simple to "make a current backup, replace with a bigger drive, and restore data". I don't expect to have to expand for several 'years'. Data doesn't grow that fast around here. I try to evaluate the risks, and keep it simple stupid (KISS principle).

Last edited by rclark; 09-12-2022 at 05:40 PM.
 
  


Reply



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
[SOLVED] Does copying/pasting an image create an identical copy, block-by-block? duupunisher2x Linux - Newbie 22 08-24-2020 08:03 AM
How to create a single-boot Win 10 ssd from a dual-boot ssd Robert.Thompson Linux - Newbie 5 03-28-2019 02:29 PM
One to Many or Many to Many? baldur2630 Programming 5 04-23-2013 12:09 PM
LXer: How to Create Many to Many Relationships in Ruby on Rails LXer Syndicated Linux News 0 07-08-2007 03:16 AM
Multi Booting many, many, many, OS's mac_man25 Linux - General 10 10-26-2003 09:13 AM

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

All times are GMT -5. The time now is 06:08 AM.

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