Re: raid not creating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Neil Brown wrote:
> On Sunday January 29, blata@xxxxxxxxxxxx wrote:
> 
>>>Neil Brown wrote:
>>>
>>>
>>>>On Friday January 27, blata@xxxxxxxxxxxx wrote:
>>>
>>>
>>>>># mdadm --create --verbose /dev/md4 --level=1 --raid-devices=2 /dev/hde3
>>>>>/dev/hdg3
>>>>>mdadm: /dev/hde3 appears to contain an ext2fs file system
>>>>>  size=35214480K  mtime=Thu Jan 26 13:38:20 2006
>>>>>mdadm: /dev/hdg3 appears to contain an ext2fs file system
>>>>>  size=35214480K  mtime=Thu Jan 26 13:38:20 2006
>>>>>mdadm: size set to 35214400K
>>>>>Continue creating array? y
>>>>>mdadm: SET_ARRAY_INFO failed for /dev/md4: Device or resource busy
>>>
>>>
>>>>Sounds like /dev/md4 already exists.  What does
>>>> cat /proc/mdstat
>>>>show?
>>>
>>>>NeilBrown
>>>
>>>
>>>cat /proc/mdstat
>>>Personalities :
>>>md2 : inactive hdc3[0]
>>>      8723200 blocks
>>>md3 : inactive hdg1[0]
>>>      61440448 blocks
>>>md4 : inactive hdg3[0]
>>>      35214400 blocks
>>>md1 : inactive hdc2[0]
>>>      20482752 blocks
>>>md0 : inactive hdc1[0]
>>>      104320 blocks
>>>unused devices: <none>
> 
> 
> So md4 (and others) is partially created.  If you
>   mdadm --stop /dev/md4
>   mdadm --create --verbose /dev/md4 --level=1 --raid-devices=2 /dev/hde3 /dev/hdg3
> 
> it should work.
> 
> 
> 
>>>I got this only after doing the following.
>>>
>>>mdadm --manage --add /dev/md2 /dev/hdc3
>>>
> 
> 
> I guess you are trying to add devices to non-existent arrays... Maybe
> mdadm should complain about that...
> 
> 
>>>for each md device.  If I then go back and try to add /dev/hda1 to the md0
>>>I get this.
>>>
>>>mdadm --manage --add /dev/md0 /dev/hda1
>>>mdadm: add new device failed for /dev/hda1: Device or resource
>>>busy
> 
> 
> Maybe hda1 is currently in use?  Maybe it is mounted as a filesystem?
> 
> What exactly are you trying to achieve?
> 
> NeilBrown
> 
I live in California and this server is in Ohio  ~3000 mi away.  Any way I
am rebuilding it remotely do some problems from a few months ago.  Anyway I
had someone in Ohio format the four drives.  I was then left with a system
on drives a and e.  Now after the fact I'm trying to get the software raid
working on a-c e-g.  but I am unable to do so using mdadm.  I'm trying to
coordinate this with my Ohio counterpart when he is available.

At this point I am thinking that I need to have him boot the box into
rescue mode issue the mdadm commands, edit the fstab file and then reboot.
 Does this sound like a feasible approach?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD3Z3rv+6+qSFv3TURAkJ1AJ92JGA3HD3fozi0W+h5OsICi90cGQCgt0Ia
WMOBvFOINP+HA0fUV85O0Ug=
=P9vG
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux