Skip to contentSkip to conversation

Help with /etc/raidtab

DISCUSSION Bradley D. Thornton 2 participants 3 messages Jul 8, 2003 MD RAID

lore
Share & tools
lore
#0 lore raw

I've been looking around for example /etc/raidtabs and only seem to find ones that look like this:

raiddev /dev/md0

        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0

chunk-size 4
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
My question is, considering that I have multiple partitions that I want to array and I also want to boot from my RAID 1 array, can I just do this?

        device          /dev/sda
        raid-disk       0
        device          /dev/sdb
        raid-disk       1
or do I need to do this?
        device          /dev/sda1
        raid-disk       0        device          /dev/sda3        raid-disk
0        device          /dev/sda5        raid-disk       0        device
/dev/sda6        raid-disk       0        device          /dev/sdb1

raid-disk 1 device /dev/sdb3 raid-disk
1 device /dev/sdb5 raid-disk 1 device
/dev/sdb6 raid-disk 1Any assistance would be greatly
appreciated.
---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system
(http://www.grisoft.com).Version: 6.0.449 / Virus Database: 251 - Release
Date: 01/27/03

#1 lore raw

I realize that the example below is ugly, sorry for that :(

Basically what I'm asking is, can't I just specify /dev/sdX in raidtab or do I actually have to specify each and evry single partition on the disk for
the array to work - i.e., /dev/sdX# ????

Please see below if you can deal with the lousy formatting.

"Bradley D. Thornton" <[email protected]> wrote in message news:[email protected]...

Quoted 15 lines

I've been looking around for example /etc/raidtabs and only seem to find ones that look like this:

raiddev /dev/md0

        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0

chunk-size 4
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
My question is, considering that I have multiple partitions that I want to array and I also want to boot from my RAID 1 array, can I just do this?

Quoted 7 lines
        device          /dev/sda
        raid-disk       0
        device          /dev/sdb
        raid-disk       1

or do I need to do this?
device /dev/sda1
raid-disk 0 device /dev/sda3

raid-disk

Quoted 3 lines
0        device          /dev/sda5        raid-disk       0        device
/dev/sda6        raid-disk       0        device          /dev/sdb1

raid-disk 1 device /dev/sdb3

raid-disk

Quoted 9 lines

1 device /dev/sdb5 raid-disk 1 device
/dev/sdb6 raid-disk 1Any assistance would be greatly
appreciated.
---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system
(http://www.grisoft.com).Version: 6.0.449 / Virus Database: 251 - Release
Date: 01/27/03

Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 01/27/03

#2 lore raw

You have to specify each partition.

Donghui

----- Original Message -----
From: "Bradley D. Thornton" <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 08, 2003 3:21 PM
Subject: Re: Help with /etc/raidtab

Quoted 3 lines

I realize that the example below is ugly, sorry for that :(

Basically what I'm asking is, can't I just specify /dev/sdX in raidtab or

do

Quoted 22 lines

I actually have to specify each and evry single partition on the disk for
the array to work - i.e., /dev/sdX# ????

Please see below if you can deal with the lousy formatting.

"Bradley D. Thornton" <[email protected]> wrote in message news:[email protected]...

Quoted 14 lines

I've been looking around for example /etc/raidtabs and only seem to find ones that look like this:

raiddev /dev/md0

        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0

chunk-size 4
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
My question is, considering that I have multiple partitions that I want

to

Quoted 10 lines
Quoted 8 lines

array and I also want to boot from my RAID 1 array, can I just do this?

        device          /dev/sda
        raid-disk       0
        device          /dev/sdb
        raid-disk       1

or do I need to do this?
device /dev/sda1
raid-disk 0 device /dev/sda3

raid-disk

Quoted 1 line

0 device /dev/sda5 raid-disk 0

device

Quoted 4 lines
Quoted 2 lines

/dev/sda6 raid-disk 0 device /dev/sdb1
raid-disk 1 device /dev/sdb3

raid-disk

Quoted 1 line

1 device /dev/sdb5 raid-disk 1

device

Quoted 3 lines
Quoted 3 lines

/dev/sdb6 raid-disk 1Any assistance would be greatly
appreciated.
---Outgoing mail is certified Virus Free.Checked by AVG anti-virus

system

Quoted 1 line
Quoted 1 line

(http://www.grisoft.com).Version: 6.0.449 / Virus Database: 251 -

Release

Quoted 23 lines
Quoted 9 lines

Date: 01/27/03

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 01/27/03

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html