linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* If separate md for /boot, OS, and /srv, must 'create' on disks with 3 partns?
@ 2014-01-19 18:39 Ron Leach
  2014-01-19 20:46 ` Phil Turmel
  0 siblings, 1 reply; 7+ messages in thread
From: Ron Leach @ 2014-01-19 18:39 UTC (permalink / raw)
  To: Linux RAID Mailing List

List, may I ask a query about partitions?

Our objective is to run a Debian Wheezy system as a data server using 
an LVM on top of 2 x 3TB discs in RAID-1 configuration.  A first 
attempt had the whole discs used for the data filesystem, using a 
single /dev/md(n), on whole unpartitioned disks.  We've dismantled 
that because of filesystem size problems (it had used only 2TB disks) 
and will make a second attempt and additionally, this time, we want to 
use the array for 3 purposes:

(a) Boot with Grub
(b) Hold the OS
(c) Use the remainder of the disk for the data server, on which we'll 
install an LVM and later grow that with another 2 x 3TB disks.

Assuming I am correct in needing something such as:

/dev/md0 for Grub, (and copied to both physical disks of the RAID-1)
/dev/md1 for the OS, and
/dev/md2 for the data files (on which we'll install the LVM)

then I think we need to partition our disks before creating the array. 
  Is that correct?

The wiki ( https://raid.wiki.kernel.org/index.php/Partition_Types , 
and https://raid.wiki.kernel.org/index.php/RAID_setup#General_setup ) 
is relatively silent on the 'numbers' of partitions that could or 
should be used, if creating a raid on new discs in the circumstances 
where boot 'partitions' and separate OS 'partitions' might be needed. 
  I couldn't see anything in man mdadm to guide me, either, but I 
could have missed something and apologies if I have.

Should I proceed to partition the disks, and then create 3 RAID-1 
arrays (one on each partition-pair), or should I use a different 
technique/layout to hold Grub, the OS, and an expandable LV for the 
datafiles?

I had always assumed that /dev/md(x) always mapped to /dev/sda(y), but 
I have a faint recollection that a discussion on the list a year or so 
ago had suggested that that mapping was not cast in stone, and 
multiple partitions on the physical devices were neither necessary nor 
desirable.  Grateful for any comment,  Ron


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-21  8:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-19 18:39 If separate md for /boot, OS, and /srv, must 'create' on disks with 3 partns? Ron Leach
2014-01-19 20:46 ` Phil Turmel
2014-01-19 21:29   ` David Brown
2014-01-20 16:53   ` Ron Leach
2014-01-20 18:29     ` Phil Turmel
2014-01-20 19:07       ` Ron Leach
2014-01-21  8:02         ` Wilson Jonathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).