Labeling VTOC

How to relabeling the disk VTOC
if i relabel the disk the previous data is available or not

I'm a little confused. Do you have a disk named VTOC? Or do you just need to "rename" partition tables? Or do you need to resize them?

i have created a partition table
and take the backup of table by using prtvtoc to a file

now i would like to rearrange the partition table and do some mountings on it
later i would like to relabel the disk with backed up VTOC.

then in that case, will i get the previous data?

I'm still confused. Why would you need to rearrange the partition table? As in, put two where six is and six where four is? At that point your just changing your name and number. I'm unsure if that would work.

* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*           0   8395200   8395199
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    8395200   4711488  13106687   /
       1      7    00   13106688   4192512  17299199   /var
       2      5    00          0 143349312 143349311
       3      3    01          0   8395200   8395199
       5      0    00   17299200 108058944 125358143   /opt
       6      4    00  125358144   9595968 134954111   /usr
       7      8    00  134954112   8395200 143349311   /export/home

I'm pretty sure that the sector counts are where they do there starting and stopping. If you change anything in the sectors, you will probably loose data. I'm unsure what you are trying to do exactly. If you made a partition table too big, let's say on /usr, you should be able to backup /usr, re-partition that partition. Reformat and then restore.

Does this help?

The VTOC (Virtual Table of Contents) is the name of the Solaris partition (slice) table, not to confuse with the fdisk partition table on x86.

you will definitely need to restore your data on the re-partitioned VTOC