Solaris: Preparing Hard Disks and Partitioning Disks

prtvtoc Utility

prtvtoc prints the content of the VTOC (volume table of contents). It displays the start/stop
cylinder, the size of the partition and the mounted directory. Execute prtvtoc as follows:
1. Log on as user root.
2. Enter:

/usr/sbin/prtvtoc -s <rawdevice>

Solaris does not allow track zero on the disk to be part of the raw device used by the database system. When the machine is rebooted, the operating system writes a label here. Consequently, data from the database is overwritten and a restore of the database becomes necessary.

If you use a RAID System or a Volume Management Software from Sun
(Solstice DiskSuite or Veritas Volume Manager) then the device driver will
take care of this restriction.
Otherwise, when you initially setup a raw device, the standard second
partition (/dev/rdsk/c?t?d?s2) may not be used since it normally includes
track zero on the disk. A disk that is intended for use as a raw device, must be reformatted appropriately to ensure that the raw device begins at track one. Check your disk configuration as soon as possible to make sure that your raw devices meet the above requirements. To do this:
Log on as root and change to the directory
/<db-system>/<SAPSID>/sapdata
List the links to the raw devices by entering the command:
ls -lR
Display all partitions on a disk (substitute “?”):
/usr/sbin/prtvtoc <rawdevice>












Assume ls -lR produces the output
lrwxrwxrwx 1 root 18 Nov 29 data3 -> /dev/rdsk/c0t3d0s6
then the partition 6 of this disk is used as a raw device.
Assume /usr/sbin/prtvtoc /dev/rdsk/c0t3d0s6 produces the
output:
First Sector Last
Part. Tag Flags Sector Count Sector Mount Directory
0 0 00 0 7050 7049
2 5 01 0 3929670 3929669
6 4 00 7050 3922620 3929669
Then the first sector of partition 6 is not equal zero.
If the partition you want to use begins with sector zero (as shown for partition
2 in the above example) it cannot be used as a raw device partition.

Partitioning Disks

1. Look for a mounted partition with the format utility:
format
format> partition
partition> print
2. Define partition size:
partition> label
partition> quit
format> disk
3. Chose next disk:
format> quit
For more information, see the Solaris documentation.

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top