|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Stephen Marley (stephen
openkast.com)Date: Tue Oct 02 2001 - 13:16:41 CDT
> Could someone send me a copy of their: #df -k output raid0.conf &
> raid1.conf files and/or a general output of test display when raidctl
> works in configuring a mirrored disk array? thankyou
Josh,
Here ye go. Note I'm using new stuff which includes autoconfigure at boot.
Just remember you can't have / on raid without autoconfigure and you should
name /etc/raid0.conf-auto as /etc/raid0.conf to get /etc/rc to configure it
at boot time.
The commands you need to set up the initial raid set (once you've
disklabelled the disks) are:
# raidctl -C /etc/raid0.conf raid0
# raidctl -I 100 raid0
# raidctl -iv raid0
# disklabel -E raid0 # I ran fdisk -i raid0 too but it's not necessary
# newfs /dev/raid0a
# mount /dev/raid0 /mnt
After each boot you need to run raidctl -c /etc/raid0.conf raid0, but
/etc/rc does this for you if your conf file is in /etc and follows the
naming convention.
This article may help too -
http://www.bsdtoday.com/2000/August/Features264.html
-- stephenopenkast.com
% df -h Filesystem Size Used Avail Capacity Mounted on /dev/raid0a 247M 32M 204M 13% / /dev/raid2a 248M 1.0K 235M 0% /tmp /dev/raid2b 1.9G 890M 992M 47% /var /dev/raid2d 248M 9.2M 226M 4% /var/tmp /dev/raid2e 3.9G 1.8G 1.8G 50% /usr /dev/raid2f 1.5G 4.3M 1.4G 0% /home /dev/sd0a 290M 34M 241M 12% /altroot /dev/sd1a 248M 34M 201M 15% /altroot1 /dev/raid3a 10G 2.0K 9.6G 0% /u /dev/raid4a 7.8G 1.0K 7.4G 0% /u2 /dev/raid5a 4.6G 1.0K 4.4G 0% /u3
% cat /etc/fstab /dev/raid0a / ffs rw,softdep 1 1 /dev/raid1b none swap sw 0 0 /dev/raid2a /tmp ffs rw,softdep 1 2 /dev/raid2b /var ffs rw,softdep 1 2 /dev/raid2d /var/tmp ffs rw,softdep 1 2 /dev/raid2e /usr ffs rw,softdep 1 2 /dev/raid2f /home ffs rw,softdep 1 2 /dev/raid3a /u ffs rw,softdep 1 2 /dev/raid4a /u2 ffs rw,softdep 1 2 /dev/raid5a /u3 ffs rw,softdep 1 2 /dev/sd0a /altroot ffs rw,softdep 1 2 /dev/sd1a /altroot1 ffs rw,softdep 1 2
% cat /etc/raid0.conf-auto # raidctl config file for /dev/raid0c
START array # numRow numCol numSpare 1 2 1
START disks /dev/sd2a /dev/sd3a
START spare /dev/sd1d
START layout # sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level_1 128 1 1 1
START queue fifo 100
% cat /etc/disklabels/sd2 # /dev/rsd2c: type: SCSI disk: SCSI disk label: MAJ3182MP flags: bytes/sector: 512 sectors/track: 482 tracks/cylinder: 5 sectors/cylinder: 2410 cylinders: 14809 total sectors: 35694904 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0
16 partitions: # size offset fstype [fsize bsize cpg] a: 523983 63 RAID # (Cyl. 0*- 217*) b: 1047966 524046 RAID # (Cyl. 217*- 652*) c: 35694904 0 unused 0 0 # (Cyl. 0 - 14811*) e: 8389116 1572012 RAID # (Cyl. 652*- 4133*) f: 7282842 9961128 RAID # (Cyl. 4133*- 7155*) g: 8388790 17243970 RAID # (Cyl. 7155*- 10635) h: 10047605 25632760 RAID # (Cyl. 10636 - 14805*)
% cat /etc/disklabels/sd3 # /dev/rsd3c: type: SCSI disk: SCSI disk label: MAJ3182MP flags: bytes/sector: 512 sectors/track: 482 tracks/cylinder: 5 sectors/cylinder: 2410 cylinders: 14809 total sectors: 35694904 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0
16 partitions: # size offset fstype [fsize bsize cpg] a: 523983 63 RAID # (Cyl. 0*- 217*) b: 1047966 524046 RAID # (Cyl. 217*- 652*) c: 35694904 0 unused 0 0 # (Cyl. 0 - 14811*) e: 8389116 1572012 RAID # (Cyl. 652*- 4133*) f: 7282842 9961128 RAID # (Cyl. 4133*- 7155*) g: 8388790 17243970 RAID # (Cyl. 7155*- 10635) h: 10047605 25632760 RAID # (Cyl. 10636 - 14805*)
% cat /etc/disklabels/raid0 # /dev/rraid0c: type: RAID disk: raid label: fictitious flags: bytes/sector: 512 sectors/track: 128 tracks/cylinder: 8 sectors/cylinder: 1024 cylinders: 511 total sectors: 523904 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0
16 partitions: # size offset fstype [fsize bsize cpg] a: 523136 128 4.2BSD 1024 8192 16 # (Cyl. 0*- 510) c: 523904 0 unused 0 0 # (Cyl. 0 - 511*)
% sudo raidctl -sv raid0 Components: /dev/sd2a: optimal /dev/sd3a: optimal No spares. <------ bug in autoconfigure stuff Component label for /dev/sd2a: Row: 0, Column: 0, Num Rows: 1, Num Columns: 2 Version: 2, Serial Number: 100, Mod Counter: 529 Clean: No, Status: 0 sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1 Queue size: 100, blocksize: 512, numBlocks: 523904 RAID Level: 1 Autoconfig: Yes Root partition: Yes Last configured as: raid0 Component label for /dev/sd3a: Row: 0, Column: 1, Num Rows: 1, Num Columns: 2 Version: 2, Serial Number: 100, Mod Counter: 529 Clean: No, Status: 0 sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1 Queue size: 100, blocksize: 512, numBlocks: 523904 RAID Level: 1 Autoconfig: Yes Root partition: Yes Last configured as: raid0 Parity status: clean Reconstruction is 100% complete. Parity Re-write is 100% complete. Copyback is 100% complete.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]