Home > Archive > alt.os.linux > September 2002 > help for mirroring!!!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author help for mirroring!!!
Max Loi

2002-09-30, 9:29 am

Hi,
I have 2 disks with 2 identical partitions:

hda1 - hdc1 (md0)
hda2 - hdc2 (md1)

I mirrored the md1 partition, but when I try to "raidhotadd" the hda1
partition, I cant because it's busy...

I've tryed also to start my system by floppy, with the same result

Any suggestion?

Thx,
Max



Kosh Vader

2002-09-30, 9:29 am

On Mon, 30 Sep 2002 15:27:04 +0200, "Max Loi" <mloi@avantage.ws>
wrote:

>Hi,
>I have 2 disks with 2 identical partitions:
>
>hda1 - hdc1 (md0)
>hda2 - hdc2 (md1)
>
>I mirrored the md1 partition, but when I try to "raidhotadd" the hda1
>partition, I cant because it's busy...


Of course, /dev/hda1 is actively part of a RAID-1 configuration (for
/dev/md0) with /dev/hdc1. It cannot also be part of a RAID-1
configuration for /dev/md1.

What exactly are you trying to do?

Chris

>I've tryed also to start my system by floppy, with the same result
>
>Any suggestion?
>
>Thx,
>Max
>
>



Max Loi

2002-09-30, 9:29 am

Ok, let me explain better =)
I created my raid1 as the following raidtab

foxbox2:~# cat /etc/raidtab
#BOOT Array
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
# chunk-size 32
#Spare disks
nr-spare-disks 0
persistent-superblock 1
device /dev/hda1
failed-disk 0
device /dev/hdc1
raid-disk 1
#ROOT Array
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
# chunk-size 32
#Spare disks
nr-spare-disks 0
persistent-superblock 1
device /dev/hdc2
raid-disk 0
device /dev/hda2
raid-disk 1

And this is the /proc/mdstat

foxbox2:~# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hdc1[0]
4883648 blocks [2/1] [U_]
md1 : active raid1 hdc2[0] hda2[1]
33688256 blocks [2/2] [UU]
unused devices: <none>

The md1 is mirroring and it's ok.
Now I need to hotadd the hda1 to md0
When I try to make mkfs or mke2fs on /dev/hda1....

foxbox2:~# mkfs /dev/hda1
mke2fs 1.27 (8-Mar-2002)
/dev/hda1 is mounted; will not make a filesystem here!

But...

foxbox2:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/md0 4806904 384920 4177800 9% /
/dev/md1 33158648 32928 31441308 1% /var

The hda1 is not mounted, and if I try to unmount it, system reply that hda1
is not mounted.
I tried to boot my system from floppy, but the end is the same.

Thx for your help and excuse me for my "english" =P
Max

"Kosh Vader" <koshvader@vorlonempire.org> wrote in message
news:vpkgpugkgfbdvdhcubiei52mf
rrg8itapf@4ax.com...
> On Mon, 30 Sep 2002 15:27:04 +0200, "Max Loi" <mloi@avantage.ws>
> wrote:
>
> >Hi,
> >I have 2 disks with 2 identical partitions:
> >
> >hda1 - hdc1 (md0)
> >hda2 - hdc2 (md1)
> >
> >I mirrored the md1 partition, but when I try to "raidhotadd" the hda1
> >partition, I cant because it's busy...

>
> Of course, /dev/hda1 is actively part of a RAID-1 configuration (for
> /dev/md0) with /dev/hdc1. It cannot also be part of a RAID-1
> configuration for /dev/md1.
>
> What exactly are you trying to do?
>
> Chris
>
> >I've tryed also to start my system by floppy, with the same result
> >
> >Any suggestion?
> >
> >Thx,
> >Max
> >
> >

>
>



Kosh Vader

2002-09-30, 9:29 am

On Mon, 30 Sep 2002 15:49:33 +0200, "Max Loi" <mloi@avantage.ws>
wrote:

>Ok, let me explain better =)
>I created my raid1 as the following raidtab
>
>foxbox2:~# cat /etc/raidtab


>#BOOT Array
>raiddev /dev/md0
>raid-level 1
>nr-raid-disks 2
># chunk-size 32
>#Spare disks
>nr-spare-disks 0
>persistent-superblock 1
>device /dev/hda1
>failed-disk 0
>device /dev/hdc1
>raid-disk 1


Okay...

>#ROOT Array
>raiddev /dev/md1
>raid-level 1
>nr-raid-disks 2
># chunk-size 32
>#Spare disks
>nr-spare-disks 0
>persistent-superblock 1
>device /dev/hdc2
>raid-disk 0
>device /dev/hda2
>raid-disk 1


Okay...

>And this is the /proc/mdstat
>
>foxbox2:~# cat /proc/mdstat
>Personalities : [raid1]
>read_ahead 1024 sectors
>md0 : active raid1 hdc1[0]
>4883648 blocks [2/1] [U_]


I understand now, /dev/hda1 is no longer part of the active RAID-1
with /dev/hdc1...

>md1 : active raid1 hdc2[0] hda2[1]
>33688256 blocks [2/2] [UU]
>unused devices: <none>


Good...

>The md1 is mirroring and it's ok.
>Now I need to hotadd the hda1 to md0


Use "raidhotadd /dev/md0 /dev/hda1"

This will allow the mirror to be rebuilt again.

>When I try to make mkfs or mke2fs on /dev/hda1....


Why do this? There is no need for that.

>foxbox2:~# mkfs /dev/hda1
>mke2fs 1.27 (8-Mar-2002)
>/dev/hda1 is mounted; will not make a filesystem here!


No, no... don't try formatting.

Chris


Kosh Vader

2002-09-30, 10:29 am

On Mon, 30 Sep 2002 15:49:33 +0200, "Max Loi" <mloi@avantage.ws>
wrote:

>Ok, let me explain better =)
>I created my raid1 as the following raidtab
>
>foxbox2:~# cat /etc/raidtab


>#BOOT Array
>raiddev /dev/md0
>raid-level 1
>nr-raid-disks 2
># chunk-size 32
>#Spare disks
>nr-spare-disks 0
>persistent-superblock 1
>device /dev/hda1
>failed-disk 0
>device /dev/hdc1
>raid-disk 1


Okay...

>#ROOT Array
>raiddev /dev/md1
>raid-level 1
>nr-raid-disks 2
># chunk-size 32
>#Spare disks
>nr-spare-disks 0
>persistent-superblock 1
>device /dev/hdc2
>raid-disk 0
>device /dev/hda2
>raid-disk 1


Okay...

>And this is the /proc/mdstat
>
>foxbox2:~# cat /proc/mdstat
>Personalities : [raid1]
>read_ahead 1024 sectors
>md0 : active raid1 hdc1[0]
>4883648 blocks [2/1] [U_]


I understand now, /dev/hda1 is no longer part of the active RAID-1
with /dev/hdc1...

>md1 : active raid1 hdc2[0] hda2[1]
>33688256 blocks [2/2] [UU]
>unused devices: <none>


Good...

>The md1 is mirroring and it's ok.
>Now I need to hotadd the hda1 to md0


Use "raidhotadd /dev/md0 /dev/hda1"

This will allow the mirror to be rebuilt again.

>When I try to make mkfs or mke2fs on /dev/hda1....


Why do this? There is no need for that.

>foxbox2:~# mkfs /dev/hda1
>mke2fs 1.27 (8-Mar-2002)
>/dev/hda1 is mounted; will not make a filesystem here!


No, no... don't try formatting.

Chris


Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net