SDS Mirror root disk

 

This is a guide to mirroring the root disk on a system using SDS (Solstice Disk Suite) The reason for choosing this over Veritas is two fold. Firstly its slightly cheaper, as in free and secondly when used on the boot disk there is no advantage to using veritas as all it realistaly provides is mirroring and SDS provides mirroring without encapsulating or otherwise messing with the disk.

Preparing for the install

The installation of SDS requires a partition to work on of at least 10mb.
If you have a spare slice on the disk then use this if not you will have to use some space from the swap partition.

Using space in swap. You will need to steal some space from swap and create a new partition depending upon the system. This is best done from single user or from cdrom

	* Swap -l    (list swap files and partitions)
	* Swap -d    remove the partition from swap
	* Format   -  repartition the disk using some space from swap


We will assume from now on that there are two disks in the system c0t0d0 and c0t1d0 with the following partition on c0t0d0.
We need to copy this partition table to the c0t1d0 disk. This is easiest done using prtvtoc and fmthard. Install the SDS software. On solaris 8 it is on the 2nd CD in /Solaris_8/EA/products/DiskSuite_4.2.1/sparc/Packages

Setting up SDS

* Initialise the database

* Create metadevices for one side of the mirror with the OS. * clock the file system and reboot * After the reboot attach the second disk and make it bootable * Make sure trhe disk can be booted from Checking it all out
The /etc/vfstab file should now point to /dev/md/dsk/d? instead of /dev/dsk/c?t?d?s? if not then it can be manually edited to point to these. An example below. You also need to test mirroring works by removing/ powering off a disk.
	fd      -       /dev/fd fd      -       no      -
	/proc   -       /proc   proc    -       no      -
	/dev/md/dsk/d1  -       -       swap    -       no      -
	/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
	/dev/md/dsk/d2  /dev/md/rdsk/d2 /var    ufs     1       no    -
	/dev/md/dsk/d4  /dev/md/rdsk/d4 /usr    ufs     1       no      -
	/dev/md/dsk/d3  /dev/md/rdsk/d3 /var    ufs     1       no      -
	/dev/md/dsk/d5  /dev/md/rdsk/d5 /export/ftp     ufs     2       yes     -
	swap    -       /tmp    tmpfs   -       yes     -

SDS Commands

Use the following to administer the configuration