linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* about delete raid
@ 2002-05-23 13:58 lilha
  2002-05-24  0:45 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: lilha @ 2002-05-23 13:58 UTC (permalink / raw)
  To: linux-raid

i have setup raid0 and linear in my computer.
now i want to remove it and release my disk.
i use raidstop to stop all of md,and remove the file of /etc/raidtab
then i use fdisk to delete all of raid disk partitions.
at last , i reboot machine.

then i want to setup raid again, but it can't work now.

Following is my configure and the error output.

Disk /dev/hda: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1       383   3076416   83  Linux
/dev/hda3           767      2434  13398210    5  Extended
/dev/hda4           448       511    514080   8e  Linux LVM
/dev/hda5           767       783    136521   82  Linux swap
/dev/hda6           784       800    136521   83  Linux
/dev/hda7           801       864    514048+  fd  Linux raid autodetect
/dev/hda8           865       928    514048+  fd  Linux raid autodetect

Disk /dev/hdc: 255 heads, 63 sectors, 392 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1             1        64    514048+  83  Linux
/dev/hdc4           193       392   1606500    5  Extended
/dev/hdc5           193       256    514048+  fd  Linux raid autodetect
/dev/hdc6           257       358    819283+  fd  Linux raid autodetect


[root@snap /root]# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath]
read_ahead not set
unused devices: <none>

[root@snap /root]# vi /etc/raidtab
raiddev /dev/md8
        raid-level              0
        nr-raid-disks           2
        persistent-superblock   1
        chunk-size              32
        device                  /dev/hda7
        raid-disk               0
        device                  /dev/hdc5
        raid-disk               1
raiddev /dev/md9
        raid-level              0
        nr-raid-disks           2
        persistent-superblock   1
        chunk-size              32
        device                  /dev/hda8
        raid-disk               0
        device                  /dev/hdc6
        raid-disk               1


[root@snap /root]# mkraid /dev/md8
handling MD device /dev/md8
analyzing super-block
/dev/hda7: device too small (0kB)
mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
[root@snap /root]# mkraid /dev/md9
handling MD device /dev/md9
analyzing super-block
/dev/hda8: device too small (0kB)
mkraid: aborted, see the syslog and /proc/mdstat for potential clues.


Can you tell me where is wrong?
thanks a lot.


With our best regards, echo


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: about delete raid
  2002-05-23 13:58 about delete raid lilha
@ 2002-05-24  0:45 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2002-05-24  0:45 UTC (permalink / raw)
  To: lilha; +Cc: linux-raid

On Thursday May 23, lilha@legend.com.cn wrote:
> [root@snap /root]# mkraid /dev/md9
> handling MD device /dev/md9
> analyzing super-block
> /dev/hda8: device too small (0kB)
> mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
> 
> 
> Can you tell me where is wrong?
> thanks a lot.

My best guess is that you need to reboot for the changes to the
partition table to be read.
What does 'cat /proc/partitions' show?

NeilBrown

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-24  0:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-23 13:58 about delete raid lilha
2002-05-24  0:45 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).