Re: / on raid1
On Thu, 16 May 2002, Alvin Oga wrote:
> if you are trying to hotadd ... you need to hotremove it first...
~ # cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md1 : active raid1 hdb1[0]
4200896 blocks [2/1] [U_]
md2 : active raid1 hda2[1] hdb2[0]
6297408 blocks [2/2] [UU]
md3 : active raid1 hda3[1] hdb3[0]
6297408 blocks [2/2] [UU]
md4 : active raid1 hda4[1] hdb4[0]
3212928 blocks [2/2] [UU]
unused devices: <none>
~ # raidhotremove /dev/md1 /dev/hda1
/dev/md1: can not hot-remove disk: disk not in array!
~ #
> === and make sure the partition type on /dev/hda1 is fd type
> since it's not part of /dev/md1 yet
~ # fdisk -ul /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
Units = sectors of 1 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 63 8401994 4200966 fd Linux raid autodetect
/dev/hda2 8401995 20996954 6297480 fd Linux raid autodetect
/dev/hda3 20996955 33591914 6297480 fd Linux raid autodetect
/dev/hda4 33591915 40017914 3213000 fd Linux raid autodetect
~ #
> assuming you dont care about data on /dev/md1
> -- boot in standalone mode...
> -- mke2fs /dev/hda1
i tried it out if i can boot withut /dev/hda1 ... i pulled the ide-bus
off, but i couldn't boot without it, i got kernel panic unable to mount
root fs...
> > md1 : active raid1 hdb1[0]
> > 4200896 blocks [2/1] [U_]
>
> the problem ??? -- missing hda1
~ # mount /dev/hda1 /mnt/
~ #
it exists...
--
> Kavefozo van.
akkor ajandekkent erre feltennek egy NetBSD-t :) (c) Silver
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: