Koozali.org: home of the SME Server

RAID

pippin

RAID
« on: January 02, 2007, 11:36:08 PM »
How can i see if i
 have 2 disk in RAID?

here is output of fdisk -l

[root@sme ~]# fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   fd  Linux raid autodetect
/dev/sda2              14       24321   195254010   fd  Linux raid autodetect

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 199.9 GB, 199939981312 bytes
2 heads, 4 sectors/track, 48813472 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table
[root@sme ~]#

Offline byte

  • *
  • 2,183
  • +2/-0
Re: RAID
« Reply #1 on: January 02, 2007, 11:41:22 PM »
Quote from: "pippin"
How can i see if i
 have 2 disk in RAID?


Type at command line...

cat /proc/mdstat

Which would show something like...

Personalities : [raid1]
md1 : active raid1 sda1[0] sdb1[1]
      104320 blocks [2/2] [UU]

md2 : active raid1 sda2[0] sdb2[1]
      1991936 blocks [2/2] [UU]

unused devices: <none>
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
RAID
« Reply #2 on: January 02, 2007, 11:53:28 PM »
The same information is available via the Manage Raid Devices item on the admin console.

For more detail you can use
mdadm --detail /dev/md1
mdadm --detail /dev/md2

pippin

RAID
« Reply #3 on: January 03, 2007, 12:32:17 AM »
Well it was a jumper on one of the disk that cause the trouble :D