[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Raq4i or Raq4r
- Subject: Re: [cobalt-users] Raq4i or Raq4r
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu Jul 4 20:52:01 2002
- Organization: Front Street Networks LLC
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Thursday 04 July 2002 01:02 pm, Gerald Waugh wrote:
Changed md0 to md1
another cobaltism
# mkraid -f /dev/md1
# raidstop /dev/md1
added contents of /etc/fstab from a RaQ4r, when you ared done,
check /etc/fstab
[root /root]# cat /etc/fstab
/dev/md1 / ext2 defaults 1 1
/dev/md6 swap swap defaults 0 0
/dev/md3 /var ext2 defaults,nosuid 2 2
/dev/md4 /home ext2 defaults,usrquota,grpquota,grpid 3 3
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=0622 0 0
> These instrucitons have never been used on a RaQ and there is no guarantee
> that they will not render your system useless, particularly if you err.
> Then you will have to run the OSRCD..
>
> 1) Is your second drive hdc (a master)?
> if not strap it as a master to make it hdc
>
> 2) make a file /etc/raidtab (paste following data into it)
>
> raiddev /dev/md1
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> device /dev/hda1
> raid-disk 0
> device /dev/hdc1
> raid-disk 1
>
> raiddev /dev/md3
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> device /dev/hda3
> raid-disk 0
> device /dev/hdc3
> raid-disk 1
>
> raiddev /dev/md4
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> device /dev/hda4
> raid-disk 0
> device /dev/hdc4
> raid-disk 1
>
> raiddev /dev/md6
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 4
> device /dev/hda6
> raid-disk 0
> device /dev/hdc6
> raid-disk 1
>
> 3) run the following commands
> they will initilize hdc
> As you run each command look at /proc/mdstat file. It should tell you
> that the /dev/mdX device has been started, that the mirror is being
> reconstructed, and an ETA of the completion of the reconstruction.
> # mkraid -f /dev/md1
> # mkraid -f /dev/md3
> # mkraid -f /dev/md4
> # mkraid -f /dev/md6
>
> 4) vi /etc/rc.d/rc.sysinit
> find (if not there) add this section or remove the
> section that is there and add this secion
> # Add raid devices
> if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /etc/rc.d/rc.raid ]; then
> echo "Starting up RAID devices..."
> echo
> . /etc/rc.d/rc.raid
> echo
> echo
>
> # A non-zero return means there were problems.
> if [ $? -gt 0 ]; then
> echo
> echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
> echo "!! !!"
> echo "!! An error occurred during RAID startup !!"
> echo "!! !!"
> echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
> echo
>
> LINE1=`getmsg raid_fail_1`
> LINE2=`getmsg raid_fail_2`
> $LCD_STOP >& /dev/null
> $LCD_SWRITE -s "$LINE1" "$LINE2" &>/dev/null &
> sleep 10
>
> echo
> echo "Automatic reboot in progress..."
> echo "Unmounting file systems"
> echo
> LINE1=`getmsg reboot_1`
> LINE2=`getmsg reboot_2`
> $LCD_STOP >& /dev/null
> $LCD_SWRITE -s "$LINE1" "$LINE2" &>/dev/null &
> sleep 2
>
> umount -a
> mount -n -o remount,ro /
> reboot
> fi
> # reset lcd message
> LINE1=`getmsg checking_disk_1`
> $LCD_STOP >& /dev/null
> $LCD_SWRITE -s "$LINE1" "" &>/dev/null &
> fi
>
> 5) The partition-types of the devices used in the RAID must be set to
> 0xFD(use fdisk and set the type to ``fd'')
> # raidstop /dev/md1
> # raidstop /dev/md3
> # raidstop /dev/md4
> # raidstop /dev/md6
> # fdisk /dev/hda
> Command (m for help): p
> look at the partitions, with id 83
> you must change those to "fd" (no "")
> Use the 't' command to change the id
> Now do the same thing with hdc
> #fdisk /dev/hdc
>
> OK, you're done, reboot and then
> cat /etc/mdstat and you should see raid runing
>
> BE CAREFUL
[root /root]# cat /etc/fstab
/dev/md1 / ext2 defaults 1 1
/dev/md6 swap swap defaults 0 0
/dev/md3 /var ext2 defaults,nosuid 2 2
/dev/md4 /home ext2 defaults,usrquota,grpquota,grpid 3 3
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=0622 0 0
--
Gerald Waugh
http://frontstreetnetworks.com SOHO Networks & Web Site Hosting
Front Street Networks LLC voice +1 203 785 0699 * fax +1 203 785 1787
229 Front Street, Ste. #C, New Haven CT 06513-3203