FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-27-2011, 11:43 AM
Joey L
 
Default redundant debian array via mdadm

I am trying to build a system that will give me as much tolerance as possible.I have (4) 1 Terabyte drives.
I have created 2 mirrored raid drives md0 and md1.md0 has the / and boot partition on it.

and md1 has the data on lvm.On /dev/sda I also have my swap partition on it.I have tried to test what would happen if i loose my first drive in the root partition /.I get a blinking cursor - something is preventing *the mirrored drive from kicking in and booting.

can anyone help ???
my config is below.thanks

root@rider:~# cat /proc/mdstatPersonalities : [raid1]md1 : active raid1 sdc1[0] sdd1[1]

* * * 976759672 blocks super 1.2 [2/2] [UU]* * * [================>....] *resync = 83.0% (810947712/976759672) finish=69.0min speed=40014K/sec
md0 : active raid1 sda1[0] sdb1[1]

* * * 972849016 blocks super 1.2 [2/2] [UU]
unused devices: <none>root@rider:~#

root@rider:~# fdisk -l


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes255 heads, 63 sectors/track, 121601 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0005d0fd
* *Device Boot * * *Start * * * * End * * *Blocks * Id *System/dev/sda1 * * * * * * * 1 * * *121115 * 972850176 * fd *Linux raid autodetect

/dev/sda2 * * * * *121115 * * *121602 * * 3909633 * *5 *Extended/dev/sda5 * * * * *121115 * * *121602 * * 3909632 * 82 *Linux swap / Solaris
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes

255 heads, 63 sectors/track, 121601 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x000c8a8d
* *Device Boot * * *Start * * * * End * * *Blocks * Id *System/dev/sdb1 * * * * * * * 1 * * *121115 * 972850176 * fd *Linux raid autodetect


Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes255 heads, 63 sectors/track, 121601 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x000d27a0
* *Device Boot * * *Start * * * * End * * *Blocks * Id *System/dev/sdc1 * * * * * * * 1 * * *121602 * 976760832 * fd *Linux raid autodetect


Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes255 heads, 63 sectors/track, 121601 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x000d4cc8
* *Device Boot * * *Start * * * * End * * *Blocks * Id *System/dev/sdd1 * * * * * * * 1 * * *121602 * 976760832 * fd *Linux raid autodetect


Disk /dev/md0: 996.2 GB, 996197392384 bytes2 heads, 4 sectors/track, 243212254 cylindersUnits = cylinders of 8 * 512 = 4096 bytesSector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1: 1000.2 GB, 1000201904128 bytes

2 heads, 4 sectors/track, 244189918 cylindersUnits = cylinders of 8 * 512 = 4096 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/dm-0: 250.0 GB, 249997295616 bytes255 heads, 63 sectors/track, 30393 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000


Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 250.0 GB, 249997295616 bytes255 heads, 63 sectors/track, 30393 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table


Disk /dev/dm-2: 250.0 GB, 249997295616 bytes255 heads, 63 sectors/track, 30393 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3: 250.2 GB, 250207010816 bytes

255 heads, 63 sectors/track, 30419 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000
Disk /dev/dm-3 doesn't contain a valid partition tableroot@rider:~#
 
Old 06-27-2011, 07:20 PM
lee
 
Default redundant debian array via mdadm

Joey L <mjh2000@gmail.com> writes:

> I have created 2 mirrored raid drives md0 and md1.
> I have tried to test what would happen if i loose my first drive in the root
> partition /.
> I get a blinking cursor - something is preventing the mirrored drive from
> kicking in and booting.

Set the other drive to boot from in the BIOS. That shouldn't be
necessary, yet it seems to be ...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87pqlzkrnx.fsf@yun.yagibdah.de">http://lists.debian.org/87pqlzkrnx.fsf@yun.yagibdah.de
 
Old 06-27-2011, 09:26 PM
Joey L
 
Default redundant debian array via mdadm

thanks - i set that partition as bootable before..actually both drives are set as bootable in the partition manager.I also get a Raid failed error when i boot with all drives in the server.But when i run cat /proc/mdadm - they seem to be all fine.


On Mon, Jun 27, 2011 at 3:20 PM, lee <lee@yun.yagibdah.de> wrote:

Joey L <mjh2000@gmail.com> writes:



> I have created 2 mirrored raid drives md0 and md1.

> I have tried to test what would happen if i loose my first drive in the root

> partition /.

> I get a blinking cursor - something is preventing *the mirrored drive from

> kicking in and booting.



Set the other drive to boot from in the BIOS. That shouldn't be

necessary, yet it seems to be ...





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/87pqlzkrnx.fsf@yun.yagibdah.de
 
Old 06-27-2011, 09:32 PM
Henrique de Moraes Holschuh
 
Default redundant debian array via mdadm

On Mon, 27 Jun 2011, Joey L wrote:
> thanks - i set that partition as bootable before..actually both drives are
> set as bootable in the partition manager.
> I also get a Raid failed error when i boot with all drives in the server.
> But when i run cat /proc/mdadm - they seem to be all fine.

You need the MBR and boot loader installed to both drives, and configured to
match whatever your BIOS/EFI expects to find in the second disk when the
first disk fails. This isn't supposed to be a problem for EFI and GPT, but
for standard DOS disklabels, it can be.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110627213245.GA12105@khazad-dum.debian.net">http://lists.debian.org/20110627213245.GA12105@khazad-dum.debian.net
 
Old 06-27-2011, 10:49 PM
Tom H
 
Default redundant debian array via mdadm

