LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2021, 09:34 PM   #16
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484

Quote:
Originally Posted by michaelk View Post
As far as I know and still true that you can not partition a RAID device unless it is created with --auto=mdp option.

https://raid.wiki.kernel.org/index.p..._/_LVM_on_RAID
Not exactly true, although it may still apply to fdisk or gdisk.

I had not tried that before, but I suspected gparted could handle that since it uses libparted-dmraid to handle md devices. As a test I just created a raid5 array (/dev/md0) using mdadm, then used gparted to create a partition table, define 3 partitions, and format all as ext4 on that array. The partitions were named /dev/md0p1, /dev/md0p2, & /dev/md0p3.

The device can also be directly defined as a PV using pvcreate then added to a VG in an LVM system. It then is seen by gparted as an LVM partition. I have done this on several different systems.
 
Old 02-10-2021, 09:45 PM   #17
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jan128 View Post
In (partial) closing -
I really, really appreciate you sticking with me until this is resolved.
NP.
I did not anticipate you going back to disks after the partitioning was done with gparted, but since it worked that was a great trade-off over doing it manually.
Apparently after the partition table was created then disks was able to handle the raid device the same as any other disk. It now did not have to deal with the underlying hardware/raid device, but only with the partitioning & formatting (already done) & mounting while defining a mount point.
We learn something new every day!!
 
Old 02-11-2021, 07:30 AM   #18
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,591

Rep: Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689
Quote:
Originally Posted by computersavvy View Post
NP.
I did not anticipate you going back to disks after the partitioning was done with gparted, but since it worked that was a great trade-off over doing it manually.
Apparently after the partition table was created then disks was able to handle the raid device the same as any other disk. It now did not have to deal with the underlying hardware/raid device, but only with the partitioning & formatting (already done) & mounting while defining a mount point.
We learn something new every day!!
And we do not mind hanging with someone who has a problem. Helping and learning are the reasons we are here in the first place! ;-)
 
Old 02-11-2021, 07:52 AM   #19
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
created a raid5 array (/dev/md0) using mdadm, then used gparted to create a partition table, define 3 partitions,
That is exactly how I started messing with RAID.
Of course some though it was nuts to have RAID5 on SAME disk!
That original scheme is still around and some day I'll get ambitious and use what is now scattered among 7 (!) USB and SATA disks. (If I can find it .... I am counting on grep... )
 
Old 02-11-2021, 07:58 AM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,678

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
computersavvy, Thanks for the clarification.
 
Old 02-11-2021, 04:53 PM   #21
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jan128 View Post
created a raid5 array (/dev/md0) using mdadm, then used gparted to create a partition table, define 3 partitions,
That is exactly how I started messing with RAID.
Of course some though it was nuts to have RAID5 on SAME disk!
That original scheme is still around and some day I'll get ambitious and use what is now scattered among 7 (!) USB and SATA disks. (If I can find it .... I am counting on grep... )
That is nuts, but for learning it is OK. It just totally defeats the hardware redundancy that is built into the design of raid5, so don't rely on it to use for long periods.
 
Old 09-18-2021, 10:01 AM   #22
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
Quote:
Originally Posted by computersavvy View Post

I do recommend that you not even consider anything with btrfs for raid at present.
Why? What file system do you put on top of mdadm? I was looking at btrfs raid 10.
 
  


Reply

Tags
disks, gparted, raid


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
how to implement delay (microseconds) with real timer ticking at 100ms. mayankparasher Programming 1 12-24-2009 12:04 PM
How to implement memory mapping between protected mode and real mode? me_too Linux - Newbie 0 05-13-2008 01:12 AM
real, real, real, basic computer for my Mom shengchieh General 3 12-18-2005 12:02 AM
Real Programmers Real People Real CS Students nakkaya General 5 07-04-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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