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 |
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.