On Mon, Jun 27, 2011 at 7:43 AM, Joey L <mjh2000@gmail.com> wrote:
>
> I am trying to build a system that will give me as much tolerance as
> possible.
> I have (4) 1 Terabyte drives.
> I have created 2 mirrored raid drives md0 and md1.
> md0 has the / and boot partition on it.
> and md1 has the data on lvm.
> On /dev/sda I also have my swap partition on it.
> I have tried to test what would happen if i loose my first drive in the root
> partition /.
> I get a blinking cursor - something is preventing *the mirrored drive from
> kicking in and booting.

Have you installed grub the MBRs of sda and sdb?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTi=rtc-KTD2WRkgC1_fa5JCRCSQE3w@mail.gmail.com">http://lists.debian.org/BANLkTi=rtc-KTD2WRkgC1_fa5JCRCSQE3w@mail.gmail.com
 
Old 07-07-2011, 04:23 PM
Joey L
 
Default redundant debian array via mdadm

I have 4 drives.I would like complete fault tolerance if a drive fails.Is there a simple tutorial online that can show me how to do this in debian ??On the first set of drives - I have created 2 raid partitions on each drive - 1 for the root / filesystem (996gb) and the other for swap (4gb) - I have 4gb of ram in the server.

I managed to setup the / and the swap system but i think i am doing something wrong with swap - when i do:
root@rider:~# cat /proc/mdstatPersonalities : [raid1]
md2 : active (auto-read-only) raid1 sdc1[0] sdd1[1]* * * 976759672 blocks super 1.2 [2/2] [UU]
md1 : active (auto-read-only) raid1 sda2[0] sdb2[1]* * * 4104180 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]* * * 972654456 blocks super 1.2 [2/2] [UU]
unused devices: <none>
It keeps showing up as read-only.

Further - I tried to use the 2 other drives as mirroring each other - md2 - but it took a long time to mirror drives.How can i do this after the system is setup ???How can I create a filesystem on them???
How do I put MBRs on both drives that have the root filesytem (.).
thanksmjh



On Mon, Jun 27, 2011 at 6:49 PM, Tom H <tomh0665@gmail.com> wrote:

On Mon, Jun 27, 2011 at 7:43 AM, Joey L <mjh2000@gmail.com> wrote:


>

> I am trying to build a system that will give me as much tolerance as

> possible.

> I have (4) 1 Terabyte drives.

> I have created 2 mirrored raid drives md0 and md1.

> md0 has the / and boot partition on it.

> and md1 has the data on lvm.

> On /dev/sda I also have my swap partition on it.

> I have tried to test what would happen if i loose my first drive in the root

> partition /.

> I get a blinking cursor - something is preventing *the mirrored drive from

> kicking in and booting.



Have you installed grub the MBRs of sda and sdb?





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/BANLkTirtc-KTD2WRkgC1_fa5JCRCSQE3w@mail.gmail.com
 
Old 07-08-2011, 10:39 AM
Tom H
 
Default redundant debian array via mdadm

On Thu, Jul 7, 2011 at 12:23 PM, Joey L <mjh2000@gmail.com> wrote:
> On Mon, Jun 27, 2011 at 6:49 PM, Tom H <tomh0665@gmail.com> wrote:
>> On Mon, Jun 27, 2011 at 7:43 AM, Joey L <mjh2000@gmail.com> wrote:
>> >
>> > I am trying to build a system that will give me as much tolerance as
>> > possible.
>> > I have (4) 1 Terabyte drives.
>> > I have created 2 mirrored raid drives md0 and md1.
>> > md0 has the / and boot partition on it.
>> > and md1 has the data on lvm.
>> > On /dev/sda I also have my swap partition on it.
>> > I have tried to test what would happen if i loose my first drive in the
>> > root
>> > partition /.
>> > I get a blinking cursor - something is preventing *the mirrored drive
>> > from
>> > kicking in and booting.
>>
>> Have you installed grub the MBRs of sda and sdb?
>
> I have 4 drives.
>
> I would like complete fault tolerance if a drive fails.
> Is there a simple tutorial online that can show me how to do this in debian
> ??
> On the first set of drives - I have created 2 raid partitions on each drive
> - 1 for the root / filesystem (996gb) and the other for swap (4gb) - I have
> 4gb of ram in the server.
> I managed to setup the / and the swap system but i think i am doing
> something wrong with swap - when i do:
> root@rider:~# cat /proc/mdstat
> Personalities : [raid1]
> md2 : active (auto-read-only) raid1 sdc1[0] sdd1[1]
> 976759672 blocks super 1.2 [2/2] [UU]
> md1 : active (auto-read-only) raid1 sda2[0] sdb2[1]
> 4104180 blocks super 1.2 [2/2] [UU]
> md0 : active raid1 sda1[0] sdb1[1]
> 972654456 blocks super 1.2 [2/2] [UU]
> unused devices: <none>
> It keeps showing up as read-only.
> Further - I tried to use the 2 other drives as mirroring each other - md2 -
> but it took a long time to mirror drives.
> How can i do this after the system is setup ???
> How can I create a filesystem on them???
> How do I put MBRs on both drives that have the root filesytem (.).

I've never come across "auto-read-only", perhaps because I haven't run
"/proc/mdstat" straight after booting. Google says that writing to the
arrays will put them into rw mode.

You already have all four drives mirrored.

You can install grub to the MBRs of sda and sdb with "grub-install
/dev/sda" and "grub-install /dev/sdb".


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAOdo=Swqs8=ZaCpEwpbk__mPC_oA=iTYXcA27gq8xofKBRXpa A@mail.gmail.com">http://lists.debian.org/CAOdo=Swqs8=ZaCpEwpbk__mPC_oA=iTYXcA27gq8xofKBRXpa A@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 12:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org