Koozali.org: home of the SME Server

Raid (without the R)

Huw

Raid (without the R)
« on: June 03, 2001, 06:28:01 PM »
Hi,

Just for fun looked at /proc/mdstat and noticed...

[root@server1 /root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hda5[1] hda1[0] 15936 blocks [2/2] [UU]
md2 : active raid1 hdc5[1] hdc1[0] 262464 blocks [2/2] [UU]
md1 : active raid1 hdc6[1] hda6[0] 9751744 blocks [2/2] [UU]
unused devices:

notice.. md0 is two bits of hda, md2 two bits of hdc
well at least md1 is redundant!  

does this mean if I get a failure my server? (4.1.2)

So looked at /etc/fstab
[root@server1 /root]# cat /etc/fstab
/dev/md1                /                       ext2    defaults        1 1
/dev/md0                /boot                   ext2    defaults        1 2
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/md2                swap                    swap    defaults      
I use Raid on my RH6 machine but 'upgraded' from a old non raid to raid and I know there a issues with booting is this why?

and for those who want to know here are the partitions on each drive

[root@server1 /root]# fdisk /dev/hdc

The number of cylinders for this disk is set to 39560.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdc: 16 heads, 63 sectors, 39560 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1       521    262552+  fd  Linux raid autodetect
/dev/hdc2           522     39560  19675656    5  Extended
/dev/hdc5           522      1042    262552+  fd  Linux raid autodetect
/dev/hdc6          1043     20391   9751864+  fd  Linux raid autodetect
[root@server1 /root]# fdisk /dev/hda

The number of cylinders for this disk is set to 2434.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

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         2     16033+  fd  Linux raid autodetect
/dev/hda2             3      2434  19535040    5  Extended
/dev/hda5             3         4     16033+  fd  Linux raid autodetect
/dev/hda6             5      1220   9767488+  fd  Linux raid autodetect

Huw

Huw

Re: Raid (without the R)
« Reply #1 on: June 03, 2001, 06:30:15 PM »
OOOps
missed the end of a line

does this mean if I get a failure my server? (4.1.2) stops?

Huw