|
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, 10:29 am |
| I just tried to make:
raidhotadd /dev/md0 /dev/hda1
but the system reply me that:
md: trying yyo hot-add hda1 to md0 ...
md: can not import hda1, has active inodes!
md: error, md_import_device() returned -16
/dev/md0: can not hot-add disk: invalid argument
and it stop me!
I'm trying to do everithing, but nothing to do at this moment...
Max
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
| |
| Paul Lutus 2002-09-30, 10:29 am |
| Max Loi wrote:
> I just tried to make:
>
> raidhotadd /dev/md0 /dev/hda1
> but the system reply me that:
>
> md: trying yyo hot-add hda1 to md0 ...
> md: can not import hda1, has active inodes!
This means you tried to reassign (or multiply assign) a device (/dev/hda1)
that is already assigned and already active. Such a device cannot have more
than one controlling process.
--
Paul Lutus
www.arachnoid.com
| |
| Max Loi 2002-09-30, 10:29 am |
| Nope...
I assigned the device only to /etc/raidtab, but the system doesnt recognizes
it because it appears to have bad superblocks/inodes
I ran fsck and e2fsck more and more time...
After 1 day of fsck finally hda1 gets the md0 and linux begun the
mirroring...
But I cannot wait so many time to add hda1 to the raid...
I think I'm doing some error, but I cant find where is my error...
"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:upgqm2p50glqe6@corp.supernews.com...
> Max Loi wrote:
>
> > I just tried to make:
> >
> > raidhotadd /dev/md0 /dev/hda1
> > but the system reply me that:
> >
> > md: trying yyo hot-add hda1 to md0 ...
> > md: can not import hda1, has active inodes!
>
> This means you tried to reassign (or multiply assign) a device (/dev/hda1)
> that is already assigned and already active. Such a device cannot have
more
> than one controlling process.
>
> --
> Paul Lutus
> www.arachnoid.com
>
| |
| Paul Lutus 2002-09-30, 10:29 am |
| Max Loi wrote:
> Nope...
> I assigned the device only to /etc/raidtab, but the system doesnt
> recognizes it because it appears to have bad superblocks/inodes
But that isn't the error message you are seeing. The error is:
> md: can not import hda1, has active inodes!
"Bad superblocks/inoodes" isn't the same as "active inodes." The latter
imply that the drive is being actively accessed by a process, and therefore
cannot be reassigned to a new process.
>
> I ran fsck and e2fsck more and more time...
> After 1 day of fsck finally hda1 gets the md0 and linux begun the
> mirroring...
You may have to replace the drive in any case, if the errors are intrinsic
to the drive and are not caused by errors in mounting or use.
> But I cannot wait so many time to add hda1 to the raid...
Then get a new drive? How about trying a different drive, one you know is
good, just to see if the problem abates? If the error message remains, then
you know the problem is not what it appears to be.
--
Paul Lutus
www.arachnoid.com
| |
| Paul Lutus 2002-09-30, 11:29 am |
| Max Loi wrote:
> I just tried to make:
>
> raidhotadd /dev/md0 /dev/hda1
> but the system reply me that:
>
> md: trying yyo hot-add hda1 to md0 ...
> md: can not import hda1, has active inodes!
This means you tried to reassign (or multiply assign) a device (/dev/hda1)
that is already assigned and already active. Such a device cannot have more
than one controlling process.
--
Paul Lutus
www.arachnoid.com
| |
| Max Loi 2002-09-30, 11:29 am |
| Nope...
I assigned the device only to /etc/raidtab, but the system doesnt recognizes
it because it appears to have bad superblocks/inodes
I ran fsck and e2fsck more and more time...
After 1 day of fsck finally hda1 gets the md0 and linux begun the
mirroring...
But I cannot wait so many time to add hda1 to the raid...
I think I'm doing some error, but I cant find where is my error...
"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:upgqm2p50glqe6@corp.supernews.com...
> Max Loi wrote:
>
> > I just tried to make:
> >
> > raidhotadd /dev/md0 /dev/hda1
> > but the system reply me that:
> >
> > md: trying yyo hot-add hda1 to md0 ...
> > md: can not import hda1, has active inodes!
>
> This means you tried to reassign (or multiply assign) a device (/dev/hda1)
> that is already assigned and already active. Such a device cannot have
more
> than one controlling process.
>
> --
> Paul Lutus
> www.arachnoid.com
>
| |
| Paul Lutus 2002-09-30, 11:29 am |
| Max Loi wrote:
> Nope...
> I assigned the device only to /etc/raidtab, but the system doesnt
> recognizes it because it appears to have bad superblocks/inodes
But that isn't the error message you are seeing. The error is:
> md: can not import hda1, has active inodes!
"Bad superblocks/inoodes" isn't the same as "active inodes." The latter
imply that the drive is being actively accessed by a process, and therefore
cannot be reassigned to a new process.
>
> I ran fsck and e2fsck more and more time...
> After 1 day of fsck finally hda1 gets the md0 and linux begun the
> mirroring...
You may have to replace the drive in any case, if the errors are intrinsic
to the drive and are not caused by errors in mounting or use.
> But I cannot wait so many time to add hda1 to the raid...
Then get a new drive? How about trying a different drive, one you know is
good, just to see if the problem abates? If the error message remains, then
you know the problem is not what it appears to be.
--
Paul Lutus
www.arachnoid.com
|
|
|
|
|