Re: Is RAID1 alive and well?
Chinook a écrit :
> Etch with kernel 2.6.12-1-686 (2.6.12-10) Gnome desktop
> ........................................................
>
> I recently tested imaging and restoring my complete system with Mondo
> (before I screw it up again :-)
>
> All seems well, but earlier today I thought I saw something like
> "RAID1 not detected" in the messages scrolling by at boot up. May be
> nothing, as I have scanned all logs in the appropriate time frame
> without success, but I would like to put my mind at rest. I've been
> googling and searching man pages for hours for a way to determine if
> RAID1 is working properly after the restore. I even installed a
> package named "dmraid" which tells me there is no detected RAID, but
> I'm not sure it's looking for the type of software RAID used by Debian.
>
> The only thing I found (other than dmraid) that gives me any kind of
> indication is the cli "sfdisk" (I only used the -l option). The
> output from such is below. Is it telling me that hdb is an "active"
> RAID1 disk? Is there any other way of determining the status of RAID1
> in my Debian installation? Sorry, but this is bugging me %-/
Hi,
You can watch the file /proc/mdstat or use the mdadm tool (in mdadm
package, it's the official tool to manage software raid on linux).
cu.
>
> Thank you,
> Lee C
>
>
> output from sfdisk
> ==================
> debian1:/home/leec# sfdisk -l
>
> Disk /dev/hda: 155061 cylinders, 16 heads, 63 sectors/track
> Warning: extended partition does not start at a cylinder boundary.
> DOS and Linux will interpret the contents differently.
> Warning: The partition table looks like it was made
> for C/H/S=*/255/63 (instead of 155061/16/63).
> For this listing I'll assume that geometry.
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End #cyls #blocks Id System
> /dev/hda1 * 0+ 851 852- 6843658+ 83 Linux
> /dev/hda2 852 9728 8877 71304502+ 5 Extended
> /dev/hda3 0 - 0 0 0 Empty
> /dev/hda4 0 - 0 0 0 Empty
> /dev/hda5 852+ 1182 331- 2658726 82 Linux swap /
> Solaris
> /dev/hda6 1183+ 9728 8546- 68645713+ 83 Linux
>
> Disk /dev/hdb: 155061 cylinders, 16 heads, 63 sectors/track
> Warning: extended partition does not start at a cylinder boundary.
> DOS and Linux will interpret the contents differently.
> Warning: The partition table looks like it was made
> for C/H/S=*/255/63 (instead of 155061/16/63).
> For this listing I'll assume that geometry.
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End #cyls #blocks Id System
> /dev/hdb1 0+ 9725 9726- 78124063+ 5 Extended
> /dev/hdb2 0 - 0 0 0 Empty
> /dev/hdb3 0 - 0 0 0 Empty
> /dev/hdb4 0 - 0 0 0 Empty
> /dev/hdb5 0+ 9725 9726- 78124032 fd Linux raid
> autodetect
> debian1:/home/leec#
>
>
Reply to: