f



Problem with prtvtoc/fmthard

Hi
we have a Sun X4500 with Solaris 10.

SunOS max 5.10 Generic_118855-33 i86pc i386 i86pc

If we try to duplicate the disk partitions of the first disk to the
second we have this
error:
---------------------------------------------------------------------------------------------------------
bash-3.00# prtvtoc /dev/rdsk/c6t0d0s0 | fmthard -s - /dev/rdsk/c6t1d0s0

fmthard: Partition 0 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).
fmthard: Partition 1 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).
fmthard: Partition 3 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).
fmthard: Partition 7 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).
fmthard: Partition 8 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).
expected one reserved partition, but found 0
---------------------------------------------------------------------------------------------------------

This is the output of
---------------------------------------------------------------------------------------------------------

bash-3.00# prtvtoc /dev/rdsk/c6t0d0s0
* /dev/rdsk/c6t0d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*   60800 cylinders
*   60798 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    1076355  16787925  17864279   /
       1      3    01      16065   1060290   1076354
       2      5    00          0 976719870 976719869
       3      0    00  157517325 819202545 976719869   /zones
       7      8    00   17864280 139653045 157517324   /export/home
       8      1    01          0     16065     16064
---------------------------------------------------------------------------------------------------------
Thanks for your help

Valerio Daelli

0
1/11/2007 10:17:35 AM
comp.unix.solaris 26002 articles. 1 followers. Post Follow

4 Replies
4512 Views

Similar Articles

[PageSpeed] 32


On Jan 11, 5:17 am, "valerio" <valerio.dae...@gmail.com> wrote:
> bash-3.00# prtvtoc /dev/rdsk/c6t0d0s0 | fmthard -s - /dev/rdsk/c6t1d0s0
>

Instead, use:


# prtvtoc /dev/rdsk/c6t0d0s2 | fmthard -s - /dev/rdsk/c6t1d0s2


-- 
Andy

0
AHinMaine
1/11/2007 2:46:27 PM
In article <1168510655.529596.23870@i39g2000hsf.googlegroups.com>,
	"valerio" <valerio.daelli@gmail.com> writes:
> Hi
> we have a Sun X4500 with Solaris 10.
> 
> SunOS max 5.10 Generic_118855-33 i86pc i386 i86pc
> 
> If we try to duplicate the disk partitions of the first disk to the
> second we have this
> error:
> ---------------------------------------------------------------------------------------------------------
> bash-3.00# prtvtoc /dev/rdsk/c6t0d0s0 | fmthard -s - /dev/rdsk/c6t1d0s0
> 
> fmthard: Partition 0 overlaps partition 2. Overlap is allowed
>         only on partition on the full disk partition).
> fmthard: Partition 1 overlaps partition 2. Overlap is allowed
>         only on partition on the full disk partition).
> fmthard: Partition 3 overlaps partition 2. Overlap is allowed
>         only on partition on the full disk partition).
> fmthard: Partition 7 overlaps partition 2. Overlap is allowed
>         only on partition on the full disk partition).
> fmthard: Partition 8 overlaps partition 2. Overlap is allowed
>         only on partition on the full disk partition).
> expected one reserved partition, but found 0
> ---------------------------------------------------------------------------------------------------------

Probably the disks are not exactly the same size, so you are
writing a Partition 2 record which is not the full disk. Then
the other partitions are not allowed to overlap it.

-- 
Andrew Gabriel
0
andrew
1/11/2007 10:10:06 PM

On Jan 11, 5:10 pm, and...@cucumber.demon.co.uk (Andrew Gabriel) wrote:
> Probably the disks are not exactly the same size, so you are
> writing a Partition 2 record which is not the full disk. Then
> the other partitions are not allowed to overlap it.
>

No, it's because he is specifying slice 0 instead of slice 2.  This is
why it is complaining about expecting the reserved overlap partition.

-- 
Andy

0
AHinMaine
1/12/2007 3:28:27 AM
you can do step by step

1. you can use format->fdisk
  create a same size solairs partition

this is very important.
2. and you can usr prtvtoc/fmthard tools

# prtvtoc /dev/rdsk/c6t0d0s2 | fmthard -s - /dev/rdsk/c6t1d0s2

0
huanglao2002
1/12/2007 5:26:32 AM
Reply: