linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid 5 questions
@ 2004-06-03 14:29 David Greaves
  2004-06-03 15:13 ` Guy
  2004-06-03 15:50 ` David Greaves
  0 siblings, 2 replies; 19+ messages in thread
From: David Greaves @ 2004-06-03 14:29 UTC (permalink / raw)
  To: linux-raid

Hi

I've perused the archives and read the docs but I'm not sure on this 
point :)

If I create an array with 3 250Gb disks and use the 'missing' option I 
should get a degraded raid5 array with 750Gb
Now, when another 250Gb disk arrives I want to add that as the missing 
disk - will that work?

Now, since I actually have the 3 disks and I'm waiting for the 4th, lets 
try it with 2 and add a third...

Clear out the superblocks so we're starting from scratch
cu:~# mdadm --stop /dev/md0
cu:~# mdadm --zero-superblock /dev/sda
cu:~# mdadm --zero-superblock /dev/sdb
cu:~# mdadm --zero-superblock /dev/sdc

Make the array.
cu:~# mdadm -v -C /dev/md0 --chunk=128 --level=5 --raid-devices=3 
/dev/sda /dev/sdb missing
mdadm: layout defaults to left-symmetric
mdadm: size set to 245117312K
mdadm: array /dev/md0 started.

What have we got?
cu:~# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.01
  Creation Time : Thu Jun  3 16:19:26 2004
     Raid Level : raid5
     Array Size : 490234624 (467.52 GiB 502.00 GB)
    Device Size : 245117312 (233.76 GiB 251.00 GB)
   Raid Devices : 3
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Jun  3 16:19:26 2004
          State : clean, no-errors
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 128K

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       16        1      active sync   /dev/sdb
       2       0        0       -1      removed
           UUID : 8acbe990:b31287f7:32888f7d:f0edcf0c
         Events : 0.3887

Thats 2x 251Gb giving a 502Gb array - good

Add this to the config
cu:~# echo 'DEVICE /dev/sd[abcd]' >/etc/mdadm/mdadm.conf
cu:~# mdadm --detail --scan >>/etc/mdadm/mdadm.conf
cu:~# cat /etc/mdadm/mdadm.conf
DEVICE /dev/sd[abcd]
ARRAY /dev/md0 level=raid5 num-devices=3 
UUID=8acbe990:b31287f7:32888f7d:f0edcf0c
   devices=/dev/sda,/dev/sdb

Now, the new disk arrives...
cu:~# mdadm  /dev/md0 -a /dev/sdc
mdadm: hot added /dev/sdc

So it should be working fine...
cu:~# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.01
  Creation Time : Thu Jun  3 16:19:26 2004
     Raid Level : raid5
     Array Size : 490234624 (467.52 GiB 502.00 GB)
    Device Size : 245117312 (233.76 GiB 251.00 GB)
   Raid Devices : 3
  Total Devices : 3
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Jun  3 16:23:21 2004
          State : clean, no-errors
 Active Devices : 2
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 128K

 Rebuild Status : 0% complete

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       16        1      active sync   /dev/sdb
       2       0        0       -1      removed
       3       8       32        2      spare   /dev/sdc
           UUID : 8acbe990:b31287f7:32888f7d:f0edcf0c
         Events : 0.3888


Nope it's a spare?
Help - how do I make my array resilient?


Environment:
Debian testing
Linux cu.dgreaves.com 2.6.6 #1 Thu Jun 3 14:12:01 BST 2004 i686 GNU/Linux
mdadm - v1.5.0 - 22 Jan 2004

Thanks

David

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RAID 5 questions
@ 2004-08-01  1:57 Ninti Systems
  2004-08-01  3:08 ` Daniel Pittman
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Ninti Systems @ 2004-08-01  1:57 UTC (permalink / raw)
  To: RAID Linux

I'm about to embark on building a RAID 5 Linux software array with 4
disks (I've only ever built 2 disk RAID 1 arrays before).

Q1: Is it true that Linux can't/shouldn't boot off a RAID 5 array?

Q2: The four disks have identical manufacturer, model and size, but two
are brand new while two have had NTFS filesystems on them. Accordingly,
if I run hdparm -g on them, two disks have these specs:

geometry = 2498/255/63, sectors = 40132503, start = 0

while the other two disks have these specs:

geometry = 39813/16/63, sectors = 40132503, start = 0


Is this an issue with software RAID? 

Thanks
Michael Hall




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

end of thread, other threads:[~2004-08-06  0:49 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 14:29 Raid 5 questions David Greaves
2004-06-03 15:13 ` Guy
2004-06-03 15:50 ` David Greaves
2004-06-03 16:43   ` Guy
  -- strict thread matches above, loose matches on Subject: below --
2004-08-01  1:57 RAID " Ninti Systems
2004-08-01  3:08 ` Daniel Pittman
2004-08-01  3:31 ` Jim Paris
2004-08-01  3:50   ` Alvin Oga
2004-08-02  6:01   ` Jarmo Järvenpää
2004-08-02  6:08     ` Luca Berra
2004-08-02  6:55       ` Jarmo Järvenpää
2004-08-02  6:09     ` Jim Paris
2004-08-02  7:27       ` Jarmo Järvenpää
2004-08-03 20:23         ` Frank van Maarseveen
2004-08-04  8:52           ` Tim Small
2004-08-01  9:33 ` Luca Berra
2004-08-01 10:24 ` Frank van Maarseveen
2004-08-03  5:19   ` misty-
2004-08-06  0:49   ` H. Peter Anvin

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).