DiskSuite 1.0 Notes
OS
DiskSuite 1.0 is supported on SunOS 4.1.1 through 4.1.4. Ignore the warnings during the install about it not being supported.
Note DiskSuite replaces key binaries like tar, ls, find, du, and dd. Install the product after applying Y2K patches. Apply Y2K patches for DiskSuite if you have them.
The root partition, even if it is in a metadevice, needs to either be within the first 1GB or 2GB of the disk. This is OpenBoot/PROM version dependent.
See Infodoc 2088 for more information on how to setup DiskSuite 1.0. The Infodoc is geared towards setting up a mirrored disk, but is good as a reference.
Install
- Run the cdm command inside the Disksuite tar file to install the product.
- Add metadevice support to the kernel
- cd /sys/
arch -k
/conf
- Edit the kernel config file. This is usually GENERIC.
- Add pseudo-device md128 under the section where pseudo-devices begun.
- Rebuild the kernel.
- config GENERIC
- cd ../GENERIC
- make
- cp /vmunix /vmunix.old
- cp vmunix /vmunix
- Create the metadevices in dev using the metascript command.
/usr/etc/metascript
- Patch the kernel with the state metadb database. You will get an error if the kernel was not built with md support.
/usr/etc/metadb -p -k /vmunix
- Setup the /etc/init scripts and reboot.
/usr/etc/metarc
/usr/etc/reboot
- Setup the metadb slice. It needs to be at least 1000 sectors large to hold multiple copies of the DB. In the examples, below, it is in sd1h. sd1a is a large empty slice that will be used to hold a single large filesystem.
- Create the md.conf file.
mddb01 /dev/sd1h
/dev/md0a 1 1 /dev/sd1a
- Initialize the metadevice database.
/usr/etc/metadb -a -f mddb01
- Initialize the metadevices listed in the md.conf file.
/usr/etc/metainit -a -f
- You can create the new filesystem under /dev/md0a.