LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-14-2016, 08:13 AM   #1
slayme40
LQ Newbie
 
Registered: Oct 2015
Posts: 16

Rep: Reputation: Disabled
does the /boot partition get written to much


Does the /boot partition get written to much? The reason why I ask is because I want to install Leap 42.1 on a software raid 0 and I've heard that you can't have the /boot partition on a software raid 0.
 
Old 09-14-2016, 08:22 AM   #2
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
Not that it is written to often (generally only when installing an new kernel), but that the software raid probably won't be instantiated when the system needs to read from /boot.
 
Old 09-14-2016, 08:24 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
I don't see the point of implementing a software RAID 0 as it provides no fault tolerance. Use LVM instead.

Partition your first disk with a "real" /boot and then provision the remainder of the disk and the whole of the second disk as LVM
 
1 members found this post helpful.
Old 09-14-2016, 10:38 AM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by slayme40 View Post
Does the /boot partition get written to much? The reason why I ask is because I want to install Leap 42.1 on a software raid 0 and I've heard that you can't have the /boot partition on a software raid 0.
The /boot partition does not get written to much. Basically, it only gets written to when there is a kernel update. Depending on the frequency of your distribution's updates...maybe a couple times per month.

The point is moot, though, because you can't boot from a software raid 0 boot partition anyway.

I have one system built as a software RAID0 on 4 spare 80GB drives. But /boot is on a normal partition, because it needs to be. (Okay, software RAID1 will work, but that's only because the bootloader sees a member of a RAID1 mirroring array as a normal partition.) My partition setup is:

Code:
sda = (100MB /boot) (79GB RAID0 member of /)
sdb = (100MB  swap) (79GB RAID0 member of /)
sdc = (100MB  swap) (79GB RAID0 member of /)
sdd = (100MB  swap) (79GB RAID0 member of /)
Basically, everything is in the RAID0 array except for /boot. Note that software RAID0 does not require all members to be the same size. I just did it that way for my own sense of elegance. Normally, I don't even use swap partitions anymore; I prefer swap files.

A more typical setup would be to use a different RAID level because RAID0 will utterly fail if any single member fails. In that case, it would be more typical to put /boot in a RAID1 array - mirrored across all members. That way, if any drive fails, the remaining drives will have a working copy of /boot.

But in my case, any drive failure would sink the entire system anyway. So I put /boot only on the first drive for simplicity.
 
  


Reply

Tags
boot, raid0, software raid



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
Windows chkdsk deletes files written by Ubuntu on an NTFS partition chekhov_neo Linux - Newbie 6 11-23-2011 09:38 PM
[SOLVED] How to get console-log written during boot/start-up? ojciec1 Debian 3 06-16-2011 09:31 AM
PC won't boot from burned install CD, written using "CD (Boot)" in Nero Villeson Linux - Newbie 2 08-28-2006 06:33 PM
Linux partition over written with Fat32 data! hi-clier Linux - Newbie 2 11-21-2004 07:35 PM
From WindowsXP I cannot access files written onto vfat-partition under Linux Agi Hammerthief Linux - Hardware 10 01-19-2004 01:07 PM

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

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