LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-11-2016, 04:51 AM   #1
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Ubuntu 20.04 / Manjaro
Posts: 439

Rep: Reputation: 48
Installation trouble / drive setup LVM+RAID1


Hey guys, in the past I've always had separate partitions for my
/boot
/swap
/
/home

Now I'm setting up a machine to be my media/backup server and want it to be a RAID1+LVM, that's the setup I had on CentOS which I don't think I'm a huge fan of and also think it's setup only mirrored my /home on the two drives which is better than nothing but not what I wanted.

I want to COMPLETE mirrored drives, not just /home. these will be the parts I need

/biosboot
/boot
/swap
/
/home

Where I'm loosing it is from my reading you don't really make "real" partitions anymore just logical with LVM, that's fine but I'm iffy on the process. The other issues if I'm understanding it right is for the RAID1 to be complete I need to create a MD for each partition/lvm logical? I'm planning on doing this with the Debian installer if that makes a difference.
 
Old 07-12-2016, 02:12 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,445

Rep: Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341Reputation: 2341
The purpose of raid 1 is maximum writing speeds. You're supposed to have 2 separate drives and you stripe between them filling each disk cache as you write. It's not for drive mirroring at all. I think it's raid 5 you want for that, and 2 or 3 drives as well.

If you don't know What you are doing with LVM,use fdisk or gdisk.
 
Old 07-12-2016, 03:44 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,150

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by snatale1 View Post
Where I'm loosing it is from my reading you don't really make "real" partitions anymore just logical with LVM, that's fine but I'm iffy on the process. The other issues if I'm understanding it right is for the RAID1 to be complete I need to create a MD for each partition/lvm logical? I'm planning on doing this with the Debian installer if that makes a difference.
If you are defining a RAID1 container across two devices (using mdadm), LVM doesn't know or care.
mdadm manages the RAID, with LVM (on top) you just define a pv across the container, and allocate lvs for your mount points. You will need bootloader support if /boot is in the RAID. grub[2] should be ok, but I don't know what level of support Debian has.

FWIW, LVM now has much more flexible native RAID support - has failure policies, and (much) easier addition of devices. Fedora and RHEL/Centos has that support, don't know about Debian.
 
Old 07-12-2016, 04:32 AM   #4
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Ubuntu 20.04 / Manjaro
Posts: 439

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by business_kid View Post
The purpose of raid 1 is maximum writing speeds. You're supposed to have 2 separate drives and you stripe between them filling each disk cache as you write. It's not for drive mirroring at all.
Yes, it is. Your describing RAID0

Quote:
I think it's raid 5 you want for that, and 2 or 3 drives as well.
RAID5 is a mirror but does it differently and with a parity drive, I have 2 drives so RAID1 is my only mirror option.


Quote:
If you don't know What you are doing with LVM,use fdisk or gdisk.
Pretty sure those two can't create volume groups but I could be wrong on that. I figured it out in any case. No I wasn't to familiar with it aside from have the installer doing a generic setup for me but what what this forum is supposed to be for.
 
Old 07-12-2016, 04:36 AM   #5
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Ubuntu 20.04 / Manjaro
Posts: 439

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by syg00 View Post
If you are defining a RAID1 container across two devices (using mdadm), LVM doesn't know or care.
mdadm manages the RAID, with LVM (on top) you just define a pv across the container, and allocate lvs for your mount points. You will need bootloader support if /boot is in the RAID. grub[2] should be ok, but I don't know what level of support Debian has.

FWIW, LVM now has much more flexible native RAID support - has failure policies, and (much) easier addition of devices. Fedora and RHEL/Centos has that support, don't know about Debian.
Thanks, after a lot of doing things backwards I got a hold on it. Still can't boot LOL, I've got my biosboot partition outside of the RAID, but may also need a separate /boot outside if it as well. Docs I was reading seemed like it didn't need both. If that doesn't do it I may just put in CentOS. I had that up and running but was being stubborn about leaving the .deb side of the world, but in the end it's still RHEL so I guess theirs worse things than using the King Enterprise OS.
 
  


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
Setup backup of encrypted LVM to an external hard drive darjeelingtee Linux - General 1 12-21-2011 06:02 AM
Trouble booting up to LVM partition on Raid1. gammahermit Linux - General 2 07-11-2010 11:37 AM
Migrate from default LVM installation to RAID1 (Ubuntu Server 9.10) vwtech Ubuntu 0 04-19-2010 02:07 PM
Setup up lvm raid1(boot,root,home),raid5(media) wallbunny Linux - General 4 10-01-2009 04:59 AM
lvm ontop of raid10 or combine two raid1 via lvm? okar Linux - Server 3 09-11-2009 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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