NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Configured RAID device WRONG - Now how to get it right?



Hi guys,

I'm following chapter 16 of the manual (
http://www.netbsd.org/docs/guide/en/chap-rf.html) to create a RAIDframe
RAID-1 mirror of my two disks, both identical 2GB 5900RPM Seagate drives.

So far, I've made a fairly generic install on my wd0 which is working.

Next step was to prepare wd1 in order to make a raid0 device on it.

Unfortunately, I didn't read the guide before I finished it, and I set my
disklabel on wd1 to:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 409600800        63     4.2BSD   2048 16384     0  # (Cyl.      0*-
406350*)
 b:   2097648 409600863       swap                     # (Cyl. 406350*-
408431*)
 c: 3907029105        63     unused      0     0        # (Cyl.      0*-
3876020)
 d: 3907029168         0     unused      0     0        # (Cyl.      0 -
3876020)
 e: 3495330657 411698511     4.2BSD   2048 16384     0  # (Cyl. 408431*-
3876020)

(The same as my wd0, not a single whole-disk partition)

I followed the next steps, and added wd1a to a RAID, and obviously ended up
with a 200GB RAID as you would expect.

I noticed this error immediately and ran raidctl -u raid0, thinking that I
could just reconfigure it all.

I edited the disklabel for wd1 to:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 3907029105        63       RAID                     # (Cyl.      0*-
3876020)
 c: 3907029105        63     unused      0     0        # (Cyl.      0*-
3876020)
 d: 3907029168         0     unused      0     0        # (Cyl.      0 -
3876020)

Then repeated the steps to create the raid0, thinking this would leave me
with a workable 2TB raid0:

# raidctl -v -C /var/tmp/raid0.conf raid0
# raidctl -v -I 2009122601 raid0
# raidctl -v -s raid0

The last command showed this output:
# raidctl -v -s raid0
Components:
          component0: failed
           /dev/wd1a: optimal
No spares.
component0 status is: failed.  Skipping label.
Component label for /dev/wd1a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 20120718, Mod Counter: 63
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 3907028992
   RAID Level: 1
   Autoconfig: No
   Root partition: No
   Last configured as: raid0
Parity status: DIRTY
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.

This suggests a 2TB array, as desired.

But disklabel -r -e -I raid0 shows:
raid0d:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 400000
total sectors: 409600640
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 409600640         0     4.2BSD      0     0     0  # (Cyl.      0 -
400000*)
 d: 409600640         0     unused      0     0        # (Cyl.      0 -
400000*)

This is still the 200GB.

Any suggestions? Can I safely overwrite disklabel?

Thanks,
Luceo.


Home | Main Index | Thread Index | Old Index