There are really only two types of places to store the meta device databases need by DiskSuite, either on one or more separate partitions, or within the metadevice. For this example system we will create very small partitions (only 2160 blocks) on each of the second and third disks.
Format the disks. Become root on the system and issue the format command.
Sun's DiskSuite product requires and odd number of meta device databases. This is because DiskSuite uses a majority rules method of determining the correct disk structure. If three meta device databases say it's day outside and four meta device databases say it's night outside then DiskSuite says it's night outside.
You create metadatabases through the use of the metadb command (/usr/opt/SUNWmd/sbin/metadb).
To create the first meta device database issue the following command:
metadb -a -f c0t1d0s0
Next create the replicas of the databases. I have chosen to create two replica meta device databases, for a total of three meta device databases. And to place the last two meta device databases on the same disk partition. The command is:
metadb -a -c 2 c0t2d0s0
There are two methods of creating the striped metadevice. One method is to edit /etc/opt/SUNWmd/md.tab and add the following line:
d0 1 2 /dev/dsk/c0t1d0s0 /dev/dsk/c0t2d0s0
The other method is to use the options with the metainit command.
metainit d0 1 2 /dev/dsk/c0t1d0s0 /dev/dsk/c0t2d0s0
Now that the meta device exists we can create a file system upon it. The command is newfs.
newfs -v /dev/md/rdsk/d0Please take particular notice of the path. The path to the block meta device is /dev/md/dsk/d0.
The new file system is ready to be mounted. A simple mount command is:
mount /dev/md/dsk/d0 /export
Also edit /etc/vfstab and add the following entry:
/dev/md/dsk/d0 /dev/md/rdsk/d0 /export ufs 2 yes -
The new meta device is now ready to be used.
This web page is Copyright © 1997 - 2019ß, Stephen Hinchey
If you have comments or additions for these web pages please direct them to webmaster @ barbary.com