Solaris 10 : Disk features (part 2)
Tuesday Nov 21, 2006
Solaris 10 : Disk features (part 2)
To print out the partition table of the disk or LUN, use "prtvtoc" command, this command is applicable to display both (SMI) VTOC (default for disk or LUN < 1TB) and EFI VTOC (for disk or LUN > 1TB)
*** EFI VTOC is also eligible for LUN < 1TB too, but need special option in format (format -e) ***
Caution: If a disk has an existing SMI VTOC that includes space allocated to slice 7, and the label is changed to an EFI VTOC label, the allocation of space to slice 7 is destroyed. All the data that might have been kept there is now gone. Reversing the process requires placing an SMI VTOC label back on the disk, and restoring the original VTOC information. You should always make a backup copy of the label information with the prtvtoc command before changing an existing label.
Example 1 : Displaying disk or LUN less than 1TB capacity
# prtvtoc /dev/rdsk/c0t1d0s2
* /dev/rdsk/c0t1d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 107 sectors/track
* 27 tracks/cylinder
* 2889 sectors/cylinder
* 24622 cylinders
* 24620 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 2097414 2097413
1 3 01 2097414 2097414 4194827
2 5 01 0 71127180 71127179
3 0 00 4194828 2097414 6292241
4 0 00 6292242 2097414 8389655
5 0 00 8389656 2097414 10487069
6 0 00 10487070 2097414 12584483
7 0 00 12584484 58542696 71127179 (some data here)
Example 2 : Use the following command to display the output of the prtvtoc command on a disk larger than 1TB:
# prtvtoc /dev/rdsk/c0t1d0s2
* /dev/rdsk/c0t1d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 71132959 sectors
* 71132892 accessible sectors
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 12584484 58532057 71116540
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 34 2097380 2097413
1 3 01 2097414 2097414 4194827
3 2 00 4194828 2097414 6292241
4 2 00 6292242 2097414 8389655
5 2 00 8389656 2097414 10487069
6 2 00 10487070 2097414 12584483
8 11 00 71116541 16384 71132924 (no slice#7)
Example 3 : How to use format command to specify VTOC or EFI Header Label
# format -e
partition> p
Current partition table (original):
Total disk sectors available: 71116541 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 root wm 34 1.00GB 2097413
1 swap wu 2097414 1.00GB 4194827
2 unassigned wm 0 0 0
3 root wm 4194828 1.00GB 6292241
4 root wm 6292242 1.00GB 8389655
5 root wm 8389656 1.00GB 10487069
6 root wm 10487070 1.00GB 12584483
7 unassigned wm 0 0 0
8 reserved wm 71116541 8.00MB 71132924
partition> label
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]?
Auto configuration via generic SCSI-2[no]?
Ready to label disk, continue? y
partition>
Reference
http://onesearch.sun.com/search/clickthru?qt=EFI+73684&url=http%3A%2F%2Fsunsolve.sun.com%2Fsearch%2Fdocument.do%3Fassetkey%3D1-9-73684-1&pathInfo=%2Fsearch%2Fonesearch%2Findex.jsp&hitNum=1&col=support-sunsolve
http://www.intel.com/technology/efi/main_specification.htm
http://support.veritas.com/docs/275690











You're my saviour man !, this is exactly the ...