From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: How To Add a Hard Disk?
Date: 1996/11/08 [thread overview]
Message-ID: <560fop$jp6@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 32826983.41C67EA6@interglobe.com
In article <32826983.41C67EA6@interglobe.com>, Scott Sanbeg <ssanbeg@interglobe.com> writes:
I added a disk to our
>Storage Works 3-channel blah-blah, a logical disk, and initialized it,
>checked it for errors, all that good stuff.
The backplane StorageWorks RAID controllers (KZESC, KZPSC) use the "re"
device driver. My experience with them is limited to maybe having seen
one once. If the driver is reasonable, it will find new devices with
need a kernel rebuild.
^[
>The docs say to reboot to
>the OS to have the new un-named device integrate... The OS doesn't know
>anything about it, and neither do I at this point. But, basically, how
>does one add a hard disk?
Watch the boot messages when the system boot to see what "re" devices
show up. If the new one is present, you're in good shape. If not
you may have to change the configuration file, rebuild the kernel
and reboot. If the boot does find the device, you need to:
1. Create the special device files using /dev/MAKEDEV. For example
if the new "re" device is "re1":
# cd /dev
# ./MAKEDEV re1
2. Label it.
# disklabel -wr /dev/rre1c re
You probably don't need to provide much more information, as the
disklabel command will get the capacity, geometry and partition
table from the driver.
3. Use it. mkfdmn or addvol with AdvFS, add it to LSM and create
volumes on it, use newfs to create a UFS, use it directly as a
raw device.
If you have to rebuild the configuration file...
For a device like this, editing the configuration and rebuilding
directly is probably easier than booting genvmunix and building
a new kernel from scratch. Each SWXCR class controller is represented
by a line like:
controller xcr0 at * vector xcrintr
In a real configuration file, the "at *" will be filled in with the
actual location. Each of these devices supports 8 logical units
represented by:
device disk re0 at xcr0 drive 0
device disk re1 at xcr0 drive 1
device disk re2 at xcr0 drive 2
device disk re3 at xcr0 drive 3
device disk re4 at xcr0 drive 4
device disk re5 at xcr0 drive 5
device disk re6 at xcr0 drive 6
device disk re7 at xcr0 drive 7
If the configuration doesn't include all these when the base xcr0
device is added, you can just add the missing ones by hand. Additional
xcr controllers (xcr1, xcr2, etc) will use progressively higher drive
numbers; re8-re15 for xcr1, re16-re23 for xcr2, etc.
To build the new kernel after editing the configuration use the doconfig
command:
# doconfig -c HOSTNAME
Replace HOSTNAME, by your configuration file name. After the kernel
has built, save a copy of the current /vmunix, copy the new one
to the root and reboot:
# cp /vmunix /vmunix.sav
# cp /sys/HOSTNAME/vmunix /
# shutdown -r +n "Find new device"
I would doubt that you have to go through any of this, but it seems
best to be complete.
>Scott Sanbeg INTERNET: ssanbeg@interglobe.com
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~1996-11-08 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-07 5:00 How To Add a Hard Disk? Scott Sanbeg
1996-11-08 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1996-11-11 5:00 ` Igor Merku
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox